2
0
mirror of https://github.com/team2059/Dent synced 2025-01-07 22:14:14 -05:00
dent/src/HHRobot.cpp

17 lines
441 B
C++
Raw Normal View History

2015-01-06 00:07:24 +00:00
#include "HHRobot.h"
#include "HHBase.h"
HHRobot::HHRobot():
2015-01-16 15:20:34 +00:00
tmpMotor1(new CANTalon(0)),
2015-01-06 00:07:24 +00:00
joystick1(new Extreme3dPro(0)){
}
void HHRobot::Init(){
printf("Initing\n");
printf("Code Version: %f\n",0000.1);
}
//Main function used to handle periodic tasks on the robot
void HHRobot::Handler(){
2015-01-16 15:20:34 +00:00
tmpMotor1->Set(joystick1->GetJoystickAxis("y"));
SmartDashboard::PutNumber("tmp",joystick1->GetJoystickAxis("y"));
2015-01-06 00:07:24 +00:00
}
// vim: ts=2:sw=2:et