Proper construction of before.after values in FrSkyHub
|Assignee:||Hans Cappelle||% Done:|
|Category:||FrSky Hub||Spent time:||-|
|Target version:||3.0 FrSky hub and sensors|
The Hub "channels" that consist of a "before" and "after", needs to be properly constructed to a number (double). This should be within the hub.
It needs to be done as the containing frame arrives, so that the correct before matches the correct after to prevent race conditions.
This would typically be something like:
altitude = altitude_before+(altitude_after/100)
This means that before and after values are stored persistently somewhere...