mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Rover: RC_Channel uses sailboat::set_motor_state
This commit is contained in:
parent
488ae65e8f
commit
abe04db372
@ -103,13 +103,13 @@ void RC_Channel_Rover::do_aux_function_sailboat_motor_3pos(const aux_switch_pos_
|
|||||||
{
|
{
|
||||||
switch(ch_flag) {
|
switch(ch_flag) {
|
||||||
case HIGH:
|
case HIGH:
|
||||||
rover.g2.sailboat.throttle_state = rover.g2.sailboat.Sailboat_Throttle::FORCE_MOTOR;
|
rover.g2.sailboat.set_motor_state(Sailboat::UseMotor::USE_MOTOR_ALWAYS);
|
||||||
break;
|
break;
|
||||||
case MIDDLE:
|
case MIDDLE:
|
||||||
rover.g2.sailboat.throttle_state = rover.g2.sailboat.Sailboat_Throttle::ASSIST;
|
rover.g2.sailboat.set_motor_state(Sailboat::UseMotor::USE_MOTOR_ASSIST);
|
||||||
break;
|
break;
|
||||||
case LOW:
|
case LOW:
|
||||||
rover.g2.sailboat.throttle_state = rover.g2.sailboat.Sailboat_Throttle::NEVER;
|
rover.g2.sailboat.set_motor_state(Sailboat::UseMotor::USE_MOTOR_NEVER);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user