MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / function

Method function

libraries/AP_JSButton/AP_JSButton.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27uint8_t JSButton::function(bool shift) const
28{
29 if (shift) {
30 return _sfunction;
31 }
32 return _function;
33}
34
35void JSButton::set_default(button_function_t f, button_function_t sf)
36{

Callers 6

TESTFunction · 0.80
runMethod · 0.80
has_disarm_functionMethod · 0.80
handle_jsbutton_pressMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64