-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAimer.h
More file actions
38 lines (32 loc) · 843 Bytes
/
Aimer.h
File metadata and controls
38 lines (32 loc) · 843 Bytes
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
#include "WPILib.h"
#include "math.h"
#include <vector>
#include <memory>
#include "Constants.h"
#ifndef SRC_AIMER_H
#define SRC_AIMER_H
#define PI 3.14159265
class Aimer
{
public:
Aimer();
std::shared_ptr<NetworkTable> table;
float GetLeftAngleToGear();
float GetRightAngleToGear();
std::vector<double> GetLeftAngleArray();
std::vector<double> GetRightAngleArray();
float GetAngleToShoot();
float GetSpeedToShoot();
float GetDistanceToGear();
float GetOffset();
int GetAge();
int GetBoilerAge();
float TwoCameraAngleFilter();
float GetXDistanceToGear(float distance, float currentAngleError);
float GetAngleToGear(float distance);
float GetBoilerAngle();
float GetBoilerDistance();
float ConvertToZeroTo360(float rawAngle);
float ConvertToPlusMinus180(float rawAngle);
};
#endif