Commit 8a63717c authored by Rustom Jehangir's avatar Rustom Jehangir

Explicitly float declaration to fix Appveyor build.

parent a2e20952
...@@ -286,7 +286,7 @@ void Joystick::run(void) ...@@ -286,7 +286,7 @@ void Joystick::run(void)
// Exponential (0% to -50% range like most RC radios) // Exponential (0% to -50% range like most RC radios)
// 0 for no exponential // 0 for no exponential
// -0.5 for strong exponential // -0.5 for strong exponential
float expo = -0.35; float expo = -0.35f;
// Calculate new RPY with exponential applied // Calculate new RPY with exponential applied
roll = -expo*powf(roll,3) + (1+expo)*roll; roll = -expo*powf(roll,3) + (1+expo)*roll;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment