Automation of tests/cmds?
Opened this issue · 0 comments
parallaxengineering commented
Hello, I am trying to achieve command automation, where I have a list of commands and I would like one command "AUTO_TEST" to execute the rest of the commands. So I am trying to call the command functions inside my AUTO_TEST function.
I cant get it to work with command arguments.
HEre is relevant code:
void auto_test(SerialCommands* sender)
{
sender->GetSerial()->print("Auto Test: ");
SerialCommands serial_commands_new_(&Serial, "PV_RELAY 1\r\n", sizeof("PV_RELAY 1\r\n"), "\r\n", " ");
// Outputs:
pv_relay_ctrl(&serial_commands_new_);
}
When I run it, it correctly runs the "PV_RELAY_CTRL" command, but does not pass in the argument "1"