POWER_LEVEL_FRAC
(edit this)
  • System usage: #define POWER_LEVEL_FRAC 19
  • Application usage: #define APP_POWER_LEVEL_FRAC -1019
  • Processed by: cortex (_cortex)

Description:

Set local power level (as a fraction of capacity). This can be explicitly requested with 172 QUERY_POWER_LEVEL_FRAC.

This message is sent very frequently in Companion 8.4 and later, but historically was only sent when crossing one of the key warning thresholds (5%, 10%, 20%). During the 8.5 refactor project it was de-tasked and is now only natively parsed by the cortex module. If you wish to write an application utilizing this message, it must be a continuously-executing service rather than a library.

Parameter format: Message is a float representing power level in battery (0.0 = empty, 1.0 = full)