You are not logged in - Log in
Sign up for our newsletter! 
Home Dashboards Forum Tools Help Contact Us

Author Topic: Showing Hour on "Analog" (Circular) Clock  (Read 3793 times)

Offline XKR2005

  • Newbie
  • *
  • Posts: 39
    • View Profile
Showing Hour on "Analog" (Circular) Clock
« on: May 03, 2017, 07:54:45 am »
Using the PIDs DASHXL.TIME.MIN and DASHXL.TIME.HOUR12 for the position of the minute and hour hands, respectively, I've just about gotten my "analog" clock to work. My only problem is that the value for "hours" is discrete and not continuous. As a result, when the clock shows, say 5:59, the hour hand is on 5 and the minute hand is on 59. One minute later, the hour hand is on 6 and the minute hand is on 0. Is there any way to get the hour hand to move smoothly around the clock face as the minutes progress (like a "real" clock)?
 ???

Offline [email protected]

  • Administrator
  • Sr. Member
  • *****
  • Posts: 467
    • View Profile
Re: Showing Hour on "Analog" (Circular) Clock
« Reply #1 on: May 03, 2017, 04:58:06 pm »
On your needle object, turn off data smoothing. This will cause the needle to "jump" to the new value, instead of sweeping, so it won't wrap the wrong way around the entire clock every time.

Offline XKR2005

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Showing Hour on "Analog" (Circular) Clock
« Reply #2 on: June 08, 2017, 06:36:49 am »
I'm not sure you understood my question. What I'm trying to do is get the hour hand to move as it would on a "real" clock, e.g., if it's 11:30, the minute hand is on 6 and the hour hand is HALF-WAY BETWEEN the 11 and 12, if it's 11:45, the minute hand is on 9 and the hour hand is 3/4 of the way between the 11 and 12. What I'm seeing, however -- regardless of whether data smoothing is "on" or "off" -- the hour hand, in these examples, always points directly at 11. Even at 11:59, the hour hand points directly at 11. One minute later, the hour hand "jumps" to 12. So, is there any way to get the hour hand to move "smoothly" around the clock face instead of jumping from one hour to the next and then remaining there for an hour?

Offline [email protected]

  • Administrator
  • Sr. Member
  • *****
  • Posts: 467
    • View Profile
Re: Showing Hour on "Analog" (Circular) Clock
« Reply #3 on: June 08, 2017, 06:25:26 pm »
Yes, you would do this by adding more needles inside of your hour hand needle. You'd need another needle with a small (1 hour) sweep that goes from 0-60 minutes to adjust the hour hand further. This would not replace the needle for your minute hand.

I've done analog clocks before, and my previous response was to get rid of the needle sweeping the wrong way around the clock face when the data resets (minutes go from 59 to 0, hours from 11 to 12), if smoothing is on it will wrap all the way in the wrong direction like a gauge would.
« Last Edit: June 08, 2017, 06:27:13 pm by [email protected] »

Offline SkyHawk

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Re: Showing Hour on "Analog" (Circular) Clock
« Reply #4 on: December 21, 2022, 10:01:58 pm »
Has anyone been able to make this work? .. I guess I don't understand the "another needle with a small (1 hour) sweep that goes from 0-60 minutes" part.  I've tried a lot of iterations with no luck.

 

Home | Dashboards | Forum | Help | Contact Us | Terms of Service
Powered by Palmer Performance
Copyright © 2023 Palmer Performance Engineering, Inc. All Rights Reserved.