Peter Barker
5bd0db4117
Rover: use enum class for ArmingMethod and ArmingRequired
6 years ago
Peter Barker
9105284a7d
Rover: remove rc out initialisation wrappers
6 years ago
Randy Mackay
380884e175
Rover: shorten radio/throttle failsafe to 0.2 sec min
6 years ago
Randy Mackay
ed8feda5b9
Rover: shorten failsafe timeouts
...
radio failsafes may trigger within 1sec (previously was 2 seconds)
default failsafe set to 1.5sec (was 5sec)
also minor improvement to FS_TIMEOUT parameter description
6 years ago
Randy Mackay
fa5de31cb9
Rover: rename control_failsafe to radio_failsafe_check
...
although this makes the name inconsistent with plane it is more precise because control can also come from rc-overrides which are covered by the GCS failsafe
6 years ago
Randy Mackay
0665ac5229
Rover: rename rudder_arming to get_rudder_arming_type
7 years ago
Randy Mackay
b1a4cd55fd
Rover: support disabling rudder arming
7 years ago
Peter Barker
5d923aed85
Rover: remove dead gcs failsafe code
...
Also use rc().has_valid_input() before using radio for trim
7 years ago
Peter Barker
1f0908bba2
Rover: move handling of RC Switches into RC_Channel
...
Rover: use base-class auxsw handling
Rover: factor out do_aux_function_change_mode
Rover: move mode number enumeration to be in Mode:: namespace
Rover: move mode switch handling to RC_Channel
Rover: rename control_modes.cpp to RC_Channel.cpp
Rover: move motor_active() to be a method on the motors class
7 years ago
Michael du Breuil
c85f8c7bf5
Rover: Simplify radio trimming, improve MAVLink report
7 years ago
Peter Barker
cf1f2f9aeb
Rover: move motors_active to be motors.active
...
This will help when we come to subclass the Motors library.
7 years ago
Ammarf
26c25daa36
Rover: add support for lateral control input
7 years ago
Michael du Breuil
da9053655b
Rover: Support new RC_Channels::read_input()
7 years ago
Michael du Breuil
05173f24c6
Rover: Use RC_Channels instead of hal.rcin
7 years ago
Randy Mackay
5cd500847b
Rover: rename auto_throttle to allows_arming_from_transmitter
...
This method is only used to determine whether we can arm from the transmitter so better to make its purpose more clear
Also minor comment fix to is_autopilot_mode method
7 years ago
Randy Mackay
241456f55f
Rover: remove auto trim at startup
...
Also add additional checks to auto trim
7 years ago
Randy Mackay
8043c0f638
Rover: reduce arming delay to 2 sec
7 years ago
Randy Mackay
26f50f6055
Rover: PILOT_STEER_TYPE replaces SKID_STEER_IN
...
new options allow controlling vehicle's heading while reversing
skid-steering vehicles rotate in opposite direction when backing up
7 years ago
Randy Mackay
14d9e932ab
Rover: allow disarming from transmitter on skid-steering vehicles
7 years ago
Randy Mackay
fb944322c7
Rover: minor fix to disarm logic
...
check should use logical and instead of bitwise and
7 years ago
Randy Mackay
524fe4cd82
Rover: aux switch saves waypoint in manual or steering modes
...
Also refactor aux switch methods
rename LEARN_CH to AUX_CH
8 years ago
Randy Mackay
3adfb0e77d
Rover: replace int with uint8_t
...
non-functional change
8 years ago
Randy Mackay
82e61d7198
Rover: remove unused throttle_failsafe_active method
8 years ago
khancyr
7c3374668e
Rover: formatting fixes and const local variables
8 years ago
Randy Mackay
6626c2e12e
Rover: only mode manual directly copies rc input to motors
8 years ago
Randy Mackay
f17f56dea4
Rover: move throttle nudge to Mode class
8 years ago
Peter Barker
07f4603533
Rover: integrate mode class
8 years ago
Randy Mackay
208607d668
Rover: remove output_trim_all during initialisation
...
MotorUGV library now outputs the proper values on the motor channels. Other libraries are also responsible for initialising their outputs on startup.
8 years ago
khancyr
b28656eb11
Rover: reoder rc and servo init
8 years ago
Randy Mackay
774e484869
Rover: remove servo channel failsafe from vehicle code
...
This is now handled by the MotorsUGV library
8 years ago
Randy Mackay
03d04c934e
Rover: improve skid-steer input processing
...
limit the steering input
reverse commanded steering value if reversing to be consistent with separate steering-throttle frames
8 years ago
khancyr
8ab3e83a3c
Rover: use float qualifier and functions
8 years ago
khancyr
1f0c985dec
Rover: add setup_servo_output to allow ouput reconfiguration
8 years ago
Pierre Kancir
38dcc2eb12
Rover: minor formatting fix
8 years ago
khancyr
9b97ad0fc0
Rover: solve skid steer in value
8 years ago
Pierre Kancir
267a1532b9
Rover: integrate motors library
...
move throttle_slew_limit and THR_SLEWRATE parameter
move have_skid_steering to library
move mix_skid_steering to library's output_skid_steering method
move radio.cpp's output channel initialisation to motor's init method
use motors.get_throttle and get_steering instead of getting from Servo objects
use motors.set_throttle and set_steering instead of setting to Servo object
AP_Arming::arming_required is replaced with SAFE_DISARM parameter
8 years ago
Pierre Kancir
41e18f089e
Rover: remove g.skid_steer_out in favor of have_skid_steering()
8 years ago
Pierre Kancir
1dcf90c161
Rover: use scaled input in Manual modes
8 years ago
Pierre Kancir
ef2c2e4afc
Rover: add some comments in radio
8 years ago
Pierre Kancir
7595ffb8ba
Rover: set correct safety limit
8 years ago
Andrew Tridgell
2e24c35906
Rover: setup default esc scaling
...
for rovers without a k_throttle channel we need a default ESC scaling
value
8 years ago
Andrew Tridgell
79f7cc5779
Rover: implement new style skid steering
...
use throttleLeft and throttleRight servo functions. This gives much
greater flexibility and control over motor trims and limits
8 years ago
Pierre Kancir
20cc336885
APMRover2: const correctness
8 years ago
Pierre Kancir
c41e695c98
APMRover2: correct some style
8 years ago
Pierre Kancir
b634fe548d
APMRover2: Use c++ cast
8 years ago
Andrew Tridgell
9fe3eba2a0
Rover: added automatic parameter upgrade for SRV_Channel
8 years ago
Andrew Tridgell
93d6b012c2
Rover: convert to new SRV_Channel API
8 years ago
Pierre Kancir
25fbfeb5cf
Rover: radio.cpp correct whitespace, remove tabs
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Grant Morphett
094d571196
Rover: Skid steering disarming fixes
...
I have disabled steering disarming for skid steering rovers. Its
perfectly reasonable for a skid steering rover to go hard left on the
spot without any throttle and the user wouldn't want the rover to
disarm during this procedure.
If you disarm from the GCS for a skid steering rover we also ensure
the steering channel is disabled.
9 years ago