Changes between Initial Version and Version 1 of UsingActuators
- Timestamp:
- Apr 22, 2015, 7:31:56 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsingActuators
v1 v1 1 In the subsystem, create the actuator (piston, talon, etc.). eg. 2 private CANTalon lifterMotor = new CANTalon(Ports.ARM_CIM); 3 4 Then, create a function that does what you want. eg. 5 public void moveLifter(double speed) { 6 ... 7 } 8 9 10 If you need to get input, create a small function that returns the value. eg. 11 public double getCurrentHeight() { 12 return armNDOF.getHeight(SensorEnum.ARM_NINE_DEGREES_OF_FREEDOM); 13 }