15#include "global_enums.h"
18#include "bms_carrier.h"
27#define MAX_COASTING_THRESHOLD 0.4f
29#define MAX_OPD_SPEED 16.0f
31#define COASTING_THRESHOLD_SCALE 0.025f
DriveState
Drive states representing the current output.
Definition: drive_state_manager.h:28
float opd_threshold(float car_velocity_kmh)
Calclulate the one pedal drive threshold.
Definition: one_pedal_drive.c:20
float opd_current(float throttle_percent, float threshold, DriveState *drive_state)
Calculate the motor current based on the pedal position, threshold and drive state.
Definition: one_pedal_drive.c:30
One pedal drive storage.
Definition: one_pedal_drive.h:36
float opd_threshold
Definition: one_pedal_drive.h:37