[phosphor-pid-control] scaling issue

Patrick Venture venture at google.com
Thu Aug 22 00:32:12 AEST 2019


On Wed, Aug 21, 2019 at 1:11 AM Hank Liou (劉晉翰) <Hank.Liou at quantatw.com> wrote:
>
> Hi All,
>
>
> After commit [1], I found my temp sensor reading would be re-scaled by multiplying 1 over 255, making temperature into unfamiliar unit. Also the fan rpm reading would lie in [0,1] interval, letting the fan input to be 0 (since the input value of fan is from an integer array [2]). Are these normal behaviors? Or do I miss something?

Are you using dbus configuration or json?  If json, can you attach
your config.  Since you're saying it was working and now isn't, I'm
assuming there's something about the config being treated differently
with the code changes in an unexpected way.

>
>
> [1] https://github.com/openbmc/phosphor-pid-control/commit/fc2e803f5d9256944e18c7c878a441606b1f121c
>
> [2] https://github.com/openbmc/phosphor-pid-control/blob/a7ec8350d17b70153cebe666d3fbe88bddd02a1a/pid/fancontroller.cpp#L86
>
>
> Thanks,
>
>
> Hank Liou
>
> Quanta Computer Inc.
>
>


More information about the openbmc mailing list