The DtTemperatureMonitorActuator is a new class that implements an actuator that updates the internal temperature of an entity in the state component. Additionally it will periodically print out the current temperature to the object console.
Header file:
#pragma once
{
public:
virtual const char*
type()
const override;
virtual bool init()
override;
virtual void tick()
override;
protected:
};
#pragma once
Implementation:
using namespace makVrf;
parentRegistry)
{
myNextPrintTime = 0.0;
}
{
}
{
}
{
{
return false;
}
return true;
}
{
DtPROFILE(
"DtManualRotaryWingEncumberedFlightActuator::tick");
{
int interval = 10;
{
"Current Internal Temperature is : " << temperature << std::endl;
}
}
}
{
environmentalStateManager();
if ( externalTemp < 0.0 )
{
currentTemp = 36.5;
}
else if (externalTemp > 40.0)
{
currentTemp = 38.0;
}
}
{
}
{
return
}