From 8a63717cd866f5158a622b73e7e3385cb3dd08c3 Mon Sep 17 00:00:00 2001 From: Rustom Jehangir Date: Sun, 29 May 2016 12:07:47 -0700 Subject: [PATCH] Explicitly float declaration to fix Appveyor build. --- src/Joystick/Joystick.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Joystick/Joystick.cc b/src/Joystick/Joystick.cc index 18da23383..d479f8c53 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; -- 2.22.0