Log in

View Full Version : quation Holonomic Drive use Windriver C++


yara92
28-12-2009, 16:53
I use Windriver C++
Where I can fined from the Simple Template (windr River VxWorks) how to hooked up the PWM pin of the Jaguars using 4 Motors to the Digital Outputs (Digital Sidecar PWM outputs for controlling speed controllers)
I am using this : Holonomic Drive 4 Motors
Jaguar plugged into PWM port 1
Jaguar plugged into PWM port 2
Jaguar plugged into PWM port 3
Jaguar plugged into PWM port 4

Code: MyRobot . Holonomic Drive (stick. GetMagnitude() ; stick.GetDirectionDegrees(); degree_90_fix); //drive with arcade style (use right stick)
Team 1946

byteit101
28-12-2009, 21:44
MyRobot . Holonomic Drive (stick. GetMagnitude() ; stick.GetDirectionDegrees(); degree_90_fix);

use , not ; to seperate arguments. Also, I would have a variable turn (assuming joystick with twist):
MyRobot.HolonomicDrive(stick.GetMagnitude(),stick. GetDirectionDegrees(),stick.GetTwist());

yara92
29-12-2009, 02:07
use , not ; to seperate arguments. Also, I would have a variable turn (assuming joystick with twist):
MyRobot.HolonomicDrive(stick.GetMagnitude(),stick. GetDirectionDegrees(),stick.GetTwist());

I will change the code
still I need from where I can fined from the Simple Template (windr River VxWorks) how to hooked up the PWM pin of the Jaguars using 4 Motors to the Digital Sidecar PWM outputs for controlling speed controllers)

yara92
01-01-2010, 06:18
change the code by right clicking open Declartion youcane see the source code