Commit Graph

36531 Commits

Author SHA1 Message Date
Andrew Tridgell
247bb433ec HAL_ChibiOS: update chconf.h for VER_6_0 API 2019-02-26 16:18:26 +11:00
Andrew Tridgell
903926e63b ChibiOS: update to upstream master for STM32H7 support 2019-02-26 16:18:26 +11:00
Peter Barker
80e8f9cdd8 AP_HAL_SITL: read all available SITL RC input packets
MAVProxy runs on its own clock.  While our clock is stopped for whatever
reason MAVProxy will continue to send RC input.  This patch always gives
us the most recent RC input from MAVProxy.

Also add sanity check on packet received
2019-02-26 14:17:21 +11:00
Peter Barker
4d0ae8c371 Tools: autotest: add test for MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED 2019-02-26 14:09:21 +11:00
Peter Barker
a48f461158 Copter: remove position-vector methods
Both were used in just one place
2019-02-26 14:09:21 +11:00
Peter Barker
6fc4086726 Tools: autotest: accept home position before or after ack
autopilot may be out of space or time to send home position packet after
we have requested it
2019-02-26 14:01:41 +11:00
Peter Barker
6fd687e861 AP_AHRS: retry sending home/origin if it fails 2019-02-26 14:01:41 +11:00
Peter Barker
ace5192852 GCS_MAVLink: retry sending home/origin if it fails
Also grants us the ability to stream these messages
2019-02-26 14:01:41 +11:00
Arjun Vinod
d02d897928 Copter: make LOITER_TIME send "Reached command" message to GCS 2019-02-26 10:19:37 +09:00
Arjun Vinod
8044d98382 Copter: do an early-return if the time hasn't been reached 2019-02-26 10:14:56 +09:00
murata
8644f4d76e Copter: Disable option code
Copter: Revert change

Copter: Change mistakes
2019-02-26 10:00:00 +09:00
IamPete1
4bb28eb63c AP_Windvane: add rpm wind speed snesor type 2019-02-26 09:58:56 +09:00
IamPete1
696953fb97 AP_RPM: create singleton 2019-02-26 09:58:56 +09:00
Peter Barker
b9cd3a8a39 AP_Logger: add logging of mavlink stats 2019-02-26 11:23:57 +11:00
Peter Barker
9f27e91f33 GCS_MAVLink: add simple stats to dataflash 2019-02-26 11:23:57 +11:00
Peter Barker
4ae64416c3 AP_Logger: add instance unit type 2019-02-26 11:23:57 +11:00
Andrew Tridgell
136e10a781 Plane: handle VTOL landing with incorrect height
if landing above expected height then run landing detector to allow a
switch from LAND_DESCEND to LAND_FINAL

this prevents the plane sitting on the ground until the battery runs
out
2019-02-26 11:12:58 +11:00
Peter Barker
3959780999 AP_AHRS: ensure home is always stored in ALT_FRAME_ABSOLUTE 2019-02-26 10:35:39 +11:00
Peter Barker
138d93702a GCS_MAVLink: use Location to change alt frames 2019-02-26 10:35:39 +11:00
Peter Barker
97792d1774 Sub: AHRS set_orientation renamed to update_orientation 2019-02-26 10:28:09 +11:00
Peter Barker
dea75a87fd Plane: AHRS set_orientation renamed to update_orientation 2019-02-26 10:28:09 +11:00
Peter Barker
693873fd04 Copter: AHRS set_orientation renamed to update_orientation 2019-02-26 10:28:09 +11:00
Peter Barker
20e28acb16 Tracker: AHRS set_orientation renamed to update_orientation 2019-02-26 10:28:09 +11:00
Peter Barker
75af170900 Rover: AHRS set_orientation renamed to update_orientation 2019-02-26 10:28:09 +11:00
Peter Barker
63e894e7e1 AP_AHRS: rename set_orientation to update_orientation
set_ should be reserved for setters
2019-02-26 10:28:09 +11:00
Peter Barker
8e1b48ef1e Copter: use height-above-ground for landing gear deployment 2019-02-26 08:21:32 +09:00
Andrew Tridgell
078eef91cb AC_WPNav: prevent I term buildup during landing
this prevents I term buildup in the XY velocity controller during
landing. This to account for the EKF giving a non-zero horizontal
velocity when we have touched down. The I term buildup in the XY
velocity controller can lead to the attitude error going above the
level for disabling the relax function as the throttle mix is
changed. That results in large motor outputs which can tip over the
vehicle after touchdown.

Thanks to Leonard for the suggestion
2019-02-26 10:14:42 +11:00
Peter Barker
2aa0de49bb AP_GPS: remove pointless initialisers 2019-02-26 09:53:28 +11:00
Simon Schopferer
6beac98d4a fixed conversion of airspeed from ft/s to knots as defined in latest JSBSim versions 2019-02-26 09:14:42 +11:00
Peter Barker
11a70536eb AP_UAVCAN: correct Notify singleton getter call 2019-02-26 08:46:37 +11:00
Arjun Vinod
f382a657bd AP_NavEKF3: fixed typos 2019-02-26 08:33:39 +11:00
Arjun Vinod
78b165e36f AP_NavEKF2: fixed typos 2019-02-26 08:33:39 +11:00
Peter Barker
49493676ea GCS_MAVLink: use MAV_PARAM_TYPE for sending parameter messages
... rather than mavlink_message_type_t
2019-02-26 08:20:25 +11:00
Peter Barker
d0ac09899b AP_UAVCAN: handle restart_node 2019-02-26 08:19:00 +11:00
Peter Barker
31a9ac7dbd Tools: autotest: add test suite for Tracker 2019-02-26 08:03:56 +11:00
Peter Barker
fe6ca9afa3 Tracker: add support for mavlink set-home-position 2019-02-26 08:03:56 +11:00
Peter Barker
9f6027b332 Tracker: make set_home bool, do not save bad homes 2019-02-26 08:03:56 +11:00
Andrew Tridgell
ecbe67a0fe AP_Math: fixed inefficient sq() function 2019-02-23 21:04:00 +11:00
Michael du Breuil
b290148ed0 Plane: Don't overwrite the quadplane loiter relax 2019-02-23 11:08:21 +11:00
Michael du Breuil
141429bc8e AP_InertialNav: Remove unused get_pos_z_derivative 2019-02-23 09:06:30 +09:00
Andrew Tridgell
ccfaaca82b AP_RangeFinder: fixed lightware serial with LW20 lidar
it needs a longer serial write to force it to serial mode from i2c
2019-02-23 11:01:07 +11:00
Peter Barker
166291cfef SITL: add missing override keywords 2019-02-22 15:01:09 +00:00
Peter Barker
5aa5add4bf AP_RPM: add missing override keywords 2019-02-22 15:01:09 +00:00
Peter Barker
54a250483b AP_OpticalFlow: add missing override keywords 2019-02-22 15:01:09 +00:00
Peter Barker
4d62c996b7 AP_L1_Control: add missing override keywords 2019-02-22 15:01:09 +00:00
Peter Barker
eb73a14da8 AP_HAL_Linux: add missing override keywords 2019-02-22 15:01:09 +00:00
Peter Barker
03e9becfcf AP_HAL_SITL: add missing override keywords 2019-02-22 15:01:09 +00:00
Peter Barker
7184d5e860 AP_Compass: add missing override keywords 2019-02-22 15:01:09 +00:00
Andrew Tridgell
a278a152fc Plane: fixed throttle nudge
broken by recent radio input changes

Thanks to Michael for noticing!
2019-02-22 18:41:34 +11:00
Peter Barker
e9fc158c8a Tools: autotest: eliminate use of recv_match with condition
We have functions for achieving this

Also, a lot of these places were missing timeouts, so any failure would
cause the entire suite to stop running
2019-02-22 16:30:05 +11:00