rusefi-1/firmware/controllers/can/can_vag.h

42 lines
950 B
C
Raw Normal View History

2022-01-09 18:16:11 -08:00
#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
2022-02-03 21:47:19 -08:00
// 1056
2022-01-09 18:16:11 -08:00
#define CAN_VAG_CLT_V2 0x420 /* _10ms cycle */
2022-02-03 21:47:19 -08:00
// 976
2022-01-09 18:16:11 -08:00
#define CAN_VAG_IMMO 0x3D0 /* _10ms cycle */
2022-01-10 10:03:33 -08:00
// 0x280, 10ms period
2022-01-09 18:16:11 -08:00
#define CAN_VAG_Motor_1 640
// 0x284
#define CAN_VAG_Motor_Brake 644
2022-01-10 10:03:33 -08:00
// 0x288, 10ms period
2022-01-09 18:16:11 -08:00
#define CAN_VAG_Motor_2 648
2022-02-03 21:47:19 -08:00
// 0x362 see 4666@17
#define CAN_VAG_ACC1 866
// 0x380 10ms cycle
// see 4732@17
#define CAN_VAG_Motor_3 896
2022-01-09 18:16:11 -08:00
// 0x480
#define CAN_VAG_Motor_5 1152
2022-01-10 10:03:33 -08:00
// 0x488
#define CAN_VAG_Motor_6 1160
// 0x580
#define CAN_VAG_Motor_Flexia 1408
// 0x588
#define CAN_VAG_Motor_7 1416