Browse Source

SITL: fixed rover altitude

thanks to Grant for noticing this
mission-4.1.18
Andrew Tridgell 9 years ago
parent
commit
3aba0d8359
  1. 1
      libraries/SITL/SIM_Rover.cpp

1
libraries/SITL/SIM_Rover.cpp

@ -151,7 +151,6 @@ void SimRover::update(const struct sitl_input &input) @@ -151,7 +151,6 @@ void SimRover::update(const struct sitl_input &input)
// new position vector
position += velocity_ef * delta_time;
position.z = -home.alt*0.01f;
// update lat/lon/altitude
update_position();

Loading…
Cancel
Save