getPitchForSpeed method
- double speedKmh
Gets appropriate pitch angle based on speed
Implementation
double getPitchForSpeed(double speedKmh) {
for (final entry in _speedPitchAngles.entries) {
if (speedKmh < entry.key) {
return entry.value;
}
}
return _speedPitchAngles.values.last; // Default for highest speeds
}