Changeset 435 in flair-src for trunk/demos/TwoWheelRobotSimpleFleet/ugv


Ignore:
Timestamp:
Jul 15, 2021, 2:44:03 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

add logs to ugv

Location:
trunk/demos/TwoWheelRobotSimpleFleet/ugv/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/TwoWheelRobotSimpleFleet/ugv/src/SimpleFleet.cpp

    r390 r435  
    6161    startCircle=new PushButton(buttonslayout->NewRow(),"start_circle");
    6262    stopCircle=new PushButton(buttonslayout->LastRowLastCol(),"stop_circle");
     63    button_start_log = new PushButton(buttonslayout->NewRow(), "start_log");
     64    button_stop_log = new PushButton(buttonslayout->LastRowLastCol(), "stop_log");
    6365   
    6466    circle=new TrajectoryGenerator2DCircle(vrpnclient->GetLayout()->NewRow(),"circle");
     
    8082    uY=new Pid(setupLawTab->At(1,1),"u_y");
    8183    uY->UseDefaultPlot(graphLawTab->LastRowLastCol());
     84   
     85    getFrameworkManager()->AddDeviceToLog(uX);
     86    getFrameworkManager()->AddDeviceToLog(uY);
    8287   
    8388    l=new DoubleSpinBox(setupLawTab->NewRow(),"L", " m", 0, 10, 0.1, 1,1);
     
    110115
    111116void SimpleFleet::CheckPushButton(void) {
     117  if (button_start_log->Clicked() == true)
     118    getFrameworkManager()->StartLog();
     119  if (button_stop_log->Clicked() == true)
     120    getFrameworkManager()->StopLog();
     121   
    112122  if (startCircle->Clicked() == true)
    113123      StartCircle();
  • trunk/demos/TwoWheelRobotSimpleFleet/ugv/src/SimpleFleet.h

    r390 r435  
    6060
    6161        flair::filter::Pid *uX, *uY;
    62         flair::gui::PushButton *startCircle,*stopCircle,*button_kill;
     62        flair::gui::PushButton *startCircle,*stopCircle,*button_kill,*button_start_log,*button_stop_log;
    6363        flair::gui::DoubleSpinBox *l;
    6464        flair::gui::DoubleSpinBox *xCircleCenter,*yCircleCenter;
Note: See TracChangeset for help on using the changeset viewer.