Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
time_countdown.c File Reference

Count down remaining time. More...

#include "time_countdown.h"
#include "generated/airframe.h"
+ Include dependency graph for time_countdown.c:

Go to the source code of this file.

Macros

#define TIME_COUNTDOWN_START_VALUE   10000
 initial countdown value in seconds More...
 

Functions

void time_countdown_init (void)
 
void time_countdown_periodic_1hz (void)
 

Variables

uint16_t time_until_end
 

Detailed Description

Count down remaining time.

Set an initial countdown value in seconds (re-settable via settings/GCS) and countdown time_until_end variable to zero. E.g. allows to check how much time is left before the end of the competition.

Definition in file time_countdown.c.

Macro Definition Documentation

#define TIME_COUNTDOWN_START_VALUE   10000

initial countdown value in seconds

Definition at line 39 of file time_countdown.c.

Referenced by time_countdown_init().

Function Documentation

void time_countdown_init ( void  )

Definition at line 42 of file time_countdown.c.

References TIME_COUNTDOWN_START_VALUE, and time_until_end.

void time_countdown_periodic_1hz ( void  )

Definition at line 47 of file time_countdown.c.

References time_until_end.

Variable Documentation

uint16_t time_until_end

Definition at line 35 of file time_countdown.c.

Referenced by time_countdown_init(), and time_countdown_periodic_1hz().