1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 04:45:17 +03:00

Lua docs update: playNumber units updated

This commit is contained in:
Damjan Adamic 2017-01-30 21:53:06 +01:00
parent a45aafff33
commit dcbfa92b03

View file

@ -667,64 +667,35 @@ Play a numerical value (text to speech)
@status current Introduced in 2.0.0 @status current Introduced in 2.0.0
@notice 2.0 Only - automatic conversion of units for distance, speed, and temperature.
OpenTX 2.0: | 2.2 Unit | Sound |
| --- | --- |
| Unit | Sound | File (.wav) | Automatic conversion rules | | 0 | (no unit played) |
| --- | --- | --- | --- | | 1 | Volts |
| 0 | --- | --- (no unit played) | | | 2 | Amps |
| 1 | Volts | 116 | | | 3 | Milliamps |
| 2 | Amps | 118 | | | 4 | Knots |
| 3 | Meters per Second | 120 | | | 5 | Meters per Second |
| 4 | *missing file* | 122 | | | 6 | Feet per Second |
| 5 | Kilometers per Hour / Miles per Hour | 124 / 142 | Input value is KPH | | 7 | Kilometers per Hour|
| 6 | Meters / Feet | 126 / 140 | Input value is meters | | 8 | Miles per Hour |
| 7 | Degrees | 128 | Input value is celsius, converted to Fahrenheit for Imperial | | 9 | Meters |
| 8 | Percent | 130 | | | 10 | Feet |
| 9 | Milliamps | 132 | | | 11 | Degrees Celsius |
| 10 | Milliamp Hours | 134 | | | 12 | Degrees Fahrenheit |
| 11 | Watts | 136 | | | 13 | Percent |
| 12 | DB | 138 | | | 14 | Milliamp Hours |
| 13 | Feet | 140 | | | 15 | Watts |
| 14 | Kilometers per Hour / Miles per Hour | 124 / 142 | Input value is in Knots, converted to KPH or MPH | | 16 | DB |
| 15 | Hours | 144 | | | 17 | RPM |
| 16 | Minutes | 146 | | | 18 | Gee |
| 17 | Seconds | 148 | | | 19 | Degrees |
| 18 | RPM | 150 | | | 20 | Radians |
| 19 | Gee | 152 | | | 21 | Milliliters |
| 20 | Degrees | 128 | | | 22 | Fluid Ounces |
| 23 | Hours |
| 24 | Minutes |
OpenTX 2.1: | 25 | Seconds |
| 2.1 Unit | Sound | Sound File (.wav) |
| --- | --- | --- |
| 0 | --- | --- (no unit played) | |
| 1 | Volts | 116 |
| 2 | Amps | 118 |
| 3 | Milliamps | 120 |
| 4 | Knots | 122 |
| 5 | Meters per Second | 124 |
| 6 | Feet per Second | 126 |
| 7 | Kilometers per Hour | 128 |
| 8 | Miles per Hour | 130 |
| 9 | Meters | 132 |
| 10 | Feet | 134 |
| 11 | Degrees Celsius | 136 |
| 12 | Degrees Fahrenheit | 138 |
| 13 | Percent | 140 |
| 14 | Milliamp Hours | 142 |
| 15 | Watts | 144 |
| 16 | DB | 146 |
| 17 | RPM | 148 |
| 18 | Gee | 150 |
| 19 | Degrees | 152 |
| 20 | Milliliters | 154 |
| 21 | Fluid Ounces | 156 |
| 22 | Hours | 158 |
| 23 | Minutes | 160 |
| 24 | Seconds | 162 |
*/ */
static int luaPlayNumber(lua_State * L) static int luaPlayNumber(lua_State * L)