-
Notifications
You must be signed in to change notification settings - Fork 0
/
Movimentation.h
69 lines (49 loc) · 1.24 KB
/
Movimentation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef MOVIMENTATION
#define MOVIMENTATION
#include "Header.h"
#include "utils/Structs.h"
using namespace rod;
class Movimentation{
private:
vector<Object> objects;
Object robot;
vector<float> maxPwm;
vector<Object> velocityPast1;
vector<Object> velocityPast2;
vector<Object> velocityPast3;
vector<int> velocity;
vector<Command> movements;
float distance_robot_ball;
float distance_robot_destination;
float angle_robot_destination;
float distance_ball_destination;
float sinAngle_robot_destination;
float cosAngle_robot_destination;
float powerFactor;
float curveFactor;
float powerStrategy;
float curveStrategy;
Point image;
int attackNumber;
int defenseNumber;
int goalNumber;
public:
Movimentation();
Command movePlayers(Point, bool,Information&);
Pwm PWMCorrection(Point);
float calculateSpeed();
void updateCalculus(Object, Point);
void turnLeft(int, int);
void turnRight(int, int);
void stop();
void setPower(float);
void setPowerCurve(float);
void setPwm(Point, string);
void setRobot(Object);
void setObjects(vector<Object>);
void setImage(Point);
void setCurveStrategy(int);
void setNumbers(int, int, int);
vector<Command> getMovements();
};
#endif