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 QM_BAE_review_1 by
Diff: main.cpp
- Revision:
- 26:c8655e0ec73a
- Parent:
- 22:950dbe9fbeb8
--- a/main.cpp Sat Jul 02 14:06:10 2016 +0000
+++ b/main.cpp Sun Jul 03 19:25:48 2016 +0000
@@ -405,8 +405,7 @@
//FLOAT TO UINT_8 CONVERSION FUNCTION
extern uint8_t float_to_uint8(float min,float max,float val);
-
-#define print 0
+
void F_ACS()
{
@@ -427,7 +426,7 @@
ACS_DATA_ACQ_STATUS = (uint8_t) FCTN_ATS_DATA_ACQ();
#if print
- printing the angular speed and magnetic field values
+ //printing the angular speed and magnetic field values
pc.printf("gyro values\n\r");
for(int i=0; i<3; i++)
{
@@ -598,7 +597,7 @@
t_eps.start();
EPS_MAIN_STATUS = 1; // Set EPS main status
FLAG();
- EPS_MAIN_COUNTER+=1;
+ EPS_MAIN_COUNTER++;
//if print
pc.printf("\n\rEntered EPS %f\n",t_start.read());
//#endif
@@ -624,7 +623,7 @@
{
EPS_STATUS = 1;//EPS_STATUS = EPS_BATTERY_HEATER_DISABLED
}
- FCTN_BATTERYGAUGE_MAIN(actual_data.Batt_gauge_actual);
+ FCTN_BATTERYGAUGE_MAIN(actual_data.Batt_gauge_actual, temp);
if (actual_data.Batt_gauge_actual[1] == 200) //data not received
{
actual_data.power_mode = 1;
