Log WSHH altitude

This commit is contained in:
romolo.manfredini@gmail.com
2012-09-26 22:23:33 +00:00
parent 0986ecd66d
commit dc53114edf
+10
View File
@@ -105,6 +105,11 @@ const pm_char * openLogs()
f_puts("GPS Date,GPS Time,Long,Lat,Course,GPS Speed,GPS Alt,Baro Alt,Temp1,Temp2,RPM,Fuel,Volts,AccelX,AccelY,AccelZ,", &g_oLogFile);
#endif
#if defined(WS_HOW_HIGH)
if (g_model.frsky.usrProto == USR_PROTO_WS_HOW_HIGH)
f_puts("WSHH Alt,", &g_oLogFile);
#endif
f_puts("Rud,Ele,Thr,Ail,P1,P2,P3,THR,RUD,ELE,ID0,ID1,ID2,AIL,GEA,TRN\n", &g_oLogFile);
}
else {
@@ -177,6 +182,11 @@ void writeLogs()
}
#endif
#if defined(WS_HOW_HIGH)
if (g_model.frsky.usrProto == USR_PROTO_WS_HOW_HIGH)
f_printf(&g_oLogFile, "%d,", frskyData.hub.baroAltitude_bp);
#endif
for (uint8_t i=0; i<NUM_STICKS+NUM_POTS; i++)
f_printf(&g_oLogFile, "%d,", calibratedStick[i]);