need help with gripper for school project
jturovskiy
Posts: 1
I'm working on a BOE-BOT with the Gripper attachment for a competition in my school. We got the movement of the bot down, and the gripper function to work, but not together. Yesterday, I managed to get both actions to work together, but I had to get rid of the HALT command in order to get the gripper to work. I don't know much about this, so any help would be greatly appreciated!
Here's a copy of my code so far if it'll help.
Here's a copy of my code so far if it'll help.
Comments
Use RETURN for GOSUB instead of GOTO
Reason:
Gosub puts the address of the next command on a stack )like a stack of plates) Then the return pops the address back off the stack when the RETURN command is issued. This then continues program execution to the next command in line after the GOSUB command. Without using RETURN you are overflowing the stack (the stack can hold a finite number of return addresses) so you crash the program by running out of memory.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!