Lakemonsters2635 / BunnyBots2024

Other
0 stars 0 forks source link

Current measurements for detecting vacuum. #8

Open jwaltner opened 3 weeks ago

jwaltner commented 3 weeks ago

Need current measurements to detect when the vacuum has grabbed a balloon. This should be able to be obtained from the power distribution hub.

Michael found this code... could potentially work as a starting point.

import edu.wpi.first.wpilibj.PowerDistributionPanel;
public class Robot extends TimedRobot {
    private PowerDistributionPanel pdp = new PowerDistributionPanel();
    @Override
    public void robotPeriodic() {
        // Read the current draw on channel 0
        double current = pdp.getCurrent(0);
        System.out.println("Current on channel 0: " + current + "A");
    }
}
jwaltner commented 3 weeks ago

@An-JieYu , please take a look at current measurements, we will need to do this so we can figure out when we grabbed the balloon. Thx.

SuleymanSade commented 1 week ago
jwaltner commented 1 week ago

Updateed the issue to have a checklist for the items called out by @suleymansade