add new heater health device
This commit is contained in:
12
mission/tcs/HeaterHealthDev.cpp
Normal file
12
mission/tcs/HeaterHealthDev.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include "HeaterHealthDev.h"
|
||||
|
||||
HeaterHealthDev::HeaterHealthDev(object_id_t setObjectId, MessageQueueId_t parentQueue)
|
||||
: HealthDevice(setObjectId, parentQueue) {}
|
||||
|
||||
ReturnValue_t HeaterHealthDev::setHealth(HealthState health) {
|
||||
// Does not make sense for a simple heater.
|
||||
if (health == HealthState::NEEDS_RECOVERY) {
|
||||
return returnvalue::FAILED;
|
||||
}
|
||||
return HealthDevice::setHealth(health);
|
||||
}
|
Reference in New Issue
Block a user