Skip to content

Commit

Permalink
SITL: fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bnsgeyer committed Nov 2, 2024
1 parent 073d2fa commit 25040d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/SITL/SIM_Helicopter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ void Helicopter::update(const struct sitl_input &input)

float tail_rotor = (_servos_delayed[3]-1000) / 1000.0f;

// determine RPM
rpm[0] = update_rpm(motor_interlock, dt);

// collective adjusted for coll_min(1460) to coll_max(1740) as 0 to 1 with 1500 being zero thrust
float coll = 3.51 * ((swash1+swash2+swash3) / 3.0f - 0.5f);

// determine RPM
rpm[0] = update_rpm(rpm[0], rsc, eng_torque, coll, dt);

// Calculate rotor tip path plane angle
float roll_cyclic = 1.283f * (swash1 - swash2);
float pitch_cyclic = 1.48f * ((swash1+swash2) / 2.0f - swash3);
Expand Down

0 comments on commit 25040d9

Please sign in to comment.