Skip to content

Commit

Permalink
inverter-cli: remove calculated PV_in_watthour and Load_watthour outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov committed Apr 1, 2022
1 parent daf9c06 commit b57b9b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sources/inverter-cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ int main(int argc, char* argv[]) {
pv_input_watts = (scc_voltage * pv_input_current) * wattfactor;

// Calculate watt-hours generated per run interval period (given as program argument)
pv_input_watthour = pv_input_watts / (3600 / runinterval);
load_watthour = (float)load_watt / (3600 / runinterval);
//pv_input_watthour = pv_input_watts / (3600 / runinterval);
//load_watthour = (float)load_watt / (3600 / runinterval);

// Print as JSON (output is expected to be parsed by another tool...)
printf("{\n");
Expand All @@ -291,11 +291,11 @@ int main(int argc, char* argv[]) {
printf(" \"PV_in_voltage\":%.1f,\n", pv_input_voltage); // QPIGS
printf(" \"PV_in_current\":%.1f,\n", pv_input_current); // QPIGS
printf(" \"PV_in_watts\":%.1f,\n", pv_input_watts); // = (scc_voltage * pv_input_current) * wattfactor;
printf(" \"PV_in_watthour\":%.4f,\n", pv_input_watthour);// = pv_input_watts / (3600 / runinterval);
//printf(" \"PV_in_watthour\":%.4f,\n", pv_input_watthour);// = pv_input_watts / (3600 / runinterval);
printf(" \"SCC_voltage\":%.4f,\n", scc_voltage); // QPIGS
printf(" \"Load_pct\":%d,\n", load_percent); // QPIGS
printf(" \"Load_watt\":%d,\n", load_watt); // QPIGS
printf(" \"Load_watthour\":%.4f,\n", load_watthour); //load_watthour = (float)load_watt / (3600 / runinterval);
//printf(" \"Load_watthour\":%.4f,\n", load_watthour); //load_watthour = (float)load_watt / (3600 / runinterval);
printf(" \"Load_va\":%d,\n", load_va); // QPIGS
printf(" \"Bus_voltage\":%d,\n", voltage_bus); // QPIGS
printf(" \"Heatsink_temperature\":%d,\n", temp_heatsink);// QPIGS
Expand Down

0 comments on commit b57b9b5

Please sign in to comment.