Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add part bonus to rotor diameter in thrust calculations #79328

Merged
merged 4 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/JSON/JSON_INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -3275,7 +3275,8 @@ Examples:

#### The following optional fields are specific to ROTORs.
```c++
"rotor_diameter": 15, // Rotor diameter in meters. Larger rotors provide more lift.
"rotor_diameter": 15, // Rotor diameter in meters. Larger rotors provide more lift. This also determines the size of the rotor during collisions.
"bonus": 5, // Adds additional rotor diameter during lift calculations. This does not affect rotor collision. This is useful for things like ducted fans or vtol engines that have good lift but smaller danger zones.
```

#### The following optional fields are specific to WORKBENCHes.
Expand Down
3 changes: 2 additions & 1 deletion src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4563,7 +4563,8 @@ double vehicle::lift_thrust_of_rotorcraft( const bool fuelled, const bool safe )
{
int rotor_area_in_feet = 0;
for( const int rotor : rotors ) {
double rotor_diameter_in_feet = parts[rotor].info().rotor_info->rotor_diameter * 3.28084;
double rotor_diameter_in_feet = ( parts[rotor].info().rotor_info->rotor_diameter +
parts[rotor].info().bonus ) * 3.28084;
rotor_area_in_feet += ( M_PI / 4 ) * std::pow( rotor_diameter_in_feet, 2 );
}
// take off 15 % due to the imaginary tail rotor power.
Expand Down
Loading