Browse Source

ACM-simple: don't use uninitialised simple trig values

master
Andrew Tridgell 13 years ago
parent
commit
596a1f43f4
  1. 2
      ArduCopter/ArduCopter.pde

2
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 // new radio frame is used to make sure we only call this at 50hz
void update_simple_mode(void) 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 // used to manage state machine
// which improves speed of function // which improves speed of function

Loading…
Cancel
Save