![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Quadcopter working with accelerômeter and accelerometer, and bluetooth radio for communication
stddef.h
- Committer:
- jose_claudiojr
- Date:
- 2013-05-21
- Revision:
- 0:56b8c86181b1
File content as of revision 0:56b8c86181b1:
#include "mbed.h" #include "Util.h" #include "Sensors/L3G4200D.h" #include "Sensors/Gyroscope.h" #include "Sensors/ADXL345.h" #include "Sensors/Accelerometer.h" #include "Serial/SerialBuffered.h" //#include "Filters/KalmanFilter.h" #include "Filters/ComplementaryFilter.h" //#include "Filters/Kalman.h" #include "Controllers/PID.h" //#include "Controllers/Fuzzy/MembershipFunction.h" //#include "Controllers/Fuzzy/FuzzyIO.h" //#include "Controllers/Fuzzy/FuzzyController.h" #include "Hardware/Motor.h" //#include "Watchdog/Watchdog.h" //#include "GetTickCount/GetTickCount.h" // Parametros gerais de configuracoes #define PC_BAUD_RATE 115200 //#define GPS_BAUD_RATE 9600 //#define SONAR_BAUD_RATE 57600 //#define MSG_UPDATE_TIME 5//In Mili // Parametros de protocolo //#define CMD_START 0x42//'B' //#define CMD_SET_PID 0x43//'C' //#define CMD_SET_MOTOR 0x46//'F' //#define CMD_GET_PID 0x47//'G' #define CMD_WAITING 0x48//'H' //#define CMD_MOTOR_SEND 0x49//'I' //#define CMD_MOTOR1_UP 0x49//'I' //#define CMD_MOTOR1_DOWN 0x4A//'J' //#define CMD_MOTOR2_UP 0x4B//'K' //#define CMD_MOTOR2_DOWN 0x4C//'L' //#define CMD_MOTOR3_UP 0x4D//'M' //#define CMD_MOTOR3_DOWN 0x4E//'N' //#define CMD_MOTOR4_UP 0x4F//'O' //#define CMD_MOTOR4_DOWN 0x50//'P' #define CMD_DOWN 0x41//'A' #define CMD_UP 0x51//'Q' #define CMD_DOWN2 0x44//'D' #define CMD_UP2 0x45//'E' //#define CMD_CHART 0x52//'R' //#define CMD_MSG_END 0x7C//'|' // Parametros de voo //#define MIN_THRESHOLD 1 //#define MAX_THRESHOLD 100 #define FLIGHT_THRESHOLD 30 //#define POWER_THRESHOLD 0 //#define INITIAL_LOOPS 500//1000 //Soft reset //extern "C" void mbed_reset();