PX4 Firmware
PX4 Autopilot Software http://px4.io
tunes.cpp File Reference
#include "tunes.h"
#include <px4_platform_common/log.h>
#include <math.h>
#include <ctype.h>
#include <errno.h>
Include dependency graph for tunes.cpp:

Go to the source code of this file.

Macros

#define TUNE_CONTINUE   1
 
#define TUNE_ERROR   -1
 
#define TUNE_STOP   0
 
#define BEAT_TIME_CONVERSION_MS   (60 * 1000 * 4)
 
#define BEAT_TIME_CONVERSION_US   BEAT_TIME_CONVERSION_MS * 1000
 
#define BEAT_TIME_CONVERSION   BEAT_TIME_CONVERSION_US
 

Macro Definition Documentation

◆ BEAT_TIME_CONVERSION

#define BEAT_TIME_CONVERSION   BEAT_TIME_CONVERSION_US

Definition at line 51 of file tunes.cpp.

Referenced by Tunes::note_duration(), and Tunes::rest_duration().

◆ BEAT_TIME_CONVERSION_MS

#define BEAT_TIME_CONVERSION_MS   (60 * 1000 * 4)

Definition at line 49 of file tunes.cpp.

◆ BEAT_TIME_CONVERSION_US

#define BEAT_TIME_CONVERSION_US   BEAT_TIME_CONVERSION_MS * 1000

Definition at line 50 of file tunes.cpp.

◆ TUNE_CONTINUE

#define TUNE_CONTINUE   1

Definition at line 45 of file tunes.cpp.

Referenced by Tunes::get_next_note(), and Tunes::tune_end().

◆ TUNE_ERROR

#define TUNE_ERROR   -1

Definition at line 46 of file tunes.cpp.

Referenced by Tunes::tune_error().

◆ TUNE_STOP

#define TUNE_STOP   0

Definition at line 47 of file tunes.cpp.

Referenced by Tunes::tune_end().