16#include "global_enums.h"
28#define NUM_SAMPLES 1000
50 volatile uint32_t sample_counter;
PedalCalibBlob global_calib_blob
A global struct that stores the throttle pedal and calibration data.
PedalState
Stores the possible pedal states that the pedal could be in.
Definition: pedal_calib.h:34
StatusCode pedal_calib_sample(PedalCalibrationStorage *calib_storage, PedalCalibrationData *data, PedalState state, GpioAddress *address)
Reads data from ADC and calculates appropriate pedal calibration values.
Definition: pedal_calib.c:26
StatusCode
StatusCodes for various errors.
Definition: status.h:27
Port and pin data.
Definition: network.h:62
Stores pedal calibration data for the break and the throttle pedals.
Definition: pedal_calib.h:41
Stores data that defines when the pedal is full pressed or unpressed.
Definition: main.c:39
A struct that stores the max and min reading along with a sample counter for the data that is being p...
Definition: pedal_calib.h:47