Browse Source

SITL: Initialise yaw_rate and pitch_rate

* Clang requires these variables to be initialized
mission-4.1.18
Will Sackfield 9 years ago committed by Andrew Tridgell
parent
commit
8b5fa9d23d
  1. 2
      libraries/SITL/SIM_Tracker.cpp

2
libraries/SITL/SIM_Tracker.cpp

@ -72,7 +72,7 @@ void Tracker::update(const struct sitl_input &input) @@ -72,7 +72,7 @@ void Tracker::update(const struct sitl_input &input)
// how much time has passed?
float delta_time = frame_time_us * 1.0e-6f;
float yaw_rate, pitch_rate;
float yaw_rate = 0.0f, pitch_rate = 0.0f;
yaw_input = (input.servos[0]-1500)/500.0f;
pitch_input = (input.servos[1]-1500)/500.0f;

Loading…
Cancel
Save