Tracker: remove forwarding of pos and pressure to vehicle

This commit is contained in:
Randy Mackay 2014-09-29 21:51:44 +09:00
parent 111ec147f0
commit b06d3d3f52
1 changed files with 0 additions and 10 deletions

View File

@ -825,11 +825,6 @@ mission_failed:
// decode // decode
mavlink_global_position_int_t packet; mavlink_global_position_int_t packet;
mavlink_msg_global_position_int_decode(msg, &packet); mavlink_msg_global_position_int_decode(msg, &packet);
if (g.proxy_mode == true && proxy_vehicle.initialised) {
// Also proxy it to the remote
if (comm_get_txspace(proxy_vehicle.chan) > ((uint16_t)msg->len) + MAVLINK_NUM_NON_PAYLOAD_BYTES)
_mavlink_resend_uart(proxy_vehicle.chan, msg);
}
tracking_update_position(packet); tracking_update_position(packet);
break; break;
} }
@ -839,11 +834,6 @@ mission_failed:
// decode // decode
mavlink_scaled_pressure_t packet; mavlink_scaled_pressure_t packet;
mavlink_msg_scaled_pressure_decode(msg, &packet); mavlink_msg_scaled_pressure_decode(msg, &packet);
if (g.proxy_mode == true && proxy_vehicle.initialised) {
// Also proxy it to the remote
if (comm_get_txspace(proxy_vehicle.chan) > ((uint16_t)msg->len) + MAVLINK_NUM_NON_PAYLOAD_BYTES)
_mavlink_resend_uart(proxy_vehicle.chan, msg);
}
tracking_update_pressure(packet); tracking_update_pressure(packet);
break; break;
} }