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

Method set_as_float

RemoteIDModule/parameters.cpp:265–281  ·  view source on GitHub ↗

set parameter from a float */

Source from the content-addressed store, hash-verified

263 set parameter from a float
264 */
265void Parameters::Param::set_as_float(float v) const
266{
267 switch (ptype) {
268 case ParamType::UINT8:
269 set_uint8(uint8_t(v));
270 break;
271 case ParamType::INT8:
272 set_int8(int8_t(v));
273 break;
274 case ParamType::UINT32:
275 set_uint32(uint32_t(v));
276 break;
277 case ParamType::FLOAT:
278 set_float(v);
279 break;
280 }
281}
282
283
284/*

Callers 1

process_packetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected