mirror of
https://github.com/team2059/Dent
synced 2025-01-17 22:19:21 -05:00
Added todo.txt, elevator support
This commit is contained in:
parent
7f3a504472
commit
b783a2604c
4
OI.cpp
4
OI.cpp
@ -18,12 +18,16 @@ OI::OI() {
|
|||||||
JoystickButton *right4=new JoystickButton(rightStick, 4);
|
JoystickButton *right4=new JoystickButton(rightStick, 4);
|
||||||
JoystickButton *right5=new JoystickButton(rightStick, 5);
|
JoystickButton *right5=new JoystickButton(rightStick, 5);
|
||||||
JoystickButton *right6=new JoystickButton(rightStick, 6);
|
JoystickButton *right6=new JoystickButton(rightStick, 6);
|
||||||
|
JoystickButton *right7=new JoystickButton(rightStick, 7);
|
||||||
|
JoystickButton *right8=new JoystickButton(rightStick, 8);
|
||||||
right1->WhenPressed(new OpenCollector());
|
right1->WhenPressed(new OpenCollector());
|
||||||
right2->WhenPressed(new CloseCollector());
|
right2->WhenPressed(new CloseCollector());
|
||||||
right3->WhenPressed(new CollectTote());
|
right3->WhenPressed(new CollectTote());
|
||||||
right4->WhenPressed(new ReleaseTote());
|
right4->WhenPressed(new ReleaseTote());
|
||||||
right5->WhenPressed(new StartCompressing());
|
right5->WhenPressed(new StartCompressing());
|
||||||
right6->WhenPressed(new StopCompressing());
|
right6->WhenPressed(new StopCompressing());
|
||||||
|
right7->WhenPressed(new Raise());
|
||||||
|
right8->WhenPressed(new Lower());
|
||||||
}
|
}
|
||||||
Joystick* OI::GetRightStick(){
|
Joystick* OI::GetRightStick(){
|
||||||
return rightStick;
|
return rightStick;
|
||||||
|
20
RobotMap.h
20
RobotMap.h
@ -4,22 +4,22 @@
|
|||||||
#include "WPILib.h"
|
#include "WPILib.h"
|
||||||
|
|
||||||
// Elevator
|
// Elevator
|
||||||
#define ELEVATOR_CAN 0
|
#define ELEVATOR_CAN 1
|
||||||
|
|
||||||
// Drivetrain
|
// Drivetrain
|
||||||
#define DRIVE_FRONT_LEFT_CAN 41
|
#define DRIVE_FRONT_LEFT_CAN 2
|
||||||
#define DRIVE_BACK_LEFT_CAN 43
|
#define DRIVE_BACK_LEFT_CAN 3
|
||||||
#define DRIVE_FRONT_RIGHT_CAN 40
|
#define DRIVE_FRONT_RIGHT_CAN 4
|
||||||
#define DRIVE_BACK_RIGHT_CAN 42
|
#define DRIVE_BACK_RIGHT_CAN 5
|
||||||
|
|
||||||
// Collector
|
// Collector
|
||||||
#define COLLECTOR_WINDOW_LEFT_CAN 50
|
#define COLLECTOR_WINDOW_LEFT_CAN 6
|
||||||
#define COLLECTOR_WINDOW_RIGHT_CAN 51
|
#define COLLECTOR_WINDOW_RIGHT_CAN 7
|
||||||
#define COLLECTOR_LEFT_CAN 52
|
#define COLLECTOR_LEFT_CAN 8
|
||||||
#define COLLECTOR_RIGHT_CAN 53
|
#define COLLECTOR_RIGHT_CAN 9
|
||||||
#define COLLECTOR_BOXSWITCH_DIO 9
|
#define COLLECTOR_BOXSWITCH_DIO 9
|
||||||
|
|
||||||
// Compressor
|
// Compressor
|
||||||
#define COMPRESSOR_CAN 31
|
#define COMPRESSOR_CAN 10
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user