10859 Commits

Author SHA1 Message Date
acfloria
57162ff08d Improve high latency switching and acknowledge
- Move publishing the telemetry status from the IridiumSBD driver to the mavlink instance
- In the commander use the iridiumsbd_status message for heartbeat in case of a high latency link
- Move positive acknowledge to the mavlink instance
- Add a failed acknowledge in the commander if no high latency link exists
2018-05-27 12:11:35 -04:00
acfloria
30fc8cd608 Add iridiumsbd_status to logger 2018-05-27 12:11:35 -04:00
acfloria
12f6affdfa Commander: Avoid sending ack for VEHICLE_CMD_CONTROL_HIGH_LATENCY if from_external is false 2018-05-27 12:11:35 -04:00
Florian Achermann
84578748f4 Navigator Mission RTL (#8749)
* Add return to land to mission

This method uses the planned mission for rtl. If a landing sequence
is present it will continue the mission and land. If not it will
fly back the mission and loiter/land at the home position.
2018-05-27 12:07:06 -04:00
mcsauder
9122725052 Alphabetize the mavlink stream lists in mavlink_main.cpp. 2018-05-26 14:49:08 -04:00
Sander Smeets
04cc5c5611 Navigator: VTOL only apply acceptance radius calculation for FW part of back transition (#9519) 2018-05-23 19:46:36 -04:00
Daniel Agar
222a91c6be mathlib delete Matrix, Quaternion, Vector 2018-05-23 17:27:09 -04:00
Daniel Agar
0d7b5c4a4e commander accel calibration switch to matrix lib 2018-05-23 17:27:09 -04:00
mcsauder
0da01cd6f0 Alphabetize #include list in mavlink_receiver.h 2018-05-23 15:42:23 -04:00
Daniel Agar
ac55a0de58 airspeed calibration log critical when ports are swapped 2018-05-22 21:02:33 -04:00
Daniel Agar
f208241074 SYS_COMPANION add RTPS client option 2018-05-22 20:37:37 -04:00
Daniel Agar
e9e01f7559 RTPS bridge send all EKF sensors 2018-05-22 20:37:37 -04:00
Daniel Agar
87a0e943d4 commander add geo dependency 2018-05-21 01:32:16 -04:00
Daniel Agar
3e8132935f mc_att_control add conversion library dependency 2018-05-21 01:32:16 -04:00
Daniel Agar
fc74e06341 sensors add conversion library dependency 2018-05-21 01:32:16 -04:00
nathan
59c1d3fc92 remove unnecessary param_find for mag and baro
in parameters.cpp

per @dagar: As soon as commander starts it runs the preflight checks which does the param_find.
2018-05-20 11:54:17 +02:00
Beat Küng
d99b72ea41 attitude_estimator_q: set mag weight to 0 if SYS_HAS_MAG is not set 2018-05-20 11:54:17 +02:00
Beat Küng
f2516bbf5f system_params: add SYS_HAS_MAG and SYS_HAS_BARO params
This allows to use PX4 on systems that do not have a mag or a baro,
such as the Omnibus F4 SD.
2018-05-20 11:54:17 +02:00
Daniel Agar
da5a9043a7 clang-tidy modernize-use-equals-delete 2018-05-18 22:48:55 +02:00
Daniel Agar
4e32cb17df clang-tidy modernize-use-equals-default 2018-05-18 22:48:55 +02:00
Beat Küng
9b5df10631 logger watchdog: avoid using printf from IRQ context
PX4_ERR calls printf, which calls lib_sem_initialize, which calls sem_wait
2018-05-18 22:23:32 +02:00
Beat Küng
b8a94bf8d4 logger: move pthread_t cast to pid_t into watchdog_initialize
avoids compile error on OSX, trying to cast pthread_t to pid_t
2018-05-18 22:23:32 +02:00
Beat Küng
bda237b368 logger: ensure that fsync is called at least every second
In case a log ends abruptly, we will know that we have everything up to the
last second.

A test showed that CPU load and the amount of logging drops are unaffected
by this.
2018-05-18 22:23:32 +02:00
Beat Küng
dd30012b27 logger: add watchdog that boosts its priority when the writer is blocked for >1s
This is to guard against busy-looping tasks, so that we at least have a
log. In case the watchdog is triggered, it also logs CPU load of all
tasks.
2018-05-18 22:23:32 +02:00
Beat Küng
401eefd39b refactor logger: add struct timer_callback_data_s used in the timer callback 2018-05-18 22:23:32 +02:00
Beat Küng
9b72080ec1 refactor logger: add an enum for the reason of printing the cpu load 2018-05-18 22:23:32 +02:00
Daniel Agar
2f553b956d dataman file read fixed size buffer 2018-05-18 08:03:56 +02:00
Beat Küng
11f4631b2a fix commander: initialize tune_durations (#9468)
Fixes #9451
2018-05-16 10:20:28 -04:00
Mohammed Kabir
bbcf5b1b65 logger : log ping topic 2018-05-15 18:57:34 +02:00
Mohammed Kabir
92457bcafd mavlink : implement full ping protocol and link latency reporting 2018-05-15 18:57:34 +02:00
Julien Lecoeur
e380adb9b6 Fix format with Artistic Style 3.1 2018-05-15 10:38:49 -04:00
Daniel Agar
e33da0a821 fw_att_control set default yaw rate max and update parameter descriptions 2018-05-14 00:56:46 +02:00
Beat Küng
12436c1d64 fix attitude_estimator_q: swap quaternion multiplication & fix from_dcm init
Quaterion::from_dcm does not set *this, but just returns the resulting
Quaterion.
2018-05-11 09:34:26 +02:00
Daniel Agar
421b01e677 attitude_estimator_q move to matrix lib 2018-05-11 09:34:26 +02:00
Beat Küng
9e24875131 attitude_estimator_q: fuse accel data only if close to 1g if GPS velocity not used
This reduces attitude drift on vehicles w/o GPS. The default behavior is
unchanged, to use it, disable ATT_ACC_COMP.
2018-05-11 09:34:26 +02:00
Beat Küng
f77b8d9aa8 attitude_estimator_q: remove double initialization 2018-05-11 09:34:26 +02:00
Beat Küng
54fac26327 attitude_estimator_q: allow it to be used on boards w/o a mag
By setting ATT_W_MAG to 0
2018-05-11 09:34:26 +02:00
Beat Küng
c6b0d5c76a navigator: don't complain 'Using minimum takeoff altitude' in case of numerical inaccuracies
Happend in SITL.
2018-05-09 07:59:46 +02:00
Beat Küng
258b1ea473 navigator: ensure result of strncpy is null-terminated 2018-05-09 07:59:46 +02:00
Beat Küng
8c638ac88c sdlog2: check result of snprintf and ensure result of strncpy is null-terminated 2018-05-09 07:59:46 +02:00
Beat Küng
289e618b6c mavlink: fix compiler warnings with GCC 8.0.1
-Wno-extra-semi is not valid for C code
2018-05-09 07:59:46 +02:00
Beat Küng
8bd61a9330 uORBDevices: avoid memset, use braced initializer instead 2018-05-09 07:59:46 +02:00
Beat Küng
19a12ba75d logger: avoid memset, use braced initializer instead 2018-05-09 07:59:46 +02:00
Beat Küng
13ab5ed0d0 px4_main_t: fix method declaration throughout the code base
px4_main_t is defined as:
typedef int (*px4_main_t)(int argc, char *argv[]);
which matches with the definition in NuttX, given to task_create
2018-05-09 07:59:46 +02:00
Beat Küng
71b4ad62a1 ekf2 replay: handle multi multiple GPS instances (#9433) 2018-05-09 10:00:59 +10:00
Hamish Willee
9a7195cb2d Change offboard mode fallback option back to Manual 2018-05-08 07:04:32 +02:00
Hamish Willee
19032b91e3 Change RTL @group to Return Mode 2018-05-08 07:04:32 +02:00
Hamish Willee
66d4b495d4 Return params to reflect current mode names 2018-05-08 07:04:32 +02:00
Hamish Willee
09986237b6 Navigator failsafe action params to reflect current mode names 2018-05-08 07:04:32 +02:00
Hamish Willee
2c1eb443ca Geofence failsafe action params to reflect current mode names 2018-05-08 07:04:32 +02:00