SITL: Frame and Motor changes to allow motor example

This commit is contained in:
Iampete1 2022-04-30 14:13:16 +01:00 committed by Andrew Tridgell
parent 6a8fff67f7
commit f864d93140
2 changed files with 4 additions and 4 deletions

View File

@ -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 &param); void parse_float(picojson::value val, const char* label, float &param);

View File

@ -18,8 +18,8 @@
#pragma once #pragma once
#include "SIM_Aircraft.h"
#include <AP_Math/AP_Math.h> #include <AP_Math/AP_Math.h>
#include <SITL/SITL_Input.h>
namespace SITL { namespace SITL {