Convert to RGB model (folds W/WW power back into RGB so the brightness limiter doesn't under-budget).
Issue #2558 update: the white-channel mW values are no longer dropped. They're distributed evenly across the three RGB channels, which:
- matches the brightness limiter's assumption that each RGB byte has a fixed mW cost at full drive (the limiter caps total predicted mW against a budget),
- over-estimates rather than under-estimates when only white channels are on (safer for power-limited supplies),
- accepts that a fully RGBWW-aware brightness limiter (per-channel accounting using all 5 mW values directly) is the right long-term fix — see Phase G in issue #2558.
Definition at line 134 of file power_mgt.h.
134 {
135
136
137
138
139
140 return PowerModelRGB(
152 }
fl::u8 white_mW
Cool white channel power at full brightness (255), in milliwatts.
float exponent
Brightness-to-power response exponent (1.0 = linear)
fl::u8 green_mW
Green channel power at full brightness (255), in milliwatts.
fl::u8 warm_white_mW
Warm white channel power at full brightness (255), in milliwatts.
fl::u8 red_mW
Red channel power at full brightness (255), in milliwatts.
fl::u8 blue_mW
Blue channel power at full brightness (255), in milliwatts.
fl::u8 dark_mW
Dark LED baseline power consumption, in milliwatts.
References blue_mW, dark_mW, exponent, green_mW, red_mW, warm_white_mW, and white_mW.
Referenced by set_power_model().