Skip to content
Snippets Groups Projects
Commit 7acbba92 authored by roangel's avatar roangel
Browse files

now when occluded it also is disabled

parent b274e94f
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ void viconCallback(const ViconData& viconData) { ...@@ -116,7 +116,7 @@ void viconCallback(const ViconData& viconData) {
for(std::vector<CrazyflieData>::const_iterator it = viconData.crazyflies.begin(); it != viconData.crazyflies.end(); ++it) { for(std::vector<CrazyflieData>::const_iterator it = viconData.crazyflies.begin(); it != viconData.crazyflies.end(); ++it) {
CrazyflieData global = *it; CrazyflieData global = *it;
if(!global.occluded) //if it is not occluded, then proceed to compute the controller output if(!global.occluded || !crazyflieEnabled) //if it is not occluded, then proceed to compute the controller output. If the command is disabled, even if it is occluded, disable crazyflie
{ {
if(global.crazyflieName == context.crazyflieName) { if(global.crazyflieName == context.crazyflieName) {
Controller controllerCall; Controller controllerCall;
......
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