From dbc3490e86e58ab0620c90be8c5a45cd6bb2ae52 Mon Sep 17 00:00:00 2001 From: lm Date: Tue, 28 Dec 2010 19:18:44 +0100 Subject: [PATCH] Minor fix to simulation --- src/comm/MAVLinkSimulationLink.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/comm/MAVLinkSimulationLink.cc b/src/comm/MAVLinkSimulationLink.cc index 4216e05..e281aa6 100644 --- a/src/comm/MAVLinkSimulationLink.cc +++ b/src/comm/MAVLinkSimulationLink.cc @@ -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;