this program is designed for the CHITISAT's OBC, and is a prototype for the flight plan vs altitude

Dependencies:   ADS1015 BMP280 SDFileSystem SENSOR mbed

Revision:
3:fef99c7c92b5
Parent:
2:ba3323e788fc
Child:
4:c2bdc2bced76
diff -r ba3323e788fc -r fef99c7c92b5 main.cpp
--- a/main.cpp	Thu Jun 14 13:57:08 2018 +0000
+++ b/main.cpp	Thu Jun 14 14:22:30 2018 +0000
@@ -230,11 +230,13 @@
     led=0;
     Vcondicional=1; //apagando sensores
     sc.putc(sos);
-    obc.printf("sos: %d\n",sos);
+    for(int i=0;i<=9;i++)
+    {
+        obc.printf("sos: %d\n",sos);
+    }
     //obc.printf("%d\n",alt);
     //activar modo reset
     HAL_PWR_EnterSTANDBYMode ();
-
     //apagar obc
 }
 //********* Funciones
@@ -244,9 +246,10 @@
     IMU[0]=imu[0]=1;// mag.getMx();
     IMU[1]=imu[1]=2;// mag.getMy();
     IMU[2]=imu[2]=3;// mag.getMz();
+    /*
     uint8_t whoami = mpu6050.readByte(MPU6050_ADDRESS, WHO_AM_I_MPU6050);  // Read WHO_AM_I register for MPU-6050\
     if (whoami == 0x68) // WHO_AM_I should always be 0x68
-    {
+    {*/
         mpu6050.MPU6050SelfTest(SelfTest); // Start by performing self test and reporting values
          if(SelfTest[0] < 1.0f && SelfTest[1] < 1.0f && SelfTest[2] < 1.0f && SelfTest[3] < 1.0f && SelfTest[4] < 1.0f && SelfTest[5] < 1.0f) 
         {
@@ -254,7 +257,7 @@
             mpu6050.calibrateMPU6050(gyroBias, accelBias); // Calibrate gyro and accelerometers, load biases in bias registers  
             mpu6050.initMPU6050(); 
         }
-    }
+    //}
     if(mpu6050.readByte(MPU6050_ADDRESS, INT_STATUS) & 0x01) {  // check if data ready interrupt
     mpu6050.readAccelData(accelCount);  // Read the x/y/z adc values
     mpu6050.getAres();