CodeUC HRI2  v2.0
Microcontroller firmware of the board used during the HRI labs.
Macros | Functions
tachometer.h File Reference
#include "../main.h"
#include "adc.h"

Go to the source code of this file.

Macros

#define TAC_RPM_TO_VOLTAGE   0.00052f
 
#define TAC_VOLTAGE_TO_RPM   (1/TAC_RPM_TO_VOLTAGE)
 

Functions

void tac_Init (AdcChannel channel)
 Initialize the tachometer driver. More...
 
float32_t tac_Get (void)
 Return the measured paddle angular speed. More...
 

Macro Definition Documentation

#define TAC_RPM_TO_VOLTAGE   0.00052f
#define TAC_VOLTAGE_TO_RPM   (1/TAC_RPM_TO_VOLTAGE)