| 431 | } |
| 432 | |
| 433 | void Frame::parse_float(AP_JSON::value val, const char* label, float ¶m) { |
| 434 | if (!val.is<double>()) { |
| 435 | AP_HAL::panic("Bad json type for %s: %s", label, val.to_str().c_str()); |
| 436 | } |
| 437 | param = val.get<double>(); |
| 438 | } |
| 439 | |
| 440 | void Frame::parse_vector3(AP_JSON::value val, const char* label, Vector3f ¶m) { |
| 441 | if (!val.is<AP_JSON::value::array>() || !val.contains(2) || val.contains(3)) { |
nothing calls this directly
no test coverage detected