Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/libraries/AP_Camera/AP_Camera_Servo.h
Views: 1798
/*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 servo driver backend class17*/18#pragma once1920#include "AP_Camera_Backend.h"2122#if AP_CAMERA_SERVO_ENABLED2324class AP_Camera_Servo : public AP_Camera_Backend25{26public:2728// Constructor29using AP_Camera_Backend::AP_Camera_Backend;3031/* Do not allow copies */32CLASS_NO_COPY(AP_Camera_Servo);3334// update - should be called at 50hz35void update() override;3637// entry point to actually take a picture. returns true on success38bool trigger_pic() override;3940// configure camera41void configure(float shooting_mode, float shutter_speed, float aperture, float ISO, int32_t exposure_type, int32_t cmd_id, float engine_cutoff_time) override;4243private:4445uint16_t trigger_counter; // count of number of cycles shutter should be held open46uint16_t iso_counter; // count of number of cycles iso output should be held open47};4849#endif // AP_CAMERA_SERVO_ENABLED505152