Beat Küng
08dc3decb1
mavlink: avoid sending uninitialized data
...
_global_pos_sub->update(&_global_pos_time, &global_pos); could return
false and in that case global_pos was not set but still accessed.
This is prevented by checking if timestamp == 0.
2016-12-21 11:35:10 +01:00
Beat Küng
c662113527
board_name.c: remove the file and HW_ARCH macro, use px4_board_name() instead
...
boards define BOARD_NAME, so board_name() is not necessary. HW_ARCH was
just a wrapper around board_name().
This patch simplifies to having only one common method px4_board_name().
2016-12-21 11:35:10 +01:00
Mark Whitehorn
8962eaa944
add new asymmetric airframe for Spedix S250AQ
2016-12-21 11:00:29 +01:00
James Goppert
6ff85fb927
LPE land bug fix and switch to fusion bit mask.
2016-12-21 08:43:18 +01:00
Matthias Grob
eda7848e16
mc_pos_control small refactoring while studying
2016-12-21 08:40:16 +01:00
David Sidrane
cc0a4248f8
PX4 System changes for new Boards
2016-12-21 08:34:22 +01:00
David Sidrane
f5a0c04ae8
Upstream NuttX irq{save|restor} -> {enter/leave}_critical_section
2016-12-21 08:34:22 +01:00
David Sidrane
3eee469fbc
Display the irq stack usage on the for the init thread (pid = 0)
2016-12-21 08:34:22 +01:00
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