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

Command-line tool to control & test the (external) tunes. More...

#include <px4_platform_common/getopt.h>
#include <px4_platform_common/log.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <px4_platform_common/module.h>
#include <lib/tunes/tunes.h>
#include <uORB/topics/tune_control.h>
#include <drivers/drv_hrt.h>
Include dependency graph for tune_control.cpp:

Go to the source code of this file.

Macros

#define MAX_NOTE_ITERATION   50
 

Functions

static void usage ()
 
__EXPORT int tune_control_main (int argc, char *argv[])
 
static void publish_tune_control (tune_control_s &tune_control)
 

Variables

static orb_advert_t tune_control_pub = nullptr
 

Detailed Description

Command-line tool to control & test the (external) tunes.

To use it make sure there's a driver running, which handles the tune_control uorb topic.

Definition in file tune_control.cpp.

Macro Definition Documentation

◆ MAX_NOTE_ITERATION

#define MAX_NOTE_ITERATION   50

Definition at line 56 of file tune_control.cpp.

Referenced by tune_control_main().

Function Documentation

◆ publish_tune_control()

static void publish_tune_control ( tune_control_s tune_control)
static

Definition at line 66 of file tune_control.cpp.

References hrt_absolute_time(), orb_advertise_queue(), ORB_ID, orb_publish(), tune_control_s::timestamp, and tune_control_pub.

Referenced by tune_control_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tune_control_main()

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

◆ usage()

static void usage ( void  )
static

Definition at line 239 of file tune_control.cpp.

Referenced by tune_control_main().

Here is the caller graph for this function:

Variable Documentation

◆ tune_control_pub

orb_advert_t tune_control_pub = nullptr
static

Definition at line 60 of file tune_control.cpp.

Referenced by publish_tune_control().