Go to Post 2011. Tried swerve. Didn't move for 1.5 regionals. - cadandcookies [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2010, 14:46
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
HID Joystick classes - Vibrating Joysticks

Does any one know of a way to access the windows DirectInput Interfaces with the winriver/frc available headers and classes?
I didn't see anything in the hid or joystick headers.
The end result desired is to call the DirectInputEffectDriver interface to cause a vibrating joystick to vibrate. Or if there is any other way you know of vibrating a joystick programatically please enlighten me.
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2010, 15:50
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: HID Joystick classes - Vibrating Joysticks

The Cypress boards have digital outputs. So you could disconnect the shaker device from the joystick's controller and hook it directly to a digital output. Just check to make sure that the digital output can handle the load from the shaker.
__________________
Get yer robot source code here!
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2010, 16:09
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
Re: HID Joystick classes - Vibrating Joysticks

Yea I had something like that in mind as plan B.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2010, 17:22
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: HID Joystick classes - Vibrating Joysticks

Since you can add data to the Dashboard data coming from the robot, you could add some values for vibration into your user data of the dashboard packets. You could then make a program that peeks at incoming packets and interfaces with DirectInput to give you the force feedback you want.
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2010, 18:08
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
Re: HID Joystick classes - Vibrating Joysticks

Just read your post slavik262.
That is what I want to do. Receive input data and use direct input.
I forgot that the real place to do this would be the PC dashboard. It receives the sensor data and runs on windows, not on the controller. All I have to do is make an active x control with the direct input API and call it from the pc dashboard.
Problem solved!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AP Classes bobwrit Chit-Chat 33 09-05-2009 23:20
Online classes? Team 1708 Dave SolidWorks 0 24-06-2008 09:14
Inventor Classes Daniel_H Inventor 6 11-05-2005 22:38
AVB joysticks..and other analogue joysticks tml240 Kit & Additional Hardware 6 07-02-2004 12:45
Robotics Classes Element945 General Forum 8 05-03-2003 22:02


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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