MCPcopy Create free account
hub / github.com/ArduPilot/ArduRemoteID / set_float

Method set_float

RemoteIDModule/parameters.cpp:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void Parameters::Param::set_float(float v) const
171{
172 auto *p = (float *)ptr;
173 *p = v;
174 union {
175 float f;
176 uint32_t u32;
177 } u;
178 u.f = v;
179 nvs_set_u32(handle, name, u.u32);
180}
181
182void Parameters::Param::set_char20(const char *v) const
183{

Callers 2

handle_param_getsetMethod · 0.80
set_by_name_stringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected