diff --git a/src/Joystick/Joystick.cc b/src/Joystick/Joystick.cc index 18da23383942e4306ff06bab21924e1729ec1239..d479f8c53695a874b899f5f78a5d80b0de6bc5e0 100644 --- a/src/Joystick/Joystick.cc +++ b/src/Joystick/Joystick.cc @@ -286,7 +286,7 @@ void Joystick::run(void) // Exponential (0% to -50% range like most RC radios) // 0 for no exponential // -0.5 for strong exponential - float expo = -0.35; + float expo = -0.35f; // Calculate new RPY with exponential applied roll = -expo*powf(roll,3) + (1+expo)*roll;