jerrrrycho
85640589aa
refactor(sonar): avoid side effects inside typeid operands (cpp:S5279)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:26:40 +02:00
jerrrrycho
0bf013fef9
refactor(sonar): add braces around nested if-else (cpp:S5261)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:25:40 +02:00
jerrrrycho
51337cb1b7
refactor(sonar): use std::ranges algorithms and std::erase(_if) (cpp:S6197)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:24:06 +02:00
jerrrrycho
6445ef728a
refactor(sonar): add default cases to switch statements (cpp:S3562)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:22:01 +02:00
jerrrrycho
c67b8be22e
refactor(sonar): split chained assignments (cpp:S1121)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:20:06 +02:00
jerrrrycho
03652a5934
refactor(sonar): use range-based loops and ranges algorithms (cpp:S5566)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:13:12 +02:00
jerrrrycho
b6349b76e3
refactor(sonar): use structured bindings for pair access (cpp:S6005)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:06:32 +02:00
jerrrrycho
9c7043d013
refactor(sonar): remove unused variables, captures and private fields (cpp:S1481, cpp:S1068)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:03:19 +02:00
jerrrrycho
ce786c22ce
refactor(sonar): remove dead stores (cpp:S1854)
...
Side effects (e.g. LISTLINE++) are kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:58:05 +02:00
jerrrrycho
41e802eb7a
refactor(sonar): remove redundant parentheses (cpp:S1110)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:55:46 +02:00
jerrrrycho
95bc9bd511
refactor(sonar): use try_emplace for map insertion (cpp:S6030)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:51:29 +02:00
jerrrrycho
9b89a5d887
refactor(sonar): scope single-use variables in if init-statements (cpp:S6004)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:44:18 +02:00
jerrrrycho
f8104bd0dd
refactor(sonar): merge collapsible nested if statements (cpp:S1066)
...
Comments that preceded the inner if are kept above the merged statement.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:39:11 +02:00
jerrrrycho
3198cabc78
refactor(sonar): declare non-mutating member functions const (cpp:S5817)
...
Virtual functions are left untouched so overrides keep matching.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:26:48 +02:00
jerrrrycho
1f256e9593
refactor(sonar): mark unused parameters (cpp:S1172)
...
Unused names are commented out; parameters used only on some platforms
are marked [[maybe_unused]].
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:18:45 +02:00
jerrrrycho
8c23c1fe2b
refactor(sonar): make narrowing conversions explicit (cpp:S5276)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:16:28 +02:00
jerrrrycho
7e8081d904
refactor(sonar): remove redundant casts (cpp:S1905)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:06:37 +02:00
jerrrrycho
7b3109061e
refactor(sonar): use =default for trivial special members (cpp:S3490)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:05:45 +02:00
jerrrrycho
65ded920d2
refactor(sonar): remove empty statements, one declaration per statement (cpp:S1116, cpp:S1659)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:03:30 +02:00
jerrrrycho
79bd0c8e91
fix(sonar): addressing reliability/security issues ( #202 )
2026-10-04 20:00:13 +02:00
Ryba04
763a76d48c
Expose dynamic brake controller position to python script dictionary
2026-08-19 00:55:24 +02:00
jakubg1
1929119db6
Simplify lamp logic, add new lights for 810 vehicles ( #148 )
...
Simplified lamp logic by reducing unnecessary brackets, `if` statements, ternary operators and boolean comparisons.
Added new lamps:
- `i-gear1` - 1st gear in the gearbox is active
- `i-gear2` - 2nd gear in the gearbox is active
- `i-hydrolockup` - The gearbox is locking the engine and wheels together
Additionally, fixed motor overload and differential relay lights not turning off when the battery is turned off.
2026-07-21 22:44:04 +02:00
jerrrrycho
d85096f64d
reformat: remove redundant parentheses
2026-06-30 21:19:46 +02:00
jerrrrycho
bf147dd155
refactor: replace null with nullptr
2026-06-29 02:48:25 +02:00
docentYT
4a67b4b2a9
Fix conflict
2026-05-05 23:32:59 +02:00
cb4b6b9a4f
Separate electrodynamic and localbrake levers
2026-05-03 21:51:16 +02:00
7acc34df3e
Merge pull request #97 from docentYT/migrate-from-dumb3d-to-glm
...
Migrate from dumb3d to glm
2026-04-28 19:46:46 +02:00
docentYT
ca839652bf
Use the sq function to force constexpr expressions for numeric literals and enhance readability
2026-04-28 13:23:14 +02:00
docentYT
d5d1825e38
Remove dumb3d
2026-04-27 23:03:47 +02:00
docentYT
0fcdf98392
more glm instead of Math3D in vehicle
2026-04-27 21:57:13 +02:00
docentYT
ef852b4307
Fix model rotation by changing glm::dmat4 BasisChange definition
2026-04-27 21:28:06 +02:00
docentYT
fae68642bc
use glm instead of Math3D in vehicle
...
WARNING: Model rotation is broken
2026-04-27 13:07:38 +02:00
6177cfb01d
Add radiocall1
2026-04-19 04:15:25 +02:00
Agent
68fa78a582
feat(overheat): Add overheat indicator lamps for oil, water, water_aux, and engine
...
- Add engine_max_temp and engine_is_hot fields to heat_data structure
- Add EngineMaxTemperature field extraction from .fiz files
- Add engine overheat check comparing Ts with engine_max_temp
- Add four new overheat lamp indicators:
- i-oil_overheat
- i-water_overheat
- i-wateraux_overheat
- i-engine_overheat
- Add lamp update logic to turn on/off based on is_hot flags
- Add lamp initialization in clear_cab_controls()
This implements issue #77 - overheat lamps for diesel engines.
The lamps will turn on when:
- Oil temperature exceeds OilMaxTemperature
- Water temperature exceeds WaterMaxTemperature
- Auxiliary water temperature exceeds WaterAuxMaxTemperature
- Engine temperature exceeds EngineMaxTemperature
Each check includes 8-degree hysteresis to prevent rapid on/off cycling.
2026-04-01 23:26:39 +00:00
jerrrrycho
9f43dca48b
refactor: create paths namespace instead of global variables
2026-03-15 11:55:30 +01:00
copilot-swe-agent[bot]
7e49aa8740
Rewrite #includes to use explicit subdirectory paths
...
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com >
2026-03-14 19:16:48 +00:00
copilot-swe-agent[bot]
0531086bb9
Reorganize source files into logical subdirectories
...
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com >
2026-03-14 19:01:57 +00:00