mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: integrate camera frontend/backend split
This commit is contained in:
parent
e30a492137
commit
d9795d3580
@ -745,9 +745,9 @@ const AP_Param::Info Plane::var_info[] = {
|
|||||||
GOBJECT(gps, "GPS", AP_GPS),
|
GOBJECT(gps, "GPS", AP_GPS),
|
||||||
|
|
||||||
#if AP_CAMERA_ENABLED
|
#if AP_CAMERA_ENABLED
|
||||||
// @Group: CAM_
|
// @Group: CAM
|
||||||
// @Path: ../libraries/AP_Camera/AP_Camera.cpp
|
// @Path: ../libraries/AP_Camera/AP_Camera.cpp
|
||||||
GOBJECT(camera, "CAM_", AP_Camera),
|
GOBJECT(camera, "CAM", AP_Camera),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// @Group: ARMING_
|
// @Group: ARMING_
|
||||||
|
@ -101,6 +101,11 @@ void Plane::init_ardupilot()
|
|||||||
camera_mount.init();
|
camera_mount.init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if AP_CAMERA_ENABLED
|
||||||
|
// initialise camera
|
||||||
|
camera.init();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if AP_LANDINGGEAR_ENABLED
|
#if AP_LANDINGGEAR_ENABLED
|
||||||
// initialise landing gear position
|
// initialise landing gear position
|
||||||
g2.landing_gear.init();
|
g2.landing_gear.init();
|
||||||
|
Loading…
Reference in New Issue
Block a user