ARC Pro

Upgrade to ARC Pro

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

#9  

Hi All,

I spent a lot of time searching the forums and tutorials.

So far I have been able to run the vex forward and backwards but have not been able to get speed control worked out.

There is also a ramping feature on the controller but it looks like it needs some scripting to initiate it even though it says its an auto feature.

I have not found a good step by step walkthrough for scripting servo continuous controls other than super simple controls.

I am trying hard to learn but in this case I think I need to ask for help...Help!

#10  

What script or control are you using to make it go forward/backward?

#11  

Just the continuous servo control on D-0. All references to the modified servo control I find are for the EB-v3. No script being used yet because I am not sure how. Thanks for reply.

#12  

The continuous servo Movement Panel control or continuous servo control?... There is a distinction... You will need the former if you are trying to control 2 motors.... Playing with the servo settings in the control should give you what you want... An alternative is to use the custom Movement Panel and use basic servo script commands for forward, reverse, left, right and stop...

You are going to need 2 ports if you are using two channels/motors (not sure if the Jaguar supports two channels for this method)

Below is just an example of what you might put in the "forward" and "stop" scripts of the custom movement panel... You would use variations of it for left, right and reverse portions of the control this is if you are using an ezb4. It may work with the ezb3 as well


servo(D0,180) # full forward or reverse motor 1
servo(D1,1) # full forward or reverse motor 2


servo(D0,107) # full stop motor 1
servo(D1,107) # full stop motor 2

#13  

I was playing with both the Continuous servo Movement Panel control and the Continuous servo control. I am now looking at the Custom Movement Panel and that looks like the way to go with scripts. I will muck through it till I somewhat understand it then post questions from there. I will play with the joystick and see if that helps. I am using the ezb4 and two Jaguars.

Thanks Richard

#14  

This will work if you are using two Jaguars... I think maybe the custom Movement Panel is the way to go... This way you can use a variables to control speed... Variables are global so you can change the values in other scripts on the fly and the custom Movement Panel will respond immediately to the speed change...


$speed_M_one=180 #full speed
$speed_M_two=1 #full speed


servo(D0,$speed_M_one) #Jaguar 1
servo(D1,$speed_M_two) #Jaguar 2