Go to Post Solutions are more likely to be implemented if you provide the solution along with the concern! - Jessica Boucher [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-08-2007, 23:59
core2extremist2's Avatar
core2extremist2 core2extremist2 is offline
Progammer
FRC #1861 (Sharc)
Team Role: Programmer
 
Join Date: Aug 2007
Rookie Year: 2006
Location: CO
Posts: 6
core2extremist2 is an unknown quantity at this point
Exclamation running a basic stamp off of a joystick and a computer

i have a sg6 crustcrawler robotic arm with a basic stamp and a bord of educaton.

i am trying to get comand streems from the joystick into the comp and into degrese of a servo and out to the basic stamp.

im using a logitech wingman strikeforce 3d joystick

this is a usb joystick and the comand stream that comes from the joystick into the computer is unknone
so i would like to be able to decode that using a java program.
i have heard of direct x librarys for eclipse

__________________
-The Man Never Seen But Always His Programing Work Is Always Noticed-

MC

Last edited by core2extremist2 : 15-08-2007 at 19:15.
  #2   Spotlight this post!  
Unread 15-08-2007, 15:47
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: running a basic stamp off of a joystick and a computer

I made a program a few years ago in visual basic that allowed you to use a joystick as a mouse..

I used
http://allapi.mentalis.org/apilist/joyGetPos.shtml

and then you can just send the position or whatever out the serial port to be read by the basic stamp
  #3   Spotlight this post!  
Unread 15-08-2007, 19:21
core2extremist2's Avatar
core2extremist2 core2extremist2 is offline
Progammer
FRC #1861 (Sharc)
Team Role: Programmer
 
Join Date: Aug 2007
Rookie Year: 2006
Location: CO
Posts: 6
core2extremist2 is an unknown quantity at this point
Re: running a basic stamp off of a joystick and a computer

this doesnt help much because a mouse doesnt have as many butons as i need and this is a usb joystick
__________________
-The Man Never Seen But Always His Programing Work Is Always Noticed-

MC
  #4   Spotlight this post!  
Unread 17-08-2007, 18:24
core2extremist2's Avatar
core2extremist2 core2extremist2 is offline
Progammer
FRC #1861 (Sharc)
Team Role: Programmer
 
Join Date: Aug 2007
Rookie Year: 2006
Location: CO
Posts: 6
core2extremist2 is an unknown quantity at this point
Re: running a basic stamp off of a joystick and a computer

what i need to know about the joystick is these 2 things:

1. What data does the controller send back to the computer?
2. What format is that data in?
__________________
-The Man Never Seen But Always His Programing Work Is Always Noticed-

MC
  #5   Spotlight this post!  
Unread 17-08-2007, 21:51
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: running a basic stamp off of a joystick and a computer

Quote:
Originally Posted by core2extremist2 View Post
this doesnt help much because a mouse doesnt have as many butons as i need and this is a usb joystick
Um.. you can use any of the joystick buttons i just mapped a couple to mouse buttons.. and i was using a usb joystick
Attached Files
File Type: zip JoyStick3.zip (8.3 KB, 58 views)

Last edited by bear24rw : 17-08-2007 at 21:55.
  #6   Spotlight this post!  
Unread 19-08-2007, 22:25
core2extremist2's Avatar
core2extremist2 core2extremist2 is offline
Progammer
FRC #1861 (Sharc)
Team Role: Programmer
 
Join Date: Aug 2007
Rookie Year: 2006
Location: CO
Posts: 6
core2extremist2 is an unknown quantity at this point
Re: running a basic stamp off of a joystick and a computer

ok i have the files what am i suposed to do with them??

i dont have visual basic

i have elcipse
__________________
-The Man Never Seen But Always His Programing Work Is Always Noticed-

MC
  #7   Spotlight this post!  
Unread 19-08-2007, 23:31
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: running a basic stamp off of a joystick and a computer

Well they just provide examples of using the dll's. I dont know how easy it would be to port to c++ or java or whatever you are using but I just posted it as an example. btw, the code can be viewed by viewing the .vb file in notepad
  #8   Spotlight this post!  
Unread 20-08-2007, 00:25
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: running a basic stamp off of a joystick and a computer

GlovePIE is an application that maps input from (unusual) devices onto whatever else you want it to be mapped to. You can use Wiimotes to map to mice commands, joysticks to map to typing things, whatever. If it causes input, GlovePIE can intercept it and fake output as something else.

Combine this with a program called PPJoy, which allows you to create "ghost" or "software" joysticks that Windows think are real, and you can map whatever you want to a "plain old analog" joystick.

So, intrepid reader, you can now read a Wiimote into a computer and trick the computer into thinking it is whatever you want. Couple this with a bit of software, maybe a custom circuit or maybe just your serial port, and an FRC Controller, and what could you cook up?

A hundred thirty pound robot driven by a Wiimote.

This is on my to-do list for winter break.

----

PS, that whole wiimote thing is a tangent. Use GlovePIE and you can map the input joystick however you want.
  #9   Spotlight this post!  
Unread 20-08-2007, 19:13
core2extremist2's Avatar
core2extremist2 core2extremist2 is offline
Progammer
FRC #1861 (Sharc)
Team Role: Programmer
 
Join Date: Aug 2007
Rookie Year: 2006
Location: CO
Posts: 6
core2extremist2 is an unknown quantity at this point
Re: running a basic stamp off of a joystick and a computer

oh wow this is just what i need thanks
__________________
-The Man Never Seen But Always His Programing Work Is Always Noticed-

MC
Closed Thread


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
STAMP (Statistical Team Analysis of Match Performance) is off and running! Ethulin Scouting 6 04-02-2006 23:12
Basic Stamp 2 and SSC Venkatesh Electrical 12 20-11-2004 21:57
BASIC Stamp as a server Raven_Writer Technical Discussion 7 23-09-2003 12:16
no basic stamp found! DLyons Programming 7 23-12-2002 22:17
Computer Graphics and Visual Basic Programing Gope General Forum 0 26-10-2002 13:44


All times are GMT -5. The time now is 19:48.

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