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 RAJANGAM_REVIEW_BAE_CODE by
Diff: TCTM.cpp
- Revision:
- 62:3a4a37d3d4a7
- Parent:
- 58:c4203e162d12
--- a/TCTM.cpp Sun Sep 04 18:05:31 2016 +0000
+++ b/TCTM.cpp Fri Oct 28 10:37:15 2016 +0000
@@ -413,7 +413,7 @@
telemetry[31] = (telemetry[31]<<1) | EPS_MAIN_STATUS;
telemetry[31] = (telemetry[31]<<1) | EPS_BTRY_TMP_STATUS;
telemetry[31] = (telemetry[31]<<3) | EPS_STATUS;
- telemetry[31] = (telemetry[31]<<2) | CDMS_SW_STATUS;
+ telemetry[31] = (telemetry[31]<<2) | CDMS_SW_STATUS;
// telemetry[30] = (telemetry[30]<<1) | EPS_BTRY_HTR_STATUS;//new to : implement
telemetry[32] = EPS_BTRY_HTR; //new to : implement
@@ -522,8 +522,9 @@
for(int i=0;i<16;i++)
{
- telemetry[90+i] = quant_data.voltage_quant[i];
+ telemetry[90+i] = (quant_data.voltage_quant[i]>>3)+(quant_data.voltage_quant[i]>>1); /*multiplied by 10 */
telemetry[106+i] = quant_data.current_quant[i];
+ /*check the working*/
}
telemetry[122] = quant_data.Batt_voltage_quant;
@@ -554,11 +555,11 @@
for(int i;i<16;i++)
{
- telemetry[i+4] = bae_HK_minmax.voltage_max[i];
+ telemetry[i+4] = (bae_HK_minmax.voltage_max[i]<<3)+(bae_HK_minmax.voltage_max[i]<<2);
telemetry[i+20] = bae_HK_minmax.current_max[i];
}
- telemetry[36] = bae_HK_minmax.Batt_voltage_max;
+ telemetry[36] = (bae_HK_minmax.Batt_voltage_max<<3)+(bae_HK_minmax.Batt_voltage_max<<2);
telemetry[37] = bae_HK_minmax.BAE_temp_max;
telemetry[38] = bae_HK_minmax.Batt_SOC_max;
@@ -581,12 +582,12 @@
/*min data*/
for(int i;i<16;i++)
- telemetry[i+54] = bae_HK_minmax.voltage_min[i];
+ telemetry[i+54] = (bae_HK_minmax.voltage_min[i]<<3)+(bae_HK_minmax.voltage_min[i]<<1);
for(int i;i<16;i++)
telemetry[i+70] = bae_HK_minmax.current_min[i];
- telemetry[86] = bae_HK_minmax.Batt_voltage_min;
+ telemetry[86] = (bae_HK_minmax.Batt_voltage_min<<3)+(bae_HK_minmax.Batt_voltage_min<<1);
telemetry[87] = bae_HK_minmax.BAE_temp_min;
/*battery soc*/
