dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Gamepad control for robot

  1. #1
    Join Date
    Mar 2010
    Posts
    8

    Talking Gamepad control for robot

    Hi guys,

    Beginner C# programmer here. I am looking to control a robot via a gamepad and code it through Visual C# (the interface and C# code). What will need to happen is that when the user presses the UP button, it will convert that UP command into a data stream of about 11 bytes and send it through the serial port on a PC.

    Can someone give me insight on what I should be using to achieve this? I have looked around and it seems that this can be done with the XNA platform with this:
    http://xnadirectinput.sourceforge.net/

    I will use an off the shelf gamepad.

    Any comments would be appreciated.

  2. #2
    Join Date
    Mar 2010
    Posts
    8

    Re: Gamepad control for robot

    Actually it seems like i can just use the DirectX SDK and use DirectInput for this. I'll look into this a bit more.

  3. #3
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    210

    Re: Gamepad control for robot

    I would rather make that controller talk directly to the robot via a micro controller,
    instead of using PC+RS232 for middle ware.

  4. #4
    Join Date
    Mar 2010
    Posts
    8

    Re: Gamepad control for robot

    I would too, but it is a user interface for the end user.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)