Class MecanumDrivetrain

    • Method Detail

      • setForwardTarget

        public void setForwardTarget​(double forwardTarget)
        Set the "forward target", which is a value in the range [-1.0, 1.0]; 1.0 representing full speed forward, -1.0 representing full speed backward, and 0 representing no forward or backward movement.
        Parameters:
        forwardTarget - the forward target
      • setStrafeTarget

        public void setStrafeTarget​(double strafeTarget)
        Set the "strafe target", which is a value in the range [-1.0, 1.0]; 1.0 representing full speed right, -1.0 representing full speed left, and 0 representing no strafing.
        Parameters:
        strafeTarget - the forward target
      • setRotateTarget

        public void setRotateTarget​(double rotateTarget)
        Set the "rotate target", which is a value in the range [-1.0, 1.0]; 1.0 representing full speed clockwise, -1.0 representing full speed counterclockwise, and 0 representing no rotation.
        Parameters:
        rotateTarget - the forward target
      • stop

        public void stop()
        Stop all movement by setting all motor target values to 0 and disabling them.
        Specified by:
        stop in class AbstractDrivetrainBase
      • task

        public void task()
                  throws java.lang.Exception
        The background task to run.
        Specified by:
        task in interface Subsystem
        Throws:
        java.lang.Exception - in case the defined task throws any Exceptions
      • getComposedComponents

        public java.util.Collection<java.lang.Object> getComposedComponents()
        Get the composed components within this one.
        Specified by:
        getComposedComponents in interface ComposedComponent<java.lang.Object>
        Returns:
        the composed components.