File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,18 @@ using namespace cv;
39
39
using namespace cs ;
40
40
41
41
class ImageProcess : public frc ::TimedRobot {
42
- void makeGrid (Mat img, int cellSize);
43
- Mat makeGrid (char *fileName, char *result);
44
- void RobotInit ();
45
- string getPutTextData (int count);
42
+ void makeGrid (Mat img, int cellSize);
43
+ Mat makeGrid (char *fileName, char *result);
44
+ void RobotInit ();
45
+ string getPutTextData (int count);
46
46
};
47
47
48
48
class Robot : public frc ::TimedRobot {
49
+ double acceleration (double input) {
50
+ double V;
51
+ V = input / 2 * sin ((((2 * M_PI) / f) * timer.Get () - M_PI_2) + input / 2 );
52
+ return V;
53
+ }
49
54
public:
50
55
void RobotInit () override ;
51
56
void RobotPeriodic () override ;
@@ -74,7 +79,7 @@ class Robot : public frc::TimedRobot {
74
79
Joystick fightStick{1 };
75
80
Joystick flightStick{2 };
76
81
Compressor compressor;
77
- Timer time ;
82
+ Timer timer ;
78
83
PWMVictorSPX m_frontLeft{0 };
79
84
PWMVictorSPX m_backLeft{1 };
80
85
PWMVictorSPX m_frontRight{2 };
You can’t perform that action at this time.
0 commit comments