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

Method parse_vector3

libraries/SITL/SIM_Frame.cpp:440–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440void Frame::parse_vector3(AP_JSON::value val, const char* label, Vector3f &param) {
441 if (!val.is<AP_JSON::value::array>() || !val.contains(2) || val.contains(3)) {
442 AP_HAL::panic("Bad json type for %s: %s", label, val.to_str().c_str());
443 }
444 for (uint8_t j=0; j<3; j++) {
445 parse_float(val.get(j), label, param[j]);
446 }
447}
448
449#if AP_SIM_ENABLED
450

Callers

nothing calls this directly

Calls 4

containsMethod · 0.80
to_strMethod · 0.80
panicFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected