Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
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

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

◆ TIME_COUNTDOWN_START_VALUE

#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

◆ time_countdown_init()

void time_countdown_init ( void )

Definition at line 42 of file time_countdown.c.

References TIME_COUNTDOWN_START_VALUE, and time_until_end.

◆ time_countdown_periodic_1hz()

void time_countdown_periodic_1hz ( void )

Definition at line 47 of file time_countdown.c.

References time_until_end.

Variable Documentation

◆ time_until_end

uint16_t time_until_end

Definition at line 35 of file time_countdown.c.

Referenced by time_countdown_init(), and time_countdown_periodic_1hz().