Drivetrain rotation vexiq

Hi

I’m trying to use Vexiq blockson an iPad using a drivetrain.

When use a turn 90 degrees block the drive train keeps on rotating without stopping. It doesn’t matter whether I use the gyro sensor or not. It seems that it is in an infinite loop. I tried all the different blocks but all give the same symptoms.

Anything I do wrong?

Thanks,
Bart

Can you take some screen shots of your code and post it please?

1 Like

Code

It seems to work without the gyro sensor, but as soon as I add it it keeps rotating

Thanks,
Bart

Do you have an actual gyro connected to port 11?

check that the gyro is actually working by looking in the IQ devices screen.
Is the gyro mounted the correct way ? (arrow on top).

5 Likes

The gyro seems to work correct. But for whatever reason it seems that the input is not considered for the drive train and stops when the set degrees have been achieved. I also tried a different port but no difference

Thanks,

Bart

As a last resort I tried changing the direction of the drive train.

Guess what, it suddenly works, must be some bug in the compiler, it doesn’t make sense to me. Or do I have to put in a specific direction, it is now pointing down in the app.

Thanks,

Bart

We are having this same problem. We are NOT using a Gyro and have the wheel size, track width and wheelbase set to match our robot. The program ran fine until we updated the IQBlocks app on our iPad and now setting the right or left turns to 90 or 45 degrees results in the robot just spinning in circles. After trying various settings we found that the program seems to be multiplying the set number of degrees by a factor of ABOUT 45… in other words, setting the degrees to 1 results in about a 45 degree turn and setting it to 2 results in a turn of about 90 degrees. We have adjusted the program based on that and the program now works but it sure would be nice if this issue could be resolved so we could set the actual turn degrees I.e. 90 instead of 2.image

We will look into that tomorrow and let you know.

5 Likes

Is all of the info on the right correct? And are the motors the correct color?

1 Like

Yes the drivetrain info is correct for our robot. I’m not sure I understand what you mean about our motors being the correct color?

1 Like

There’s a bug in the last release of IQ blocks that causes this error, it will be fixed in the next release.

6 Likes

They are using IQ not V5, take notice of the topic category and screen shots posted. They do not have a choice of gear cartridge.

5 Likes

@BoxerBots VEXcode IQ blocks 1.0.9 fixes this issue, be careful if you upgrade as the workaround you found would probably not work with this update, you would need to go back to using correct numbers.

4 Likes

Thank You! Really appreciate the continuous updates on this post and the resolution.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.