bio robot

Dependencies:   MPU6050-DMP QEI_hw mbed-rpc mbed

Fork of MPU6050_Example by Shundo Kishi

Committer:
amandaghassaei
Date:
Thu Dec 03 06:09:28 2015 +0000
Revision:
7:7efcd3bf3302
Child:
8:1a3a69fecedf
controls class started

Who changed what in which revision?

UserRevisionLine numberNew contents of line
amandaghassaei 7:7efcd3bf3302 1 #ifndef Controls_h
amandaghassaei 7:7efcd3bf3302 2 #define Controls_h
amandaghassaei 7:7efcd3bf3302 3
amandaghassaei 7:7efcd3bf3302 4 #include "Gains.h"
amandaghassaei 7:7efcd3bf3302 5 #include "Target.h"
amandaghassaei 7:7efcd3bf3302 6 #include "MyMPU6050.h"
amandaghassaei 7:7efcd3bf3302 7
amandaghassaei 7:7efcd3bf3302 8
amandaghassaei 7:7efcd3bf3302 9 class Controls{
amandaghassaei 7:7efcd3bf3302 10
amandaghassaei 7:7efcd3bf3302 11 public:
amandaghassaei 7:7efcd3bf3302 12
amandaghassaei 7:7efcd3bf3302 13 Controls():myMPU6050_1(p9, p10){
amandaghassaei 7:7efcd3bf3302 14 }
amandaghassaei 7:7efcd3bf3302 15
amandaghassaei 7:7efcd3bf3302 16 Gains gains;
amandaghassaei 7:7efcd3bf3302 17 Target target;
amandaghassaei 7:7efcd3bf3302 18
amandaghassaei 7:7efcd3bf3302 19 MyMPU6050 myMPU6050_1;//I2C_SDA, I2C_SCL
amandaghassaei 7:7efcd3bf3302 20 // MyMPU6050 myMPU6050_2(p9, p10);//I2C_SDA, I2C_SCL
amandaghassaei 7:7efcd3bf3302 21
amandaghassaei 7:7efcd3bf3302 22 void loop(){
amandaghassaei 7:7efcd3bf3302 23 myMPU6050_1.loop();
amandaghassaei 7:7efcd3bf3302 24 }
amandaghassaei 7:7efcd3bf3302 25
amandaghassaei 7:7efcd3bf3302 26 private:
amandaghassaei 7:7efcd3bf3302 27
amandaghassaei 7:7efcd3bf3302 28
amandaghassaei 7:7efcd3bf3302 29
amandaghassaei 7:7efcd3bf3302 30
amandaghassaei 7:7efcd3bf3302 31
amandaghassaei 7:7efcd3bf3302 32
amandaghassaei 7:7efcd3bf3302 33 };
amandaghassaei 7:7efcd3bf3302 34
amandaghassaei 7:7efcd3bf3302 35 #endif