Skip to content

Commit

Permalink
Changed CLI commands thermal-xxx to fcu-xx
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubanek committed Dec 9, 2023
1 parent 2ceabe2 commit 09bcc53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/m1m3tscli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class M1M3TScli : public FPGACliApp {
int mixingValve(command_vec cmds);
int fcuOnOff(command_vec cmds);
int pumpOnOff(command_vec cmds);
int thermalDemand(command_vec cmds);
int fcuDemand(command_vec cmds);
int setReHeaterGain(command_vec cmds);
int chassisTemperature(command_vec cmds);
int glycolTemperature(command_vec cmds);
Expand Down Expand Up @@ -150,13 +150,13 @@ M1M3TScli::M1M3TScli(const char* name, const char* description) : FPGACliApp(nam
addCommand("pump", std::bind(&M1M3TScli::printPump, this, std::placeholders::_1), "s?", NEED_FPGA, NULL,
"Turns pump on and reads Pump VFD values");

addCommand("thermal-demand", std::bind(&M1M3TScli::thermalDemand, this, std::placeholders::_1), "iis?",
addCommand("fcu-demand", std::bind(&M1M3TScli::fcuDemand, this, std::placeholders::_1), "iis?",
NEED_FPGA, "<heater PWM> <fan RPM> " ILC_ARG, "Sets FCU heater and fan");
addCommand("slot4", std::bind(&M1M3TScli::slot4, this, std::placeholders::_1), "", NEED_FPGA, NULL,
"Reads slot 4 inputs");

addILCCommand(
"thermal-status",
"fcu-status",
[](ILCUnit u) {
std::dynamic_pointer_cast<PrintThermalILC>(u.first)->reportThermalStatus(u.second);
},
Expand Down Expand Up @@ -328,7 +328,7 @@ FPGA* M1M3TScli::newFPGA(const char* dir) {
return printFPGA;
}

int M1M3TScli::thermalDemand(command_vec cmds) {
int M1M3TScli::fcuDemand(command_vec cmds) {
uint8_t heater = std::stoi(cmds[0]);
uint8_t fan = std::stoi(cmds[1]);
cmds.erase(cmds.begin(), cmds.begin() + 2);
Expand Down

0 comments on commit 09bcc53

Please sign in to comment.