PX4 Firmware
PX4 Autopilot Software http://px4.io
seagull_map2.h
Go to the documentation of this file.
1 /**
2  * @file seagull_map2.h
3  *
4  * Interface supported cameras using a Seagull MAP2 interface.
5  *
6  */
7 #pragma once
8 
9 #ifdef __PX4_NUTTX
10 
11 #include <drivers/drv_hrt.h>
12 
13 #include "camera_interface.h"
14 
15 class CameraInterfaceSeagull : public CameraInterface
16 {
17 public:
18  CameraInterfaceSeagull();
19  virtual ~CameraInterfaceSeagull();
20 
21  void trigger(bool trigger_on_true);
22 
23  void send_keep_alive(bool enable);
24 
25  void send_toggle_power(bool enable);
26 
27  void info();
28 
29  bool has_power_control() { return true; }
30 
31  bool is_powered_on() { return _camera_is_on; }
32 
33 private:
34  void setup();
35 
36  bool _camera_is_on;
37 
38 };
39 
40 #endif /* ifdef __PX4_NUTTX */
virtual void send_toggle_power(bool enable)
send command to turn the camera on/off
virtual bool is_powered_on()
Checks if the camera connected to the interface is turned on.
High-resolution timer with callouts and timekeeping.
virtual void send_keep_alive(bool enable)
send command to prevent the camera from sleeping
virtual void info()
Display info.
virtual void trigger(bool trigger_on_true)
trigger the camera
virtual bool has_power_control()
Checks if the interface has support for camera power control.
virtual void setup()
setup the interface