Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
dc_shoot_pwm.h File Reference
#include "std.h"
+ Include dependency graph for dc_shoot_pwm.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void dc_shoot_pwm_init (void)
 Initialization function.
 
void dc_shoot_pwm_periodic (void)
 Periodic function to send data.
 

Detailed Description

Author
Jean-Baptiste Forestier Trigger using pwm cameras like MAPIR (https://www.mapir.camera/en-gb) or ThermalCapture 2.0 from TeAx (https://thermalcapture.com/thermalcapture-2-0/)
                  **** MAPIR ****
Duty cycle == 2000us => TRIGGER_ON Duty cycle == 1500us => SD Unmount Duty cycle == 1000us => TRIGGER_OFF Image capture frequency = 1.5s for JPG and 2.5-3.0s RAW+JPG

The quickest the 2000us command should be sent is about once every 1.5s as the camera cannot capture JPG images more quickly than 1.5s. For RAW+JPG mode we recommend a 2.5-3.0s wait time.

RAW images are used for capturing data for reflectance measurements, otherwise the pixels in the JPG are not usable. im_freq_timer should therefore be > 1.5s (=>TRIGGER_CAMERA_CAPTURE_IMAGE_PERIOD = 1.5 seconds)

NMEA GPS data are stored in metadata

              **** ThermalCapture ****

Duty cycle < 1500us => TRIGGER_OFF Duty cycle > 1500us => TRIGGER_ON Image capture frequency up to 30 Hz Possibility to capture one frame per trigger in configurator : Trigger frame mode Convert 14-bit data into temperature values : High gain mode: temp [°C] = raw * 0.04 - 273.15 Low gain mode : temp [°C] = raw * 0.4 - 273.15

NMEA GPS data are stored in metadata

              **** Trigger  system ****

TIME ────────────────────────────────────────────────────────────>

PWM             1000us         2000us         1000us         2000us
Vcc             ┌────┐        ┌───────┐       ┌────┐        ┌───────┐
                │ OFF│        │  ON   │       │ OFF│        │  ON   │
0V          ────┘    └────────┘       └───────┘    └────────┘       └────

im_freq_timer: ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 0 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 0 ↓↓↓↓↓↓↓↓↓↓ shutter_timer: ↓↓↓↓ 0 ↓↓↓↓ 0

                                ↑                             ↑
                             Picture 1                     Picture 2

im_freq_timer should therefore be > 1.5s (=>TRIGGER_CAMERA_CAPTURE_IMAGE_PERIOD = 1.5 seconds)

Definition in file dc_shoot_pwm.h.

Function Documentation

◆ dc_shoot_pwm_init()

void dc_shoot_pwm_init ( void  )

Initialization function.

Definition at line 107 of file dc_shoot_pwm.c.

References CamActuatorSet, DC_CAM_PWM_OFF_VALUE, DC_CAM_PWM_SERVO, and shutter_timer.

◆ dc_shoot_pwm_periodic()

void dc_shoot_pwm_periodic ( void  )

Periodic function to send data.

Definition at line 116 of file dc_shoot_pwm.c.

References CamActuatorSet, DC_CAM_PWM_OFF_VALUE, DC_CAM_PWM_SERVO, dc_periodic(), and shutter_timer.

+ Here is the call graph for this function: