flywheel programming easyc

Im not the best at programming and wanted to make our fly wheel constant throughout the competition without having to press any buttons, if anyone has any ideas or anything please let me know!

So you just want the flywheel to run forever. Well I don’t personally use easyC, but couldn’t you just set an infinite while loop with each of your flywheel motors set to full speed.

(pseudocode)


while(true)
{
    motor flywheel1 = 127
    motor flywheel2 = 127

    //drive code

    //intake code etc

    wait 20 or so milliseconds
}