Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of workinQM_5thJan_azad by
Diff: TCTM.cpp
- Revision:
- 64:241406992336
- Parent:
- 63:55d32e7dcad7
- Child:
- 66:a5d2b8dc6b9e
--- a/TCTM.cpp Fri Oct 28 11:47:20 2016 +0000 +++ b/TCTM.cpp Fri Oct 28 17:50:49 2016 +0000 @@ -522,12 +522,13 @@ for(int i=0;i<16;i++) { - telemetry[90+i] = (quant_data.voltage_quant[i]>>3)+(quant_data.voltage_quant[i]>>1); /*multiplied by 10 */ + telemetry[90+i] = (uint8_t)(quant_data.voltage_quant[i]<<3)+(quant_data.voltage_quant[i]<<1); /*multiplied by 10 */ + //printf("\n\r %d \t %d",i,telemetry[90+i]); telemetry[106+i] = quant_data.current_quant[i]; /*check the working*/ } - telemetry[122] = quant_data.Batt_voltage_quant; + telemetry[122] = (quant_data.Batt_voltage_quant<<3)+(quant_data.Batt_voltage_quant<<1); telemetry[123] = quant_data.BAE_temp_quant; telemetry[124] = (uint8_t)(actual_data.Batt_gauge_actual[1]); telemetry[125] = quant_data.Batt_temp_quant[0];