2020-02-26 18:51:46 +01:00
|
|
|
#include "PID_v2.h"
|
2020-02-21 13:37:32 +01:00
|
|
|
#include "systems.h"
|
|
|
|
|
2020-02-26 20:07:14 +01:00
|
|
|
#define CAMERA_CENTER_X 0
|
|
|
|
#define CAMERA_CENTER_Y_BOTH 3
|
|
|
|
#define CAMERA_CENTER_Y_BLUE -60
|
|
|
|
#define CAMERA_CENTER_Y_YELLOW -30
|
2020-02-26 18:51:46 +01:00
|
|
|
|
|
|
|
#define Kpx 1
|
|
|
|
#define Kix 0
|
|
|
|
#define Kdx 0
|
|
|
|
#define Kpy 1
|
|
|
|
#define Kiy 0
|
|
|
|
#define Kdy 0
|
2020-02-21 13:37:32 +01:00
|
|
|
|
|
|
|
class PositionSysCamera : public PositionSystem{
|
|
|
|
|
|
|
|
public:
|
|
|
|
PositionSysCamera();
|
|
|
|
void goCenter();
|
|
|
|
void update() override;
|
|
|
|
void test() override;
|
2020-02-26 18:51:46 +01:00
|
|
|
void setCameraPID();
|
|
|
|
void CameraPID();
|
|
|
|
|
|
|
|
double Inputx, Outputx, Setpointx, Inputy, Outputy, Setpointy;
|
|
|
|
|
|
|
|
PID* X;
|
|
|
|
PID* Y;
|
2020-02-21 13:37:32 +01:00
|
|
|
|
|
|
|
};
|