Changeset 431 in flair-src for trunk/demos/CircleFollower/uav


Ignore:
Timestamp:
Jul 12, 2021, 8:37:29 AM (3 years ago)
Author:
Sanahuja Guillaume
Message:

add vrpn connection type per uav

File:
1 edited

Legend:

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

    r342 r431  
    4040    Uav* uav=GetUav();
    4141
    42     VrpnClient* vrpnclient=new VrpnClient("vrpn", uav->GetDefaultVrpnAddress(),80);
     42    VrpnClient* vrpnclient=new VrpnClient("vrpn", uav->GetDefaultVrpnAddress(),80,uav->GetDefaultVrpnConnectionType());
    4343   
    4444    if(vrpnclient->ConnectionType()==VrpnClient::Xbee) {
     
    4949        targetVrpn=new MetaVrpnObject("target");
    5050    } else if (vrpnclient->ConnectionType()==VrpnClient::VrpnLite) {
    51         uavVrpn = new MetaVrpnObject(uav->ObjectName(),(uint8_t)0);
    52         targetVrpn=new MetaVrpnObject("target",1);
     51        uavVrpn = new MetaVrpnObject(uav->ObjectName());
     52        targetVrpn=new MetaVrpnObject("target");
    5353    }
    5454   
Note: See TracChangeset for help on using the changeset viewer.