David Sidrane
1781801151
Scope irq_state to function using it
2016-12-21 08:34:22 +01:00
David Sidrane
056bd5527d
New NuttX debug API
2016-12-21 08:34:21 +01:00
David Sidrane
5661370944
Changed to Upstream NuttX Instrumentation changes
2016-12-21 08:34:21 +01:00
David Sidrane
b7d7b567c0
Changes to px4iofirmware for Upstrem Nuttx c++ init and logging changes
2016-12-21 08:34:21 +01:00
David Sidrane
ff0e810b55
Nuttx changed CONFIG_DRAM_SIZE to CONFIG_RAM_SIZE
2016-12-21 08:34:21 +01:00
David Sidrane
3ed0bfe0d8
Nuttx added FIONSPACE and fixed FIONWRITE: had retuned the space and should have returned enqueued count
2016-12-21 08:34:21 +01:00
David Sidrane
81d00e730a
Portable fsync call
2016-12-21 08:34:21 +01:00
David Sidrane
dc8c6ea5e5
White space fixes
2016-12-21 08:34:21 +01:00
David Sidrane
c9f10107c0
Nuttx Upgrade:Adds sem_setprotocol
2016-12-21 08:34:21 +01:00
David Sidrane
24e8c213ee
Adding px4esc-v1 board and bootloader
2016-12-21 08:34:21 +01:00
David Sidrane
bba8371b0f
Adding px4cannode-v1 board and bootloader
2016-12-21 08:34:21 +01:00
David Sidrane
d09cd77777
Adding hardfault logging application
2016-12-21 08:34:20 +01:00
David Sidrane
0177e250f4
STM32 Serial Number location is defined in NuttX
2016-12-21 08:34:20 +01:00
David Sidrane
fd7d399958
Upstream Nuttx restructured directories use micro_hal
2016-12-21 08:34:20 +01:00
David Sidrane
d6098c8226
Adding Nuttx Build infrastructure
2016-12-21 08:34:20 +01:00
David Sidrane
cb9517486d
Upgrade to uavcan to support Nuttx 7.18+ {enter/leave}_critical_section
2016-12-21 08:34:20 +01:00
Matthias Grob
f9da41fcf2
fixed rebase errors in arm switch implementation
2016-12-20 09:46:36 +01:00
Matthias Grob
0dbdde3404
Arming: made flags more understandable, added error message for rejected disarm
2016-12-20 09:46:36 +01:00
Matthias Grob
f6282f5b3d
Arm button fix: include the arm switch into the structure of all the checks for RC arming
2016-12-20 09:46:36 +01:00
Matthias Grob
94c8371ffe
Arm button fix: toggle arming state only once per arm button press
2016-12-20 09:46:36 +01:00
Matthias Grob
8a75827d6a
fixed all comments of arm button review
2016-12-20 09:46:36 +01:00
Matthias Grob
aa984edd90
added an rc switch for arming and disarming with the option to use it as a button
2016-12-20 09:46:36 +01:00
Matthias Grob
537f72073d
minor: uppercase typo and unused header
2016-12-20 09:46:36 +01:00
Lorenz Meier
83b177c5ad
DC mixer: Fix geometry for Iris
2016-12-19 20:39:48 +01:00
Lorenz Meier
313ff2a6f2
UAVCAN: Correct use of unsubscribe
2016-12-19 20:39:03 +01:00
Lorenz Meier
1d98c8f202
MAVLink app: Correct use of unsubscribe
2016-12-19 20:39:03 +01:00
Lorenz Meier
dfed9a3f13
Fix nullptr access in mixer group. This was only ever an issue on booboot and not in flight.
2016-12-19 20:36:05 +01:00
Lorenz Meier
c91f827072
sensors app: Always run validator so it gets updated and can detect timeouts
2016-12-19 20:34:52 +01:00
Lorenz Meier
fe5cc5622b
Failover logging in sensors app: Trim down strings
2016-12-19 20:34:52 +01:00
Lorenz Meier
cc7db94edc
Sensors app mag voter: Increase stale value detection threshold to accomodate low-noise mag setups
2016-12-19 20:34:52 +01:00
Lorenz Meier
c62c3c98bf
uORB devices: Guard more against invalid handles fed to publish routine
2016-12-19 20:34:52 +01:00
Lorenz Meier
ca59d4cddb
Simulator: Initialize ground truth topic handle
2016-12-19 20:34:52 +01:00
Lorenz Meier
df613361b9
LPE: Increase stack to allow enough safe margin
2016-12-19 20:34:52 +01:00
Mark Whitehorn
bad2dc80a4
change default THR_MDL_FAC to zero (disabled)
2016-12-16 18:12:17 +01:00
Roman
d221313dfb
implemented mapping between desired thrust and applied pwm in
...
multirotor mixer.
Signed-off-by: Roman <bapstroman@gmail.com >
2016-12-15 23:39:53 +01:00
Dennis Mannhart
22733b1501
mc_pos_control: dont run alt-control when landing
2016-12-15 10:17:03 +01:00
Julian Oes
ef7ade52b1
mc_pos_control: stay landing even after freefall
...
This fixes the following case:
1. VTOL in auto mission descends to land
2. _in_landing is set to true correctly
3. _lnd_reached_ground is set to true because it's detected, motors idle.
4. The vehicle might drop for a few centimeters and _acc_z_lp goes back
up above 4m/s^2, so freefall is detected.
5. The motors spin up again, and _in_landing and _lnd_reached_ground are
both reset to false.
6. Since we're floating at a few centimeters, we can't actyally get to
_vel_z_lp > 0.5, and therefore _in_landing is never triggered after.
7. Thus we never finish the landing.
This is fixed by only resetting _lnd_reached_ground to false but
leaving _in_landing true.
2016-12-15 10:17:03 +01:00
Julian Oes
70fec788d9
mc_pos_control: allow takeoff in offboard mode
2016-12-15 10:17:03 +01:00
Julian Oes
072ba51064
mc_pos_control_main: changes got lost in rebase
2016-12-15 10:17:03 +01:00
Julian Oes
b285827f52
mc_pos_control: remove leftover printf
2016-12-15 10:17:03 +01:00
Julian Oes
65b8bcae12
mc_pos_control: always require takeoff setpoint
...
Problem: The drone started taking off in LOITER (HOLD) mode even if on
ground and did not do a proper takeoff jump. The effect was mostly a
hovering close above ground or tilting/flipping because of integrator
wind-up.
Solution: Stay at minimum throttle until a takeoff setpoint is issued.
2016-12-15 10:17:03 +01:00
Julian Oes
c64b8c7095
mc_pos_control: always use fabsf and not fabs
2016-12-15 10:17:03 +01:00
Julian Oes
e01eaf172a
Add body/NED frame for offboard velocity control
...
This adds the possibility to use offboard velocity control in the body
frame and not just the NED (world) frame.
The frame is set in the set_position_target_local_ned message and passed
on to mc_pos_control in the position_setpoint topic.
2016-12-15 10:17:03 +01:00
Julian Oes
e3aecc0762
state_machine_helper: remove unused const var
2016-12-15 10:17:03 +01:00
Julian Oes
5b132aef70
mc_pos_control: hold position at offboard vel 0
...
If velocity offboard control is used, it makes sense to lock/hold
position if the velocity input is 0. If this is not done, we will slowly
drift because nothing is integrating to keep the UAV at its position.
2016-12-15 10:17:03 +01:00
Julian Oes
0b02a6e0f7
state_machine_helper: warn about offboard lost, not RC
...
When offboard input stops and we're in OFFBOARD mode, we should complain
about offboard being lost and not RC because we probably never even had RC.
2016-12-15 10:17:03 +01:00
Julian Oes
454cd33a5e
mc_pos_control: move stuff where it belongs
2016-12-15 10:17:03 +01:00
Julian Oes
0b37272d75
mc_pos_control: further reshuffling
...
Should not have any functional change
2016-12-15 10:17:03 +01:00
Julian Oes
61fff54cbe
mc_pos_control: copy triplet in one place only
2016-12-15 10:17:03 +01:00
Julian Oes
432824d603
mc_pos_control: move attitude setpoint to function
...
Again, no functional change, just refactor.
2016-12-15 10:17:03 +01:00