mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Rover: update for new AP_SteerController API
This commit is contained in:
parent
bd848a6a7f
commit
44eedd4abd
@ -158,7 +158,7 @@ static void calc_nav_steer()
|
|||||||
// constrain to max G force
|
// constrain to max G force
|
||||||
lateral_acceleration = constrain_float(lateral_acceleration, -g.turn_max_g*GRAVITY_MSS, g.turn_max_g*GRAVITY_MSS);
|
lateral_acceleration = constrain_float(lateral_acceleration, -g.turn_max_g*GRAVITY_MSS, g.turn_max_g*GRAVITY_MSS);
|
||||||
|
|
||||||
channel_steer->servo_out = steerController.get_steering_out(lateral_acceleration);
|
channel_steer->servo_out = steerController.get_steering_out_lat_accel(lateral_acceleration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************
|
/*****************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user