Speeduino
Loading...
Searching...
No Matches
Namespaces | Functions
dualWheel.h File Reference

A decoder for 2 wheels located either both on the crank or with the primary on the crank and the secondary on the cam. More...

#include "shared/decoder_state.h"
#include "config_pages.h"
#include "statuses.h"

Go to the source code of this file.

Namespaces

namespace  decoders
 
namespace  decoders::dual_wheel
 

Functions

shared::state_t decoders::dual_wheel::initialise (const config4 &page4)
 
void decoders::dual_wheel::triggerPrimary (uint32_t curTime, statuses &current, shared::state_t &decoderState, const config2 &page2, const config4 &page4)
 
void decoders::dual_wheel::triggerSecondary (uint32_t curTime, statuses &current, shared::state_t &decoderState, const config4 &page4)
 
uint32_t decoders::dual_wheel::getRevolutionTime (const statuses &current, const shared::state_t &decoderState, const config4 &page4)
 
int16_t decoders::dual_wheel::getCrankAngle (uint32_t currMicros, const shared::state_t &decoderState, const config4 &page4)
 
void decoders::dual_wheel::setEndTeeth (shared::state_t &decoderState, const config4 &page4)
 

Detailed Description

A decoder for 2 wheels located either both on the crank or with the primary on the crank and the secondary on the cam.

Note
There can be no missing teeth on the primary wheel.