PX4 Firmware
PX4 Autopilot Software http://px4.io
pwm.h
Go to the documentation of this file.
1 /**
2  * @file pwm.h
3  *
4  * Interface with cameras via pwm.
5  *
6  */
7 #pragma once
8 
9 #ifdef __PX4_NUTTX
10 
11 #include <drivers/drv_hrt.h>
12 #include <parameters/param.h>
13 #include <px4_platform_common/log.h>
14 
15 #include "camera_interface.h"
16 
17 class CameraInterfacePWM : public CameraInterface
18 {
19 public:
20  CameraInterfacePWM();
21  virtual ~CameraInterfacePWM();
22 
23  void trigger(bool trigger_on_true);
24 
25  void info();
26 
27 private:
28  int32_t _pwm_camera_shoot = 0;
29  int32_t _pwm_camera_neutral = 0;
30  void setup();
31 
32 };
33 
34 #endif /* ifdef __PX4_NUTTX */
High-resolution timer with callouts and timekeeping.
Global flash based parameter store.
virtual void info()
Display info.
virtual void trigger(bool trigger_on_true)
trigger the camera
virtual void setup()
setup the interface