mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
SRV_Channel: fix get_output_norm comment
also minor formatting fix
This commit is contained in:
parent
c93313107b
commit
00757fb77f
@ -171,7 +171,7 @@ float SRV_Channel::get_output_norm(void)
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
if (get_reversed()) {
|
if (get_reversed()) {
|
||||||
ret = -ret;
|
ret = -ret;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,7 @@ private:
|
|||||||
// return PWM for a given limit value
|
// return PWM for a given limit value
|
||||||
uint16_t get_limit_pwm(Limit limit) const;
|
uint16_t get_limit_pwm(Limit limit) const;
|
||||||
|
|
||||||
// get normalised output from -1 to 1
|
// get normalised output from -1 to 1, assuming 0 at mid point of servo_min/servo_max
|
||||||
float get_output_norm(void);
|
float get_output_norm(void);
|
||||||
|
|
||||||
// a bitmask type wide enough for NUM_SERVO_CHANNELS
|
// a bitmask type wide enough for NUM_SERVO_CHANNELS
|
||||||
@ -337,8 +337,8 @@ public:
|
|||||||
// get pwm output for the first channel of the given function type.
|
// get pwm output for the first channel of the given function type.
|
||||||
static bool get_output_pwm(SRV_Channel::Aux_servo_function_t function, uint16_t &value);
|
static bool get_output_pwm(SRV_Channel::Aux_servo_function_t function, uint16_t &value);
|
||||||
|
|
||||||
// get normalised output (-1 to 1 for angle, 0 to 1 for range). Value is taken from pwm value
|
// get normalised output (-1 to 1 with 0 at mid point of servo_min/servo_max)
|
||||||
// return zero on error.
|
// Value is taken from pwm value. Returns zero on error.
|
||||||
static float get_output_norm(SRV_Channel::Aux_servo_function_t function);
|
static float get_output_norm(SRV_Channel::Aux_servo_function_t function);
|
||||||
|
|
||||||
// get output channel mask for a function
|
// get output channel mask for a function
|
||||||
|
Loading…
Reference in New Issue
Block a user