| 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)) { |
| 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 |