Skip to content

Commit

Permalink
Minor fix to simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Dec 28, 2010
1 parent 78f9170 commit dbc3490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/comm/MAVLinkSimulationLink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ void MAVLinkSimulationLink::mainloop()


// Move X Position
x = 8.0*sin(circleCounter);
y = 3.0*cos(circleCounter);
z = 1.8 + 1.2*sin(circleCounter/2.0);
x = 8.0*sinf((double)circleCounter);
y = 3.0*cosf((double)circleCounter);
z = 1.8 + 1.2*sin((double)circleCounter/2.0);

// x = (x > 5.0f) ? 5.0f : x;
// y = (y > 5.0f) ? 5.0f : y;
Expand Down

0 comments on commit dbc3490

Please sign in to comment.