Path: blob/master/libraries/AP_Camera/AP_Camera_Relay.h
9559 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 servo driver backend class17*/18#pragma once1920#include "AP_Camera_Backend.h"2122#if AP_CAMERA_RELAY_ENABLED2324class AP_Camera_Relay : public AP_Camera_Backend25{26public:2728// Constructor29using AP_Camera_Backend::AP_Camera_Backend;3031/* Do not allow copies */32CLASS_NO_COPY(AP_Camera_Relay);3334// update - should be called at 50hz35void update() override;3637// entry point to actually take a picture. returns true on success38bool trigger_pic() override;3940private:4142uint16_t trigger_counter; // count of number of cycles shutter should be held open43};4445#endif // AP_CAMERA_RELAY_ENABLED464748