Feedback

Get hall sensor statistics

Description

Read back the statistics gathered from the hall sensors. Useful for checking the hall sensor health and noise in the system.

Inputs

None

Outputs

  1. u16 maxHall1: The maximum value of hall sensor 1 encoutered since the last statistics reset.

  2. u16 maxHall2: The maximum value of hall sensor 2 encoutered since the last statistics reset.

  3. u16 maxHall3: The maximum value of hall sensor 3 encoutered since the last statistics reset.

  4. u16 minHall1: The minimum value of hall sensor 1 encoutered since the last statistics reset.

  5. u16 minHall2: The minimum value of hall sensor 2 encoutered since the last statistics reset.

  6. u16 minHall3: The minimum value of hall sensor 3 encoutered since the last statistics reset.

  7. u64 sumHall1: The sum of hall sensor 1 values collected since the last statistics reset.

  8. u64 sumHall2: The sum of hall sensor 2 values collected since the last statistics reset.

  9. u64 sumHall3: The sum of hall sensor 3 values collected since the last statistics reset.

  10. u32 measurementCount: The number of times the hall sensors were measured since the last statistics reset.

Code examples

Log window

Choose a theme
Choose a theme