parent
ad3adcd4e9
commit
0bcfe46167
|
@ -5,12 +5,12 @@
|
||||||
void setHondaCivicBcm() {
|
void setHondaCivicBcm() {
|
||||||
setBodyControlUnit();
|
setBodyControlUnit();
|
||||||
engineConfiguration->totalGearsCount = 6;
|
engineConfiguration->totalGearsCount = 6;
|
||||||
engineConfiguration->gearRatio[0] = 8;
|
engineConfiguration->gearRatio[0] = 12;
|
||||||
engineConfiguration->gearRatio[1] = 5.2;
|
engineConfiguration->gearRatio[1] = 9;
|
||||||
engineConfiguration->gearRatio[2] = 3.9;
|
engineConfiguration->gearRatio[2] = 6.2;
|
||||||
engineConfiguration->gearRatio[3] = 2.8;
|
engineConfiguration->gearRatio[3] = 4.8;
|
||||||
engineConfiguration->gearRatio[4] = 2.2;
|
engineConfiguration->gearRatio[4] = 3.7;
|
||||||
engineConfiguration->gearRatio[5] = 1.8;
|
engineConfiguration->gearRatio[5] = 2.8;
|
||||||
|
|
||||||
engineConfiguration->isBoostControlEnabled = true;
|
engineConfiguration->isBoostControlEnabled = true;
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ end
|
||||||
|
|
||||||
function onCAR_SPEED(bus, id, dlc, data)
|
function onCAR_SPEED(bus, id, dlc, data)
|
||||||
canTimer : reset()
|
canTimer : reset()
|
||||||
speedKph = getTwoBytesLSB(data, 1, 0.01)
|
speedKph = getTwoBytesLSB(data, 1, 0.006)
|
||||||
print('onCAR_SPEED ' .. speedKph)
|
print('onCAR_SPEED ' .. speedKph)
|
||||||
speedSensor : set(speedKph)
|
speedSensor : set(speedKph)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue