The Cessna 152 clock doesn't give the right time

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: Ralph, russ

Post Reply
Message
Author
User avatar
bartroozendaal
Posts: 30
Joined: Wed Jan 06, 2021 8:01 pm
Contact:

The Cessna 152 clock doesn't give the right time

#1 Post by bartroozendaal » Thu Apr 15, 2021 8:41 pm

It looks like FS2020 doesn't return the values as expected. I updated the script with this quick, naïve patch, so it at least gives the time I want (the Dutch time) ;-)

Code: Select all

function PT_time(s_l,m_l,h_l,s_z,m_z,h_z)
    
    if user_prop_get(prop_time) == "Local" then
        h = var_format(h_l, 0)
        m = var_format(m_l - (h * 60), 0)
        s = var_format(s_l - ((h * 60 * 60)+(m*60)), 0)
        h = h + 2
    else
        s = s_z
        m = m_z
        h = h_z
    end

    rotate(img_sec_hand, s * 6)
    rotate(img_small_hand, h * 30 + m * 6 / 12)
    rotate(img_big_hand, m * 6)

end
Bart Roozendaal
https://fsarduino.com

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests