Midnight Sun Firmware
Loading...
Searching...
No Matches
regen_brake.h
1#pragma once
2
3/************************************************************************************************
4 * @file regen_brake.h
5 *
6 * @brief Header file for front controller cruise control handling
7 *
8 * @date 2026-02-03
9 * @author Midnight Sun Team #24 - MSXVI
10 ************************************************************************************************/
11
12/* Standard library Headers */
13#include <stdint.h>
14
15/* Inter-component Headers */
16#include "status.h"
17
18/* Intra-component Headers */
19#include "front_controller.h"
20
32StatusCode regen_brake_run(float *target_current, bool *direction);
33
40
StatusCode regen_brake_run(float *target_current, bool *direction)
Runs one regen brake calculation cycle. Called within motor_can.c when in regen brake state.
Definition: regen_brake.c:39
StatusCode regen_brake_init(FrontControllerStorage *storage)
Initializes the regen brake module.
Definition: regen_brake.c:65
StatusCode
StatusCodes for various errors.
Definition: status.h:27
Front Controller storage.
Definition: front_controller.h:91