Instrument Neutral Distributed Interface INDI 2.2.5
Macros | Variables
Terrans_PowerBoxPro_V2.cpp File Reference
#include "config.h"
#include "Terrans_PowerBoxPro_V2.h"
#include "indicom.h"
#include "connectionplugins/connectionserial.h"
#include <cerrno>
#include <cstring>
#include <memory>
#include <termios.h>
#include <unistd.h>
#include <inttypes.h>
#include <sys/ioctl.h>

Go to the source code of this file.

Macros

#define CMD_LEN   8
 
#define TIMEOUT   500
 
#define TAB_INFO   "Status"
 

Variables

int get_count = 0
 
int init = 0
 
double ch1_shuntv = 0
 
double ch2_shuntv = 0
 
double ch3_shuntv = 0
 
double ch1_current = 0
 
double ch2_current = 0
 
double ch3_current = 0
 
double ch1_bus = 0
 
double ch2_bus = 0
 
double ch3_bus = 0
 
double ch1_w = 0
 
double ch2_w = 0
 
double ch3_w = 0
 
double chusb_w = 0
 
double humidity = 0
 
double temperature = 0
 
double dewPoint = 0
 
double mcu_temp = 0
 

Macro Definition Documentation

◆ CMD_LEN

#define CMD_LEN   8

Definition at line 42 of file Terrans_PowerBoxPro_V2.cpp.

◆ TAB_INFO

#define TAB_INFO   "Status"

Definition at line 44 of file Terrans_PowerBoxPro_V2.cpp.

◆ TIMEOUT

#define TIMEOUT   500

Definition at line 43 of file Terrans_PowerBoxPro_V2.cpp.

Variable Documentation

◆ ch1_bus

double ch1_bus = 0

Definition at line 54 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch1_current

double ch1_current = 0

Definition at line 51 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch1_shuntv

double ch1_shuntv = 0

Definition at line 48 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch1_w

double ch1_w = 0

Definition at line 57 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch2_bus

double ch2_bus = 0

Definition at line 55 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch2_current

double ch2_current = 0

Definition at line 52 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch2_shuntv

double ch2_shuntv = 0

Definition at line 49 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch2_w

double ch2_w = 0

Definition at line 58 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch3_bus

double ch3_bus = 0

Definition at line 56 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch3_current

double ch3_current = 0

Definition at line 53 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch3_shuntv

double ch3_shuntv = 0

Definition at line 50 of file Terrans_PowerBoxPro_V2.cpp.

◆ ch3_w

double ch3_w = 0

Definition at line 59 of file Terrans_PowerBoxPro_V2.cpp.

◆ chusb_w

double chusb_w = 0

Definition at line 60 of file Terrans_PowerBoxPro_V2.cpp.

◆ dewPoint

double dewPoint = 0

Definition at line 63 of file Terrans_PowerBoxPro_V2.cpp.

◆ get_count

int get_count = 0

Definition at line 46 of file Terrans_PowerBoxPro_V2.cpp.

◆ humidity

double humidity = 0

Definition at line 61 of file Terrans_PowerBoxPro_V2.cpp.

◆ init

int init = 0

Definition at line 47 of file Terrans_PowerBoxPro_V2.cpp.

◆ mcu_temp

double mcu_temp = 0

Definition at line 64 of file Terrans_PowerBoxPro_V2.cpp.

◆ temperature

double temperature = 0

Definition at line 62 of file Terrans_PowerBoxPro_V2.cpp.