pragma once include "primitives/workers.h" include "primitives/producer_consumer.h" include "primitives/vector.h" include "messages.h" include "cycle_phase_classifier.h" This node processes Pulses from several sensors, tries to match them to cycle structure and output matched set
// Source: https://github.com/ashtuchkin/vive-diy-position-sensor | License: MIT | Copyright 2016 Alexander Shtuchkin
// Provided via justclaw.it.com; keep this notice with the code.
#pragma once
#include "primitives/workers.h"
#include "primitives/producer_consumer.h"
#include "primitives/vector.h"
#include "messages.h"
#include "cycle_phase_classifier.h"
// This node processes Pulses from several sensors, tries to match them to cycle structure and
// output matched set of angles (SensorAnglesFrame) and data bits (DataFrameBit).
class PulseProcessor
: public WorkerNode
, public Consumer<Pulse>
, public Producer<SensorAnglesFrame>
, public Producer<DataFrameBit> {
public:
PulseProcessor(uint32_t num_inputs);
virtual void consume(const Pulse& p);
virtual void do
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key