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

Method init

libraries/AP_Scripting/AP_Scripting_helpers.cpp:41–48  ·  view source on GitHub ↗

init by name

Source from the content-addressed store, hash-verified

39
40// init by name
41bool Parameter::init(const char *name)
42{
43 vp = AP_Param::find(name, &vtype);
44 if (vp == nullptr) {
45 return false;
46 }
47 return true;
48}
49
50// init by info, to get the value of old params
51bool Parameter::init_by_info(uint16_t key, uint32_t group_element, enum ap_var_type type)

Callers 1

lua_new_ParameterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected