Instrument Neutral Distributed Interface INDI 2.2.5
status_frame.h
Go to the documentation of this file.
1/*
2 Gemini Power Box Hub Advanced v3 INDI Driver
3
4 Copyright (C) 2026 Dieter R Kedrowitsch <[email protected]>
5
6 This program is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2 of the License, or (at your option)
9 any later version.
10
11 This program is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 more details.
15
16 You should have received a copy of the GNU General Public License along with
17 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18 Place - Suite 330, Boston, MA 02111-1307, USA.
19
20 The full GNU General Public License is included in this distribution in the
21 file called LICENSE.
22*/
23
24#pragma once
25
26#include <array>
27#include <string>
28
29namespace geminipbh
30{
31
32enum class DewMode { Automatic, Manual, Switch };
33
35{
36 std::array<bool, 4> dc{};
37 std::array<bool, 6> usb{};
38 bool aht20Attached = false;
39 bool ds18b20Attached = false;
40 bool dew6Enabled = false;
41 int dew6Mode = 0;
42 bool dew7Enabled = false;
43 int dew7Mode = 0;
44 double dew6OutputPercent = 0.0;
45 double dew7OutputPercent = 0.0;
46 double deviceTemperatureC = 0.0;
47 double airTemperatureC = 0.0;
48 double humidityPercent = 0.0;
49 double dewPointC = 0.0;
50 double inputVoltageV = 0.0;
51 double outputCurrentA = 0.0;
52 double outputPowerW = 0.0;
53};
54
55} // namespace geminipbh
std::array< bool, 4 > dc
std::array< bool, 6 > usb