Commit Graph

37244 Commits

Author SHA1 Message Date
Peter Barker a36d2dd5b8 AP_Notify: add flag for flying 2019-03-19 14:39:14 +11:00
Andrew Tridgell 2ffded4dd7 AP_AHRS: implement get_velocity_NED() for DCM 2019-03-19 14:39:04 +11:00
Dr.-Ing. Amilcar do Carmo Lucas e014b3d308 mavlink: submodule update 2019-03-19 14:10:38 +11:00
Peter Barker 929e84d120 Tools: ardupilotwaf: add -Werror=attributes 2019-03-19 14:10:10 +11:00
Andrew Tridgell 6622a4579e AP_AHRS: fixed warning on WARN_IF_UNUSED 2019-03-19 12:10:07 +11:00
Peter Barker 5eb9622105 GCS_MAVLink: correct compilation for ALT_FRAME issue 2019-03-19 12:06:03 +11:00
Michael du Breuil 2ed1757353 AP_AHRS: Remove unused uptime 2019-03-19 11:42:54 +11:00
Michael du Breuil 94a1835a9b AP_AHRS: Tag most of AHRS_VIEW as WARN_IF_UNUSED 2019-03-19 11:42:54 +11:00
Michael du Breuil c7c8c2a7c5 AP_AHRS: Tag a lot of the accessors as WARN_IF_UNUSED 2019-03-19 11:42:54 +11:00
Michael du Breuil 75caad52c0 GCS_MAVLink: Always check the return value on get_velocity_NED 2019-03-19 11:42:54 +11:00
Michael du Breuil fcb54c2d68 AP_Frsky_Telem: Enforce the use of 0 when velocity_NED is not available 2019-03-19 11:42:54 +11:00
Michael du Breuil 0743b979fa AP_Logger: Don't log AHR2 unless the quat is available
This should not be a functional change, because if the secondary
attitude is available then the secondary quat will be as well
2019-03-19 11:42:54 +11:00
Michael du Breuil 8e8ce6be35 AP_Landing: Fix unconditional use of airspeed estimate, even when it was invalid 2019-03-19 11:42:54 +11:00
Andrew Tridgell 5571a84a49 AP_BattMonitor: added a "battery" backend for liquid fuel flow
This is for sensors that give a pulse for each fixed volume of fuel.

Output is:
    - current in Amps maps to in litres/hour
    - consumed mAh is in consumed millilitres
    - fixed 1.0v voltage
2019-03-19 11:35:59 +11:00
Peter Barker 6bf600c587 Tools: autotest: cope with being unable to reboot while armed 2019-03-19 10:53:37 +11:00
Andrew Tridgell 778b88cba2 GCS_MAVLink: disable reboot when armed
this prevents reboot on vehicles that have ARMING_REQUIRE=0, which
applies to some planes, but those vehicles tend to not use MAVLink
reboot anyway.
2019-03-19 10:53:37 +11:00
Mark Whitehorn e71eae7d3b AP_AHRS: add new method get_quat_body_to_ned() 2019-03-19 10:46:25 +11:00
Mark Whitehorn 1c52458d72 AC_AttitudeControl: use new method get_quat_body_to_ned() 2019-03-19 10:46:25 +11:00
Peter Barker 3dc2db8d9a GCS_MAVLink: queue parameter request even if we can't fit a reply ATM 2019-03-19 10:37:09 +11:00
Peter Barker 4eba6d4fe2 GCS_MAVLink: exempt requested parameters from buffer space reservation
Fixes a problem where we reserve space to send replies but then do not
bypass the reserved-space checks when sending them.
2019-03-19 10:37:09 +11:00
Peter Barker f0200a4d9b GCS_MAVLink: GCS_Common: correct overflows in bandwidth and count calculations 2019-03-19 10:37:09 +11:00
Peter Barker 227f6499d3 Copter: mark vtol_state and landed_state methods as override 2019-03-19 10:32:50 +11:00
Peter Barker 716b0fdc88 GCS_MAVLink: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker bdcb48d835 AP_Mount: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker 9ab33fd3c4 AP_Mission: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker 3889c91974 AP_AHRS: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker 495111d67e AP_ADSB: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker d9ddb8f34d AC_WPNav: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker 3629273959 AC_Fence: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker b346e82b3e Replay: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker eb7cf9843e Sub: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker f940564f2b Plane: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker 366051c39f Copter: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker 6e67481355 Tracker: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker 4c9651dbfd SITL: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker 22c0175d7f AP_Location: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Mark Whitehorn 61a04bd898 AP_AHRS: fix bug in attitudes_consistent() 2019-03-19 10:19:47 +11:00
Mark Whitehorn 825055d736 Plane: add rate-only option for QACRO mode 2019-03-19 10:13:59 +11:00
Mark Whitehorn 6414f0e48e Plane: skip plane assignments in QACRO 2019-03-19 10:13:59 +11:00
Mark Whitehorn abfeee3a3d Plane: fix indentation 2019-03-19 10:13:59 +11:00
Mark Whitehorn 5cdfccad14 AP_Motors: specialize MotorsMatrixTS motor controls 2019-03-19 10:13:59 +11:00
Andrew Tridgell 3907466f9d Plane: added TKOFF_TIMEOUT parameter
this allows for a timeout on auto-takeoff. This can be combined with
other takeoff parameters to allow the user to abort a hand-launch
after the motor has started without GCS interaction.

The 4m/s threshold is a bit arbitrary. We could make that a parameter
in the future if it is needed
2019-03-18 14:48:08 +11:00
Andrew Tridgell 2b6210d594 Plane: use WP height for height above ground in vtol landing
this allows for landings above or below the takeoff height without
requiring the use of terrain data. It allows both the use of vfwd
motor for holding against wind, and the correct height for land final
descent rate
2019-03-18 14:47:27 +11:00
Andrew Tridgell b4103d04cc Plane: never use vfwd motor if vtol motors shutdown 2019-03-18 13:38:41 +11:00
Andrew Tridgell 7908ad437e Plane: allow fwd motor to run in VTOL land hor positioning
this fixes an issue with vtol landings below the takeoff point
2019-03-18 13:38:41 +11:00
IamPete1 2d14d79a65 Tracker: clamp output angles to relevant ranges 2019-03-18 12:08:12 +11:00
Peter Barker 020aa6bd49 AC_AutoTune: emit a warning every second while pilot overrides active 2019-03-18 09:35:52 +09:00
IamPete1 1ac74e2fe5 Tracker: add initial mode parameter 2019-03-18 10:37:39 +11:00
IamPete1 392b59d7d6 Tracker: set actual and desired for GCS-PID message 2019-03-18 10:11:33 +11:00
IamPete1 144e3ed39a Tracker: initialize mission object 2019-03-18 10:11:33 +11:00