I'm becoming crazy on this datapoint,
Elevation position have to be an angle between 0 and 90 degrees,
due to some bug that actually I can't discover, it happens that I've a strange value in Elevation Position,
it seems to be 0 but it is not
in my C code connected to mango via Modbus, I've the following patch:
#define EL_MAIN 0
#define NUM_OF_ELEVATION_AXES 2
float new_elevation_position[NUM_OF_ELEVATION_AXES] = { 0.0, 0.0 };
if (new_elevation_position[EL_MAIN] < 0.5f || new_elevation_position[EL_MAIN] > 89.5f){
----
}
but the stm32 doesn't enter inside the IF, so , how I can understand the value inside elevation_position? By my point of view a float container can only produce numbers, so there's no way to do not fall inside the IF.
Please share me your suggestment, it is no possible for me to see the raw value because the board is about 4000kms far away from me.
Thanks,
Antonio