![]() |
looking for 1 joystick Pbasic drive code
for my battle bot i am using one of the older pbasic controllers w/ 1 joystick. We have tried for some time to play with the default 1 stick code but we can;t get it to work. So i figured i would ask and see if anyone has any successful code.
|
Re: looking for 1 joystick Pbasic drive code
Could you post some code?
|
Re: looking for 1 joystick Pbasic drive code
Here's the 1-joystick code we used for driver practice this year on a second robot using one of the older controllers. I don't remember if it's any different than the original default code other than minor changes though. It does a debug printout of the drive values being sent to the PWMs.
The right drive motors are on PWMs 1 & 2 & 13 & 14 The left motors are on PWMs 3 & 4 & 15 & 16 P.S. This second version was used on a third robot, but reverses the behavior of the joysticks due to motor wiring and mounting. It switches between 1 and 2-joystick operation based on the value of p4_sw_aux1 where we attached a switch on the OI. |
Re: looking for 1 joystick Pbasic drive code
greg this is what i used on my robot, just pick the code you need
http://www.ifirobotics.com/first-legacy.shtml the "default" codes are for 2 joysticks and the "user" codes are for 1 joystick |
Re: looking for 1 joystick Pbasic drive code
Quote:
I was kinda hoping someone would have some custom code that was driven during the season during those years. Something that has been throughly tested and known to work well. IFI default codes sometimes work in theory but not in real life. |
Re: looking for 1 joystick Pbasic drive code
Quote:
|
Re: looking for 1 joystick Pbasic drive code
Quote:
|
Re: looking for 1 joystick Pbasic drive code
Quote:
did you try adjusting the trim pot on your joystick? |
Re: looking for 1 joystick Pbasic drive code
i mistyped the port numbers we were trying the correct ones.
We fixed it by trying a different controller....there was an internal problem with my joystick (but i guess that is what I get for 6 bux at goodwill :rolleyes: ) |
| All times are GMT -5. The time now is 04:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi