Hi Isaac,
sorry for the late response;
You're right! Your setttings are correct;
I've tested your solution on the same project and with float no problems arise.
I declared the variable as follows:
acc32_t a32PGain;
Testing again I Found that my problem arises when i try to modify variables viewed as integer (32 or 16 bit) and than transformed as shown in the following picture:
In this case i noted that I can still write to the variable values as 0, 1.1, 2.2, 4.4, 8.8, 17.6 ecc.. seems all multiples of a but not any other numbers.
E.g. i can write to a32PGain the value 169.4 (169.4=1.1*154) but not the value 170.
I tried the same strategy above with the coefficent a = 3.01758e-5 and I confirm I can write values as 3.01758e-5, 6.03516e-5 (=2*3.01758e-5) but not numbers in the middle.
It seems that Freemaster doesn't know how to round numbers and accepts only multiple of the multiplier a
Thanks for your collaboration!
Regards,
agostino