Karim Azzouz / Mbed 2 deprecated A-Quad

Dependencies:   MovingAverageFilter MyI2C PID RC mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GlobalDefines.h Source File

GlobalDefines.h

00001 #include "Std_Types.h"
00002 
00003 ////////////////Motors.h //////////////////
00004 PwmOut FrontMotor(p24); // Front Motor Pin
00005 PwmOut RearMotor(p21);  // Rear Motor Pin
00006 PwmOut LeftMotor(p23); // Left Motor Pin
00007 PwmOut RightMotor(p22);// Right Motor Pin
00008 uint16 Mspeed[4];
00009 uint16 Throttle= 1000;
00010 int16 PitchSetpoint=0,RollSetpoint=0,YawSetpoint=0;
00011 int16 PitchCorrection,RollCorrection,YawCorrection;
00012 ///////////////////////////////////////////
00013 Serial pc(USBTX, USBRX);
00014 DigitalOut one(LED1);
00015 DigitalOut two(LED2);
00016 Timer Global;
00017 /*
00018 RC Aileron(p11);
00019 RC Elevator(p12);
00020 RC Throttle(p13);
00021 RC Rudder(p14);
00022 */
00023 //float pitch,roll;
00024 float deltaTime;
00025 float pitch,roll;
00026