7 #include "../../../tests/catch2/catch.hpp"
9 #include "../zaberLowLevel.hpp"
13 #include "../za_serial.c"
21 SCENARIO(
"Parsing the warnings response",
"[zaberStage]" )
23 GIVEN(
"A valid response to the warnings query")
27 WHEN(
"Valid response, no warnings")
33 std::string tstr =
"00";
61 WHEN(
"Valid response, one warning")
67 std::string tstr =
"01 WR";
95 WHEN(
"Valid response, five warnings")
101 std::string tstr =
"05 FD FQ FS FT FB";
129 WHEN(
"Valid response, ten warnings")
135 std::string tstr =
"10 FP FE WH WL WP WV WT WM WR NC";
162 WHEN(
"Valid response, 2 warnings")
168 std::string tstr =
"02 NI ND";
195 WHEN(
"Valid response, 3 warnings")
202 std::string tstr =
"03 NU NJ UN";
A class to manage the details of one stage in a Zaber system.
int parseWarnings(std::string &response)
Parse the warning response from the device.
bool warningState()
Get the warning state.
SCENARIO("Parsing the warnings response", "[zaberStage]")