Commit Graph

21 Commits

Author SHA1 Message Date
Henry Wurzburg 46b84e72f0 Rover: add loiter gain and max vehicle speed params 2020-02-05 10:09:54 +11:00
Peter Hall 5b4a6eaf52 Rover: use AR_WPNav get stopping location 2020-02-05 10:09:54 +11:00
Randy Mackay e023400fda Rover: rename nav_enabled to tack_enabled
tack_enabled is more precise than nav_enabled so it describes the feature more accurately
2019-09-01 09:11:25 +09:00
Peter Hall 3308a84acc Rover: sailboat add motor-sailing 2019-09-01 09:11:25 +09:00
Randy Mackay 93b05d7d8a Rover: add get_desired_location method 2019-05-29 09:40:05 +09:00
Arjun Vinod 14cb042e89 Rover: use WP_SPEED instead of CRUISE_SPEED to set loiter's maximum speed 2019-05-16 08:43:29 +09:00
Peter Hall f22d7c906a Rover: move to use new sailboat class 2019-05-15 11:29:39 +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 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
Pierre Kancir 007d317741 APMrover2: move get_bearing_cd to Location and rename to get_bearing_to 2019-04-06 09:10:28 +11:00
Dr.-Ing. Amilcar do Carmo Lucas 36d755a48a Rover: replace location_offset() and get_distance() function calls with Location object member function calls
This allows removing duplicated code
2019-02-28 11:44:09 +11:00
Randy Mackay 925d4035a4 Rover: fix loiter comment 2018-09-28 10:40:12 +09:00
IamPete1 4366bae96d Rover: add sailboat support 2018-09-28 10:40:12 +09:00
IamPete1 100c494127 Rover: add loiter radius parameter 2018-09-28 10:40:12 +09:00
Randy Mackay 743de16c07 Rover: fix calls to calc_steering_to_heading
reversed flag was being passed into the wrong argument
2018-09-11 14:39:50 +09:00
Raouf f0185cb79b Rover: Add loiter behaviour parameter 2018-08-08 07:17:13 +09:00
Randy Mackay c8f4227313 Rover: remove SPEED_TURN_GAIN
Loiter was the only mode using this, replaced with hardcoded gain.  The desired speed in Loiter also uses a hardcoded gain so this should work
2018-06-08 09:19:25 +09:00
Randy Mackay 73bdc3be09 Rover: set ahrs flyforward if thr over 15% for 2 seconds
or if throttle is positive and desired speed over 0.5m/s
2018-05-29 16:37:31 +09:00
Randy Mackay 51a0cbc1da Rover: loiter slows using attitude control get_desired_speed_accel_limit 2018-05-24 11:06:20 +09:00
Ammarf d7821635c0 Rover: seperate acceleration/deceleration limits 2018-05-23 17:17:29 +09:00
Randy Mackay c6638f66de Rover: Loiter mode for boats 2018-05-06 16:58:00 +09:00