Skip to content

Commit

Permalink
RequestMessageTest.cc: disable vehicle gimbal controller on this test:
Browse files Browse the repository at this point in the history
As it also sends request messages and it collides with the
requests of this test
  • Loading branch information
Davidsastresas authored and julianoes committed Apr 11, 2024
1 parent 56e05f4 commit 7f6a912
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Vehicle/RequestMessageTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ void RequestMessageTest::_testCaseWorker(TestCase_t& testCase)

MultiVehicleManager* vehicleMgr = qgcApp()->toolbox()->multiVehicleManager();
Vehicle* vehicle = vehicleMgr->activeVehicle();

// Gimbal controller sends message requests when receiving heartbeats, trying to find a gimbal, and it messes with this test so we disable it
vehicle->deleteGimbalController();

_mockLink->clearReceivedMavCommandCounts();
_mockLink->setRequestMessageFailureMode(testCase.failureMode);
Expand Down

0 comments on commit 7f6a912

Please sign in to comment.