Is there a way to recreate the spinTo function but from values of a potentiometer?

I think i reached the physical limit for tasks as adding this task (I have 3 running: auto selector,debug printing values to the brain, and position tracking ):

int b(){
while(true){

}
}
will cause the program to crash (and yes i tried adding a delay)

Is there any way that I can use the spinTo function instead? Maybe if the value for angle in the motor class is perhaps a pointer that I can change the address of?

V5 or IQ ?

3 Likes

V5 vex code

Do you think there it might be a software issue?

Ok, so V5 can have many more tasks than you need (>100), you should never reach the limit unless you are creating new tasks in a loop.

Perhaps with your software, yes.
I guess post more code, there’s nothing to go on really.

5 Likes

Do you want a zip file of the program? I’m not doing anything weird with the task, its just the empty while loop and a global task.

Empty while loop is going to lock up the scheduler, but sure, send me the project and I will have a look.

2 Likes