Changeset 38c49736fe32fa0a12be8e01c1e65f9f2ec6984e
- Timestamp:
- 02/22/10 12:20:03 (5 months ago)
- Author:
- Tobias Bieniek <Tobias.Bieniek@…>
- Parents:
- 971f1b6bc6e01e2707b533b7f7661c544e94bebb
- Children:
- 8fbaec7ac54405201416b0af9a2a3f55d8384067
- git-committer:
- Tobias Bieniek <Tobias.Bieniek@gmx.de> / 2010-02-22T10:20:03Z+0100
- Message:
-
Audio/VegaVoice: Replaced *MODIFY by ToSysUnit?()/ToUserUnit()
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r959be8
|
r38c497
|
|
| 350 | 350 | // Later: "AVERAGE THREE POINT FOUR" |
| 351 | 351 | _stprintf(text, _T(",%d"), VWI_CIRCLING); |
| 352 | | TextToDigitsSmall(text, Calculated->Average30s*LIFTMODIFY); |
| | 352 | TextToDigitsSmall(text, Units::ToUserUnit(Calculated->Average30s, |
| | 353 | Units::VerticalSpeedUnit)); |
| 353 | 354 | DoSend(Time, text); |
| 354 | 355 | return true; |
| … |
… |
|
| 376 | 377 | // "WAYPOINT BELOW TWO HUNDRED" |
| 377 | 378 | |
| 378 | | if (Calculated->WaypointDistance*DISTANCEMODIFY<20.0) { |
| | 379 | if (Units::ToUserUnit(Calculated->WaypointDistance, |
| | 380 | Units::DistanceUnit) < 20.0) { |
| 379 | 381 | |
| 380 | 382 | if (!settings.EnableVoiceWaypointDistance) return false; |
| 381 | 383 | |
| 382 | 384 | _stprintf(text, _T(",%d"), VWI_PLUS); |
| 383 | | TextToDigitsLarge(text, Calculated->WaypointDistance*DISTANCEMODIFY); |
| | 385 | TextToDigitsLarge(text, Units::ToUserUnit(Calculated->WaypointDistance, |
| | 386 | Units::DistanceUnit)); |
| 384 | 387 | DoSend(Time, text); |
| 385 | 388 | return true; |
| … |
… |
|
| 391 | 394 | |
| 392 | 395 | // TODO feature: BELOW FOUR HUNDRED |
| 393 | | double tad = Calculated->TaskAltitudeDifference*ALTITUDEMODIFY; |
| | 396 | double tad = Units::ToUserUnit(Calculated->TaskAltitudeDifference, |
| | 397 | Units::AltitudeUnit); |
| 394 | 398 | if (fabs(tad)>100) { |
| 395 | 399 | if (tad>0) { |