Robotics @ ATDP
Tank Program
2005/07/11 20:43:47 PDT by James [0/10]
Awards: 7 from gandalf

For the program for the tank robot I relied on a task split. On the top of the task split I made the robot turn left when the left touch sensor was pushed. On the bottom of the task split I made the robot turn right when the right touch sensor was pushed in. I had only used a task split once, and it had not worked at all. But this time, to my supprise, it worked perfectly. I guess a task split is really useful after all!

2005/07/11 21:01:19 PDT by TK [0/48]
Awards: 3 from gandalf

Yea I used A task split too
but isn't the robot supposed to turn to the right when pushed one the left and vice versa? it's supposed to go around the obstacle not ram into it.

Added at 2005/07/11 21:01:42 PDT

that's how I programmed mine anyways.

must...reinforce.....creation....

2005/07/11 21:14:18 PDT by CrazyAsianMan [0/39]
Awards: 2 from gandalf

I didn't use a task split because it did not work. :( Instead I had to use touch sensors fork twice and series of jumps to make mine work.

2005/07/11 21:15:40 PDT by CrazyAsianMan [0/39]
Awards: 2 from gandalf

When pushed in it would turn left or right depending on the fork and if left out it would just go straight. It seems to work so i'm happy. My only problem is knowing how to write in forks for the English translation.

2005/07/11 21:49:59 PDT by Darth Vader [0/15]
Awards: 1 from gandalf

I did the same thing.

2005/07/11 22:45:02 PDT by Omar Mohammed [0/24]
Awards: 3 from gandalf

In Response to James's topic and David's I am also that the task split worked for me because for the trackerbot when it had to go on the track with the light sensor the task split didn't work for me and became frustrating trying to make it work, but luckily works now (i did know they worked just didn't know how to make them work).

2005/07/11 22:46:03 PDT by Omar Mohammed [0/24]

I probably replied wrong but i hope i still get credit for what i put previously

2005/07/11 23:03:18 PDT by CrazyAsianMan [0/39]
Awards: 3 from gandalf

How did you make the task slit work? Mine always had errors on it especially when trying to use jumps and loops. To anyone who wants to know I've been asked this task split for english translation is written.
Task Split
Motor Forward
Wait for Time
END
Task Split
Motor Reverse
Wait for Time
END
This is just an example. Can anyone tell me how to write down forks? Need info ASAP.

2005/07/11 23:06:58 PDT by CrazyAsianMan [0/39]
Awards: 2 from gandalf

AHHHHHHHHHHHH!!!!!!!! I'm confused. I programmed my robot to go right when the left touch sensor was touched, is that how its supposed to work. I asked Alex and he did the same thing, however other ppl in this forum seems to have done the opposite thing.

2005/07/12 07:42:39 PDT by CrazyAsianMan [0/39]
Awards: 1 from gandalf

I just saw my post now and the one that has the example of the task split wrong. It did not do the indent. So everything after the tasksplits should be indented.

2005/07/12 07:51:31 PDT by UPbrit [manager]
[UPbrit's avatar]

......
I really need help on using events, because mine works fine for 1 time, but after that, it has to go through the whole task before waiting for a touch sensor input.... :(
Can anypne help?

Join Neopets Now, and Have FUN!!!!
[image]

2005/07/12 12:22:10 PDT by UPbrit [manager]
[UPbrit's avatar]

Hi again
I managed to do it using 2 task spliuts, 2 events, and 2 touch sensor forks. Now, it will respond if a touch sensor gets hit anywhere in the program, even when it is turning, etc.
Cya
Ulysses

Join Neopets Now, and Have FUN!!!!
[image]

2005/07/13 20:46:57 PDT by terribleivan932 [0/30]
Awards: 3 from gandalf

Ok i didnt know i responded in the wrong forumn i ended up responding on teh morning class back on teh day this was due so i just got word of it today but um yes i used the task split and it worked fine.

Oh how wrong we were to think that immortality meant never dieing ~ MCR
SOL - Ivan

Site Design © 2005 by Arkajit Dey
Powered by Io Community Manager