lego: Implement/match CalculateNewVel (#66)

* lego: Implement/match CalculateNewVel

* remove braces

* consistency
This commit is contained in:
Christian Semmler
2023-07-01 01:24:46 +02:00
committed by GitHub
parent 428b5ae8db
commit d7b8d6463b
4 changed files with 43 additions and 16 deletions

View File

@@ -40,6 +40,7 @@ public:
void SetTargets(int p_hPos, int p_vPos, MxBool p_accel);
float CalculateNewTargetSpeed(int p_pos, int p_center, float p_maxSpeed);
float CalculateNewAccel(int p_pos, int p_center, float p_maxAccel, int p_minAccel);
float CalculateNewVel(float p_targetVel, float p_currentVel, float p_accel, float p_time);
private:
int m_hMax;