Path: blob/master/libraries/AP_Camera/AP_Camera_MAVLink.h
9573 views
/*1This program is free software: you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation, either version 3 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program. If not, see <http://www.gnu.org/licenses/>.13*/1415/*16Camera driver for cameras that implement the older MAVLink camera protocol17*/18#pragma once1920#include "AP_Camera_Backend.h"2122#if AP_CAMERA_MAVLINK_ENABLED2324class AP_Camera_MAVLink : public AP_Camera_Backend25{26public:2728// Constructor29using AP_Camera_Backend::AP_Camera_Backend;3031/* Do not allow copies */32CLASS_NO_COPY(AP_Camera_MAVLink);3334// entry point to actually take a picture35bool trigger_pic() override;3637// configure camera38void configure(float shooting_mode, float shutter_speed, float aperture, float ISO, int32_t exposure_type, int32_t cmd_id, float engine_cutoff_time) override;3940// handle camera control message41void control(float session, float zoom_pos, float zoom_step, float focus_lock, int32_t shooting_cmd, int32_t cmd_id) override;42};4344#endif // AP_CAMERA_MAVLINK_ENABLED454647