Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
light.c File Reference
#include "modules/light/light.h"
#include "led.h"
#include "generated/airframe.h"
+ Include dependency graph for light.c:

Go to the source code of this file.

Macros

#define LIGHT_LED_STROBE   2
 
#define STROBE_LIGHT_MODE_DEFAULT   6
 
#define NAV_LIGHT_MODE_DEFAULT   4
 

Functions

void init_light (void)
 
void periodic_light (void)
 

Variables

uint8_t strobe_light_mode
 
uint8_t nav_light_mode
 

Macro Definition Documentation

◆ LIGHT_LED_STROBE

#define LIGHT_LED_STROBE   2

Definition at line 31 of file light.c.

◆ NAV_LIGHT_MODE_DEFAULT

#define NAV_LIGHT_MODE_DEFAULT   4

Definition at line 39 of file light.c.

◆ STROBE_LIGHT_MODE_DEFAULT

#define STROBE_LIGHT_MODE_DEFAULT   6

Definition at line 35 of file light.c.

Function Documentation

◆ init_light()

void init_light ( void  )

◆ periodic_light()

void periodic_light ( void  )

Definition at line 56 of file light.c.

References counter, LED_OFF, LED_ON, LIGHT_LED_STROBE, nav_light_mode, and strobe_light_mode.

Variable Documentation

◆ nav_light_mode

uint8_t nav_light_mode

Definition at line 28 of file light.c.

Referenced by init_light(), and periodic_light().

◆ strobe_light_mode

uint8_t strobe_light_mode

Definition at line 27 of file light.c.

Referenced by init_light(), and periodic_light().