From 3ab018a684468e5f59ac87f5c8983765913a8a97 Mon Sep 17 00:00:00 2001 From: crhunt <crhunt@iastate.edu> Date: Mon, 6 Feb 2023 01:08:33 -0600 Subject: [PATCH] Updates cflieCopter object with new TestStand See Issue #145 --- crazyflie_groundstation/src/crazyflieGroundStation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crazyflie_groundstation/src/crazyflieGroundStation.cpp b/crazyflie_groundstation/src/crazyflieGroundStation.cpp index f0754b35a..c83fdcfb1 100644 --- a/crazyflie_groundstation/src/crazyflieGroundStation.cpp +++ b/crazyflie_groundstation/src/crazyflieGroundStation.cpp @@ -203,10 +203,10 @@ int main(int argc, char** argv) { if(selectedPort.compare("n/a")) { serial::Serial * test_stand_ptr = new serial::Serial(selectedPort, 9600); test_stand_ptr->setTimeout(0, 200, 0, 200, 0); - crazyflie_info[i].cflieCopter->setTestStand(test_stand_ptr); + crazyflie_info[i].cflieCopter->testStand.setSerialInterface(test_stand_ptr); } else { - crazyflie_info[i].cflieCopter->setTestStand(NULL); + crazyflie_info[i].cflieCopter->testStand.setSerialInterface(NULL); } // Check the controller type -- GitLab