Hey I've been programing robotc for two years now and I'm having this problem with my robot. it is just a square base with two HiTechnic motor controllers and a battery I havn't actualy seen it happen, however my freinds claim that randomly the robot will start turning all by itself. I'm assuming it is a problem with a battery thing but just in case here is my code

The only way I can see this happening is if the joystick is sending noisy data to the robot from its stick. It's not impossible, though. The other explanation is that your robot is possessed and is preparing to kill you.

I agree with Xander. Most likely you need to program a deadzone for the analog sticks on your joystick. To verify this, open up the joystick debug window and flick the analog sticks to see if they reset to zero. Most of them do not and will return to a value which is +- 5 or so off. Some are much worse.Adding a deadzone (if the value is plus or minus a certain range, set it to zero) should exorcise the demons.

Mon Oct 10, 2011 12:36 pm

gonica

Rookie

Joined: Mon Oct 10, 2011 11:29 amPosts: 3

Re: Possible programming glitch

oh okay I'll try that

Mon Oct 10, 2011 3:16 pm

gonica

Rookie

Joined: Mon Oct 10, 2011 11:29 amPosts: 3

Re: Possible programming glitch

Oh wow there is like a +- 15 on the x and a +- 10 on the y thanks for the help I wouldn't have thought of that.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum