mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Mount: remove unused get_camera_state
This commit is contained in:
parent
b9e06438f1
commit
470b9638ea
@ -565,15 +565,6 @@ void AP_Mount::set_attitude_euler(uint8_t instance, float roll_deg, float pitch_
|
||||
backend->set_attitude_euler(roll_deg, pitch_deg, yaw_bf_deg);
|
||||
}
|
||||
|
||||
bool AP_Mount::get_camera_state(uint8_t instance, uint16_t& pic_count, bool& record_video, int8_t& zoom_step, int8_t& focus_step, bool& auto_focus)
|
||||
{
|
||||
auto *backend = get_instance(instance);
|
||||
if (backend == nullptr) {
|
||||
return false;
|
||||
}
|
||||
return backend->get_camera_state(pic_count, record_video, zoom_step, focus_step, auto_focus);
|
||||
}
|
||||
|
||||
// point at system ID sysid
|
||||
void AP_Mount::set_target_sysid(uint8_t instance, uint8_t sysid)
|
||||
{
|
||||
|
@ -168,7 +168,6 @@ public:
|
||||
bool get_angle_target(uint8_t instance, float& roll_deg, float& pitch_deg, float& yaw_deg, bool& yaw_is_earth_frame);
|
||||
bool get_location_target(uint8_t instance, Location& target_loc);
|
||||
void set_attitude_euler(uint8_t instance, float roll_deg, float pitch_deg, float yaw_bf_deg);
|
||||
bool get_camera_state(uint8_t instance, uint16_t& pic_count, bool& record_video, int8_t& zoom_step, int8_t& focus_step, bool& auto_focus);
|
||||
|
||||
//
|
||||
// camera controls for gimbals that include a camera
|
||||
|
@ -112,7 +112,6 @@ public:
|
||||
virtual bool get_angle_target(float& roll_deg, float& pitch_deg, float& yaw_deg, bool& yaw_is_earth_frame) { return false; }
|
||||
virtual bool get_location_target(Location &target_loc) { return false; }
|
||||
virtual void set_attitude_euler(float roll_deg, float pitch_deg, float yaw_bf_deg) {};
|
||||
virtual bool get_camera_state(uint16_t& pic_count, bool& record_video, int8_t& zoom_step, int8_t& focus_step, bool& auto_focus) { return false; }
|
||||
|
||||
//
|
||||
// camera controls for gimbals that include a camera
|
||||
|
Loading…
Reference in New Issue
Block a user