Rename PcloudDataProducer=>PcloudStimulusProducer
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
#include <livoxProto1/protocol.h>
|
||||
#include <asynchronousContinuation.h>
|
||||
#include <boost/asio/deadline_timer.hpp>
|
||||
#include "pcloudDataProducer.h"
|
||||
#include "pcloudStimulusProducer.h"
|
||||
#include "livoxGen1.h"
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ public:
|
||||
|
||||
public:
|
||||
const std::shared_ptr<smo::device::DeviceAttachmentSpec> spec;
|
||||
std::shared_ptr<PcloudDataProducer> stimProducer;
|
||||
std::shared_ptr<PcloudStimulusProducer> stimProducer;
|
||||
std::shared_ptr<livoxProto1::Device> deviceTmp;
|
||||
|
||||
private:
|
||||
@@ -197,10 +197,12 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
// Create and add PcloudDataProducer to collection now that device is ready
|
||||
PcloudDataProducer::PcloudFormatDesc formatDesc;
|
||||
formatDesc.format = PcloudDataProducer::PcloudFormatDesc::Format::XYZI;
|
||||
auto pcloudDataProducer = std::make_shared<PcloudDataProducer>(
|
||||
// Create and add PcloudStimulusProducer to collection now that device is ready
|
||||
PcloudStimulusProducer::PcloudFormatDesc formatDesc;
|
||||
formatDesc.format = PcloudStimulusProducer::PcloudFormatDesc::Format
|
||||
::XYZI;
|
||||
|
||||
auto pcloudDataProducer = std::make_shared<PcloudStimulusProducer>(
|
||||
context->spec, context->deviceTmp, formatDesc, 30);
|
||||
|
||||
context->stimProducer = pcloudDataProducer;
|
||||
@@ -284,7 +286,7 @@ class DetachDeviceReq
|
||||
public:
|
||||
DetachDeviceReq(
|
||||
const std::shared_ptr<smo::device::DeviceAttachmentSpec>& spec,
|
||||
const std::shared_ptr<PcloudDataProducer>& stimProducer,
|
||||
const std::shared_ptr<PcloudStimulusProducer>& stimProducer,
|
||||
smo::Callback<sal_mlo_detachDeviceReqCbFn> cb)
|
||||
: smo::NonPostedAsynchronousContinuation<sal_mlo_detachDeviceReqCbFn>(
|
||||
std::move(cb)),
|
||||
@@ -293,7 +295,7 @@ public:
|
||||
|
||||
public:
|
||||
const std::shared_ptr<smo::device::DeviceAttachmentSpec> spec;
|
||||
std::shared_ptr<PcloudDataProducer> stimProducer;
|
||||
std::shared_ptr<PcloudStimulusProducer> stimProducer;
|
||||
private:
|
||||
std::unique_ptr<boost::asio::deadline_timer> delayTimer;
|
||||
|
||||
@@ -522,7 +524,7 @@ extern "C" void livoxGen1_attachDeviceReq(
|
||||
auto request = std::make_shared<AttachDeviceReq>(desc, cb);
|
||||
|
||||
// Check if stimulus producer already exists in the collection
|
||||
auto pcloudDataProducer = std::static_pointer_cast<PcloudDataProducer>(
|
||||
auto pcloudDataProducer = std::static_pointer_cast<PcloudStimulusProducer>(
|
||||
getStimulusProducer(desc));
|
||||
|
||||
if (pcloudDataProducer)
|
||||
@@ -653,7 +655,7 @@ extern "C" void livoxGen1_detachDeviceReq(
|
||||
)
|
||||
{
|
||||
// Check if stimulus producer exists in the collection
|
||||
auto stimProducer = std::static_pointer_cast<PcloudDataProducer>(
|
||||
auto stimProducer = std::static_pointer_cast<PcloudStimulusProducer>(
|
||||
getStimulusProducer(desc));
|
||||
|
||||
if (!stimProducer)
|
||||
|
||||
Reference in New Issue
Block a user