/**
 * @file wheel_speed_plausi.h
 * @brief Wheel-speed plausibility + standstill detection.
 *
 * @arch SWA-004
 * @reqs SWE-022 SWE-023
 *
 * ASIL: B. STUB.
 */
#ifndef WHEEL_SPEED_PLAUSI_H
#define WHEEL_SPEED_PLAUSI_H

#include "../epb_types.h"

typedef struct {
    float fl_kmh;
    float fr_kmh;
    float rl_kmh;
    float rr_kmh;
} WheelInputs;

EpbStatus wheel_speed_init(void);
void      wheel_speed_step_10ms(const WheelInputs* in);
bool      wheel_speed_is_standstill(void);
float     wheel_speed_get_vehicle(void);

#endif
