How do i run 2 things at once, in my program i have everything good, its just when i try and drive our bot, i can do anything else on the joystick, how do i fix this in my program. for example. i cant drive and let down my mobile base lifter at the same time.
Are you using just a single massive chain of
if
,
else if
,
else if
, …,
else if
,
else
for your entire driver control code?
yes @Barin
Then only 1 of said blocks of code will run at a time; in other words, the first
if
that evaluates to true will be the only block that actually runs.
Instead, you should change your code so that independent parts of your robot are independent. In other words, use separate
if
chains for separate mechanisms.
how would i do that? @Barin
Post the code you have currently so I can show you properly
i got it working, all i did was make new tasks for certain things and now it works @Barin