Sub: Update camera mount for changes.

This commit is contained in:
Rustom Jehangir 2016-01-25 20:18:31 -08:00 committed by Andrew Tridgell
parent 22b4c93101
commit 077b0283f3
3 changed files with 10 additions and 1 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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