I am learning along here, i am trying out different float, unsigned longs etc... i have also got my "cheat-code" to work... i tried the freqmeasure.h and that worked like a charm...
don´t get me wrong here, i like to learn and i am listening to all of you! big thumbs up for you guys! So while i try to compile my "own" code i also trying librarys with examplecode...
just sharing what i tried yesterday, i also tried to add a button so i can choose when i want to take a reading.
Good move with the button.
When you use floating point constants like the 22 in
const float A = 22;
it's good to put in a decimal just to be sure, like how the UL goes on
const unsigned long U = 12345UL;
and usually people would write 22.0 instead of 22., I guess for easy reading.
Most of the time the compiler will get it right or it won't matter but it can gitcha and those bugs can be a real pain.
Keep on with the updates!
I tried to add a decimal (22.0) to the const float;
4.44
20.38 Mag/Arcsecond2
4.58
20.35 Mag/Arcsecond2
4.53
20.36 Mag/Arcsecond2
1.34
21.68 Mag/Arcsecond2
2.75
20.90 Mag/Arcsecond2
4.46
20.38 Mag/Arcsecond2
4.26
20.43 Mag/Arcsecond2
4.25
20.43 Mag/Arcsecond2
4.22
20.44 Mag/Arcsecond2
3.87
20.53 Mag/Arcsecond2
0.86
22.16 Mag/Arcsecond2
3.69
20.58 Mag/Arcsecond2
And this is without the decimal;
3.64
20.60 Mag/Arcsecond2
3.81
20.55 Mag/Arcsecond2
3.97
20.50 Mag/Arcsecond2
4.18
20.45 Mag/Arcsecond2
4.19
20.44 Mag/Arcsecond2
3.49
20.64 Mag/Arcsecond2
3.72
20.57 Mag/Arcsecond2
3.78
20.56 Mag/Arcsecond2
3.66
20.59 Mag/Arcsecond2
3.53
20.63 Mag/Arcsecond2
3.40
20.67 Mag/Arcsecond2
Can´t see any difference, but as you say, there might be problems later on without the decimal?