Autonomous part

hi, my team and I want to know how other teams are doing to do the autonomus part without any sensors, because we have a lot of issues in the same code

2 Likes

There are already lots of threads about this already. A simple search of vex autonomous help would reveal lots. What specifically are you unsure of?

1 Like

the problem is that we are using vex code blocks , when we put the robot at the same place , sometimes it doesn’t do what it should do , and also we were interested to know if we are doing well

1 Like

If you have an issue with your code, then post your code. I have a feeling that you are using time.

1 Like

We are not using time , intead we are using turns in our code

1 Like

Can you post your code?

2 Likes

This is a problems that every team faces. You might find this helpful.

1 Like

2 Likes

So first, I really think you should consider moving to V5 text in the future. Your code is becoming fairly advanced for blocks(thats a good thing), and text code is better understood and easier to debug by the community.

With that little aside out of the way. What is the robot not doing the same. Is the robot moving different distances every time? If that is the case it could be your wheels are slipping on starts and stops. You could reduce this by slowly accelerating the motors at starts and stops.

7 Likes

first of all, thank you for your motivating remark and I wanted to say that the angles are different each time by a few degrees which becomes annoying because it
misses a lot of balls

2 Likes

My strong suspicion is that either your wheels are slipping or your turn center is changing. If your wheels jump or spin out at the beginning or end of turns, it is expected that your turn will be a little off. You could verify this by slowing down the entire autonomous.

Turn the speed of the auton down to say 15-20%. Don’t worry about how long it takes. Is the the run consistent for 3-5 runs? If the answer is yes, then you need to change how your function accelerates/decelerates in turns.

Secondly, what type of drivetrain are you using?

3 Likes

we are using a drivetrain with two omni wheels and two regual wheels(like the crunch bot’s but slightly different) we have also a problem with measuring distances. It’s never accurate and we always have to test it over and over again to get the right one. The way we do it is measuring the distances manually in cm and dividing them by 4 pi to get how many turns our motor should make to reach our target position. Do you know any more accurate way to do it?

2 Likes

To increase accuracy without using sensors or advanced techniques (like PID), your best bet is to slow down the movement a lot. At a minimum, slow down when the robot starts and stops a movement.

3 Likes

ok , and how can we do to measure distances ?

For starter, encoder is easy to use. For turns, IMU is a good choice (beware of strafing issue).