mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
SITL: Add missing shove forces in SIM_Submarine
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
7a20410752
commit
e18883fddf
@ -81,6 +81,8 @@ void Submarine::calculate_forces(const struct sitl_input &input, Vector3f &rot_a
|
||||
calculate_drag_force(gyro, frame_property.angular_drag_coefficient, angular_drag_forces);
|
||||
// Add forces in body frame accel
|
||||
rot_accel -= angular_drag_forces / frame_property.weight;
|
||||
|
||||
add_shove_forces(rot_accel, body_accel);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user