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.
stddef.h
00001 #include "mbed.h" 00002 00003 #include "Util.h" 00004 00005 #include "Sensors/L3G4200D.h" 00006 #include "Sensors/Gyroscope.h" 00007 00008 #include "Sensors/ADXL345.h" 00009 #include "Sensors/Accelerometer.h" 00010 00011 #include "Serial/SerialBuffered.h" 00012 00013 //#include "Filters/KalmanFilter.h" 00014 #include "Filters/ComplementaryFilter.h" 00015 //#include "Filters/Kalman.h" 00016 00017 #include "Controllers/PID.h" 00018 00019 //#include "Controllers/Fuzzy/MembershipFunction.h" 00020 //#include "Controllers/Fuzzy/FuzzyIO.h" 00021 //#include "Controllers/Fuzzy/FuzzyController.h" 00022 00023 #include "Hardware/Motor.h" 00024 00025 //#include "Watchdog/Watchdog.h" 00026 00027 //#include "GetTickCount/GetTickCount.h" 00028 // Parametros gerais de configuracoes 00029 00030 #define PC_BAUD_RATE 115200 00031 //#define GPS_BAUD_RATE 9600 00032 //#define SONAR_BAUD_RATE 57600 00033 00034 //#define MSG_UPDATE_TIME 5//In Mili 00035 00036 // Parametros de protocolo 00037 00038 //#define CMD_START 0x42//'B' 00039 //#define CMD_SET_PID 0x43//'C' 00040 //#define CMD_SET_MOTOR 0x46//'F' 00041 //#define CMD_GET_PID 0x47//'G' 00042 #define CMD_WAITING 0x48//'H' 00043 00044 //#define CMD_MOTOR_SEND 0x49//'I' 00045 //#define CMD_MOTOR1_UP 0x49//'I' 00046 //#define CMD_MOTOR1_DOWN 0x4A//'J' 00047 00048 //#define CMD_MOTOR2_UP 0x4B//'K' 00049 //#define CMD_MOTOR2_DOWN 0x4C//'L' 00050 00051 //#define CMD_MOTOR3_UP 0x4D//'M' 00052 //#define CMD_MOTOR3_DOWN 0x4E//'N' 00053 00054 //#define CMD_MOTOR4_UP 0x4F//'O' 00055 //#define CMD_MOTOR4_DOWN 0x50//'P' 00056 00057 #define CMD_DOWN 0x41//'A' 00058 #define CMD_UP 0x51//'Q' 00059 00060 #define CMD_DOWN2 0x44//'D' 00061 #define CMD_UP2 0x45//'E' 00062 00063 //#define CMD_CHART 0x52//'R' 00064 00065 //#define CMD_MSG_END 0x7C//'|' 00066 00067 // Parametros de voo 00068 00069 //#define MIN_THRESHOLD 1 00070 //#define MAX_THRESHOLD 100 00071 #define FLIGHT_THRESHOLD 30 00072 //#define POWER_THRESHOLD 0 00073 //#define INITIAL_LOOPS 500//1000 00074 00075 //Soft reset 00076 //extern "C" void mbed_reset();
Generated on Tue Jul 19 2022 01:26:58 by
1.7.2