Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sleep function has wrong argument? #1

Open
SimonWakley opened this issue Oct 17, 2023 · 0 comments
Open

Sleep function has wrong argument? #1

SimonWakley opened this issue Oct 17, 2023 · 0 comments

Comments

@SimonWakley
Copy link

	// Wait for 8 seconds, check position
	for (int i = 0; i < 8; i++)
	{
		mavlink_local_position_ned_t pos = api.current_messages.local_position_ned;
		printf("%i CURRENT POSITION XYZ = [ % .4f , % .4f , % .4f ] \n", i, pos.x, pos.y, pos.z);
		Sleep(1);
	}

Sleep is (DWORD dwMilliseconds), so should be Sleep(1000)? Similar on other Sleep calls instead of 1, should be 100 if you use the value from the original code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant