Commit Graph

37674 Commits

Author SHA1 Message Date
Randy Mackay 8c034e6fa2 Rover: prepend _old to some unused param enums 2019-05-10 06:55:35 +09:00
Randy Mackay d0a39e6114 Rover: fix notification in guided and rtl 2019-05-10 06:55:35 +09:00
Peter Barker 40f3f414cd Rover: handle AR_WPNav failing to set desired location 2019-05-10 06:55:35 +09:00
Randy Mackay 20152dbdb7 Rover: fix logging of desired lateral acceleration 2019-05-10 06:55:35 +09:00
Randy Mackay 39418abafb Rover: use AR_WPNAV_HEADING_UNKNOWN in place of local define 2019-05-10 06:55:35 +09:00
Randy Mackay 1f2500d268 Rover: follow uses local desired_yaw_cd
reducing dependency on shared _desired_yaw_cd with the hope that it can eventually be removed
also minor comment update for desired_yaw_cd
2019-05-10 06:55:35 +09:00
Randy Mackay 2b654983a9 Rover: yaw_error_cd becomes local variable in Loiter only 2019-05-10 06:55:35 +09:00
Randy Mackay c4766ec143 Rover: remove speed_error that is never updated 2019-05-10 06:55:35 +09:00
Randy Mackay 75ba96b7a2 Rover: separate nudge from calc_throttle
This is required because AR_WPNav produces an acceleration adjusted desired speed meaning in rare cases where the vehicle is moving in reverse at the time auto is engaged, the desired speed may be temporarily negative as the vehicle slows.  In these situations we do not want to allow the vehicle's speed to be nudged to a higher reverse speed if the pilot's throttle stick is all the way down
2019-05-10 06:55:35 +09:00
Randy Mackay a94ebc5bc3 Rover: integrate navigation library 2019-05-10 06:55:35 +09:00
Randy Mackay c3948bb074 Rover: add AR_WPNav to build 2019-05-10 06:55:35 +09:00
Randy Mackay b0f0b16135 AR_WPNav: remove unnecessary temp variable
also heading-unknown made a const
also minor comment fix
also removed unused include
2019-05-10 06:55:35 +09:00
Peter Barker 6f97f56726 AR_WPNav: add WARN_IF_UNUSED to various methods, fix for same 2019-05-10 06:55:35 +09:00
Randy Mackay 56c344ae94 AR_WPNav: rover navigation library 2019-05-10 06:55:35 +09:00
Randy Mackay 4e68d16526 AR_AttitudeControl: use speed_control_active in get_desired_speed_accel_limited
also minor formatting fixes
this is a non-functional change
2019-05-10 06:55:35 +09:00
Randy Mackay 6d4d1bc20a AR_AttitudeControl: add get_turn_rate_from_heading 2019-05-10 06:55:35 +09:00
Randy Mackay 8907b727f6 AR_AttitudeControl: add get_turn_rate_from_lat_accel 2019-05-10 06:55:35 +09:00
Peter Barker d76894d883 Tools: autotest: drain mav before getting message rates, improve debug 2019-05-09 19:53:53 +10:00
Peter Barker dd62489f5e AC_PrecLand: stop ignoring return values on methods 2019-05-09 13:03:49 +10:00
Peter Barker 71d16557fa AP_Common: Location: add WARN_IF_UNUSED to boolean methods 2019-05-09 13:03:49 +10:00
Matt Lawrence e5bc18dbe8 Frame Params: Disable watchdog for Solo
Set BRD_OPTIONS to zero to disable watchdog on Solo with Copter 3.7-dev.
2019-05-09 07:51:05 +09:00
Matt Lawrence 4d1c1bd380 Frame Params: Update solo arming check params
No longer need to ignore logging prearm failure
2019-05-08 11:53:47 +10:00
Mark Whitehorn 34a1cf9528 Plane: move callback setup to QuadPlane::setup() 2019-05-08 10:28:42 +10:00
Peter Barker fd19b257f9 Tools: autotest: print test failure summary at end of running all steps 2019-05-08 10:27:50 +10:00
Mark Whitehorn aeaff72e14 Plane: fix acro stabilization check 2019-05-08 08:44:52 +10:00
Mark Whitehorn 4a7ce1b384 Plane: clean up qacro 2019-05-08 08:44:52 +10:00
Randy Mackay 791b6effdd Copter: fix wp distance and bearing reporting during LOITER_TURNS 2019-05-07 13:54:31 +09:00
Randy Mackay b668c6f855 AC_Circle: improve target heading 2019-05-07 13:54:31 +09:00
Peter Barker 0c24810a48 AP_AHRS: fix example 2019-05-07 13:52:40 +09:00
Peter Barker 156f0ff496 Tools: autotest: ensure we get get saved-gains message in qautotune 2019-05-07 09:23:50 +10:00
Peter Hall 3fe63d5bc0 Copter: only save autotune gains if disarmed in autotue 2019-05-07 09:23:50 +10:00
Peter Hall 0b1d392342 Plane: only save gains if disarmed in autotune 2019-05-07 09:23:50 +10:00
Peter Hall a0d8c04f3e AC_AutoTune: add public reset method 2019-05-07 09:23:50 +10:00
Andrew Tridgell e4f6ffe719 AP_NavEKF3: fixed bug in EKF lane selection
this fixes an issue in selecting the best lane to change to when we
have 3 or more EKF cores. The bug is that if the current lane is
unhealthy it would always choose the last healthy lane instead of
choosing the lane with the lowest score
2019-05-07 06:59:50 +10:00
Andrew Tridgell cc62998d40 AP_NavEKF2: fixed bug in EKF lane selection
this fixes an issue in selecting the best lane to change to when we
have 3 or more EKF cores. The bug is that if the current lane is
unhealthy it would always choose the last healthy lane instead of
choosing the lane with the lowest score
2019-05-07 06:59:50 +10:00
Peter Hall 505e1d8c1d APM_Control: AP_RollContorller: move rate limit 2019-05-06 19:16:26 +10:00
Andrew Tridgell 2b0a30a2c5 HAL_ChibiOS: ensure we don't overflow bootloader area
this modifies the ld script to use the maximum size available for the
bootloader, so we can't accidentially grow the bootloader beyond its
max size
2019-05-06 12:36:41 +10:00
Mark Whitehorn 3cbbc33766 Tools: CodeStyle: astylerc: change style to linux
max-continuation-indent=100 not supported in v2.x but is OK in 3.1
2019-05-06 09:50:04 +10:00
Andrew Tridgell b5849b356e Tools: updated bootloader binaries 2019-05-06 08:08:05 +10:00
Andrew Tridgell 5c9b3842e6 Tools: fixed bootloader hang on GPS data
don't kill the timeout till we get valid sync and get_device
calls. This makes accidental bootloader triggers very unlikely
2019-05-06 08:08:05 +10:00
Andrew Tridgell 372d9483aa Tools: added --download option to uploader.py 2019-05-06 08:08:05 +10:00
Andrew Tridgell bff040c58e AP_Bootloader: added support for READ_MULTI
this is useful for comparing the firmware on a board with the known
expected firmware
2019-05-06 08:08:05 +10:00
Michael du Breuil 85da4955b6 AP_Rangefinder: Enforce checking I2C status on VL53L1X 2019-05-05 12:12:05 -07:00
Andrew Tridgell 9ff69b90e1 Tools: added mapping for brand name and manufacturer
requested by Don for QGC
2019-05-05 20:31:58 +10:00
Randy Mackay 415042e557 AR_AttitudeControl: minor declaration ordering change 2019-05-04 14:49:32 +09:00
Randy Mackay f6f5967a82 AR_AttitudeControl: minor param desc fix 2019-05-04 14:49:26 +09:00
Andrew Tridgell 0cbc612ef6 autotest: fixed copy of gen_stable.py 2019-05-04 11:20:37 +10:00
Tom Pittenger d1f7485e14 Rover: add STICK_MIXNG param 2019-05-03 13:14:11 -07:00
Tom Pittenger a798f9eb27 Rover: refactor motor.set_steering() to mode.set_steering() 2019-05-03 13:14:11 -07:00
Tom Pittenger 6970a66cad Plane: refactor stick_mixing to library 2019-05-03 13:14:11 -07:00