PX4 Firmware
PX4 Autopilot Software http://px4.io
test_tone.cpp File Reference

Test for audio tones. More...

#include <stdlib.h>
#include <drivers/drv_hrt.h>
#include <drivers/drv_tone_alarm.h>
#include <lib/tunes/tunes.h>
#include <px4_platform_common/posix.h>
#include <uORB/topics/tune_control.h>
#include "tests_main.h"
Include dependency graph for test_tone.cpp:

Go to the source code of this file.

Functions

int test_tone (int argc, char *argv[])
 

Detailed Description

Test for audio tones.

Definition in file test_tone.cpp.

Function Documentation

◆ test_tone()

int test_tone ( int  argc,
char *  argv[] 
)

Definition at line 49 of file test_tone.cpp.

References orb_advert_t, orb_advertise_queue(), ORB_ID, orb_publish(), orb_unadvertise(), Tunes::set_string(), tune_control, tune_control_pub, tune_control_s::tune_id, and tune_control_s::volume.

Here is the call graph for this function: