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

A decoder for a (single) multi-tooth wheel with one of more 'missing' teeth. 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::missing_tooth
 

Functions

shared::state_t decoders::missing_tooth::initialise (const config4 &page4)
 
void decoders::missing_tooth::triggerPrimary (uint32_t curTime, statuses &current, shared::state_t &decoderState, const config2 &page2, const config4 &page4)
 
void decoders::missing_tooth::triggerSecondary (uint32_t curTime, statuses &current, shared::state_t &decoderState, const config4 &page4, const config6 &page6, const config10 &page10)
 
void decoders::missing_tooth::triggerTertiary (uint32_t curTime, statuses &current, shared::state_t &decoderState, const config4 &page4, const config6 &page6)
 
uint32_t decoders::missing_tooth::getRevolutionTime (const statuses &current, const shared::state_t &decoderState, const config4 &page4)
 
void decoders::missing_tooth::setEndTeeth (shared::state_t &decoderState, const config4 &page4)
 
int16_t decoders::missing_tooth::getCrankAngle (uint32_t currMicros, const shared::state_t &decoderState, const config4 &page4)
 

Detailed Description

A decoder for a (single) multi-tooth wheel with one of more 'missing' teeth.

The first tooth after the missing one is considered number 1 and is the basis for the trigger angle. Optionally a cam signal can be added to provide a sequential reference.