You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @Description: For reversible motors that need a delay before they can reverse. When greater than zero the throttle will go to zero for this amount of time before outputting the new throttle.
Copy file name to clipboardExpand all lines: libraries/AR_Motors/AP_MotorsUGV.h
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -209,6 +209,7 @@ class AP_MotorsUGV {
209
209
AP_Float _vector_angle_max; // angle between steering's middle position and maximum position when using vectored thrust. zero to disable vectored thrust
210
210
AP_Float _speed_scale_base; // speed above which steering is scaled down when using regular steering/throttle vehicles. zero to disable speed scaling
211
211
AP_Float _steering_throttle_mix; // Steering vs Throttle priorisation. Higher numbers prioritise steering, lower numbers prioritise throttle. Only valid for Skid Steering vehicles
212
+
AP_Float _reverse_delay; // delay in seconds when reversing motor
212
213
213
214
// internal variables
214
215
float _steering; // requested steering as a value from -4500 to +4500
@@ -231,6 +232,17 @@ class AP_MotorsUGV {
231
232
float _lateral_factor[AP_MOTORS_NUM_MOTORS_MAX];
232
233
uint8_t _motors_num;
233
234
235
+
/*
236
+
3 reversal handling structures, for k_throttle, k_throttleLeft and k_throttleRight
0 commit comments