Robot Mesh Program


#1

I’m sorta new to C++ but have been getting better, I want to know if I can run 2 motors for a whole match by just pressing 1 button

if(con.ButtonR1.pressing()){
    LeftShooterB.spin(directionType::fwd);
    RightShooterB.spin(directionType::fwd);
}

If I don’t have this

else { 
    LeftShooterB.stop(braketype::coast);
    RightShooterB.stop(braketype::coast);
} 

Will the motors run until the end of the match?


#2

If there is nothing to stop them, they will keep running, and eat up your battery. I assume this is for an intake?


#3

No a Shooter, That if we constantly shut it down and start it up they overheat and can only fire 4 to 5 shots