Beat Küng
5cacf17e47
navigator mission: simplify reset logic
...
This can be simplified because we now only activate Mission while armed.
2020-01-24 08:42:16 +01:00
Beat Küng
92aa341c18
navigator: do not set a mode while disarmed
...
This avoids premature state machine execution, most notably for missions.
In particular this fixes these issues:
- when landed, and the vehicle has a valid mission: switching to mission
would execute the first item.
- after executing a mission with a land waypoint, the mission is reset
and the first item is executed.
In case the first waypoint is a takeoff, it would print a user message:
"Takeoff to x meters above home.". If it was a vehicle command, it would
execute that.
Note that because the vehicle is disarmed, the vehicle would not actually
do anything (except for commands that are accepted while disarmed).
2020-01-24 08:42:16 +01:00
Beat Küng
e939f60a9e
FlightTaskAuto: accept invalid triplet_setpoint (and interpret as loiter)
...
This will allow navigator to not output any setpoints while disarmed.
Otherwise the position controller outputs warnings in the form of:
Auto activation failed with error: Activation Failed
The risk here is that it could hide problems, where navigator sends invalid
triplets when it should not.
2020-01-24 08:42:16 +01:00
Beat Küng
c0352027fb
mc_pos_control: do not warn when going into failsafe while disarmed
...
It's possible to get invalid or no setpoints from navigator while disarmed.
2020-01-24 08:42:16 +01:00
Beat Küng
d68e595514
vehicle_control_mode: fix invalid comment for flag_armed
2020-01-24 08:42:16 +01:00
kamilritz
4b0e7b2cff
Remove filtering on external vision alignment
2020-01-24 08:23:12 +01:00
kamilritz
2fe16c4ffe
Update build instructions in readme
2020-01-24 09:03:48 +03:00
kamilritz
d63e4edfd8
Fix github actions
2020-01-23 16:31:42 +01:00
kritz
47cab3dba5
Update external vision interface ( #13989 )
...
* Update external vision interface
* Update ECL Version
2020-01-23 15:36:08 +01:00
kamilritz
de33885658
Update setExtVisionData interface
2020-01-23 14:50:43 +01:00
kamilritz
9554f8f98b
Update ECL version
2020-01-23 13:27:30 +01:00
kamilritz
8d25dcd543
Update EKF auxiliary velocity interface
2020-01-23 13:27:30 +01:00
kamilritz
9d184ea3d6
Update EKF range finder interface
2020-01-23 13:27:30 +01:00
kamilritz
230d7f2558
Update EKF airspeed interface
2020-01-23 13:27:30 +01:00
kamilritz
8772e09963
Update EKF gps interface
2020-01-23 13:27:30 +01:00
kamilritz
19b7421f86
Update EKF baro interface
2020-01-23 13:27:30 +01:00
kamilritz
439a20bfcb
Update EKF mag interface
2020-01-23 13:27:30 +01:00
kritz
ed916c8006
Auto Formatting with clang-format-6.0 ( #727 )
...
* Add clang-format
* Auto-format AlphaFilter and RingBuffer
* Update to tab=8spaces
* Allow for 120 width
2020-01-23 20:56:10 +11:00
Daniel Agar
009ba638f5
PX4Accelerometer/PX4Gyroscope update FIFO case to trapezoidal integration
2020-01-22 18:35:41 -05:00
CarlOlsson
dbf0bd43e8
EKF: update wind covariance initialization
...
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com >
2020-01-23 10:27:54 +11:00
Daniel Agar
697dbfb9f8
sensors/vehicle_imu: incremental step towards multi-EKF
2020-01-22 18:04:29 -05:00
RomanBapst
0e90448e52
navigator: add position setpoint reset helper with safe defaults
...
- use in reset_triplets()
2020-01-22 18:03:25 -05:00
Daniel Agar
98042bf58f
uORB: introduce SubscriptionBlocking
...
- uORB::SubscriptionBlocking is a specialized uORB::Subscription that allows you to do a blocking read
- this is intended to be an easy to use, hard to misuse replacement for the typical orb fd + poll pattern we've relied on historically
2020-01-22 17:56:28 -05:00
kamilritz
37201fb071
Remove legacy imu interface
2020-01-23 09:34:07 +11:00
kamilritz
7c3a2f839b
Update range finder interface
2020-01-23 09:34:07 +11:00
kamilritz
4fb2d1b02e
Update range finder interface
2020-01-23 09:34:07 +11:00
kamilritz
9f0d8ed59e
Update mag interface
2020-01-23 09:34:07 +11:00
kamilritz
856961ba85
Update airspeed interface
2020-01-23 09:34:07 +11:00
kamilritz
b8a3ed5f09
Update baro interface
2020-01-23 09:34:07 +11:00
kamilritz
74ec80cdc7
Update gps interface
2020-01-23 09:34:07 +11:00
Paul Riseborough
a19c29e708
EKF: Rework yaw fusion to remove singularity at +-90 deg yaw
2020-01-23 09:23:56 +11:00
Daniel Agar
036a45377d
boards rename auav_x21 -> mro_x21
2020-01-22 15:33:02 -05:00
SalimTerryLi
3ed8e876b7
New pca9685 pwm output driver
2020-01-22 15:19:47 -05:00
Daniel Agar
693d532bba
mRo x2.1 777 board support
2020-01-22 15:02:55 -05:00
Claudio Micheli
421a06685c
BMM150: Fix priority assignment
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2020-01-22 12:26:49 -05:00
Beat Küng
db36edffe8
commander: fix mission topic publication
...
The local scope caused the topic to be unadvertised, which in turn caused
a copy() failure in navigator and 'mission update failed' printf error.
2020-01-22 12:08:32 -05:00
Beat Küng
c61e44f55b
commander: fix variable naming
2020-01-22 12:07:51 -05:00
Beat Küng
8bfbfa033c
fix commander: avoid LED printf errors on every SITL startup
2020-01-22 12:07:51 -05:00
Beat Küng
67f3234b5b
posix cdev_platform: set errno on px4_open failure
2020-01-22 12:07:51 -05:00
Daniel Agar
21a8d7db7f
WorkItem modules: Run() shouldn't be public
2020-01-22 12:03:03 -05:00
Martina Rivizzigno
8162b1095b
send obstacle distance data in onboard mode such that they are
...
received by the gcs when using mavlink router
2020-01-22 16:22:32 +01:00
Beat Küng
d865d9e64e
safety_button: fix missing return when module exits
2020-01-22 09:49:20 -05:00
Beat Küng
35fc51de92
safety_button: add support for pairing command (3x pressing the button)
2020-01-22 09:49:20 -05:00
kamilritz
fc7e8b848b
Run github actions also on PRs from forks
2020-01-22 09:47:19 +01:00
Tal Zaitsev
65aaf5170c
microRTPS: Fix C++11 remnant
2020-01-22 00:30:47 -05:00
Daniel Agar
b47eaa6061
update C++ standard (c++11 -> c++14)
...
- temporarily disable snapdragon builds until toolchain is updated
2020-01-21 21:49:10 -05:00
Daniel Agar
cf195b0755
commander: safety button disarm require land detector
...
- landed, maybe_landed, or ground_contact required before the safety
button is able to disarm
- this reduces the risk of a faulty safety button triggering in regular
flight
2020-01-21 23:35:25 +01:00
Daniel Agar
4f868fc565
commander: use arm_disarm() helper for safety button disarm
2020-01-21 23:35:25 +01:00
Claudio Micheli
624fcc3adb
v5x target: Fix wrong FD for TELEM3
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2020-01-21 23:27:59 +01:00
Daniel Agar
350268ee68
navigator: mission WORK_ITEM_TYPE_MOVE_TO_LAND altitude isn't relative
2020-01-21 23:27:22 +01:00