TEDü Getac Changes
This commit is contained in:
@ -48,8 +48,11 @@ void read_buttons() {
|
||||
|
||||
// These are only used to send them out via CAN, so they only need to be
|
||||
// high once.
|
||||
Stw_data.Stw_neutral = debouncer[1].rose();
|
||||
Stw_data.Stw_auto_shift = debouncer[2].rose();
|
||||
//Stw_data.Stw_neutral = debouncer[1].rose();
|
||||
//Stw_data.Stw_auto_shift = debouncer[2].isPressed(); //Hold to open DRS
|
||||
// 05.09.: swapped neutral and auto_shift (DRS)
|
||||
Stw_data.Stw_neutral = debouncer[2].rose();
|
||||
Stw_data.Stw_auto_shift = debouncer[1].isPressed(); //Hold to open DRS
|
||||
Stw_data.Stw_shift_down = debouncer[4].rose();
|
||||
Stw_data.Stw_shift_up = debouncer[5].rose();
|
||||
|
||||
|
||||
@ -33,16 +33,16 @@
|
||||
#define enc2PinS 39
|
||||
|
||||
// define Drehzahlgrenzen TODOOOO
|
||||
#define RPM_THRES_1 1000
|
||||
#define RPM_THRES_2 6000
|
||||
#define RPM_THRES_3 7000
|
||||
#define RPM_THRES_4 8000
|
||||
#define RPM_THRES_5 10000
|
||||
#define RPM_THRES_6 14000
|
||||
#define RPM_THRES_7 17000
|
||||
#define RPM_THRES_8 18000
|
||||
#define RPM_THRES_9 20000
|
||||
#define RPM_THRES_10 20000
|
||||
#define RPM_THRES_1 6000
|
||||
#define RPM_THRES_2 12000
|
||||
#define RPM_THRES_3 12800
|
||||
#define RPM_THRES_4 13600
|
||||
#define RPM_THRES_5 14400
|
||||
#define RPM_THRES_6 15200
|
||||
#define RPM_THRES_7 16000
|
||||
#define RPM_THRES_8 16800
|
||||
#define RPM_THRES_9 18000
|
||||
#define RPM_THRES_10 18000
|
||||
|
||||
void set_pins(void);
|
||||
void read_buttons(void);
|
||||
@ -89,6 +89,7 @@ typedef struct {
|
||||
uint8_t u_batt; // Batteriespannung
|
||||
uint8_t rev_lim; // Drehzahllimit Bit
|
||||
bool drs_active; // DRS status from BCU
|
||||
bool autoshift; // Autoshift status from BCU
|
||||
uint8_t p_wat;
|
||||
uint8_t p_fuel;
|
||||
uint8_t p_oil;
|
||||
|
||||
Reference in New Issue
Block a user