Skip to content

Commit

Permalink
consider thrust in aero model
Browse files Browse the repository at this point in the history
previously I removed this assuming that it would add the forward thrust
as a resulting force. but it just considers its influence on the wing
segment.
  • Loading branch information
mbjd committed Jan 29, 2025
1 parent 34482bf commit d8834d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/simulation/simulator_sih/sih.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ void Sih::sensor_step()
const float dt = (now - _last_run) * 1e-6f;
_last_run = now;

if (fabs(dt - 0.004f) > 1e-6f) {
PX4_WARN("weird dt: %f", (double) dt);
}

read_motors(dt);

generate_force_and_torques();
Expand Down Expand Up @@ -351,7 +355,7 @@ void Sih::generate_force_and_torques()

// thrust 0 because it is already contained in _T_B. in
// equations_of_motion they are all summed into sum_of_forces_E
generate_fw_aerodynamics(_u[4], _u[5], _u[6], 0);
generate_fw_aerodynamics(_u[4], _u[5], _u[6], _u[7]);
}
}

Expand Down

0 comments on commit d8834d1

Please sign in to comment.