Firmware/src/communication/mavlink_handling.c
void mavlink_request_temperatures(void)
{
  mavlink_mav_data_request_t mav_request;
  mav_request.data_type = TEMPERATURE;
  mav_request.tar_system_id = MAVLINK_DRIVE_ID;
  mav_request.tar_component_id = MAVLINK_DRIVE_COMP_CURTAINS_ID;

  mavlink_msg_mav_data_request_encode(
            1, //system id
            MAVLINK_DRIVE_COMP_CURTAINS_ID, //component id
            &tmp_tx_mav_msg,
            &mav_request);

    mavlink_send_message(&tmp_tx_mav_msg);
}
//Send request to drive: drive should send temperatures
Send request to drive: drive should send temperatures
Send request to drive : drive should send temperatures
void mavlink_request_temperatures(void)
{
  mavlink_mav_data_request_t mav_request;
  mav_request.data_type = TEMPERATURE;
  mav_request.tar_system_id = MAVLINK_DRIVE_ID;
  mav_request.tar_component_id = MAVLINK_DRIVE_COMP_CURTAINS_ID;
  mavlink_msg_mav_data_request_encode(
            1, 
            MAVLINK_DRIVE_COMP_CURTAINS_ID, 
            &tmp_tx_mav_msg,
            &mav_request);
    mavlink_send_message(&tmp_tx_mav_msg);
}
void mavlink_request_temperatures ( void ) { mavlink_mav_data_request_t mav_request ; mav_request . data_type = TEMPERATURE ; mav_request . tar_system_id = MAVLINK_DRIVE_ID ; mav_request . tar_component_id = MAVLINK_DRIVE_COMP_CURTAINS_ID ; mavlink_msg_mav_data_request_encode ( 1 , MAVLINK_DRIVE_COMP_CURTAINS_ID , & tmp_tx_mav_msg , & mav_request ) ; mavlink_send_message ( & tmp_tx_mav_msg ) ; }
Send request to drive: drive should send temperatures
Send request to drive : drive should send temperatures
//system id //component id