31 lines
779 B
C
31 lines
779 B
C
#pragma once
|
|
|
|
#include "pch.h"
|
|
#include "can.h"
|
|
|
|
void canDashboardVAG(CanCycle cycle);
|
|
|
|
/**
|
|
* B6
|
|
* https://mdac.com.au/2021/04/11/dsg-control-with-rabbit-ecu/
|
|
* https://github.com/RabbitECUProject/RabbitECUTeensyMCUXpresso/blob/main/source/Client/DIAG.c
|
|
* https://github.com/commaai/opendbc/blob/master/vw_golf_mk4.dbc
|
|
* https://rusefi.com/forum/download/file.php?id=9076
|
|
*/
|
|
|
|
|
|
// https://wiki.openstreetmap.org/wiki/VW-CAN
|
|
#define CAN_VAG_RPM 0x280 /* _10ms cycle */
|
|
#define CAN_VAG_CLT 0x288 /* _10ms cycle */
|
|
#define CAN_VAG_CLT_V2 0x420 /* _10ms cycle */
|
|
#define CAN_VAG_IMMO 0x3D0 /* _10ms cycle */
|
|
|
|
// 0x280
|
|
#define CAN_VAG_Motor_1 640
|
|
// 0x284
|
|
#define CAN_VAG_Motor_Brake 644
|
|
// 0x288
|
|
#define CAN_VAG_Motor_2 648
|
|
// 0x480
|
|
#define CAN_VAG_Motor_5 1152
|