Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use the IPidCalculator from mattlib #184

Open
github-actions bot opened this issue Feb 26, 2023 · 0 comments
Open

use the IPidCalculator from mattlib #184

github-actions bot opened this issue Feb 26, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

package org.bitbuckets.drive.balance;

import edu.wpi.first.math.controller.PIDController;
import org.bitbuckets.lib.IProcess;
import org.bitbuckets.lib.ISetup;
import org.bitbuckets.lib.control.ProfiledPIDFController;

/**
 * labels: high priority
 * TODO use the IPidCalculator from mattlib
 */
public class BalanceSetup implements ISetup<BalanceControl> {

    @Override
    public BalanceControl build(IProcess self) {

        PIDController balanceController = new PIDController(0,0,0);
        ProfiledPIDFController rotController = new ProfiledPIDFController(0,0,0,0, null);

        return new BalanceControl(balanceController,rotController);
    }
}
@github-actions github-actions bot added the todo label Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants