-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoordinates.h
27 lines (22 loc) · 868 Bytes
/
Coordinates.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
#ifndef _COORDINATES_H_
#define _COORDINATES_H_
#include "Coordinate.h"
// Note that this class is unit-less.
class Coordinates
{
public:
Coordinates(
Coordinate x, // Measured from the left motor horizontally to the right.
Coordinate y, // Measured from horizontal line of the motors down. (Yes, Downwards)
Coordinate DistanceBetweenMotors, // Distance beween the center of the motor shafts.
Coordinate CogRadious); // Effective Radius of the cog. (At time of writing this was ignored by the calculation.)
Coordinate R1(void); // Desired new radius for first motor.
Coordinate R2(void); // Desired new radius for second motor.
private:
Coordinate m_x;
Coordinate m_y;
Coordinate m_d;
Coordinate m_r;
static CoordinateSq Square(Coordinate);
};
#endif