Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   quation Holonomic Drive use Windriver C++ (http://www.chiefdelphi.com/forums/showthread.php?t=79489)

yara92 28-12-2009 16:53

quation Holonomic Drive use Windriver C++
 
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

Re: quation Holonomic Drive use Windriver C++
 
Quote:

Originally Posted by yara92 (Post 891236)
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

Re: quation Holonomic Drive use Windriver C++
 
Quote:

Originally Posted by byteit101 (Post 891314)
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

Re: quation Holonomic Drive use Windriver C++
 
change the code by right clicking open Declartion youcane see the source code


All times are GMT -5. The time now is 11:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi