mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 16:33:58 -04:00
AP_PiccoloCAN: rename SRV_Channel::Aux_servo_function_t to SRV_Channel::Function
This commit is contained in:
parent
bde1a6a2ad
commit
da133c84df
@ -327,7 +327,7 @@ void AP_PiccoloCAN::update()
|
||||
|
||||
uint16_t output = 0;
|
||||
|
||||
SRV_Channel::Aux_servo_function_t function = SRV_Channels::channel_function(ii);
|
||||
SRV_Channel::Function function = SRV_Channels::channel_function(ii);
|
||||
|
||||
if (SRV_Channels::get_output_pwm(function, output)) {
|
||||
_servos[ii].command = output;
|
||||
@ -343,7 +343,7 @@ void AP_PiccoloCAN::update()
|
||||
|
||||
uint16_t output = 0;
|
||||
|
||||
SRV_Channel::Aux_servo_function_t motor_function = SRV_Channels::get_motor_function(ii);
|
||||
SRV_Channel::Function motor_function = SRV_Channels::get_motor_function(ii);
|
||||
|
||||
if (SRV_Channels::get_output_pwm(motor_function, output)) {
|
||||
_escs[ii].command = output;
|
||||
@ -637,7 +637,7 @@ bool AP_PiccoloCAN::is_servo_channel_active(uint8_t chan)
|
||||
return false;
|
||||
}
|
||||
|
||||
SRV_Channel::Aux_servo_function_t function = SRV_Channels::channel_function(chan);
|
||||
SRV_Channel::Function function = SRV_Channels::channel_function(chan);
|
||||
|
||||
// Ignore if the servo channel does not have a function assigned
|
||||
if (function <= SRV_Channel::k_none) {
|
||||
@ -664,7 +664,7 @@ bool AP_PiccoloCAN::is_esc_channel_active(uint8_t chan)
|
||||
}
|
||||
|
||||
// Check if a motor function is assigned for this motor channel
|
||||
SRV_Channel::Aux_servo_function_t motor_function = SRV_Channels::get_motor_function(chan);
|
||||
SRV_Channel::Function motor_function = SRV_Channels::get_motor_function(chan);
|
||||
|
||||
if (SRV_Channels::function_assigned(motor_function)) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user