![]() |
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/digital_cam/dc_ctrl_parrot_mykonos.h"
#include "generated/modules.h"
#include "generated/airframe.h"
#include "mcu_periph/sys_time.h"
#include "modules/digital_cam/dc.h"
Go to the source code of this file.
Macros | |
#define | DC_CTRL_PARROT_MYKONOS_RECORD_DELAY 0.05 |
NOTES: For now only the front cam is used, feel free to extend. | |
#define | DC_CTRL_PARROT_MYKONOS_LOG_DELAY 50 |
delay in milli-seconds before logging after a shot in ms | |
#define | DC_CTRL_PARROT_MYKONOS_TIMER_OF_DELAY(_delay) ((uint32_t)(_delay * DC_CTRL_PARROT_MYKONOS_PERIODIC_FREQ)) |
Get timer from delay based on periodic freq from modules.h. | |
#define | DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_DELAY 5.0 |
autoshoot timer delay based on periodic freq from modules.h | |
#define | DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_TIMER_OF_DELAY(_delay) ((uint32_t)(_delay * DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_FREQ)) |
Variables | |
struct Dc_Ctrl_Parrot_Mykonos | dc_ctrl_parrot_mykonos |
Send report. | |
#define DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_DELAY 5.0 |
autoshoot timer delay based on periodic freq from modules.h
Definition at line 47 of file dc_ctrl_parrot_mykonos.c.
#define DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_TIMER_OF_DELAY | ( | _delay | ) | ((uint32_t)(_delay * DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_FREQ)) |
Definition at line 49 of file dc_ctrl_parrot_mykonos.c.
#define DC_CTRL_PARROT_MYKONOS_LOG_DELAY 50 |
delay in milli-seconds before logging after a shot in ms
Definition at line 40 of file dc_ctrl_parrot_mykonos.c.
#define DC_CTRL_PARROT_MYKONOS_RECORD_DELAY 0.05 |
NOTES: For now only the front cam is used, feel free to extend.
Reason is that bottom_cam is normally in use for mapping or Optic flow and the like. See: https://github.com/Parrot-Developers/disco-opensource/ Time in seconds to start/stop recording or take a picture
Definition at line 37 of file dc_ctrl_parrot_mykonos.c.
#define DC_CTRL_PARROT_MYKONOS_TIMER_OF_DELAY | ( | _delay | ) | ((uint32_t)(_delay * DC_CTRL_PARROT_MYKONOS_PERIODIC_FREQ)) |
Get timer from delay based on periodic freq from modules.h.
Definition at line 43 of file dc_ctrl_parrot_mykonos.c.
Definition at line 280 of file dc_ctrl_parrot_mykonos.c.
References Dc_Ctrl_Parrot_Mykonos::autoshoot, dc_ctrl_parrot_mykonos, DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_DELAY, DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_START, DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_TIMER_OF_DELAY, dc_ctrl_parrot_mykonos_command(), DC_CTRL_PARROT_MYKONOS_SHOOT, foo, Dc_Ctrl_Parrot_Mykonos::last_shot_pos, stateGetPositionEnu_f(), Dc_Ctrl_Parrot_Mykonos::status, VECT2_NORM2, FloatVect2::x, EnuCoor_f::x, and EnuCoor_f::y.
Definition at line 306 of file dc_ctrl_parrot_mykonos.c.
References Dc_Ctrl_Parrot_Mykonos::autoshoot, dc_ctrl_parrot_mykonos, DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_START, and Dc_Ctrl_Parrot_Mykonos::status.
void dc_ctrl_parrot_mykonos_command | ( | enum dc_ctrl_parrot_mykonos_status | cmd | ) |
Definition at line 206 of file dc_ctrl_parrot_mykonos.c.
References dc_ctrl_parrot_mykonos, DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_START, DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_STOP, DC_CTRL_PARROT_MYKONOS_LOG_DELAY, DC_CTRL_PARROT_MYKONOS_RECORD_DELAY, DC_CTRL_PARROT_MYKONOS_RECORD_START, DC_CTRL_PARROT_MYKONOS_RECORD_STOP, DC_CTRL_PARROT_MYKONOS_SHOOT, DC_CTRL_PARROT_MYKONOS_STREAM_START, DC_CTRL_PARROT_MYKONOS_STREAM_STOP, DC_CTRL_PARROT_MYKONOS_TIMER_OF_DELAY, foo, get_sys_time_msec(), Dc_Ctrl_Parrot_Mykonos::last_shot_pos, Dc_Ctrl_Parrot_Mykonos::log_delay, stateGetPositionEnu_f(), Dc_Ctrl_Parrot_Mykonos::status, and Dc_Ctrl_Parrot_Mykonos::timer.
Referenced by dc_ctrl_parrot_mykonos_autoshoot(), dc_ctrl_parrot_mykonos_init(), and dc_ctrl_parrot_mykonos_periodic().
Definition at line 117 of file dc_ctrl_parrot_mykonos.c.
References Dc_Ctrl_Parrot_Mykonos::autoshoot, dc_ctrl_parrot_mykonos, dc_ctrl_parrot_mykonos_command(), DC_CTRL_PARROT_MYKONOS_NONE, DC_CTRL_PARROT_MYKONOS_STREAM_START, foo, Dc_Ctrl_Parrot_Mykonos::log_delay, Dc_Ctrl_Parrot_Mykonos::photo_nr, Dc_Ctrl_Parrot_Mykonos::status, and Dc_Ctrl_Parrot_Mykonos::timer.
Definition at line 148 of file dc_ctrl_parrot_mykonos.c.
References dc_ctrl_parrot_mykonos, dc_ctrl_parrot_mykonos_command(), DC_CTRL_PARROT_MYKONOS_SHOOT, dc_periodic(), foo, get_sys_time_msec(), Dc_Ctrl_Parrot_Mykonos::log_delay, Dc_Ctrl_Parrot_Mykonos::photo_nr, and Dc_Ctrl_Parrot_Mykonos::timer.
struct Dc_Ctrl_Parrot_Mykonos dc_ctrl_parrot_mykonos |
Send report.
Definition at line 115 of file dc_ctrl_parrot_mykonos.c.
Referenced by dc_ctrl_parrot_mykonos_autoshoot(), dc_ctrl_parrot_mykonos_autoshoot_start(), dc_ctrl_parrot_mykonos_command(), dc_ctrl_parrot_mykonos_init(), and dc_ctrl_parrot_mykonos_periodic().