CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2012
    Posts
    10

    Moving an image using a IR sensor(MFC)?

    Hey guys,I have an IR sensor here and I was wondering would it be posssible to create some sort of mfc program to move an image on the screen with the sensor?

    The sensor I have is the same as this video here and I was thinking of maybe doing a more basic program of the one being shown here
    http://www.youtube.com/watch?v=mkM4B...IU_JuOi3W-8fQ=

    My only real experience with mfc has been making a program to read and display values on screen from a serial device.

  2. #2
    Join Date
    Mar 2004
    Location
    Central Florida
    Posts
    293

    Re: Moving an image using a IR sensor(MFC)?

    Sure you can. You would need to convert thew sensor data to pixel/screen coordinates and sync it (like the Android callibration functionality). Then you could use the sensor data to set the Top/Left properties of a Picture Frame container. This is not a trivial task/applicaiton.
    "Effective teaching is the essence of leadership..."

    "There is no substitute for a carefully thought-out design."

    If you have found this post to be useful, please Rate it.

  3. #3
    Join Date
    Apr 2012
    Posts
    10

    Re: Moving an image using a IR sensor(MFC)?

    Quote Originally Posted by mlgoff View Post
    Sure you can. You would need to convert thew sensor data to pixel/screen coordinates and sync it (like the Android callibration functionality). Then you could use the sensor data to set the Top/Left properties of a Picture Frame container. This is not a trivial task/applicaiton.
    Ah ok thanks,is there anywhere I can look at something similiar to this or some form of example?

  4. #4
    Join Date
    Mar 2004
    Location
    Central Florida
    Posts
    293

    Re: Moving an image using a IR sensor(MFC)?

    The closest thing that I know of would be thisone:
    http://hackaday.com/2008/10/30/how-t...trol-receiver/
    "Effective teaching is the essence of leadership..."

    "There is no substitute for a carefully thought-out design."

    If you have found this post to be useful, please Rate it.

  5. #5
    Join Date
    Apr 2012
    Posts
    10

    Re: Moving an image using a IR sensor(MFC)?

    Closest thing I could find was this
    http://scontroler.svn.sourceforge.ne...roler/TestUSB/

  6. #6
    Join Date
    Apr 2012
    Posts
    10

    Re: Moving an image using a IR sensor(MFC)?

    Anything new here?

  7. #7
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: Moving an image using a IR sensor(MFC)?

    Quote Originally Posted by johnjameson View Post
    Anything new here?
    Look, there's nothing new here just because your issue has nothing to do with either VC++ or regular programming topics like networking or database programming. Your case is about interfacing with some fancy device having no standard interface/API, so it hardly belongs here.
    Best regards,
    Igor

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured