Robot's source code

Dependencies:   mbed

defines.h

Committer:
Jagang
Date:
2015-04-30
Revision:
93:4d5664e9188a
Parent:
78:7c7cefbe1772
Child:
109:53918ba98306

File content as of revision 93:4d5664e9188a:

// ----- Loggeur ----- //

#ifdef OUT_USB
    #define OUT_TX USBTX
    #define OUT_RX USBRX
#else
    #define OUT_TX PA_11
    #define OUT_RX PA_12
#endif

// ----- Moteurs ----- //

#define PWM_MOT1 PB_13
#define PWM_MOT2 PB_14
#define PWM_MOT3 PB_15

#define DIR_MOT1 PC_9
#define DIR_MOT2 PB_8
#define DIR_MOT3 PB_9

// ----- Odometrie ----- //

#define ODO_G_B PA_10
#define ODO_G_A PB_3

#define ODO_D_B PB_5
#define ODO_D_A PB_4

#define PI 3.14159f

// ----- Boutons ----- //

#define LED_DESSUS PH_1
#define BP_DESSUS PC_8
#define TIRETTE_DESSUS PC_6
#define COULEUR_DESSUS PC_5

// ----- AX12 ----- //

#define AX12_TX PA_9
#define AX12_RX NC

#define MAX_TORQUE 300

#define BRASG_OUVERT 60
#define BRASG_FERME 155
#define BRASD_OUVERT 240
#define BRASD_FERME 145

#define PINCE_OUVERTE 100
#define PINCE_FERMEE 3

// ----- Sharp ----- //

#define SHARP_D A4
#define SHARP_DG A3
#define SHARP_DD A5
#define SHARP_AG A2
#define SHARP_AD A1