mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-06 07:58:28 -04:00
Copter: fix compiler error when mount disabled
This commit is contained in:
parent
a3933f7a1f
commit
b4df5b35f0
@ -981,7 +981,9 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
|
|
||||||
case MAVLINK_MSG_ID_GIMBAL_REPORT:
|
case MAVLINK_MSG_ID_GIMBAL_REPORT:
|
||||||
{
|
{
|
||||||
|
#if MOUNT == ENABLED
|
||||||
handle_gimbal_report(camera_mount, msg);
|
handle_gimbal_report(camera_mount, msg);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,8 +191,10 @@ static void init_ardupilot()
|
|||||||
// init the optical flow sensor
|
// init the optical flow sensor
|
||||||
init_optflow();
|
init_optflow();
|
||||||
|
|
||||||
|
#if MOUNT == ENABLED
|
||||||
// initialise camera mount
|
// initialise camera mount
|
||||||
camera_mount.init(serial_manager);
|
camera_mount.init(serial_manager);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USERHOOK_INIT
|
#ifdef USERHOOK_INIT
|
||||||
USERHOOK_INIT
|
USERHOOK_INIT
|
||||||
|
Loading…
Reference in New Issue
Block a user