|
|
@ -152,6 +152,9 @@ protected: |
|
|
|
void load_frame_params(const char *model_json); |
|
|
|
void load_frame_params(const char *model_json); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// get air density in kg/m^3
|
|
|
|
|
|
|
|
float get_air_density(float alt_amsl) const; |
|
|
|
|
|
|
|
|
|
|
|
struct Model model; |
|
|
|
struct Model model; |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
@ -163,9 +166,6 @@ private: |
|
|
|
Battery *battery; |
|
|
|
Battery *battery; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
// get air density in kg/m^3
|
|
|
|
|
|
|
|
float get_air_density(float alt_amsl) const; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// json parsing helpers
|
|
|
|
// json parsing helpers
|
|
|
|
#if USE_PICOJSON |
|
|
|
#if USE_PICOJSON |
|
|
|
void parse_float(picojson::value val, const char* label, float ¶m); |
|
|
|
void parse_float(picojson::value val, const char* label, float ¶m); |
|
|
|