DirectionControl.cpp 1.3 KB
Newer Older
1
2
3
4
#include "DirectionControl.h"
#include "Arduino.h"


Manuel Pitz's avatar
Manuel Pitz committed
5
//The following function needs modifications
6
7
8
9
10
11
12
13
14
15
DirectionControl::DirectionControl(int servoPinIn, directionParameterSet directionParameters, pidParameterSet pidParameters) : controller(pidParameters){

}

DirectionControl::~DirectionControl(){}

void DirectionControl::setup(){
  DirectionControl::directionServo.attach(DirectionControl::servoPin); // initialize servodirectionServo.attach(pin_servo); // initialize
}

Manuel Pitz's avatar
Manuel Pitz committed
16
//The following function needs modifications
17
18
19
20
void DirectionControl::updateController(double is) {

}

Manuel Pitz's avatar
Manuel Pitz committed
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
double DirectionControl::getControllerP(){
  return controller.getP();
}

double DirectionControl::getControllerI(){
  return controller.getI();
}

double DirectionControl::getControllerD(){
  return controller.getD();
}

void DirectionControl::setControllerP(double parameterP){
  controller.setP(parameterP);
}

void DirectionControl::setControllerI(double parameterI){
  controller.setI(parameterI);
}

void DirectionControl::setControllerD(double parameterD){
  controller.setD(parameterD);
}

//The following function needs modifications
46
47
48
49
int DirectionControl::getDirection() {

}

Manuel Pitz's avatar
Manuel Pitz committed
50
//The following function needs modifications
51
52
53
54
void DirectionControl::updateDirection(){

}

Manuel Pitz's avatar
Manuel Pitz committed
55
//The following function needs modifications
56
57
58
59
void DirectionControl::testServo() {

}