minTelemValue(...) rewritten

This commit is contained in:
bsongis
2014-06-21 20:03:36 +02:00
parent 1116bbb167
commit 026213fcd5
+20 -21
View File
@@ -701,32 +701,31 @@ void setGVarValue(uint8_t idx, int16_t value, int8_t phase)
#endif #endif
#if defined(FRSKY) #if defined(CPUARM) && defined(FRSKY)
ls_telemetry_value_t minTelemValue(uint8_t channel) ls_telemetry_value_t minTelemValue(uint8_t channel)
{ {
switch (channel) { switch (channel) {
case TELEM_FUEL: case TELEM_TIMER1:
#if defined(CPUARM) case TELEM_TIMER2:
case TELEM_TX_TIME: return -3600;
case TELEM_SWR: case TELEM_ALT:
#endif case TELEM_MIN_ALT:
case TELEM_RSSI_TX: case TELEM_MAX_ALT:
case TELEM_RSSI_RX: case TELEM_GPSALT:
return 0; return -500;
case TELEM_HDG: case TELEM_T1:
return 0; case TELEM_MAX_T1:
#if defined(CPUARM) case TELEM_T2:
case TELEM_SPEED: case TELEM_MAX_T2:
case TELEM_MAX_SPEED: return -30;
case TELEM_ASPEED: case TELEM_ACCx:
case TELEM_MAX_ASPEED: case TELEM_ACCy:
return 0; case TELEM_ACCz:
default: return -255;
return -30000; case TELEM_VSPEED:
#else return -125;
default: default:
return 0; return 0;
#endif
} }
} }