34 Submarine(
const char *home_str,
const char *frame_str);
41 return new Submarine(home_str, frame_str);
72 Thruster(int8_t _servo,
float roll_fac,
float pitch_fac,
float yaw_fac,
float throttle_fac,
float forward_fac,
float lat_fac) :
75 linear =
Vector3f(forward_fac, lat_fac, -throttle_fac);
76 rotational =
Vector3f(roll_fac, pitch_fac, yaw_fac);
bool on_ground() const override
Vector3< float > Vector3f
const class SITL::Submarine::FrameConfig frame_proprietary
float bouyancy_acceleration
Submarine(const char *home_str, const char *frame_str)
void update(const struct sitl_input &input)
float calculate_buoyancy_acceleration()
Calculate buoyancy force of the frame.
void calculate_forces(const struct sitl_input &input, Vector3f &rot_accel, Vector3f &body_accel)
static Aircraft * create(const char *home_str, const char *frame_str)
Thruster(int8_t _servo, float roll_fac, float pitch_fac, float yaw_fac, float throttle_fac, float forward_fac, float lat_fac)
const float water_density