LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Turn.h
1 #ifndef TURN_H_
2 #define TURN_H_
3 
4 #include "Automation.h"
5 #include "../../ComponentData/DrivetrainData.h"
6 
10 class Turn : public Automation
11 {
12 public:
13  Turn(double angle, double maxSpeed = 1.0, double errorThreshold = 0.5);
14 
15  bool Start();
16  bool Run();
17  bool Abort();
18  void AllocateResources();
19 
20 private:
21  DrivetrainData* m_drivetrain;
22 
23  double m_angle;
24  double m_maxSpeed;
25  double m_errorThreshold;
26 };
27 
28 #endif