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
mavproxy sends data '0' #780
Comments
How did you provoke that |
#include <stdio.h> #define ARMED 128 //ARM FlAG Value int main()
//--------------------------------------------UDP SETTING END----------------------------------------------------------
//--------------------------------------------READ MAVLINK MSG---------------------------------------------------------
//--------------------------------------------READ MAVLINK MSG END-----------------------------------------------------
} here is the cord |
On Mon, 22 Jun 2020, junhyuk9976 wrote:
How did you provoke that alt: output?
case MAVLINK_MSG_ID_GLOBAL_POSITION_INT:
{
mavlink_msg_global_position_int_decode(&msg, &position);
altitude = position.relative_alt;
//printf("alt: %d\n", position.relative_alt);
here the cord
Thanks. Do you think MAVProxy is emitting GLOBAL_POSITION_INT messages?
|
Yes I think so. |
Sorry. This was caused by the absence of a break statement in the switch-case statement. |
The first time I used MavProxy, the behavior was normal.
At some point, MavProxy started inserting data zero.
help please.
The text was updated successfully, but these errors were encountered: