SRV_Channel: minor formatting fixes

no functional change
This commit is contained in:
Randy Mackay 2017-07-25 12:23:09 +09:00
parent 298eaaeb3e
commit 572df8b859
4 changed files with 23 additions and 32 deletions

View File

@ -80,7 +80,6 @@ SRV_Channel::SRV_Channel(void)
have_pwm_mask = ~uint16_t(0);
}
// convert a 0..range_max to a pwm
uint16_t SRV_Channel::pwm_from_range(int16_t scaled_value) const
{

View File

@ -147,7 +147,6 @@ void SRV_Channels::update_aux_servo_function(void)
initialised = true;
}
/// Should be called after the the servo functions have been initialized
void SRV_Channels::enable_aux_servos()
{
@ -446,7 +445,6 @@ int16_t SRV_Channels::get_output_scaled(SRV_Channel::Aux_servo_function_t functi
return 0;
}
// set the trim for a function channel to given pwm
void SRV_Channels::set_trim_to_pwm_for(SRV_Channel::Aux_servo_function_t function, int16_t pwm)
{
@ -481,7 +479,6 @@ void SRV_Channels::set_default_function(uint8_t chan, SRV_Channel::Aux_servo_fun
}
}
void SRV_Channels::set_esc_scaling_for(SRV_Channel::Aux_servo_function_t function)
{
uint8_t chan;
@ -520,7 +517,6 @@ void SRV_Channels::adjust_trim(SRV_Channel::Aux_servo_function_t function, float
}
}
// get pwm output for the first channel of the given function type.
bool SRV_Channels::get_output_pwm(SRV_Channel::Aux_servo_function_t function, uint16_t &value)
{
@ -741,15 +737,12 @@ bool SRV_Channels::upgrade_parameters(const uint8_t rc_keys[14], uint16_t aux_ch
}
}
// mark the upgrade as having been done
channels[15].function.set_and_save(channels[15].function.get());
return true;
}
/*
Upgrade servo MIN/MAX/TRIM/REVERSE parameters for a single AP_Motors
RC_Channel servo from previous firmwares, setting the equivalent
@ -807,7 +800,6 @@ void SRV_Channels::upgrade_motors_servo(uint8_t ap_motors_key, uint8_t ap_motors
}
}
// set RC output frequency on a function output
void SRV_Channels::set_rc_frequency(SRV_Channel::Aux_servo_function_t function, uint16_t frequency_hz)
{