/* check if you have new data */boolean ms5611_dataReady(void);/* then compute compensated temperature, pressure and alti values */void ms5611_updateData(void);/* and finally get computed values */double ms5611_getTemperature();double ms5611_getPressure();double ms5611_getAltitude();
#ifdef HAVE_BLUETOOTH if(millis() - lastSendBluetooth > 100){ //$LK8EX1,pressure(Pa),altitude(m),vario(cm/s),temperature(°C),battery(volt or %+1000),*checksum //sprintf(paquetBluetooth,"LK8EX1,%lu,%i,%i,%i,999",(unsigned long)(ms5611_getPressure()*100),(int)kalmanvert.getPosition(),(int)(kalmanvert.getVelocity()*100),(int)ms5611_getTemperature()); //$LXWP0,loger_stored (Y/N), IAS (kph), baroaltitude (m), vario (m/s),,,,,,heading of plane,windcourse (deg),windspeed (kph)*CS //sprintf(paquetBluetooth,"LXWP0,Y,0,%i,%i,,,,,,0,0,0",(int)kalmanvert.getPosition(),kalmanvert.getVelocity()); //Serial.print(F("$")); //Serial.print(paquetBluetooth); //Serial.print(F("*")); for(int i=0;i<strlen(paquetBluetooth);i++){ CheckSum ^= paquetBluetooth[i]; } //if (CheckSum<0x10) {Serial.print("0");} //Serial.println(CheckSum, HEX); //PRS XXXXX\n Serial.print(F("PRS ")); Serial.println((unsigned long)(ms5611_getPressure()*100), HEX); lastSendBluetooth = millis(); }#endif //HAVE_BLUETOOTH