mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
ArduPlane: support MAVLINK_MSG_ID_MISSION_ITEM_INT
This commit is contained in:
parent
5848d8a5e6
commit
cd56061b24
@ -1662,8 +1662,8 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// XXX read a WP from EEPROM and send it to the GCS
|
// XXX read a WP from EEPROM and send it to the GCS
|
||||||
|
case MAVLINK_MSG_ID_MISSION_REQUEST_INT:
|
||||||
case MAVLINK_MSG_ID_MISSION_REQUEST:
|
case MAVLINK_MSG_ID_MISSION_REQUEST:
|
||||||
{
|
{
|
||||||
handle_mission_request(plane.mission, msg);
|
handle_mission_request(plane.mission, msg);
|
||||||
@ -1735,6 +1735,15 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GCS has sent us a mission item, store to EEPROM
|
||||||
|
case MAVLINK_MSG_ID_MISSION_ITEM_INT:
|
||||||
|
{
|
||||||
|
if (handle_mission_item(msg, plane.mission)) {
|
||||||
|
plane.DataFlash.Log_Write_EntireMission(plane.mission);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
#if GEOFENCE_ENABLED == ENABLED
|
#if GEOFENCE_ENABLED == ENABLED
|
||||||
// receive a fence point from GCS and store in EEPROM
|
// receive a fence point from GCS and store in EEPROM
|
||||||
|
@ -7,4 +7,5 @@ void Plane::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_COMMAND_INT);
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_COMMAND_INT);
|
||||||
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MISSION_INT);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user