Update main.c fix b

fc-jy
Alan Johnston 11 months ago committed by GitHub
parent 90e463b122
commit 7767fabebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2333,8 +2333,8 @@ void get_tlm_fc() {
source_bytes[FC_EPS + 4] = 0xff & (z >> 4); // mV source_bytes[FC_EPS + 4] = 0xff & (z >> 4); // mV
source_bytes[FC_EPS + 5] = 0xc0 & (z << 4); source_bytes[FC_EPS + 5] = 0xc0 & (z << 4);
source_bytes[FC_EPS + 5] = source_bytes[FC_EPS + 5] | (0x0d & (b >> 8)); // mV source_bytes[FC_EPS + 5] = source_bytes[FC_EPS + 5] | (0x3f & (b >> 10)); // mV
source_bytes[FC_EPS + 6] = 0xff & (b << 6); source_bytes[FC_EPS + 6] = 0xff & (b << 2);
/* /*
source_bytes[FC_EPS + 0] = 0xff & (((unsigned int)((voltage[map[PLUS_X]] + voltage[map[MINUS_X]]) * 1000) >> 8)); // mV source_bytes[FC_EPS + 0] = 0xff & (((unsigned int)((voltage[map[PLUS_X]] + voltage[map[MINUS_X]]) * 1000) >> 8)); // mV
source_bytes[FC_EPS + 1] = 0xff & ((unsigned int)((voltage[map[PLUS_X]] + voltage[map[MINUS_X]]) * 1000)); source_bytes[FC_EPS + 1] = 0xff & ((unsigned int)((voltage[map[PLUS_X]] + voltage[map[MINUS_X]]) * 1000));

Loading…
Cancel
Save

Powered by TurnKey Linux.