Ready for install: Switch to CAN1 and add unused PWM IDs for front

This commit is contained in:
2025-05-15 13:23:56 +02:00
parent 7c50101f9e
commit 3a8b90acc8
3 changed files with 16 additions and 6 deletions

View File

@ -2,8 +2,8 @@
#define MAPPINGS_H
// CHOOSE ONE, comment the other or comment both and use -D SN_FRONT
//#define SN_FRONT
#define SN_REAR
#define SN_FRONT
//#define SN_REAR
#include <stdint.h>
#include "main.h"
@ -129,6 +129,11 @@ static can_pkt_t CAN_SIGNAL_MAP[NUM_TX_PKT] = {
}
};
#define CAN_PWM_DC_ID 0x0DA // UNUSED
#define CAN_PWM_CONF_ID 0x0DB // UNUSED
#define CAN_PWM_BASE_ID CAN_PWM_DC_ID
#define CAN_PWM_FILTER_MASK 0x7FE // Match both
#endif
#ifdef SN_REAR
@ -173,6 +178,8 @@ static can_pkt_t CAN_SIGNAL_MAP[NUM_TX_PKT] = {
#define CAN_PWM_DC_ID 0x0DC
#define CAN_PWM_CONF_ID 0x0DD
#define CAN_PWM_BASE_ID CAN_PWM_DC_ID
#define CAN_PWM_FILTER_MASK 0x7FE // Match both 0x0DC and 0x0DD
#endif