From b4a7cb99bb82f602d3cff848a1f14ade1da2ddb5 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Wed, 28 Jun 2017 15:29:50 -0500 Subject: Set target speed according to floor speed change When the floor speed updates, a request to increase the target speed should be made when the target is now below the floor speed. Change-Id: Ib622bc717a952ef0c0703cbff40a4dc14b213416 Signed-off-by: Matthew Barth --- control/zone.hpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'control/zone.hpp') diff --git a/control/zone.hpp b/control/zone.hpp index dc5771c..9786db4 100644 --- a/control/zone.hpp +++ b/control/zone.hpp @@ -127,16 +127,6 @@ class Zone return _defFloorSpeed; }; - /** - * @brief Set the floor speed to the given speed - * - * @param[in] speed - Speed to set the floor to - */ - inline void setFloor(uint64_t speed) - { - _floorSpeed = speed; - }; - /** * @brief Get the ceiling speed * @@ -191,6 +181,14 @@ class Zone return _decSpeedDelta; }; + /** + * @brief Set the floor speed to the given speed and increase target + * speed to the floor when target is below floor. + * + * @param[in] speed - Speed to set the floor to + */ + void setFloor(uint64_t speed); + /** * @brief Calculate the requested target speed from the given delta * and increase the fan speeds, not going above the ceiling. -- cgit v1.2.1