Package jaron.pde

Examples of jaron.pde.Joystick


      }
    };
    switchStabilize.switchOn();

    // Setup the left stick (throttle and rudder)
    stickLeft = new Joystick(this, "Rudder", "Throttle", 110, 560, 140, 140);
    // Set 'dual rate' bandwidth for rudder (FG uses +-1)
    stickLeft.setBandwidthX(-0.5, 0.5);
    // Throttle preset
    stickLeft.setValueY(0.7);
    // Set bandwidth for throttle (FG uses 0-1)
    stickLeft.setBandwidthY(0, 1);
    // The throttle has no spring
    stickLeft.setSpringY(false);
    // Rudder and throttle are direct controlled via the servo controller
    stickLeft.addListenerX(flightData.getRudderOutput());
    stickLeft.addListenerY(flightData.getThrottleOutput());

    // Setup the right stick (elevator and aileron)
    stickRight = new Joystick(this, "Aileron", "Elevator", 260, 560, 140, 140);
    // Set 'dual rate' bandwidth for aileron (FG uses +-1)
    stickRight.setBandwidthX(-0.5, 0.5);
    // Set 'dual rate' bandwidth for elevator (FG uses +-1)
    stickRight.setBandwidthY(-0.5, 0.5);
    // Aileron and elevator control are filtered by the motion controller
View Full Code Here

TOP

Related Classes of jaron.pde.Joystick

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.