Skip to content

Commit 8a6feb4

Browse files
Update Robot.h
1 parent de0cd08 commit 8a6feb4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

main/include/Robot.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,18 @@ using namespace cv;
3939
using namespace cs;
4040

4141
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);
4646
};
4747

4848
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+
}
4954
public:
5055
void RobotInit() override;
5156
void RobotPeriodic() override;
@@ -74,7 +79,7 @@ class Robot : public frc::TimedRobot {
7479
Joystick fightStick{1};
7580
Joystick flightStick{2};
7681
Compressor compressor;
77-
Timer time;
82+
Timer timer;
7883
PWMVictorSPX m_frontLeft{0};
7984
PWMVictorSPX m_backLeft{1};
8085
PWMVictorSPX m_frontRight{2};

0 commit comments

Comments
 (0)