Thread: updating a red point on the screen

  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    6

    updating a red point on the screen

    Hi everybody I am trying to show a red point its radius and distance received from my Arduino on the screen I have to update the red point continual.can you help me

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Points don't have radii. Can you try your question again and use punctuation?
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Apr 2012
    Posts
    6
    Ofcourse itsme86,I mean a Radar system simulation.I receive two integer from Arduino using serial port communication ,1)D is distance (Radius) which is received from my sensor,the maximum value is 3 meter and 2) A is angle which is received from my servo motor and changes between 0-180 degree.I probabley have to draw a semicircle with 3m radius,I think I can place the red point on the semicircle using my D and A integer.But the problem come when I want to update the values because I receive the D and A valuse continual and I have to update them.

  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    I would probably use a System.Timers.Timer object with a short interval. Every time the timer elapses, you could get the new values and update the screen.
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 04-27-2011, 04:34 AM
  2. Updating display on screen?
    By shadow1515 in forum C Programming
    Replies: 2
    Last Post: 06-06-2008, 10:24 AM
  3. SDL screen not updating properly?
    By jmd15 in forum Game Programming
    Replies: 4
    Last Post: 04-22-2007, 06:26 PM
  4. client area topleft point relative to screen
    By underthesun in forum Windows Programming
    Replies: 2
    Last Post: 01-31-2005, 12:38 AM
  5. Floating point faster than fixed-point
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-08-2001, 11:34 PM