From 8f709b7a346b1c3e5432e65d8817e832f2db38f8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 11 Nov 2018 07:08:59 +1100 Subject: [PATCH] AP_Mount: fixed build warning --- libraries/AP_Mount/AP_Mount_Backend.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Mount/AP_Mount_Backend.cpp b/libraries/AP_Mount/AP_Mount_Backend.cpp index 56d99825b3..950a8d8a57 100644 --- a/libraries/AP_Mount/AP_Mount_Backend.cpp +++ b/libraries/AP_Mount/AP_Mount_Backend.cpp @@ -77,12 +77,12 @@ void AP_Mount_Backend::control(int32_t pitch_or_lat, int32_t roll_or_lon, int32_ } } -void AP_Mount_Backend::rate_input_rad(float &out, const RC_Channel *ch, float min, float max) const +void AP_Mount_Backend::rate_input_rad(float &out, const RC_Channel *chan, float min, float max) const { - if (ch == nullptr) { + if (chan == nullptr) { return; } - out += ch->norm_input_dz() * 0.0001f * _frontend._joystick_speed; + out += chan->norm_input_dz() * 0.0001f * _frontend._joystick_speed; out = constrain_float(out, radians(min*0.01f), radians(max*0.01f)); }