From 9ee3431928232363fea0db604400690804ce4f70 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 5 Jan 2012 10:13:36 +1100 Subject: [PATCH] ACM-simple: don't use uninitialised simple trig values --- ArduCopter/ArduCopter.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 6f14ac7d77..6c0bf27bf4 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -1419,7 +1419,7 @@ void update_roll_pitch_mode(void) // new radio frame is used to make sure we only call this at 50hz void update_simple_mode(void) { - float simple_sin_y, simple_cos_x; + float simple_sin_y=0, simple_cos_x=0; // used to manage state machine // which improves speed of function