View Single Post
  #7   Spotlight this post!  
Unread 06-07-2004, 22:01
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: [FVG]: Controls Round B1

ok.

There is a config dialog. You can map each input to an OI pin.

The inputs are:
  1. Mouse X, Y, H, V (scroll wheel)
  2. Mouse buttons (1-5)
  3. Keyboard buttons (include alt, ctrl, shift, win?)
  4. Joystick axis 1-6
  5. Joystick buttons 1-32
  6. possibly dashboard/RC
1, 4, 6 are analog; 2, 3, 5, 6 are digital

Mouse XY can be based on position or rate of movement.

the conversion between analog/digital is actually pretty simple. It's based on a value.
  • in A>D, the value is a threshold. below = unpressed, above = pressed. also can make an axis do 2 buttons, one above center, one below.
  • in D>A, the value is a number. (eg if Key=pressed then axis=number)

so how this all works together is that the sources map to OI inputs (16 axis, 16 buttons). These values are fed to the robot. presto! controls done.

As for connecting to the OI/RC, I have 2 ideas:
  • use the dashboard port and set it to send OI data
  • connect to the prog port on the RC and have it send the values. (in a 20 byte packet). I could write a program to do that, I think.
obviously, the OI setup would map directly to the inputs.

suddenly, every one of our computers have 4 more wireless gameports.
Reply With Quote