Skip to content
Snippets Groups Projects
Commit 8aa1806d authored by Cole Hunt's avatar Cole Hunt
Browse files

Updates reading/startup commands for TestStand

See Issue #145
parent 3ab018a6
No related branches found
No related tags found
2 merge requests!109Final sdmay24-32 merge to master,!102Adds TestStand class to r/w cmds for testStand
......@@ -425,6 +425,7 @@ enum State CCrazyflie::getCurrentState() {
void* CCrazyflie::startTestStand(void* args) {
CCrazyflie *quad = (CCrazyflie*) args;
quad->testStand.setupTestStand(0);
quad->testStandLoop();
return(NULL);
......
......@@ -254,9 +254,8 @@ double CCrazyflie::readTestStand() {
// this->test_stand->readline();
// result = this->test_stand->readline();
// this->test_stand->flushInput();
this->test_stand->write(&reqSer, 1);
result = this->test_stand->readline();
result = this->testStand.getCurrentValue();
double value;
try {
value = std::stod(result);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment