megan gimple / Mbed 2 deprecated OCE360_Final_Project

Dependencies:   mbed MMA8452Q MS5837 SDFileSystem SCI_SENSOR

Revision:
1:e1a2b47c3098
Parent:
0:6e97f9a6aca0
Child:
2:a3b55216ffbd
--- a/main.cpp	Sun Nov 28 15:38:48 2021 +0000
+++ b/main.cpp	Tue Nov 30 14:23:15 2021 +0000
@@ -5,17 +5,17 @@
 #include "mbed.h"
 #include "MMA8452Q.h"  //accelerometer library
 #include "MS5837.h"     //pressure sensor library***
-#include "SCI_SENSOR.h"     //science sensor library***
+#include "SCI_SENSOR.h"     //science sensor library, photocell, temperature cell
 #include "SDFileSystem.h"   // SD card library
 
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
 
-Serial pc(USBTX, USBRX);    //initial serial
-Serial BLE(p13,p14);        //Bluetooth
-MMA8452Q accel(p28,p27,0x1D);  //initial accelerometer
-LM19 temp(p19);
-PhotoCell light(p20);
+Serial pc(USBTX, USBRX);        //initial serial
+Serial BLE(p13,p14);            //Bluetooth
+MMA8452Q accel(p28,p27,0x1D);   //initial accelerometer
+LM19 temp(p19);                 //temperature sensor
+PhotoCell light(p20);           //photocell
 MS5837 p_sensor(p9, p10, ms5837_addr_no_CS);  //pressure sensor
 PwmOut thruster(p21);  //set PWM pin    //max 1.3ms min 1.1ms
 PwmOut thruster2(p22); //set PWM pin
@@ -24,6 +24,7 @@
 //global ticker
 Ticker log_ticker;
 Ticker accel_ticker;
+
 // global timer
 Timer t;
 
@@ -33,10 +34,10 @@
 float PI = 3.14159265358979323846f;
 
 //float operation parameters
-float target_depth=0;   //global target depth default 0
-int yo_num=0;           //global yo_num default 0
-float thrust_on_time=0; //global thrust_on time default 0
-float accelData[3];  //global accel data
+float target_depth=0;       //global target depth default 0
+int yo_num=0;               //global yo_num default 0
+float thrust_on_time=0;     //global thrust_on time default 0
+float accelData[3];         //global accel data
 
 //functions
 void welcome();