Commit 46c6f71a authored by Jörg Weingrill's avatar Jörg Weingrill
Browse files

added brightness to shutdown

parent 627cafac
......@@ -23,6 +23,15 @@ VAR_GLOBAL
BatteryDischarge AT%I*: BOOL;
// Battery failing
BatteryFailing AT%I*: BOOL;
FrequencyGuardWarning AT%I*: BOOL;
FrequencyGuardError AT%I*: BOOL;
VoltageGuardWarningL1 AT%I*: BOOL;
VoltageGuardErrorL1 AT%I*: BOOL;
VoltageGuardWarningL2 AT%I*: BOOL;
VoltageGuardErrorL2 AT%I*: BOOL;
VoltageGuardWarningL3 AT%I*: BOOL;
VoltageGuardErrorL3 AT%I*: BOOL;
END_VAR]]></Declaration>
</GVL>
</TcPlcObject>
\ No newline at end of file
......@@ -70,7 +70,8 @@ IF TelescopeControl.telescope_mode = E_TelescopeMode.automatic THEN
IF Environment.DustAverage.AVG > 0.5 OR
Environment.avg_wind > 15.0 OR
Environment.PrecipitationAverage.AVG > 1.0 THEN
Environment.PrecipitationAverage.AVG > 1.0 OR
Environment.Brightness > 10000.0 THEN
GVL_Dome.CloseShutter := TRUE;
GVL_Dome.CloseFlap := TRUE;
CloseDome := TRUE;
......@@ -165,7 +166,9 @@ DomeLog(Trigger := DomeCommError,
<LineId Id="467" Count="0" />
<LineId Id="498" Count="0" />
<LineId Id="469" Count="0" />
<LineId Id="472" Count="24" />
<LineId Id="472" Count="22" />
<LineId Id="527" Count="0" />
<LineId Id="495" Count="1" />
<LineId Id="500" Count="1" />
<LineId Id="497" Count="0" />
<LineId Id="470" Count="1" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment