No more vario on GPS. Too poor precision. Too poor update frequency. It cannot work.

This commit is contained in:
bsongis
2012-04-27 16:05:04 +00:00
parent dc85a648d2
commit 124db1cc7f
5 changed files with 4 additions and 8 deletions
+1 -4
View File
@@ -167,7 +167,7 @@ int16_t applyChannelRatio(uint8_t channel, int16_t val)
return ((int32_t)val+g_model.frsky.channels[channel].offset) * (g_model.frsky.channels[channel].ratio << g_model.frsky.channels[channel].multiplier) * 2 / 51;
}
void evalVario(int16_t altitude_bp, uint8_t altitude_ap)
inline void evalVario(int16_t altitude_bp, uint8_t altitude_ap)
{
int16_t varioAltitude_cm = altitude_bp * 100 + (altitude_bp > 0 ? altitude_ap : -altitude_ap);
@@ -293,9 +293,6 @@ void parseTelemHubByte(uint8_t byte)
else if (frskyHubData.gpsDistNeeded || g_menuStack[0] == menuProcFrsky) {
getGpsDistance();
}
if (g_model.varioSource == VARIO_SOURCE_GPS) {
evalVario(frskyHubData.gpsAltitude_bp, frskyHubData.gpsAltitude_ap);
}
break;
case offsetof(FrskyHubData, gpsSpeed_bp):
-1
View File
@@ -377,7 +377,6 @@ enum TelemetrySource {
enum VarioSource {
VARIO_SOURCE_NONE = 0,
VARIO_SOURCE_BARO,
VARIO_SOURCE_GPS,
VARIO_SOURCE_A1,
VARIO_SOURCE_A2,
VARIO_SOURCE_LAST
+1 -1
View File
@@ -144,7 +144,7 @@
#endif
#define LEN_VARIOSRC "\004"
#define TR_VARIOSRC "None""Baro""GPS ""A1 ""A2 "
#define TR_VARIOSRC "None""Baro""A1 ""A2 "
#define LEN_GPSFORMAT "\004"
#define TR_GPSFORMAT "HMS NMEA"
+1 -1
View File
@@ -144,7 +144,7 @@
#endif
#define LEN_VARIOSRC "\004"
#define TR_VARIOSRC "None""Baro""GPS ""A1 ""A2 "
#define TR_VARIOSRC "None""Baro""A1 ""A2 "
#define LEN_GPSFORMAT "\004"
#define TR_GPSFORMAT "HMS NMEA"
+1 -1
View File
@@ -144,7 +144,7 @@
#endif
#define LEN_VARIOSRC "\004"
#define TR_VARIOSRC "None""Baro""GPS ""A1 ""A2 "
#define TR_VARIOSRC "None""Baro""A1 ""A2 "
#define LEN_GPSFORMAT "\004"
#define TR_GPSFORMAT "HMS NMEA"