mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 12:14:10 -04:00
SITL: Sub: Use proper phyisics for thrusters
This commit is contained in:
parent
195efaeec0
commit
16f9a29da9
@ -83,9 +83,8 @@ void Submarine::calculate_forces(const struct sitl_input &input, Vector3f &rot_a
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 2.5 scalar for approximate real-life performance of T200 thruster
|
// 2.5 scalar for approximate real-life performance of T200 thruster
|
||||||
body_accel += t.linear * output * 2.5;
|
body_accel += t.linear * output * frame_property.thrust / frame_property.weight;
|
||||||
|
rot_accel += t.rotational * output * frame_property.thrust * frame_property.thruster_mount_radius / frame_property.moment_of_inertia;
|
||||||
rot_accel += t.rotational * output;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Limit movement at the sea floor
|
// Limit movement at the sea floor
|
||||||
|
Loading…
Reference in New Issue
Block a user