Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MovingAverageFilter MyI2C PID RC mbed-rtos mbed
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
Generated on Mon Jul 18 2022 00:04:58 by
1.7.2