AP_Mount: remove unused get_camera_state

This commit is contained in:
Randy Mackay 2023-04-12 20:11:08 +09:00 committed by Peter Barker
parent b9e06438f1
commit 470b9638ea
3 changed files with 0 additions and 11 deletions

View File

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

View File

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

View File

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