Randy Mackay
5341070af4
Rover: integrate rename of AR_WPNav::set_speed_max
...
range checks are no longer required because they are implemented within AR_WPNav
3 years ago
Randy Mackay
a5638f5699
Rover: auto, guided, rtl call wpnav.init instead of set-desired-speed
...
also smart-rtl
3 years ago
Randy Mackay
a6b22e4db9
Rover: guided does not set _reached_destination member
3 years ago
Randy Mackay
147b1284c9
Rover: guided mode fix for reached_destination during wpnav
3 years ago
Randy Mackay
74889f1c7a
Rover: guided integrates wpnav's support of fast updates
...
also guided implements wp_bearing, nav_bearing, crosstrack_error and
get_desired_lat_accel
3 years ago
Randy Mackay
95c69811cb
Rover: integrate position controller
3 years ago
Randy Mackay
dd6ce1fa73
Rover: guided starts in stop submode
3 years ago
Randy Mackay
29e85aa516
Rover: rename sent_notification to send_notification
...
also fix init of this flag in guided mode to avoid sending two notifications
4 years ago
Randy Mackay
35f0402b47
Rover: Guided mode supports direct steering and throttle control
5 years ago
Peter Barker
d31700c310
Rover: rename directory from APMrover2
5 years ago
Randy Mackay
129651b7e4
Rover: move set_desired_speed to each mode
5 years ago
Randy Mackay
c233c3aff3
Rover: integrate OAPathPlanner
6 years ago
Peter Barker
c61412d2d1
Rover: correct get_distance_to_destination in loiter mode
6 years ago
Randy Mackay
93b05d7d8a
Rover: add get_desired_location method
6 years ago
Randy Mackay
d0a39e6114
Rover: fix notification in guided and rtl
6 years ago
Peter Barker
40f3f414cd
Rover: handle AR_WPNav failing to set desired location
6 years ago
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
6 years ago
Randy Mackay
a94ebc5bc3
Rover: integrate navigation library
6 years ago
Tom Pittenger
a798f9eb27
Rover: refactor motor.set_steering() to mode.set_steering()
6 years ago
Pierre Kancir
f91ffffca7
APMrover2: use past_interval_finish_line and line_path_proportion from Location
6 years ago
Randy Mackay
28ac2c2600
Rover: rename guided limits start_time_ms
6 years ago
Randy Mackay
95d68b0cf5
Rover: reached_destination becomes const
6 years ago
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