Skip to content

Commit

Permalink
replaced RateThread with PeriodicThread
Browse files Browse the repository at this point in the history
  • Loading branch information
pattacini authored and drdanz committed Apr 9, 2019
1 parent a034b30 commit d7365e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/devices/usbCamera/linux/V4L_camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ int V4L_camera::convertYARP_to_V4L(int feature)
return NOT_PRESENT;
}

V4L_camera::V4L_camera() : RateThread(1000/DEFAULT_FRAMERATE), doCropping(false), toEpochOffset(getEpochTimeShift())
V4L_camera::V4L_camera() : PeriodicThread(1.0/DEFAULT_FRAMERATE), doCropping(false), toEpochOffset(getEpochTimeShift())
{
verbose = false;
param.fps = DEFAULT_FRAMERATE;
Expand Down
4 changes: 2 additions & 2 deletions src/devices/usbCamera/linux/V4L_camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#include <cv.h>

#include <yarp/os/Semaphore.h>
#include <yarp/os/RateThread.h>
#include <yarp/os/PeriodicThread.h>
#include <yarp/dev/PreciselyTimed.h>
#include <yarp/dev/FrameGrabberInterfaces.h>
#include <yarp/dev/IVisualParams.h>
Expand Down Expand Up @@ -151,7 +151,7 @@ class yarp::dev::V4L_camera : public yarp::dev::DeviceDriver,
public yarp::dev::IFrameGrabber,
public yarp::dev::IFrameGrabberControls,
public yarp::dev::IPreciselyTimed,
public yarp::os::RateThread,
public yarp::os::PeriodicThread,
public IRgbVisualParams
{
public:
Expand Down

0 comments on commit d7365e1

Please sign in to comment.