Shop OBEX P1 Docs P2 Docs Learn Events
Problem with Gamecube Driver Object — Parallax Forums

Problem with Gamecube Driver Object

KokovecKokovec Posts: 14
edited 2008-05-27 19:18 in Propeller 1
I'm runing the Gamecube object on a Prop demo board with a Madcatz controller.
All of the buttons work fine but the joysticks do not seem to be sending back the correct data.
I'm guessing that the X and Y values should range from $00..$FF but I get nowhere near that.

For instance when I move the left joy all the way to the left it gives me X=$74 Y=$10.
Left joy moved all the way to the right gives me X=$CF Y=$30.

The C1 joystick give me similar readings.

Has this driver been tested on a Madcatz controller or only on a real Gamecube controller?

Thanks,

Dan

·

Comments

  • CJCJ Posts: 470
    edited 2008-05-26 19:16
    the driver has only been tested with the official controller, as long as the center is between the endpoints, the data should be good. what are you getting for center readings?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Parallax Forums - If you're ready to learn, we're ready to help.

    Post Edited (CJ) : 5/26/2008 7:22:49 PM GMT
  • KokovecKokovec Posts: 14
    edited 2008-05-26 21:19
    It makes sense that you would build the driver with a real Gamecube controller.

    The Madcatz centers at JoyX=$CA, JoyY=$2C

    ·
  • CJCJ Posts: 470
    edited 2008-05-26 21:50
    are you getting these readings in your own program or the test program included in the object?
    if using the test, do the readings move smoothly over the range available?
    have you tried the controller hardware reset/kept the sticks centered during power on?
    unfortunately I don't have a madcatz controller, so I can't test.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Parallax Forums - If you're ready to learn, we're ready to help.
  • KokovecKokovec Posts: 14
    edited 2008-05-26 23:55
    I get these readings with my own program (which looks at both Gamecube data longs) as well as the Test program you supplied with the object.

    OK, strange thing...·I loaded the program into eeprom and turned on the prop demo board.
    Now I get $7F accross the board so that looks right.

    However I don't have full travel. Both joys in both directions go from $10 to $EE.

    I'll try to get a real Gamecube controller to see how that works for me.



    By the way very nice job on this object [noparse]:)[/noparse]
  • CJCJ Posts: 470
    edited 2008-05-27 00:33
    those travels are about right, the official controller does the same. I think it just was having some issues with the startup.

    thanks for the compliment

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Parallax Forums - If you're ready to learn, we're ready to help.
  • KokovecKokovec Posts: 14
    edited 2008-05-27 19:18
    You're right (of course) about the Joy XY travels.

    I think I figured out why the controller was flakey at start-up.
    When I remove the USB cable from the Prop demo board and recycle power it locks in every time.
    When I plug the USB cable back in the readings are off again.
    I'm guessing that the USB port is supplying a short burst of voltage to the·controller which does not have enough time to properly initialize.
Sign In or Register to comment.