Changeset 432 in flair-src for trunk/demos


Ignore:
Timestamp:
Jul 12, 2021, 11:19:21 AM (3 years ago)
Author:
Sanahuja Guillaume
Message:

add AltitudeSensor class
failsafe altitude sensor in changeable

Location:
trunk/demos
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/CircleFollower/uav/src/CircleFollower.cpp

    r431 r432  
    5353    }
    5454   
     55    //set vrpn as failsafe altitude sensor for mamboedu as us in not working well for the moment
     56    if(uav->GetType()=="mamboedu") {
     57      SetFailSafeAltitudeSensor(uavVrpn->GetAltitudeSensor());
     58    }
     59   
    5560    getFrameworkManager()->AddDeviceToLog(uavVrpn);
    5661    getFrameworkManager()->AddDeviceToLog(targetVrpn);
  • trunk/demos/MixedReality/real/uav/src/CircleFollower.cpp

    r431 r432  
    6161        realVrpnClient->Start();
    6262
     63    //set vrpn as failsafe altitude sensor for mamboedu as us in not working well for the moment
     64    if(uav->GetType()=="mamboedu") {
     65      SetFailSafeAltitudeSensor(uavVrpn->GetAltitudeSensor());
     66    }
     67
    6368    getFrameworkManager()->AddDeviceToLog(targetVrpn);
    6469
  • trunk/demos/SimpleFleet/uav/src/SimpleFleet.cpp

    r431 r432  
    6565        vrpnclient->Start();
    6666
     67    //set vrpn as failsafe altitude sensor for mamboedu as us in not working well for the moment
     68    if(uav->GetType()=="mamboedu") {
     69      SetFailSafeAltitudeSensor(uavVrpn->GetAltitudeSensor());
     70    }
     71
    6772    circle=new TrajectoryGenerator2DCircle(vrpnclient->GetLayout()->NewRow(),"circle");
    6873    uavVrpn->xPlot()->AddCurve(circle->GetMatrix()->Element(0,0),0,0,255);
Note: See TracChangeset for help on using the changeset viewer.