|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
1 joystick drive
Has ne body noticed that the 1 joystick drive default code doesn't work?
|
|
#2
|
|||
|
|||
|
*anybody
Which default code do you mean? The only default code I know of is made for two joystick drive. rbayer, any thoughts? |
|
#3
|
|||||
|
|||||
|
Adding a jumper to Input 5 on the EduBot should make it switch to one joystick drive, our appears to work.
|
|
#4
|
||||||
|
||||||
|
What exactly do you mean by "doesn't work"?
RoboEmu seems to process it just fine. If you want to try it out, you will need to add eight 127s to the end of the serout to make it the same length as the full RC serout and you will need to add a colon after exit_drive_r_test on line 405 to make RoboEmu recognize it as a label. Just click the checkbox for sw5 and then play with port 1 to see the changes. If you want some more help, try the following tests on your robot and let me know what happens. I'm guessing that one of the motors just needs to be reversed or you need to swap which PWM drives each motor. Here's my list of tests: What happens when you push the joystick straight forwards? straight back? When you move it all the way to the left? to the right? In the upper-left corner? Lower-right? --Rob |
|
#5
|
||||
|
||||
|
it just goes crazy when we close sw5
so it will work if i just add a colon after line 405? I was wondering about that. some places in the code it uses a colon when calling labels and sometimes it doesn't. Please halp i hace never coded pbasic before. im used completely different languages such as PHP, java and C++ and this is a big change. Also is it possible to divide a byte variable by a decimal and just have the answer rounded? Last edited by Rickertsen2 : 15-12-2002 at 18:57. |
|
#6
|
|||||
|
|||||
|
Quote:
By the way, it is oft repeated that the BASIC Stamp doesn't handle negative numbers. This is NOT true. It will add, subtract, and multiply negative numbers correctly. IT WILL NOT DIVIDE CORRECTLY, though. |
|
#7
|
||||
|
||||
|
wait so u can store a negative # in a byte var? really!!!
Last edited by Rickertsen2 : 15-12-2002 at 20:25. |
|
#8
|
||||||
|
||||||
|
Quote:
As for the colon thing, it's just a matter of style. Technically, it's not needed following a label, but it makes code easier to read and that stipulation made RoboEmu a LOT easier to write. If you do want to pass EduCode through RoboEmu, don't forget to change the Serout line also. RoboEmu expects 18 bytes after 255,255, but the Edu code only has 10. |
|
#9
|
|||
|
|||
|
Our team has the program written already. The only thing is, we haven't tested it yet so therefore, we don't know if it works or not. Here I have attached the code to our configurations. Tell me if it's correct or not.
|
|
#10
|
|||||
|
|||||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 1 stick drive to 2 stick drive | wayne 05 | Programming | 18 | 01-04-2004 16:41 |
| Direct drive or Chain? | Suneet | Technical Discussion | 32 | 27-03-2003 23:00 |
| question about one joystick drive programing | james700 | Programming | 13 | 29-01-2003 14:49 |
| "Motors and Drive train edition" of Fresh From the Forum | Ken Leung | CD Forum Support | 6 | 29-01-2002 12:32 |
| switching joystick axis????? | team222badbrad | Technical Discussion | 9 | 16-01-2002 23:07 |