wesh gros, ajout des ref dans brushlessservo

Dependencies:   MPU6050 mbed

Fork of Gimbal_ENSEA by Thomas Giraud-Sauveur

Revision:
2:d0606d66af96
Parent:
0:63c6db89607f
--- a/main.cpp	Fri Jun 03 13:51:54 2016 +0000
+++ b/main.cpp	Fri Jun 03 14:17:35 2016 +0000
@@ -6,7 +6,19 @@
 Serial pc(USBTX, USBRX); 
 Ticker filter; 
 Ticker toggler1; 
-MPU6050 mpu6050;  
+MPU6050 mpu6050;
+
+PwmOut pwmA1(PA_1);
+PwmOut pwmA2(PA_2);
+PwmOut pwmA3(PA_3);
+
+PwmOut pwmB1(PA_4);
+PwmOut pwmB2(PA_5);
+PwmOut pwmB3(PA_6);
+
+brushlessservo moteur(pwmA1,pwmA2,pwmA3);
+brushlessservo moteurB(pwmB1,pwmB2,pwmB3);
+
 /*
 PwmOut pwm1A(PA_10);
 PwmOut pwm1B(PA_6);
@@ -22,7 +34,6 @@
 void toggle_led2();
 
 int main() {
-    brushlessservo moteur;
     mpu6050.init(); 
     filter.attach(&compFilter, 0.005);
     wait(1);