Ignore:
Timestamp:
07/12/21 08:37:29 (7 months 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.