solaESKF_EIGEN

Dependencies:   mbed LPS25HB_I2C LSM9DS1 PIDcontroller LoopTicker GPSUBX_UART_Eigen SBUS_without_mainfile MedianFilter Eigen UsaPack solaESKF_Eigen Vector3 CalibrateMagneto FastPWM

Revision:
30:214ddc613a35
Parent:
29:34ee662f454e
Child:
31:8d02f3b9a067
--- a/main.cpp	Tue Feb 16 03:27:20 2021 +0000
+++ b/main.cpp	Tue Feb 16 03:29:55 2021 +0000
@@ -48,8 +48,8 @@
 int motorOut[1] = {1000};
 int servoPwmMax = 1800;
 int servoPwmMin = 1200;
-int motorPwmMax = 1800;
-int motorPwmMin = 1200;
+int motorPwmMax = 2000;
+int motorPwmMin = 1000;
 int offsetVal[6] = {0,0,0,0,0,0};
 
 const double pitch_align = 0.0;
@@ -62,7 +62,7 @@
     return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
 }
 
-void pushto_sdcard()
+void writeSdcard()
 {
     sd.printf("pitch: %lf, yaw; %lf, roll: % lf\n",pitch,yaw,roll);
 }
@@ -113,7 +113,7 @@
     //servoLeft.pulsewidth_us(servoOut[1]); 
         
     if(loop_count > 10){
-        pushto_sdcard();
+        writeSdcard()
         loop_count = 0;
     }else{
         loop_count +=1;