Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
460aef7a
Commit
460aef7a
authored
Apr 25, 2010
by
pixhawk
Browse files
Fixed performance problems in simulation
parent
f6721447
Changes
2
Show whitespace changes
Inline
Side-by-side
src/comm/MAVLinkSimulationLink.cc
View file @
460aef7a
...
...
@@ -116,7 +116,7 @@ void MAVLinkSimulationLink::run()
}
last
=
MG
::
TIME
::
getGroundTimeNow
();
}
msleep
((
rate
/
20
)
);
MG
::
SLEEP
::
msleep
(
2
);
}
}
...
...
src/input/JoystickInput.cc
View file @
460aef7a
...
...
@@ -104,7 +104,7 @@ void JoystickInput::init()
// Wait for joysticks if none is connected
while
(
numJoysticks
==
0
)
{
msleep
(
200
);
MG
::
SLEEP
::
msleep
(
200
);
// INITIALIZE SDL Joystick support
if
(
SDL_InitSubSystem
(
SDL_INIT_JOYSTICK
|
SDL_INIT_NOPARACHUTE
)
<
0
)
{
...
...
@@ -276,7 +276,7 @@ void JoystickInput::run()
}
// Sleep, update rate of joystick is approx. 50 Hz (1000 ms / 50 = 20 ms)
msleep
(
20
);
MG
::
SLEEP
::
msleep
(
20
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment