APM:Libraries
Public Attributes | List of all members
Menu::arg Struct Reference

#include <AP_Menu.h>

Public Attributes

const char * str
 string form of the argument More...
 
long i
 integer form of the argument (if a number) More...
 
float f
 floating point form of the argument (if a number) More...
 

Detailed Description

argument passed to a menu function

Space-delimited arguments are parsed from the commandline and separated into these structures.

If the argument cannot be parsed as a float or a long, the value of f or i respectively is undefined. You should range-check the inputs to your function.

Definition at line 34 of file AP_Menu.h.

Member Data Documentation

◆ f

float Menu::arg::f

floating point form of the argument (if a number)

Definition at line 37 of file AP_Menu.h.

Referenced by Menu::_run_command().

◆ i

long Menu::arg::i

integer form of the argument (if a number)

Definition at line 36 of file AP_Menu.h.

Referenced by Menu::_run_command(), and parse_gpio_pin_number().

◆ str

const char* Menu::arg::str

string form of the argument

Definition at line 35 of file AP_Menu.h.

Referenced by Menu::_run_command().


The documentation for this struct was generated from the following file: