Asked — Edited

Joystick/Movement Panel Question

So I am puzzled... I have my Movement Panel working and it works fine using arrow keys ... But when I use the joystick I can see the GU lighting up in corespondece with joystick movent and the Movement Panel GU even lights up same as if I was using the arrow keys... Only difference is nothing happens with robot.. but again if I put joystick down and hit arrow keys the bot will move. ? Note: that sometimes within same instance periodically I will get movement from bot with joystick but that is only temp.. What puzzles me the most is I could see trouble shooting it if when the joystick is used nothing happens on the GU... But everything is lighting up


ARC Pro

Upgrade to ARC Pro

Unleash your robot's full potential with the cutting-edge features and intuitive programming offered by Synthiam ARC Pro.

#17  

@Rich... Sort of... When I first power on the sabertooth I send it an initial stop command SendSerial(D0,38400,0)... If I don't do this then any other movement command initially doesn't respond correctly... In other words if I ask the bot to move forward, usually only one motor responds until I issue another command... After that it performs as expected....

#18  

Ok, looks like my issues were caused by my wireless Joystick... I plugged in my old wired one and everything works fine now.... @Jayutmb ... sorry about that man... Didn't mean to shift the focus off of your issues... I thought I had the same issue as you...

#19  

11815fullr2withramp.EZB

ok guys here is my current project that i am talking about (dont laugh it is far from done lol) I was going to upload it after work yesterday... but I got pulled (not hard to convince me however) to happy hour... that turned into a few hours.. lol!

Anyhow here is project :) And thanks again for helping this noob out:)

United Kingdom
#20  

I'll take a look in a sec.

Just to make it easier, what ports are you using for what? The port details hasn't been filled out on the project so rather than guess it all it would be easier if you could let us know.

#21  

ahh yes I guess that would be useful:)

d3 sabertooth to the two feet motors d2 is syren for dome motor d1 and d0 are servos for the robot utility arms

United Kingdom
#22  

It should be working. I just checked it out and, although I have no sabertooth to test it with, it should work fine. All commands are being sent as they should be, all variables are being adjusted as required by the scripts and the joystick is setting the direction and therefore triggering the ramping scripts with the desired speeds.

Is there any reason why it's on D3? The ramping script is proven to work on D7 as that's what Gwen was using it on. If you can use D7 it's simply a case of importing the joystick control, movement scripts control and the custom Movement Panel (no need to merge the test script or the graphs).

Or possibly change it around and start with the Sabertooth Ramping project and import your other controls in to that one by one. Try the Sabertooth Ramping project in it's vanilla state, make sure that works as desired and then bring each of your own controls in one at a time, testing afterwards to check it still works. This will pinpoint the problem control.

#23  

ok i will give that a try:) but you can see how it is strange right ?

#24  

I just tested your project with a bot I have a sabertooth in... It works with my wired Joystick... I had to change some values for forward, reverse, left and right as my sabertooth is no doubt wired differently than yours, but my joystick works great with all four Movement Panel directions...

I am curious why in the left and right script of the Movement Panel you have only one motor set to move... The other motor you have issued a stop command for... Were you wanting a "swing turn" instead of a "pivot turn"?

@Rich, by the way your ramping script works perfectly dude...:)