Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
DOUBLE is a double precision floating point number ~ 16 digits precision.Hi E,
This is a bit too difficult for me, but would it be ok for me to make a CALC program, with questions, and work through it?
Here's the start:
Using P.45-46 of the D/S 32BIT.
Are the DIMs so far ok?
Is 'VAR1' a WORD and 'DOUBLE' a LONG?
EDIT: The CALC has been tidied a little
C
Hi J,DOUBLE is a double precision floating point number ~ 16 digits precision.
Oshonsoft has single precision floating point numbers, ~ 6 digit precision.Hi J,
Can the equasion CALC be done in the form that I'm trying?
I don't see renference to DOUBLEs in the Oshonsoft reference manual.
C.
Hi J,Oshonsoft has single precision floating point numbers, ~ 6 digit precision.
You will lose some precision by using singles.
Another problem is that the word and long variables are unsigned integers.
Tx = b1×256 +b0 is the same thing as Tx.HB = b1, Tx.LB = b0Hi J and E,
I am trying to make this as easy for me as possible, and firstly trying the 32BIT equasion in the BMP280 D/S. If I don't suceed, I'll re-look at Python.
I noticed that many of the components, in the equasion are fixed i,e, dig_t1. dig_t1 to dig_p9 are settings built into each module (I assume callibration) so I have READ my 1st BMP280 module for those READings. If they are applied to the equasion, I'm no mathematician, but I think it can be distilled down quite a bit. (This will need to be done for each BMP280, so perhaps not best?) I'm slowly working through it.
E, Looking at programs as in #378 I notice that for similar .LB .HB READings there is no ' * 256 = ' component in them. Which is correct, or are they different?
C.
Yes, I just meant, that strings are not needed in calculations.hi jjw,
The String is required for displaying the P and T data on his 5110 Alphanumeric display.
I am not familiar with Python so I cannot help him with a Bin to ASCII conversion using Python.
The easiest method I have found using Oshonsoft is
ASCIIString = #BinValue
E