|
|
|
@ -1923,6 +1923,15 @@ void GCS::update_serial_battgo_history(mavlink_battgo_history_t *battgo_history_
@@ -1923,6 +1923,15 @@ void GCS::update_serial_battgo_history(mavlink_battgo_history_t *battgo_history_
|
|
|
|
|
chan(i)->send_battgo_history(battgo_history_t); |
|
|
|
|
}
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GCS::update_zr_fly_status(mavlink_zr_flying_status_t *zr_flying_status_t ) |
|
|
|
|
{ |
|
|
|
|
for (uint8_t i=0; i<num_gcs(); i++) { |
|
|
|
|
// mavlink_msg_battgo_info_send_struct(chan,&battgo_info_t);
|
|
|
|
|
chan(i)->send_zr_flying_status(zr_flying_status_t); |
|
|
|
|
}
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GCS::send_mission_item_reached_message(uint16_t mission_index) |
|
|
|
|
{ |
|
|
|
|
for (uint8_t i=0; i<num_gcs(); i++) { |
|
|
|
@ -1944,7 +1953,6 @@ void GCS::setup_console()
@@ -1944,7 +1953,6 @@ void GCS::setup_console()
|
|
|
|
|
create_gcs_mavlink_backend(chan_parameters[0], *uart); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GCS_MAVLINK_Parameters::GCS_MAVLINK_Parameters() |
|
|
|
|
{ |
|
|
|
|
AP_Param::setup_object_defaults(this, var_info); |
|
|
|
@ -4815,6 +4823,22 @@ void GCS_MAVLINK::manual_override(RC_Channel *c, int16_t value_in, const uint16_
@@ -4815,6 +4823,22 @@ void GCS_MAVLINK::manual_override(RC_Channel *c, int16_t value_in, const uint16_
|
|
|
|
|
c->set_override(override_value, tnow); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
handle a SET_MODE MAVLink message |
|
|
|
|
*/ |
|
|
|
|
void GCS_MAVLINK::handle_zr_fly_status(const mavlink_message_t &msg) |
|
|
|
|
{ |
|
|
|
|
mavlink_zr_flying_status_t packet; |
|
|
|
|
mavlink_msg_zr_flying_status_decode(&msg, &packet);
|
|
|
|
|
//TODO handle data;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool GCS_MAVLINK::send_zr_flying_status(const mavlink_zr_flying_status_t *zr_flying_status_t) |
|
|
|
|
{ |
|
|
|
|
mavlink_msg_zr_flying_status_send_struct(chan, zr_flying_status_t); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
GCS &gcs() |
|
|
|
|
{ |
|
|
|
|
return *GCS::get_singleton(); |
|
|
|
|