Package ca.teamdave.caruso.config

Examples of ca.teamdave.caruso.config.ConfigTable


        }

    }

    private static ConfigTable createConfig() throws CarusoException {
        ConfigTable res = new ConfigTable();

        //  This would normally be loaded from a text file in flash

        res.setDouble(LrNames.CYCLE_TIME, 0.05);

        res.setDouble(LrNames.PID_P, 5.0);
        res.setDouble(LrNames.PID_I, 0.0);
        res.setDouble(LrNames.PID_D, 0.0);
        res.setDouble(LrNames.PID_EPS, 0.01);

        res.setDouble(LrNames.D_FF, 1.0);
        res.setDouble(LrNames.A_FF, 1.0);
        res.setDouble(LrNames.V_FF, 0.5);
       
        res.setDouble(LrNames.ACCEL_MAX, 0.25);
        res.setDouble(LrNames.DECCEL_MAX, 0.5);
        res.setDouble(LrNames.SPEED_MAX, 1.0);

        return res;
    }
View Full Code Here


     * used for any initialization code.
     */
    public void robotInit() {
        try {
            // TODO: this config object should be initialized properly here
            this.caruso.robotInit(new ConfigTable());
        } catch (CarusoException ex) {
            ex.printStackTrace();
            this.getWatchdog().kill();
        }

View Full Code Here

TOP

Related Classes of ca.teamdave.caruso.config.ConfigTable

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.