mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 22:09:19 +02:00
reformat: parameters can be made pointer to const
This commit is contained in:
@@ -2310,7 +2310,7 @@ class TMoverParameters
|
||||
bool CurrentSwitch(bool State);
|
||||
bool IsMotorOverloadRelayHighThresholdOn() const;
|
||||
void UpdateBatteryVoltage(double dt);
|
||||
double ComputeMovement(double dt, double dt1, const TTrackShape &Shape, TTrackParam &Track, TTractionParam &ElectricTraction, TLocation const &NewLoc,
|
||||
double ComputeMovement(double dt, double dt1, const TTrackShape &Shape, const TTrackParam &Track, const TTractionParam &ElectricTraction, TLocation const &NewLoc,
|
||||
TRotation const &NewRot); // oblicza przesuniecie pojazdu
|
||||
double FastComputeMovement(double dt, const TTrackShape &Shape, TTrackParam &Track, TLocation const &NewLoc, TRotation const &NewRot); // oblicza przesuniecie pojazdu - wersja zoptymalizowana
|
||||
void compute_movement_(double Deltatime);
|
||||
|
||||
@@ -1354,7 +1354,7 @@ void TMoverParameters::Derail(DerailReason const Reason)
|
||||
// *************************************************************************************************
|
||||
// Oblicza przemieszczenie taboru
|
||||
// *************************************************************************************************
|
||||
double TMoverParameters::ComputeMovement(const double dt, const double dt1, const TTrackShape &Shape, TTrackParam &Track, TTractionParam &ElectricTraction, TLocation const &NewLoc, TRotation const &NewRot)
|
||||
double TMoverParameters::ComputeMovement(const double dt, const double dt1, const TTrackShape &Shape, const TTrackParam &Track, const TTractionParam &ElectricTraction, TLocation const &NewLoc, TRotation const &NewRot)
|
||||
{
|
||||
constexpr double Vepsilon = 1e-5;
|
||||
constexpr double Aepsilon = 1e-3; // ASBSpeed=0.8;
|
||||
|
||||
Reference in New Issue
Block a user