
Can anyone help with scripting? I need to be able to have the speed of the G-Bot be ramped up and down rather than full on/off or there is a serious risk it will topple.
Right now I have the sabertooth control set up as in the attached photo. I have joystick 1 of the joystick control controlling it but I only get full on or off or full clockwise or counterclockwise rotation. Also, the joystick is 90 degrees off what I'd like( '3 o'clock' = forward, '9 o'clock' = reverse, '12 o'clock' = clockwise in place, '6 o'clock' = counterclockwise in place - but I can live with that for now if I have too).
I've been reading and watching tutorials and it seems like the movement scripting control is designed to do this but the input lines are different between the movement script control and the sabertooth control(stop, forward, reverse, left right versus 'left forward', 'right forward', 'left turn left', 'right turn left', 'left turn right', 'right turn right', 'left reverse', 'right reverse') and I have no idea how to write a script command to appropriately include a variable to do what I'm trying to do (OMG, that high school curse had come true! It comes down to algebra! doesn't it? Oh noooo!)
Can anyone take mercy on us and our Halloween plans and suggest some script to try and tell me which lines should go where?
PLEASE, PLEASE, PLEASE?
Thank you, Gwen
Sounds like an area to research for sure @Dave
Well, actually the new script isn't working. Something about a 'motor 2 endspeed not defined' I didnt notice before. I don't even know where to look.
No worries though, I have the G-Bot set up with v1 of the ramping code and am ready to go...
The G-Bot's Halloween 2014 development phase if officially closed. Its showtime!
Have fun and don't forget to give us a front seat for the show!
@gwen Good luck... and try not to kill any of the trick or treaters with that thing.... LOL
No dead children tonight (at least not by the treads of the G-bot) Lol... I'll post a nice update late tomorrow and video as soon as I have some time tom put something together.
Lots of lessons learned ... Lots of fun...
Scared the heck out of my grandson...