Randy Mackay
3f8adb4e7d
Rover: guided-within-auto target moved to structure
...
also guided's limit_breached made const
also guided limit check uses is_positive
6 years ago
Randy Mackay
89f0418c0f
Rover: support do-guided-limits mission command
6 years ago
Randy Mackay
721c200bcc
Rover: support guided-within-auto
...
also adds support for sending position targets to offboard controller which is assumed to return velocity commands
6 years ago
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
6 years ago
Randy Mackay
2ba6aa7e8a
Rover: guided heading-and-speed control fix
...
This removes the lane-based-speed-control from guided mode's heading-and-speed controller which does not use the navigation controller
6 years ago
TsuyoshiKawamura
5575eeddab
Rover: fixed coverity issue around loiter logic
6 years ago
TsuyoshiKawamura
a9781686b1
Rover: Vehicle will stop with loiter in Guided mode for boat.
6 years ago
Peter Barker
86168cd180
Rover: add override keyword where required, fix bad method override
6 years ago
Randy Mackay
743de16c07
Rover: fix calls to calc_steering_to_heading
...
reversed flag was being passed into the wrong argument
7 years ago
Pierre Kancir
3ef910ff11
Rover: fix initial target when setting Guided
7 years ago
Raouf
df3b6202f5
Rover: support DO_SET_REVERSE commands in guided, RTL, SmartRTL
7 years ago
Randy Mackay
82aba6fe56
Rover: guided heading-and-speed control slows using yaw error
7 years ago
Randy Mackay
5dc4b8e66d
Rover: guided mode slows to stopping point on init
7 years ago
Randy Mackay
77598f72d1
Rover: remove redundant set_steering calls from Guided
...
steering is centered within the stop_vehicle method
7 years ago
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
7 years ago
Randy Mackay
fc35e74821
Rover: pass dt to attitude controller
7 years ago
Randy Mackay
ef2223a712
Rover: integrate attitude control change to steering output and scaling
...
steering output is always positive for clockwise
steering is scaled in motors library meaning we do not need to tell attitude controller about skid-steering or vectored-thrust
7 years ago
Randy Mackay
8119c537c7
Rover: integrate vectored thrust support
7 years ago
Randy Mackay
29e8866ea9
Rover: move avoidance into calc_throttle
...
also enable avoidance for steering and guided modes
7 years ago
Randy Mackay
0da8ff6b2e
Rover: boats always navigate when outside waypoint radius
7 years ago
Randy Mackay
916fe80000
Rover: remove mode class's desired-lat-accel
...
This was a duplicate of the value held in the attitude controller
7 years ago
Randy Mackay
49493fe6a2
Rover: add calc_steering_to_heading
...
removes some duplicate code in Guided and Auto
7 years ago
Randy Mackay
b778546eda
Rover: rename mode lateral acceleration and make private
7 years ago
Randy Mackay
34c2fba9a7
Rover: boats stay active at destination in guided, rtl, smartrtl
7 years ago
Randy Mackay
57067fb8bc
Rover: add WP_SPEED and RTL_SPEED
...
This separates the default/maximum speed used in Auto, Guided, RTL and SmartRTL from the CRUISE_SPEED which is used as the base for the speed-to-throttle controller (along with CRUISE_THROTTLE)
7 years ago
Randy Mackay
c6689fd2e1
Rover: rename calc_nav_steer to calc_steering_from_lateral_acceleration
...
rename calc_lateral_acceleration to calc_steering_to_waypoint
calc_steering_to_waypoint internally calls calc_steering_from_lateral_acceleration
non-functional change
7 years ago
Randy Mackay
23028a659b
Rover: slew throttle in all modes
7 years ago
Daniel Widmann
bc7cf97b4e
Rover: don't use GPS speed to detect reversing
...
instead pass reverse to attitude controller based on desired speed
7 years ago
Randy Mackay
95c5ada3e9
Rover: modes use stop_vehicle to stop gently
...
modes slow to a stop instead of immediately setting motors to zero
vehicle centers steering when stopping
8 years ago
Randy Mackay
d99108f3bc
Rover: use AR_AttitudeControl for throttle control
...
also direct throttle nudge replaced with speed nudge
calc_speed_max estimates vehicle's top speed based on cruise-speed and
cruise-throttle
steering mode now provides total target speed instead of using speed plug
throttle nudge
motor limits provided to attitude control to stop i-term buildup
uses negative desired speed instead of reversed flag
reporting to GCS uses new throttle controller
braking is simply enabled and allows a reverse motor output regardless of vehicle
speed
8 years ago
Randy Mackay
9097269d6d
Rover: use AR_AttitudeControl for steering control
8 years ago
khancyr
848df551ac
Rover: formatting and comment fixes to mode class
8 years ago
Randy Mackay
4f5e82f406
Rover: mode fixes for reversing
8 years ago
Randy Mackay
946a0a8e54
Rover: guided mode refactoring
...
add set-desired methods
add get_distance_to_destination
fix to one interation with no update to motors
slow down for turns
8 years ago
khancyr
ded1bad6c3
Rover: remove duplicate calls from update_navigation()
...
calc_lateral_acceleration() and calc_nav_steer() aren't need here
8 years ago
khancyr
b9644c4ec7
Rover: disable slew limit by default on mode
8 years ago
Peter Barker
2a9b1017b6
Rover: add control modes class
8 years ago