mirror of https://github.com/ArduPilot/ardupilot
Sub: Update camera mount for changes.
This commit is contained in:
parent
22b4c93101
commit
077b0283f3
|
@ -290,6 +290,9 @@ void Sub::fast_loop()
|
|||
// check if we've landed or crashed
|
||||
update_land_and_crash_detectors();
|
||||
|
||||
// camera mount's fast update
|
||||
camera_mount.update_fast();
|
||||
|
||||
// log sensor health
|
||||
if (should_log(MASK_LOG_ANY)) {
|
||||
Log_Sensor_Health();
|
||||
|
|
|
@ -1043,6 +1043,12 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||
break;
|
||||
}
|
||||
|
||||
case MAVLINK_MSG_ID_PARAM_VALUE:
|
||||
{
|
||||
sub.camera_mount.handle_param_value(msg);
|
||||
break;
|
||||
}
|
||||
|
||||
case MAVLINK_MSG_ID_MISSION_WRITE_PARTIAL_LIST: // MAV ID: 38
|
||||
{
|
||||
handle_mission_write_partial_list(sub.mission, msg);
|
||||
|
|
|
@ -204,7 +204,7 @@ void Sub::init_ardupilot()
|
|||
|
||||
#if MOUNT == ENABLED
|
||||
// initialise camera mount
|
||||
camera_mount.init(serial_manager);
|
||||
camera_mount.init(&DataFlash, serial_manager);
|
||||
#endif
|
||||
|
||||
#if PRECISION_LANDING == ENABLED
|
||||
|
|
Loading…
Reference in New Issue