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

arm-status and flight-mode flicker #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions MinimOSD_Extra_Plane_Pre_release_Beta/MAVLink.ino
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ void read_mavlink(){
switch(msg.msgid) {
case MAVLINK_MSG_ID_HEARTBEAT:
{
if((msg.compid != 1) && (msg.compid != 50)){
// MAVMSG not from ardupilot(component ID:1) or pixhawk(component ID:50)
break;
}

uint8_t mavtype = mavlink_msg_heartbeat_get_type(&msg);
if(mavtype == 6){
// MAVMSG from GCS
break;
}
mavbeat = 1;
apm_mav_system = msg.sysid;
apm_mav_component = msg.compid;
Expand Down
10 changes: 10 additions & 0 deletions MinimOsd_Extra_Copter_Pre_release_Beta/MAVLink.ino
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ void read_mavlink(){
switch(msg.msgid) {
case MAVLINK_MSG_ID_HEARTBEAT:
{
if((msg.compid != 1) && (msg.compid != 50)){
//MAVMSG not from ardupilot(component ID:1) or pixhawk(component ID:50)
break;
}

uint8_t mavtype = mavlink_msg_heartbeat_get_type(&msg);
if(mavtype == 6){
// MAVMSG from GCS
break;
}
mavbeat = 1;
apm_mav_system = msg.sysid;
apm_mav_component = msg.compid;
Expand Down