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

security system magnet interaction enhancement, vehicle startup check tweak

This commit is contained in:
tmj-fstate
2021-05-19 21:57:41 +02:00
parent 05d8af139a
commit 873364d405
6 changed files with 67 additions and 13 deletions

View File

@@ -664,6 +664,8 @@ struct TSecuritySystem
int NextVelocityAllowed; /*predkosc pokazywana przez sygnalizacje kabinowa*/
bool RadioStop; // czy jest RadioStop
bool PoweredUp { false }; // helper, for detection of power state change
bool SHPLock{ false }; // prevents tps reset when true
double MagnetLocation { 0.0 }; // placement of tps magnet, as offset from vehicle front
inline bool is_beeping() const {
return TestFlag( Status, s_SHPalarm );