16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 15:09:19 +02:00

Additional parameters for cooling fans

This commit is contained in:
Królik Uszasty
2021-01-03 19:46:04 +01:00
committed by tmj-fstate
parent 8dd1ca19d4
commit f32b1efb18
2 changed files with 26 additions and 2 deletions

View File

@@ -821,8 +821,11 @@ private:
struct cooling_fan : public basic_device {
// config
float speed { 0.f }; // cooling fan rpm; either fraction of parent rpm, or absolute value if negative
float sustain_time { 0.f }; // time of sustaining work of cooling fans after stop
float min_start_velocity { -1.f }; // minimal velocity of vehicle, when cooling fans activate
// ld outputs
float revolutions { 0.f }; // current fan rpm
float stop_timer { 0.f }; // current time, when shut off condition is active
};
// basic approximation of a fuel pump