start new ramp

This commit is contained in:
2023-09-06 21:03:34 +02:00
parent 84630eb6fd
commit 5da1775718
2 changed files with 125 additions and 0 deletions

View File

@@ -85,9 +85,28 @@ typedef struct {
uint32_t center; //
uint32_t position; //
uint8_t speed; // 100m/h
bool brake;
uint8_t powerMode; // 0: eco - 1: normal - 2: race
/*
* 0 - ECO MODE
* Eco mod limit to 1/2 of the maximal current.
* Position is 1/2 of the maximal angle
*
* 1 - NORMAL MODE
* Standard ramp for normal mode
* Position is limited to 3/4 of the maximal
*
* 2 - RACE MODE
*
*
*/
} KART_VAR_TYPE;
KART_VAR_TYPE eKart;
uint8_t exp[100];
uint8_t log[100];
#endif /* CAR_H */