additional edits to James’ code

Files at this revision

API Documentation at this revision

Comitter:
isagmz
Date:
Wed Jul 03 18:14:34 2019 +0000
Parent:
12:6efce6d008f8
Commit message:
additional edits

Changed in this revision

IMU6050/IMU6050.cpp Show annotated file Show diff for this revision Revisions of this file
IMU6050/IMU6050.h Show annotated file Show diff for this revision Revisions of this file
diff -r 6efce6d008f8 -r f9a20b88455c IMU6050/IMU6050.cpp
--- a/IMU6050/IMU6050.cpp	Wed Jul 03 17:56:22 2019 +0000
+++ b/IMU6050/IMU6050.cpp	Wed Jul 03 18:14:34 2019 +0000
@@ -1,11 +1,20 @@
 #include "IMU6050.h"
+
 IMU6050::IMU6050(PinName sda_pin, PinName scl_pin, Serial* out, Timer* time){
+    usb = out;
+    t = time;
+    //imu = new BNO055(sda_pin, scl_pin);
+    
     accelD = accelData;
     gyroD = gyroData;
 }
 
 void IMU6050::setup() {
     
+    
+    
+    //timer
+    t->start();
 }
 
 //Get the x component of the angular acceleration from IMU. Stores the component
diff -r 6efce6d008f8 -r f9a20b88455c IMU6050/IMU6050.h
--- a/IMU6050/IMU6050.h	Wed Jul 03 17:56:22 2019 +0000
+++ b/IMU6050/IMU6050.h	Wed Jul 03 18:14:34 2019 +0000
@@ -8,8 +8,6 @@
 
 #define PI 3.141593
 
-/*#define SDA D14
-#define SCL D15*/
 #define SDA PB_9
 #define SCL PB_8
 #define SAMPLEFREQ 50