fixed BME280temperature

pull/72/head
alanbjohnston 5 years ago committed by GitHub
parent 248490a82f
commit 30f1abd698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -965,7 +965,7 @@ int get_tlm_fox() {
// int xAngularVelocity = 2078, yAngularVelocity = 2078, zAngularVelocity = 2078; // XAxisAngularVelocity Y and Z set to 0 // int xAngularVelocity = 2078, yAngularVelocity = 2078, zAngularVelocity = 2078; // XAxisAngularVelocity Y and Z set to 0
int xAngularVelocity = 2048, yAngularVelocity = 2048, zAngularVelocity = 2048; // XAxisAngularVelocity Y and Z set to 0 int xAngularVelocity = 2048, yAngularVelocity = 2048, zAngularVelocity = 2048; // XAxisAngularVelocity Y and Z set to 0
int RXTemperature = 0; int RXTemperature = 0;
int xAccel = 2048, yAccel = 2048, zAccel = 2048, temp = 0, BME280pressure = 0, BME280altitude = 0, BME280humidity = 0, BME280temperature, spin = 0; int xAccel = 2048, yAccel = 2048, zAccel = 2048, temp = 0, BME280pressure = 0, BME280altitude = 0, BME280humidity = 0, BME280temperature = 0, spin = 0;
int sensor1 = 0, sensor2 = 2048, sensor3 = 2048; int sensor1 = 0, sensor2 = 2048, sensor3 = 2048;
short int buffer_test[bufLen]; short int buffer_test[bufLen];
@ -1306,7 +1306,7 @@ if (payload == ON)
encodeA(b, 9 + head_offset, battCurr); encodeA(b, 9 + head_offset, battCurr);
encodeB(b, 10 + head_offset,BME280temperature); // Temp encodeB(b, 10 + head_offset,(int)(BME280temperature * 10 + 0.5)); // Temp
if (mode == FSK) if (mode == FSK)
{ {

Loading…
Cancel
Save

Powered by TurnKey Linux.