View Single Post
  #10   Spotlight this post!  
Unread 17-01-2012, 00:37
CardcaptorRLH85's Avatar
CardcaptorRLH85 CardcaptorRLH85 is offline
The master of the cards ^_^
AKA: Raa'Shaun H.
FRC #0322 (F.I.R.E. "Flint Inspires Real Engineers")
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Michigan, USA
Posts: 59
CardcaptorRLH85 is an unknown quantity at this point
Send a message via ICQ to CardcaptorRLH85 Send a message via AIM to CardcaptorRLH85 Send a message via MSN to CardcaptorRLH85 Send a message via Yahoo to CardcaptorRLH85
Re: How do I code for a more complex joystick?

Quote:
Originally Posted by enrique View Post
Here try this.
http://www.techtigers.com/ResourceFi.../EngXInput.rar

From the robot code I was using this to send the angle of the gyro:
float angle = 0;
angle = (m_HeadingGyro.GetAngle());
m_TechTigerDashBoard.AddCluster();
m_TechTigerDashBoard.AddDouble(angle);
m_TechTigerDashBoard.FinalizeCluster();

you will receive the heading in the dashboard and I would multiply it by a very high number to in a sense make the gyro super sensitive and in essence using the gyro as a bump sensor and shaking the joystick.

I made several dlls that used directx and what not. If the EngXInput.dll does not work on your joystick let me know and I will send the other ones. But if I remember correctly, this one worked with most joysticks.
Thanks, I'll try this out when I get a chance to test our robot later today.
__________________

Reply With Quote