Changes between Initial Version and Version 1 of UsingActuators


Ignore:
Timestamp:
Apr 22, 2015, 7:31:56 PM (10 years ago)
Author:
fkarim
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsingActuators

    v1 v1  
     1In the subsystem, create the actuator (piston, talon, etc.). eg.
     2private CANTalon lifterMotor = new CANTalon(Ports.ARM_CIM);
     3
     4Then, create a function that does what you want. eg.
     5public void moveLifter(double speed) {
     6    ...
     7}
     8
     9
     10If you need to get input, create a small function that returns the value. eg.
     11public double getCurrentHeight() {
     12    return armNDOF.getHeight(SensorEnum.ARM_NINE_DEGREES_OF_FREEDOM);
     13}