mirror of https://github.com/rusefi/rusefi-1.git
This commit is contained in:
parent
b4d916c913
commit
270bd239d4
|
@ -222,14 +222,14 @@ void canDashboardVAG(CanCycle cycle) {
|
||||||
if (cycle.isInterval(CI::_10ms)) {
|
if (cycle.isInterval(CI::_10ms)) {
|
||||||
{
|
{
|
||||||
//VAG Dashboard
|
//VAG Dashboard
|
||||||
CanTxMessage msg(CAN_VAG_RPM);
|
CanTxMessage msg(CAN_VAG_Motor_1);
|
||||||
msg.setShortValue(GET_RPM() * 4, 2); //RPM
|
msg.setShortValue(GET_RPM() * 4, 2); //RPM
|
||||||
}
|
}
|
||||||
|
|
||||||
float clt = Sensor::getOrZero(SensorType::Clt);
|
float clt = Sensor::getOrZero(SensorType::Clt);
|
||||||
|
|
||||||
{
|
{
|
||||||
CanTxMessage msg(CAN_VAG_CLT);
|
CanTxMessage msg(CAN_VAG_Motor_2);
|
||||||
msg.setShortValue((int) ((clt + 48.373) / 0.75), 1); //Coolant Temp
|
msg.setShortValue((int) ((clt + 48.373) / 0.75), 1); //Coolant Temp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,16 +15,20 @@ void canDashboardVAG(CanCycle cycle);
|
||||||
|
|
||||||
|
|
||||||
// https://wiki.openstreetmap.org/wiki/VW-CAN
|
// 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_CLT_V2 0x420 /* _10ms cycle */
|
||||||
#define CAN_VAG_IMMO 0x3D0 /* _10ms cycle */
|
#define CAN_VAG_IMMO 0x3D0 /* _10ms cycle */
|
||||||
|
|
||||||
// 0x280
|
// 0x280, 10ms period
|
||||||
#define CAN_VAG_Motor_1 640
|
#define CAN_VAG_Motor_1 640
|
||||||
// 0x284
|
// 0x284
|
||||||
#define CAN_VAG_Motor_Brake 644
|
#define CAN_VAG_Motor_Brake 644
|
||||||
// 0x288
|
// 0x288, 10ms period
|
||||||
#define CAN_VAG_Motor_2 648
|
#define CAN_VAG_Motor_2 648
|
||||||
// 0x480
|
// 0x480
|
||||||
#define CAN_VAG_Motor_5 1152
|
#define CAN_VAG_Motor_5 1152
|
||||||
|
// 0x488
|
||||||
|
#define CAN_VAG_Motor_6 1160
|
||||||
|
// 0x580
|
||||||
|
#define CAN_VAG_Motor_Flexia 1408
|
||||||
|
// 0x588
|
||||||
|
#define CAN_VAG_Motor_7 1416
|
||||||
|
|
Loading…
Reference in New Issue