Commit dbc3490e authored by lm's avatar lm

Minor fix to simulation

parent 78f9170f
...@@ -375,9 +375,9 @@ void MAVLinkSimulationLink::mainloop() ...@@ -375,9 +375,9 @@ void MAVLinkSimulationLink::mainloop()
// Move X Position // Move X Position
x = 8.0*sin(circleCounter); x = 8.0*sinf((double)circleCounter);
y = 3.0*cos(circleCounter); y = 3.0*cosf((double)circleCounter);
z = 1.8 + 1.2*sin(circleCounter/2.0); z = 1.8 + 1.2*sin((double)circleCounter/2.0);
// x = (x > 5.0f) ? 5.0f : x; // x = (x > 5.0f) ? 5.0f : x;
// y = (y > 5.0f) ? 5.0f : y; // y = (y > 5.0f) ? 5.0f : y;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment