|
|
|
|
@ -77,9 +77,6 @@ int tempSensor, xPlusSensor, yPlusSensor, zPlusSensor, battCurrentSensor;
|
|
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
|
{
|
|
|
|
|
static char cmdbuffer[1000];
|
|
|
|
|
static char mopower[64][14];
|
|
|
|
|
static char ina219[16][20]; // voltage, currents, and power from the INA219 current sensors x4a, x40, x41, x44, and x45.
|
|
|
|
|
uint8_t retVal;
|
|
|
|
|
int tlm[7][5];
|
|
|
|
|
int i,j;
|
|
|
|
|
@ -515,6 +512,9 @@ int add_dot(uint8_t *msg, int number) {
|
|
|
|
|
return counter;
|
|
|
|
|
}
|
|
|
|
|
int get_tlm(int tlm[][5]) {
|
|
|
|
|
static char cmdbuffer[1000];
|
|
|
|
|
static char mopower[64][14];
|
|
|
|
|
static char ina219[16][20]; // voltage, currents, and power from the INA219 current sensors x4a, x40, x41, x44, and x45.
|
|
|
|
|
|
|
|
|
|
// Read MoPower UPS data
|
|
|
|
|
FILE* file = popen("mpcmd show data 2>&1", "r");
|
|
|
|
|
|