mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 17:37:09 +01:00
refactor(physics): the demand of the integrated controller is private to the vehicle
eimic_real, the demand of the integrated controller the vehicle goes by with
the speed control counted, which TDynamicObject and the consist braking set
for the vehicle that leads, is private: EimicReal() and SetEimicReal(). The
field of the same name of drivingaid::input stays as it is.
No change in behaviour: the golden traces recorded on dfb43c4f match bit for bit.
This commit is contained in:
@@ -286,13 +286,13 @@ TEST_CASE("crew: the power an integrated handle asked for goes when the driver l
|
||||
impuls->CabActivisation();
|
||||
impuls->SetMainCtrlPos(impuls->MainCtrlPosNo);
|
||||
impuls->eimic = 0.8;
|
||||
impuls->eimic_real = 0.8;
|
||||
impuls->SetEimicReal(0.8);
|
||||
|
||||
crew::secure(impuls.physics(), impuls.physics());
|
||||
|
||||
CHECK(impuls->MainCtrlPos() == impuls->MainCtrlNoPowerPos());
|
||||
CHECK(impuls->eimic == 0.0);
|
||||
CHECK(impuls->eimic_real == 0.0);
|
||||
CHECK(impuls->EimicReal() == 0.0);
|
||||
CHECK(impuls->brakes.HandlePosition() == static_cast<int>(impuls->brakes.driverValve->GetPos(bh_EB)));
|
||||
CHECK(impuls->CabOccupied() == 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user