View previous topic :: View next topic |
Author |
Message |
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Thu Dec 22, 2005 1:46 pm Post subject: Explanation of rain graph chart constructor? |
|
|
As I feared, my decision to change the Metric conversion functions has already come and bit me in the butt. (see my new wishlist thread about the European weather collector)
Doh!
So now I'm going to have to go back and try converting the values from centimeters to millimeters in the user-images.c file rather than wvutils.
Could someone please explain how the values are computed and entered into the graphs in, for example the generateRainDay function for the rain/precip day chart?
I've managed to make the changes I want to buckets and dials.. but the charts are eluding me. I can't seem to find where the actual values are being gathered and inserted into the charts... I'm looking for somewhere where I can insert just one extra calculation (/10 or *10 usually) to get the value I'd like.
Any help is greatly appreciated. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Thu Dec 22, 2005 3:39 pm Post subject: |
|
|
I understand now why it's not as simple as the other functions... you're using a pointer instead of a regular float variable to grab the values.
That's beyond my level of expertise, so I guess I'll just leave it for now... |
|
Back to top |
|
|
|