Skip to content

Commit

Permalink
should fix inav bug ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Dec 11, 2023
1 parent 605546a commit 3c5fba6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/telemetry/MavlinkTelemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void MavlinkTelemetry::process_mavlink_message(const mavlink_message_t& msg)
//qDebug()<<"Found OHD Ground station";
MavlinkSettingsModel::instanceGround().set_ready();
}else{
qDebug()<<"MavlinkTelemetry::XonProcessMavlinkMessage"<<msg.msgid<<"compid:"<<source_compid<<" source_sysid:"<<source_sysid;
//qDebug()<<"MavlinkTelemetry::XonProcessMavlinkMessage"<<msg.msgid<<"compid:"<<source_compid<<" source_sysid:"<<source_sysid;
if(!m_fc_found){
// For the fc we need to wait until we got an heartbeat
/*if(msg.msgid==MAVLINK_MSG_ID_HEARTBEAT){
Expand Down Expand Up @@ -150,6 +150,11 @@ void MavlinkTelemetry::process_mavlink_message(const mavlink_message_t& msg)
m_fc_sys_id=source_sysid;
m_fc_comp_id=source_compid;
m_fc_found=true;
}else if(source_compid==MAV_COMP_ID_SYSTEM_CONTROL && source_sysid==1){
qDebug()<<"Found INAV FC:"<<source_sysid;
m_fc_sys_id=source_sysid;
m_fc_comp_id=source_compid;
m_fc_found=true;
}
else
{
Expand Down

0 comments on commit 3c5fba6

Please sign in to comment.