APM:Libraries
Macros | Variables
ToneAlarm_PX4.cpp File Reference
#include <AP_HAL/AP_HAL.h>
#include "ToneAlarm_PX4.h"
#include "AP_Notify.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <drivers/drv_tone_alarm.h>
#include <stdio.h>
#include <errno.h>
Include dependency graph for ToneAlarm_PX4.cpp:

Go to the source code of this file.

Macros

#define AP_NOTIFY_PX4_TONE_QUIET_NEG_FEEDBACK   0
 
#define AP_NOTIFY_PX4_TONE_LOUD_NEG_FEEDBACK   1
 
#define AP_NOTIFY_PX4_TONE_QUIET_NEU_FEEDBACK   2
 
#define AP_NOTIFY_PX4_TONE_LOUD_NEU_FEEDBACK   3
 
#define AP_NOTIFY_PX4_TONE_QUIET_POS_FEEDBACK   4
 
#define AP_NOTIFY_PX4_TONE_LOUD_POS_FEEDBACK   5
 
#define AP_NOTIFY_PX4_TONE_LOUD_READY_OR_FINISHED   6
 
#define AP_NOTIFY_PX4_TONE_QUIET_READY_OR_FINISHED   7
 
#define AP_NOTIFY_PX4_TONE_LOUD_ATTENTION_NEEDED   8
 
#define AP_NOTIFY_PX4_TONE_QUIET_ARMING_WARNING   9
 
#define AP_NOTIFY_PX4_TONE_LOUD_WP_COMPLETE   10
 
#define AP_NOTIFY_PX4_TONE_LOUD_LAND_WARNING_CTS   11
 
#define AP_NOTIFY_PX4_TONE_LOUD_VEHICLE_LOST_CTS   12
 
#define AP_NOTIFY_PX4_TONE_LOUD_BATTERY_ALERT_CTS   13
 
#define AP_NOTIFY_PX4_TONE_QUIET_COMPASS_CALIBRATING_CTS   14
 
#define AP_NOTIFY_PX4_TONE_WAITING_FOR_THROW   15
 
#define AP_NOTIFY_PX4_TONE_LOUD_1   16
 
#define AP_NOTIFY_PX4_TONE_LOUD_2   17
 
#define AP_NOTIFY_PX4_TONE_LOUD_3   18
 
#define AP_NOTIFY_PX4_TONE_LOUD_4   19
 
#define AP_NOTIFY_PX4_TONE_LOUD_5   20
 
#define AP_NOTIFY_PX4_TONE_LOUD_6   21
 
#define AP_NOTIFY_PX4_TONE_LOUD_7   22
 
#define AP_NOTIFY_PX4_TONE_TUNING_START   23
 
#define AP_NOTIFY_PX4_TONE_TUNING_SAVE   24
 
#define AP_NOTIFY_PX4_TONE_TUNING_ERROR   25
 
#define AP_NOTIFY_PX4_TONE_LEAK_DETECTED   26
 
#define AP_NOTIFY_PX4_TONE_QUIET_SHUTDOWN   27
 
#define AP_NOTIFY_PX4_TONE_QUIET_NOT_READY_OR_NOT_FINISHED   28
 

Variables

const AP_HAL::HALhal
 -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More...
 

Macro Definition Documentation

◆ AP_NOTIFY_PX4_TONE_LEAK_DETECTED

#define AP_NOTIFY_PX4_TONE_LEAK_DETECTED   26

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_LOUD_1

#define AP_NOTIFY_PX4_TONE_LOUD_1   16

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_LOUD_2

#define AP_NOTIFY_PX4_TONE_LOUD_2   17

◆ AP_NOTIFY_PX4_TONE_LOUD_3

#define AP_NOTIFY_PX4_TONE_LOUD_3   18

◆ AP_NOTIFY_PX4_TONE_LOUD_4

#define AP_NOTIFY_PX4_TONE_LOUD_4   19

◆ AP_NOTIFY_PX4_TONE_LOUD_5

#define AP_NOTIFY_PX4_TONE_LOUD_5   20

◆ AP_NOTIFY_PX4_TONE_LOUD_6

#define AP_NOTIFY_PX4_TONE_LOUD_6   21

◆ AP_NOTIFY_PX4_TONE_LOUD_7

#define AP_NOTIFY_PX4_TONE_LOUD_7   22

◆ AP_NOTIFY_PX4_TONE_LOUD_ATTENTION_NEEDED

#define AP_NOTIFY_PX4_TONE_LOUD_ATTENTION_NEEDED   8

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_LOUD_BATTERY_ALERT_CTS

#define AP_NOTIFY_PX4_TONE_LOUD_BATTERY_ALERT_CTS   13

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_LOUD_LAND_WARNING_CTS

#define AP_NOTIFY_PX4_TONE_LOUD_LAND_WARNING_CTS   11

◆ AP_NOTIFY_PX4_TONE_LOUD_NEG_FEEDBACK

#define AP_NOTIFY_PX4_TONE_LOUD_NEG_FEEDBACK   1

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_LOUD_NEU_FEEDBACK

#define AP_NOTIFY_PX4_TONE_LOUD_NEU_FEEDBACK   3

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_LOUD_POS_FEEDBACK

#define AP_NOTIFY_PX4_TONE_LOUD_POS_FEEDBACK   5

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_LOUD_READY_OR_FINISHED

#define AP_NOTIFY_PX4_TONE_LOUD_READY_OR_FINISHED   6

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_LOUD_VEHICLE_LOST_CTS

#define AP_NOTIFY_PX4_TONE_LOUD_VEHICLE_LOST_CTS   12

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_LOUD_WP_COMPLETE

#define AP_NOTIFY_PX4_TONE_LOUD_WP_COMPLETE   10

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_QUIET_ARMING_WARNING

#define AP_NOTIFY_PX4_TONE_QUIET_ARMING_WARNING   9

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_QUIET_COMPASS_CALIBRATING_CTS

#define AP_NOTIFY_PX4_TONE_QUIET_COMPASS_CALIBRATING_CTS   14

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_QUIET_NEG_FEEDBACK

#define AP_NOTIFY_PX4_TONE_QUIET_NEG_FEEDBACK   0

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_QUIET_NEU_FEEDBACK

#define AP_NOTIFY_PX4_TONE_QUIET_NEU_FEEDBACK   2

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_QUIET_NOT_READY_OR_NOT_FINISHED

#define AP_NOTIFY_PX4_TONE_QUIET_NOT_READY_OR_NOT_FINISHED   28

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_QUIET_POS_FEEDBACK

#define AP_NOTIFY_PX4_TONE_QUIET_POS_FEEDBACK   4

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_QUIET_READY_OR_FINISHED

#define AP_NOTIFY_PX4_TONE_QUIET_READY_OR_FINISHED   7

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_QUIET_SHUTDOWN

#define AP_NOTIFY_PX4_TONE_QUIET_SHUTDOWN   27

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_TUNING_ERROR

#define AP_NOTIFY_PX4_TONE_TUNING_ERROR   25

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_TUNING_SAVE

#define AP_NOTIFY_PX4_TONE_TUNING_SAVE   24

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_TUNING_START

#define AP_NOTIFY_PX4_TONE_TUNING_START   23

Referenced by ToneAlarm_PX4::update().

◆ AP_NOTIFY_PX4_TONE_WAITING_FOR_THROW

#define AP_NOTIFY_PX4_TONE_WAITING_FOR_THROW   15

Referenced by ToneAlarm_PX4::update().

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-

Definition at line 14 of file AC_PID_test.cpp.