Josh Henderson
8b83b49e0b
Rover: fix loiter_delay, cmd <0 sets a delay of 0 seconds
4 years ago
Patrick José Pereira
28c03ffb4e
Rover: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
Shadow
db1c653cc6
Rover: Add manual mode to MIS_DONE_BEHAVIOR
4 years ago
Andy Piper
6d87d61c7b
Rover: make mount/gimbal inclusion configurable per-board
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
45682550e7
Rover: minor comment fix
5 years ago
Michael du Breuil
a1acc75e11
Rover: Support new AP_Vehicle::set_mode
5 years ago
Randy Mackay
80c58696d0
Rover: Hold or Loiter within Auto on mission completion
5 years ago
Peter Barker
28b0b86487
Rover: resolve compiler warning for delay time
6 years ago
Randy Mackay
eb9e5df0dd
Rover: resolve send_text compile warning
6 years ago
Randy Mackay
6c3ce521c7
Rover: add Auto_Stop state and use for Nav_Delay
6 years ago
Tom Pittenger
1bb332382c
Rover: add support for NAV_DELAY misison item
6 years ago
Peter Barker
190f716c43
Rover: avoid allocate a GCS_MAVLINK per mavlink channel
6 years ago
Randy Mackay
a5c76b614e
Rover: resolve send_text compiler warnings
6 years ago
Randy Mackay
c233c3aff3
Rover: integrate OAPathPlanner
6 years ago
Randy Mackay
93b05d7d8a
Rover: add get_desired_location method
6 years ago
Peter Barker
40f3f414cd
Rover: handle AR_WPNav failing to set desired location
6 years ago
Randy Mackay
39418abafb
Rover: use AR_WPNAV_HEADING_UNKNOWN in place of local define
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
Pierre Kancir
f91ffffca7
APMrover2: use past_interval_finish_line and line_path_proportion from Location
6 years ago
Peter Barker
fcfd37c025
Rover: rely on AP_Mission to emit GCS text
6 years ago
Peter Barker
dabf92f5b6
Rover: use sanitize method rather than location_sanitize function
6 years ago
cindyywang
d9805a9366
Rover: move methods in commands_logic.cpp to mode_auto.cpp
6 years ago
Randy Mackay
5286b6fab6
Rover: re-order auto mode implementations
6 years ago
Randy Mackay
f61f93ecf3
Rover: minor simplification to guided-within-auto
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
TsuyoshiKawamura
1e033e616f
Rover: Loiter in AUTO mode for boat
6 years ago
Randy Mackay
17af4c8933
Rover: enable avoidance in auto, RTL, smartRTL
6 years ago
Randy Mackay
b1a5636d4d
Rover: fix auto enter check
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
Raouf
ea62c24cef
Rover: Move set_reverse method to Mode class
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
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
4958298a75
Rover: fix auto mode distance_to_destination
7 years ago
Randy Mackay
b778546eda
Rover: rename mode lateral acceleration and make private
7 years ago
Randy Mackay
8eb991b610
Rover: boats say active at destination in auto
...
previously the user would use the LOITER_UNLIMITED or LOITER_TIME mission commands to specify that the vehicle should remain active at the destination. This was cumbersome and not the best way to specify this behaviour because these two commands are valid for regular rovers that should not try to remain active at the destination.
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
Randy Mackay
b60cb536ab
Rover: RTL within auto mode
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