diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-22 16:08:48 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-22 16:08:48 +0200 |
commit | ea36154e3975b12bf72da132e71abdbfb6f5b2bb (patch) | |
tree | 92329af90a400c8bd74be9cfaf58a109af1b73ee /apps/mavlink/mavlink_receiver.c | |
parent | 64c5096c9f56b4ec1c995a0129ce5088ea8be719 (diff) | |
download | px4-firmware-ea36154e3975b12bf72da132e71abdbfb6f5b2bb.tar.gz px4-firmware-ea36154e3975b12bf72da132e71abdbfb6f5b2bb.tar.bz2 px4-firmware-ea36154e3975b12bf72da132e71abdbfb6f5b2bb.zip |
Accomodating for offboard control setups
Diffstat (limited to 'apps/mavlink/mavlink_receiver.c')
-rw-r--r-- | apps/mavlink/mavlink_receiver.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/mavlink/mavlink_receiver.c b/apps/mavlink/mavlink_receiver.c index 15ed70dbd..550746794 100644 --- a/apps/mavlink/mavlink_receiver.c +++ b/apps/mavlink/mavlink_receiver.c @@ -93,6 +93,8 @@ static orb_advert_t flow_pub = -1; static orb_advert_t offboard_control_sp_pub = -1; static orb_advert_t vicon_position_pub = -1; +extern bool gcs_link; + static void handle_message(mavlink_message_t *msg) { @@ -218,6 +220,10 @@ handle_message(mavlink_message_t *msg) //printf("got MAVLINK_MSG_ID_SET_QUAD_MOTORS_SETPOINT target_system=%u, sysid = %u\n", mavlink_system.sysid, quad_motors_setpoint.mode); if (mavlink_system.sysid < 4) { + + /* switch to a receiving link mode */ + gcs_link = false; + /* * rate control mode - defined by MAVLink */ |