Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
dc_ctrl_parrot_mykonos.c File Reference
#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"
Include dependency graph for dc_ctrl_parrot_mykonos.c:

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)
 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)

Functions

void dc_ctrl_parrot_mykonos_init (void)
void dc_ctrl_parrot_mykonos_periodic (void)
void dc_ctrl_parrot_mykonos_command (enum dc_ctrl_parrot_mykonos_status cmd)
void dc_ctrl_parrot_mykonos_autoshoot (void)
void dc_ctrl_parrot_mykonos_autoshoot_start (void)

Variables

struct Dc_Ctrl_Parrot_Mykonos dc_ctrl_parrot_mykonos
 Send report.

Macro Definition Documentation

◆ DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_DELAY

#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.

Referenced by dc_ctrl_parrot_mykonos_autoshoot().

◆ DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_TIMER_OF_DELAY

#define DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_TIMER_OF_DELAY ( _delay)
Value:
((uint32_t)(_delay * DC_CTRL_PARROT_MYKONOS_AUTOSHOOT_FREQ))
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.

Definition at line 49 of file dc_ctrl_parrot_mykonos.c.

Referenced by dc_ctrl_parrot_mykonos_autoshoot().

◆ DC_CTRL_PARROT_MYKONOS_LOG_DELAY

#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.

Referenced by dc_ctrl_parrot_mykonos_command().

◆ DC_CTRL_PARROT_MYKONOS_RECORD_DELAY

#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.

Referenced by dc_ctrl_parrot_mykonos_command().

◆ DC_CTRL_PARROT_MYKONOS_TIMER_OF_DELAY

#define DC_CTRL_PARROT_MYKONOS_TIMER_OF_DELAY ( _delay)
Value:
((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.

Referenced by dc_ctrl_parrot_mykonos_command().

Function Documentation

◆ dc_ctrl_parrot_mykonos_autoshoot()

◆ dc_ctrl_parrot_mykonos_autoshoot_start()

void dc_ctrl_parrot_mykonos_autoshoot_start ( void )

◆ dc_ctrl_parrot_mykonos_command()

◆ dc_ctrl_parrot_mykonos_init()

void dc_ctrl_parrot_mykonos_init ( void )

Definition at line 117 of file dc_ctrl_parrot_mykonos.c.

References dc_ctrl_parrot_mykonos, dc_ctrl_parrot_mykonos_command(), DC_CTRL_PARROT_MYKONOS_NONE, and DC_CTRL_PARROT_MYKONOS_STREAM_START.

Here is the call graph for this function:

◆ dc_ctrl_parrot_mykonos_periodic()

void dc_ctrl_parrot_mykonos_periodic ( void )

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(), and get_sys_time_msec().

Here is the call graph for this function:

Variable Documentation

◆ dc_ctrl_parrot_mykonos