Julian Oes
ec95378821
logger: fix uninitialized coverity warnings
2019-10-17 08:44:53 -04:00
Timothy Scott
cf8f03f190
Changed listener to not busy-wait ( #13157 )
...
* Changed listener to not busy-wait
2019-10-17 11:29:36 +02:00
Nicolas de Palezieux
40bb209fd2
dshot telemetry: enable telemetry publishing for setups with only one ESC
2019-10-17 11:13:38 +02:00
Daniel Agar
6ccb4af8b0
CollisionPrevention: remove unnecessary double precision floating point math
2019-10-17 08:44:33 +02:00
Daniel Agar
e942d3a3b2
FlightTasks: remove unnecessary double precision floating point math
2019-10-17 08:44:33 +02:00
Beat Küng
2296c9acfa
uavcan_virtual_can_driver: fix invalid use of px4_sem_getvalue
...
sem_getvalue returns 0 on success, -1 on error, and never a value > 0.
2019-10-16 18:29:26 +02:00
Beat Küng
884621415d
dataman: fix invalid use of px4_sem_timedwait
...
px4_sem_timedwait expects an absolute time (from CLOCK_REALTIME), but a
relative time was provided.
This is only relevant if FLASH_BASED_DATAMAN is set (only on Intel aero).
2019-10-16 18:29:26 +02:00
ThomasRigi
17c17f26a9
VTOL GPSF: fix fixed bank loiter ( #12778 )
...
* GPS Failsafe fix for VTOL
* navigator: use new uORB API for VTOL publication
2019-10-16 17:57:44 +02:00
Matthias Grob
a053b7f69b
vtol_att_control_main: only reset thrust when disarmed
...
to see flaps moving according to attitude control before arming
and not have tailsitter elevons move to follow north heading.
2019-10-16 16:30:38 +02:00
Julien Lecoeur
4cc7b1319f
Fix param update in mc_att_control
...
ModuleParams::updateParams() was never called
2019-10-16 08:17:04 -04:00
Beat Küng
617f37afbf
mixer_{multicopter,helicopter}: add buffer size check
...
Fixes a potential buffer overflow if an MC/helicopter mixer is used that
exceeds the number of physical pins.
This is not a useful/flyable configuration, but the system still should
not crash.
2019-10-16 13:13:17 +02:00
Beat Küng
173337e49c
uORBManager: print errno for advertisement failures
...
Helps with debugging.
2019-10-16 13:13:17 +02:00
Matthias Grob
45a53726d6
LandDetector: switch to uORB::Publication
2019-10-16 00:47:01 -04:00
Matthias Grob
679e4fedf5
LandDetector: switch land flags to properies instead of one state
2019-10-16 00:47:01 -04:00
modaltb
1e1549a169
Add support for Bosch BMP388 barometer
2019-10-15 23:33:49 -04:00
Ilya Petrov
c58cfce6be
do not check VP fusion during GPS startup
...
This is solution for https://github.com/PX4/Firmware/issues/11864
2019-10-15 17:01:20 +01:00
kamilritz
a4e035d338
Add param to choose vision observation noise source
2019-10-15 16:06:37 +01:00
RomanBapst
6bfb50df8a
run arm authorization as last pre-arm check, as it used to be implemented
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2019-10-15 15:44:24 +01:00
Matthias Grob
e843090383
Replace a lot of memset with {} initializers
2019-10-15 10:01:03 -04:00
Matthias Grob
b8f70e865c
voted_senors_update: remove memset 0 initializations because of zero initializer in header
2019-10-15 10:01:03 -04:00
Matthias Grob
185e2811dc
gyro_calibration: use constexpr instead of const
2019-10-15 10:01:03 -04:00
Matthias Grob
09faa4647b
ekf2_params: correct typo
2019-10-15 10:01:03 -04:00
Mark Sauder
0cbb693a8d
Add return INFINITY; to the LandDetector class _get_max_altitude() method declaration ( #12343 )
2019-10-15 08:19:53 +02:00
Matthias Grob
9f639d1f3b
mc_att_control: move rate control to RateControl class
...
This makes the controller more modular, more readable and hence
better maintainable.
2019-10-15 07:46:47 +02:00
Daniel Agar
c51475640e
mavlink: only send ATTITUDE/ATTITUDE_QUATERNION msgs on vehicle_attitude update
...
- fixes #13182
2019-10-14 15:47:22 -04:00
mcsauder
fb12ddb69a
Cherry pick the directory and voted_sensors_update.h from PR #9756 .
...
Consolidate _update_params() methods for improved inheritance from the LandDetector base class.
Move common uORB::Subscriptions to the base class for inheritance.
Deprecate redundant override methods.
2019-10-14 21:25:57 +02:00
David Sidrane
c44e4b9578
imu/mpu6000: support ICM20689 rev 4 ID
2019-10-14 15:17:43 -04:00
Matthias Grob
bb91db2057
AttitudeControlTest: fix adaptAntipodal() function
2019-10-14 18:23:22 +02:00
Matthias Grob
83dfa227a7
AttitudeControlTest: include all corner case combinations
...
Which revealed antipodal quaternion corner cases when
the first element is zero.
2019-10-14 18:23:22 +02:00
Matthias Grob
511828bfd2
AttitudeControlTest: add first controller convergence test
2019-10-14 18:23:22 +02:00
TSC21
10e3bcd138
ulog stream msgs: rename 'sequence' fields as they are protected names in fastrtpsgen
2019-10-14 16:37:17 +01:00
BazookaJoe1900
3007b0876c
mavlink: add protection against setting wrong type of parameters
2019-10-14 11:18:08 -04:00
Travis Bottalico
5324c37d04
Add support for voxlpm (I2C power monitor)
2019-10-14 11:08:56 -04:00
Jin Chengde
13c3ae3b52
FW RWTO: add throttle_ramp_time parameter RWTO_RAMP_TIME
...
* add throttle_ramp_time parameter support fixed wing runway takeoff
2019-10-14 11:07:33 -04:00
Matthias Grob
001da78089
mc_pos_control: improve failsafe handling
...
See issue #12307
Since commander should still handle all failsafes we should only run
into this case as last resort to not crash.
If all failsafe actions are disabled but data is missing
e.g. RC loss action disabled but flying in manual and no RC
this can be tested.
2019-10-14 15:07:09 +02:00
Matthias Grob
068f56d66f
FlightTasks: fix switchTask() comment typo
2019-10-14 15:07:09 +02:00
Daniel Agar
97efbde6f4
WIP: commander re-evaluate RC mode switch when local position becomes valid
2019-10-14 14:16:24 +02:00
ToppingXu
35e0554ace
navigator: fix save mission state. ( #12468 )
2019-10-14 11:58:42 +02:00
Beat Küng
82106105b7
parameters: defer auto-saving to after disarming for flash-based params
...
This is especially important for DShot, that does not update when the CPU
stalls.
2019-10-11 08:14:17 +02:00
Beat Küng
93a12436a3
parameters: update perf counter for flash-based param_save_default()
2019-10-11 08:14:17 +02:00
Beat Küng
a545f7ee16
mixer_module: extend printf status output
2019-10-11 08:14:17 +02:00
Beat Küng
182efaa757
dshot: reduce static buffer size
...
And handle failures of up_dshot_init().
On Omnibus: reduces memory usage if dshot is enabled by ~1.0KB.
The buffer is roughly 1KB in size.
2019-10-11 08:14:17 +02:00
Beat Küng
e78250ab8d
dshot telemetry: retrieve & print ESC info with 'dshot esc_info' CLI command
2019-10-11 08:14:17 +02:00
Beat Küng
26648ad0b9
dshot: add support to send commands via CLI
...
This enables the possibility to permanently reverse motor directions :)
2019-10-11 08:14:17 +02:00
Beat Küng
65f3c7f93d
dshot: add telemetry and publish esc_status message
2019-10-11 08:14:17 +02:00
Beat Küng
4c4ce09005
esc_status: trim the message and remove unused fields
2019-10-11 08:14:17 +02:00
Beat Küng
69c10dcaac
dshot: move implementation to a separate directory & library
...
So that the static memory overhead is not added to targets w/o dshot
2019-10-11 08:14:17 +02:00
Beat Küng
a161be6ec8
dshot: add dshot driver
...
Supports all DShot modes, but no telemetry yet.
It includes the modes and capture configuration from FMU so that it serves
as drop-in replacement.
2019-10-11 08:14:17 +02:00
Beat Küng
f3eea85bef
MOT_ORDERING, MC_AIRMODE: move param def to mixer_module and 'Mixer Output' group
2019-10-11 08:14:17 +02:00
Beat Küng
2a492a8e47
fmu: remove unused include and variable
2019-10-11 08:14:17 +02:00