mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
ArduCopter: support MAVLINK_MSG_ID_MISSION_ITEM_INT
This commit is contained in:
parent
8816c5c681
commit
5848d8a5e6
@ -1070,9 +1070,18 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case MAVLINK_MSG_ID_MISSION_ITEM_INT:
|
||||||
|
{
|
||||||
|
if (handle_mission_item(msg, copter.mission)) {
|
||||||
|
copter.DataFlash.Log_Write_EntireMission(copter.mission);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// read an individual command from EEPROM and send it to the GCS
|
// read an individual command from EEPROM and send it to the GCS
|
||||||
case MAVLINK_MSG_ID_MISSION_REQUEST: // MAV ID: 40
|
case MAVLINK_MSG_ID_MISSION_REQUEST_INT:
|
||||||
|
case MAVLINK_MSG_ID_MISSION_REQUEST: // MAV ID: 40, 51
|
||||||
{
|
{
|
||||||
handle_mission_request(copter.mission, msg);
|
handle_mission_request(copter.mission, msg);
|
||||||
break;
|
break;
|
||||||
|
@ -6,6 +6,7 @@ void Copter::init_capabilities(void)
|
|||||||
{
|
{
|
||||||
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT);
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT);
|
||||||
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT);
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT);
|
||||||
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MISSION_INT);
|
||||||
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED);
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED);
|
||||||
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT);
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT);
|
||||||
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION);
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION);
|
||||||
|
Loading…
Reference in New Issue
Block a user