1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-06-03 03:25:00 +02:00
cdf2018-principal/chef/src/parcours.h

51 lines
908 B
C
Raw Normal View History

2018-04-30 16:15:47 +02:00
#ifndef __PARCOURS_H__
#define __PARCOURS_H__
#include <stdbool.h>
2018-05-09 04:10:45 +02:00
#include <math.h>
#include "movement.h"
2018-04-30 16:15:47 +02:00
#define TEMPS_PARCOURS 100
2018-05-09 04:10:45 +02:00
#define NB_BALLES 8
#define X_RECUP_1 1160
#define Y_RECUP_1 210
#define O_RECUP_1 -M_PI
#define X_LANCER X_RECUP_1
#define Y_LANCER Y_RECUP_1 + 100
#define O_LANCER 3 * M_PI_4
#define X_RECUP_2 610
#define Y_RECUP_2 50
// ↑
#define O_RECUP_2 -M_PI_2
#define X_EVIT X_RECUP_2
#define Y_EVIT 1000
#define O_EVIT ANGLE_INSIGNIFIANT
#define X_ABEILLE 210
#define Y_ABEILLE 50
// ↑
#define O_ABEILLE -M_PI_2
#define X_USE 800
// ↑
#define Y_USE 100
// ↑
#define O_USE 0
2018-04-30 16:15:47 +02:00
2018-05-02 08:26:35 +02:00
void configureParcours();
2018-04-30 16:15:47 +02:00
void prepareParcours(bool orange);
void startParcours();
// Returns : -1 if parcours ended, N ms for the next time it should be checked
int updateParcours();
void stopParcours();
void* TaskParcours(void* pdata);
2018-05-09 09:57:11 +02:00
void gotoPoint(float x, float y, float o);
2018-04-30 16:15:47 +02:00
#endif