Romain Ame
/
Timer71pt
Fork de Timer après le match à 61 points
Fork of Timer by
main.cpp
- Committer:
- IceTeam
- Date:
- 2016-05-05
- Revision:
- 79:b11b50108ae5
- Parent:
- 78:c28bdbf29b6e
- Child:
- 80:cd4960dfa47e
File content as of revision 79:b11b50108ae5:
#include "RoboClaw/RoboClaw.h" #include "mbed.h" #define ADR 0x80 #define accel_angle 12000 #define vitesse_angle 10000 #define deccel_angle 12000 #define accel_dista 12000 #define vitesse_dista 12000 #define deccel_dista 12000 RoboClaw roboclaw(ADR, 460800, PA_11, PA_12); /* Debut du programme */ int main(void) { int distance_ticks_right = 10000; int distance_ticks_left = 10000; roboclaw.SpeedAccelDeccelPositionM1M2(accel_angle, vitesse_angle, deccel_angle, distance_ticks_right, accel_angle, vitesse_angle, deccel_angle, distance_ticks_left, 1); while(1); }