1#include "../Inc/Sensors/DigitalSensors/WheelSpeed.h"
7 int wheelSpeedHz = 200;
33 TEST(medium_speed_1, {
35 "speed",
"expected speed");
38 TEST(medium_speed_2, {
43 TEST(medium_speed_3, {
50 "speed",
"expected speed");
55 "speed",
"expected speed");
float testTransferFunction(float radius, int numTeeth, int pulseCount, float timeInterval)
void addPulse(WheelSpeed *wf, int num)
Add pulses to sensor;.
void setTimeInterval(WheelSpeed *ws, float interval)
Set time interval.
float calculateSpeed(WheelSpeed *ws)
Translates data to speed in mph.
void initWheelSpeed(WheelSpeed *ws, int hz, int port, float radius, int numTeeth, WHEEL_LOCATION location)
Initialization function for a wheel speed sensor.
#define ASSERT_IN_ERROR(GOT, WANT, GOT_LABEL, WANT_LABEL)