added sensor1 and sensor 2 values

pull/67/head
alanbjohnston 5 years ago committed by GitHub
parent 522d07b5e8
commit 0d69a8e72e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -885,7 +885,8 @@ int get_tlm_fox() {
// 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 RXTemperature = 0;
int xAccel = 2048, yAccel = 2048, zAccel = 2048, temp = 2240, pressure = 1000, altitude = 1000;
int xAccel = 2048, yAccel = 2048, zAccel = 2048, temp = 224, pressure = 1000, altitude = 1000;
int sensor1 = 0, sensor2 = 2048;
short int buffer_test[bufLen];
int buffSize;
@ -1166,14 +1167,17 @@ if (payload == ON)
encodeA(b, 33 + head_offset,pressure); // Pressure
encodeB(b, 34 + head_offset,altitude); // Altitude
encodeB(b, 46 + head_offset,PSUCurrent);
encodeA(b, 36 + head_offset, RXTemperature);
encodeA(b, 39 + head_offset, IHUcpuTemp);
encodeB(b, 40 + head_offset, xAngularVelocity);
encodeA(b, 42 + head_offset, yAngularVelocity);
encodeB(b, 43 + head_offset, zAngularVelocity);
encodeA(b, 45 + head_offset, sensor1);
encodeB(b, 46 + head_offset,PSUCurrent);
encodeA(b, 47 + head_offset, sensor2);
encodeB(b, 51 + head_offset, STEMBoardFailure);

Loading…
Cancel
Save

Powered by TurnKey Linux.