Package com.googlecode.grt192.HH11.deploy

Examples of com.googlecode.grt192.HH11.deploy.MainRobot


    PneumaticActuatorDisplay[] actuators = new PneumaticActuatorDisplay[NUM_MECHS];
    for (int i = 0; i < solenoidPoses.length; i++) {
      solenoidPoses[i] = new MountedPosition(RootMount.get(),
          ACTUATOR_POSIITIONS[i][X], ACTUATOR_POSIITIONS[i][Y],
          ACTUATOR_ORIENTATION[i]);
      actuators[i] = new PneumaticActuatorDisplay(solenoidPoses[i],
          MECHANISM_NAMES[i],
          ACTUATOR_CHARACTERISTICS[i][CHARACTERSTIC_LENGTH],
          ACTUATOR_CHARACTERISTICS[i][CHARACTERSTIC_WIDTH],
          ACTUATOR_CHARACTERISTICS[i][CHARACTERSTIC_EXTEND_LENGTH],
          ACTUATOR_CHARACTERISTICS[i][CHARACTERSTIC_RETRACT_TIME],
View Full Code Here


    PneumaticActuatorDisplay[] actuators = new PneumaticActuatorDisplay[NUM_MECHS];
    for (int i = 0; i < solenoidPoses.length; i++) {
      solenoidPoses[i] = new MountedPosition(RootMount.get(),
          ACTUATOR_POSIITIONS[i][X], ACTUATOR_POSIITIONS[i][Y],
          ACTUATOR_ORIENTATION[i]);
      actuators[i] = new PneumaticActuatorDisplay(solenoidPoses[i],
          MECHANISM_NAMES[i],
          ACTUATOR_CHARACTERISTICS[i][CHARACTERSTIC_LENGTH],
          ACTUATOR_CHARACTERISTICS[i][CHARACTERSTIC_WIDTH],
          ACTUATOR_CHARACTERISTICS[i][CHARACTERSTIC_EXTEND_LENGTH],
          ACTUATOR_CHARACTERISTICS[i][CHARACTERSTIC_RETRACT_TIME],
View Full Code Here

    /**
     * RPC SOLENOIDS
     */
    RPCSolenoidValve[] solenoids = new RPCSolenoidValve[NUM_MECHS];
    for (int i = 0; i < NUM_MECHS; i++) {
      solenoids[i] = new RPCSolenoidValve(crioConn, ACTUATOR_RPC_KEY[i]);
    }

    /**
     * Solenoids
     */
 
View Full Code Here

      mechanisms[i] = new HHMechanism(
          new ISolenoid[] { this.actuatorSims[i] }, safetyButton);
      // safetyButton.addSafetyListener(mechanisms[i]);

      controllers[i] = new HHController(mechanisms[i], switches[i],
          waitTimes[i]);
    }
  }
View Full Code Here

      mechanisms[i] = new HHMechanism(new ISolenoid[] { actuators[i],
          solenoids[i] }, safety);
      mechanisms[i].startListening();

      controllers[i] = new HHController(mechanisms[i], switches[i],
          MECHANISM_WAIT_TIMES[i]);
      controllers[i].startListening();
    }
  }
View Full Code Here

   * @param sw The switch the controller listens to for events
   */
  public HHController(HHMechanism mech, IHHSwitch sw, int[] wait_times) {
    this.mech = mech;
    this.sw = sw;
    autoController = new HHAutonomousController(mech, wait_times);

  }
View Full Code Here

      }
    }
  }

  private void notifyRetract() {
    HHSwitchEvent ev = new HHSwitchEvent(this);
    for (HHSwitchListener s : switchListeners) {
      s.retract(ev);
    }
  }
View Full Code Here

      s.retract(ev);
    }
  }

  private void notifyContract() {
    HHSwitchEvent ev = new HHSwitchEvent(this);
    for (HHSwitchListener s : switchListeners) {
      s.contract(ev);
    }
  }
View Full Code Here

      s.contract(ev);
    }
  }

  private void notifyAuto() {
    HHSwitchEvent ev = new HHSwitchEvent(this);
    for (HHSwitchListener s : switchListeners) {
      s.auto(ev);
    }
  }
View Full Code Here

      s.auto(ev);
    }
  }

  private void notifyManual() {
    HHSwitchEvent ev = new HHSwitchEvent(this);
    for (HHSwitchListener s : switchListeners) {
      s.manual(ev);
    }
  }
View Full Code Here

TOP

Related Classes of com.googlecode.grt192.HH11.deploy.MainRobot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.