This commit is contained in:
hamza
2024-07-21 23:53:48 +03:00
parent 7dd742af22
commit 3edafc58cc
9 changed files with 99 additions and 46 deletions

View File

@ -8,8 +8,6 @@
#ifndef INC_STATE_MACHINE_H
#define INC_STATE_MACHINE_H
#include <stdint.h>
#include <stdbool.h>
#include "ADBMS_LL_Driver.h"
#include <AMS_HighLevel.h>
#include <can.h>
@ -19,6 +17,10 @@
#include <status_LED.h>
#include <TMP1075.h>
#include <stdint.h>
#include <stdbool.h>
#include <math.h>
typedef enum { // states -> 3 bit. valid transitions: (all could transition to error)
STATE_INACTIVE, // INACTIVE -> PRECHARGE, CHARGING, ERROR
STATE_PRECHARGE, // PRECHARGE -> INACTIVE, READY, DISCHARGE, ERROR