IRNAS / koruza-rpi-package

Software package for KORUZA compute module
GNU General Public License v3.0
2 stars 1 forks source link

Enable reporting of values from algorithm #12

Open SloMusti opened 6 years ago

SloMusti commented 6 years ago

Enable values to be reported from the alignment algorithm along with all other measurements of the unit, such that we can monitor and debug alignment remotely.

kostko commented 6 years ago

Reporting of variables added in 7b303cfa766282aa38118226576eeff63c9fd4dd.

An ubus call to set_alignment can be used to configure current state and extra variables - the example has been updated to include this new API method, which can be called as local.set_alignment(42, [1,2,3,4]) where 42 is the current state and [1,2,3,4] is a list of extra variables (all four must be sent otherwise the command is invalid).

These extra variables are currently ignored in nodewatcher, but once an algorithm implements them, we can add support for showing them in nodewatcher.