-
Notifications
You must be signed in to change notification settings - Fork 0
/
opel_astra_h_opc_2006.go
630 lines (605 loc) · 18.2 KB
/
opel_astra_h_opc_2006.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
/**
* Copyright © 2023-2024, Staufi Tech - Switzerland
* All rights reserved.
*
* ________________________ ___ _ ________________ _ ____
* / _____ _ ____________/ / __|_| /_______________ | | ___/
* ( (____ _| |_ _____ _ _ _| |__ _ | |_____ ____| |_|_
* \____ (_ _|____ | | | (_ __) | | | ___ |/ ___) _ \
* _____) )| |_/ ___ | |_| | | | | | | | ____( (___| | | |
* (______/ \__)_____|____/ |_| |_| |_|_____)\____)_| |_|
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
package cancoder
// low speed
const (
BREAK_PRESSED = 0x40
BREAK_OPEN = 0x00
WEEL_KEY_SEEK_UP = 0x10
WEEL_KEY_SEEK_DOWN = 0x20
WEEL_KEY_SEEK_PRESSED = 0x30
WEEL_KEY_MUTE_PRESSED = 0x40
WEEL_KEY_MODE_PRESSED = 0x50
WEEL_KEY_UP_PRESSED = 0x04
WEEL_KEY_DOWN_PRESSED = 0x05
WEEL_KEY_VOLUME_UP = 0x01
WEEL_KEY_VOLUME_DOWN = 0x02
DRIVING_LIGHT_OFF = 0x00
DRIVING_LIGHT_PARKING = 0x40
DRIVING_LIGHT_LOW_BEAM = 0xc0
DRIVING_LIGHT_REVERSE = 0x01
LIGHT_LEVELER_HIGH_BEAM_BIT = 0x40
LIGHT_LEVELER_FOG_FRONT_BIT = 0x20
LIGHT_BACK_FOG = 0x80
LIGHT_BACK_HANDBRAKE = 0x01
LIGHT_BACK_WISHWATER = 0x03 // maybe also bulbs?
DOOR_STATE_FRONT_LEFT_OPEN = 0x40
DOOR_STATE_FRONT_RIGHT_OPPEN = 0x10
DOOR_STATE_TRUNK_OPEN = 0x04
// guess 5 door car
DOOR_STATE_BACK_RIGHT_OPEN = 0x01
DOOR_STATE_BACK_LEFT_OPEN = 0x08
ENGINE_OFF = 0x00
ENGINE_IGNITION_ON = 0x03
ENGINE_STARTER_RUNNING = 0x43 // -> 4 starter -> 3 ignition
ENGINE_RUNNING = 0x13 // -> 1 engine running -> 3 ignition
ENGINE_RUNNING_DRIVING = 0x23 // -> 2 engine running and driving -> 3 ignition
CRUSE_CONTROLL_ON = 0x06 // 0x04 off
RANGE_WARNING_OFF = 0x03
RANGE_WARNING_ON = 0x00
AC_MODE_AUTO = 89
AC_MODE_HEAD = 83
AC_MODE_BODY = 85
AC_MODE_FOOD = 87
AC_MODE_HEAD_BODY = 84
AC_MODE_HEAD_FOOD = 88
AC_MODE_BODY_FOOD = 86
AC_MODE_HEAD_BODY_FOOD = 82
)
// mid speed
const (
SOME_MID_SPEED = 0x00
)
// high speed
const (
SOME_HIGH_SPEED = 0x00
)
const (
FULL_CAPACITY_L = 52
)
// Opel's LowSpeed SW-CAN 33.3k (Single Wire - ws(H))
type GMLanArbitrationIDs uint32
const (
GMLanBusWakeup GMLanArbitrationIDs = 0x100 // tested
GMLanEngineSpeedRPM GMLanArbitrationIDs = 0x108 // tested
GMLanTraveledDistance GMLanArbitrationIDs = 0x110 // Not shure
GMLanFullInjection GMLanArbitrationIDs = 0x130 // not valid as it is, seems to be a counter (ml/s or something like that)
GMLanCoolant GMLanArbitrationIDs = 0x145 // tested
GMLanCruseControl GMLanArbitrationIDs = 0x145 // tested
GMLanWeelRemoteControll GMLanArbitrationIDs = 0x175 // tested
GMLanMilage GMLanArbitrationIDs = 0x190 // tested
GMLanDoorState GMLanArbitrationIDs = 0x230 // tested
GMLanLedBrightness GMLanArbitrationIDs = 0x235 // tested
GMLanLightSwitch GMLanArbitrationIDs = 0x305 // tested
GMLanLightLevler GMLanArbitrationIDs = 0x350 // tested
GMLanClutchBreak GMLanArbitrationIDs = 0x360 // tested (Rücklichter?)
GMLanLightBack GMLanArbitrationIDs = 0x370 // tested
GMLanFullLevel GMLanArbitrationIDs = 0x375 // tested
GMLanSysTime GMLanArbitrationIDs = 0x440
GMLanOutputTemperature GMLanArbitrationIDs = 0x445 // tested
GMLanBatteryVoltage GMLanArbitrationIDs = 0x500 // tested
GMLanTPMS GMLanArbitrationIDs = 0x530 // unknown
)
// Opel's MidSpeed CAN 95k (red(H), yellow(L), green(GND) )
type EntertainmentCANArbitrationIDs uint32
const (
EntertainmentCANDate EntertainmentCANArbitrationIDs = 0x180 // tested
EntertainmentCANDistance EntertainmentCANArbitrationIDs = 0x188
EntertainmentCANRadioButtons EntertainmentCANArbitrationIDs = 0x201
EntertainmentCANSteeringWheelButtons EntertainmentCANArbitrationIDs = 0x206
EntertainmentCANACKnobs EntertainmentCANArbitrationIDs = 0x208
EntertainmentCANEngineMotion EntertainmentCANArbitrationIDs = 0x4e8
EntertainmentCANEngineTemperature EntertainmentCANArbitrationIDs = 0x4ec
EntertainmentCANFullInjection EntertainmentCANArbitrationIDs = 0x4ed
EntertainmentCANRange EntertainmentCANArbitrationIDs = 0x4ee // tested
EntertainmentCANDisplayTemperature EntertainmentCANArbitrationIDs = 0x682 // tested
EntertainmentCANSensorTemperature EntertainmentCANArbitrationIDs = 0x683 // tested
EntertainmentCANTPMSPressure EntertainmentCANArbitrationIDs = 0x684
EntertainmentCANTPMSBattery EntertainmentCANArbitrationIDs = 0x685
EntertainmentCANFullLevel EntertainmentCANArbitrationIDs = 0x68c
EntertainmentCANDisplayData EntertainmentCANArbitrationIDs = 0x6c1 // partialy tested
EntertainmentCANAirConditioner EntertainmentCANArbitrationIDs = 0x6c8 // -> knöpfe?
// EntertainmentCANAirConditioner GMLanArbitrationIDs = 0x206 //
)
type HighSpeedCANArbitrationIDs uint32 // 500k
const (
HSCANSAEStandardData HighSpeedCANArbitrationIDs = 0x7e8 // DLC | Mode / Service | PID | Data[1-5] | https://en.wikipedia.org/wiki/OBD-II_PIDs
HsCANVehicleSpecificData HighSpeedCANArbitrationIDs = 0x5e8
)
const (
// see https://github.com/sepp89117/Opel_Astra_H_opc_CAN-GaugeV2/blob/main/opc3BC_XL/opc3BC_XL.ino
//
// first byte of HsCANRxData
HsCANSpeeds = 0x10 // ${1}/10 -> Volt , ( ${2}*256 +${3} ) / 4 -> rmp , ${7} -> speed
HSCANTemperatures = 0x11 // ${4} - 40 -> Intake Air Temp , ${2} - 40 -> Coolant Temp , ${5} -> Ambience Temp
HSCANMAF = 0x12 // maf = ((can_MsgRx.buf[2] * 256.0f) + can_MsgRx.buf[3]) / 100.0f * 3.6f; mafVolt = can_MsgRx.buf[1] / 51.0f; power = maf * 0.383f; moment = ((float)power / 1.36f * 1000.0f) / (2.0f * 3.1415926f * rpm / 60.0f);
// if (firstBoostValRec)
// firstBoostVal = can_MsgRx.buf[7], firstBoostValRec = false;
// if (can_MsgRx.buf[7] > firstBoostVal)
// boost = can_MsgRx.buf[7] - firstBoostVal;
// else
// boost = 0;
HSCANPedalPosition = 0x13
HSCANIncector = 0x14
HSCANPetrolLevel = 0x15
HSCANIgnition = 0x16
HsCANKnockVoltage = 0x17
HsCANKnockControl = 0x18
HSCANLambdaProbe = 0x19
HSCANErrorCodes1 = 0x81
HSCANErrorCodes2 = 0xa9
)
// Opel Astra H OPC 2006
var OpelAstraHOpc2006GMLan []CanValueMap = []CanValueMap{
{
ArbitrationID: uint32(GMLanWeelRemoteControll),
CanValueDef: CanValueDef{
Unit: "Key Action",
Calculation: "${5}",
Condition: "${2} == 0x00 && ${3} == 0x00",
Name: WeelKey,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanWeelRemoteControll),
CanValueDef: CanValueDef{
Unit: "Turn Lights",
Calculation: "${4}",
Condition: "${2} == 0x00 && ${3} == 0x00",
Name: TurnLights,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanBusWakeup),
CanValueDef: CanValueDef{
Unit: "Bus Wakeup",
Calculation: "1",
Condition: "1 == 1",
Name: BusWakeup,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanEngineSpeedRPM),
CanValueDef: CanValueDef{
Unit: "RPM",
Calculation: "(${1}*256 + ${2})/4",
Condition: "1 == 1", // engine is running -> ${0} == 0x13
Name: EngineSpeedRPM,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanEngineSpeedRPM),
CanValueDef: CanValueDef{
Unit: "km/h",
Calculation: "(${4}*256 + ${5}) / 128",
Condition: "1 == 1", // engine is running -> ${0} == 0x13
Name: VehicleSpeed,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanEngineSpeedRPM),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${0}",
Condition: "1 == 1",
Name: EngineRunningState,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanMilage),
CanValueDef: CanValueDef{
Unit: "km",
Calculation: "(${2}*65536 + ${3}*256 +${4}) / 64", // 00 00 98 92 c0 00 21
Condition: "1 == 1", // ${0} == 0x23"
Name: Milage,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanTraveledDistance),
CanValueDef: CanValueDef{
Unit: "m",
Calculation: "(${1} * 256 + ${2}) * 0.015748",
Condition: "1 == 1",
Name: TraveledDistance,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanClutchBreak),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${2}",
Condition: "${0} == 0x00 && ${1} == 0x00",
Name: BreakState,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanBatteryVoltage),
CanValueDef: CanValueDef{
Unit: "V",
Calculation: "${1} / 8",
Condition: "1 == 1",
Name: BatteryVoltage,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanLedBrightness),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${1}",
Condition: "${0} == 0x00",
Name: LedBrightness,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanFullLevel),
CanValueDef: CanValueDef{
Unit: "l",
Calculation: "${1}/2+10", // 256 / 2.56 -> 100% -> OPC = 52l
Condition: "${0} == 0x00",
Name: FullLevel,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanFullInjection),
CanValueDef: CanValueDef{
Unit: "x1",
Calculation: "(${1} * 256 + ${2})", // dT= 0.5s, 00 23 f1 00 e5 01 0e -> 00 24 11 00 e5 01 0e | 32 * 0.03054 = 0.97 -> 1.94 ml/s -> 6.984 l/h ? (alt / 4.5)
Condition: "${3} == 0x00",
Name: FullInjection,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanLightSwitch),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${2}",
Condition: "${0} == 0x00 && ${1} == 0x00",
Name: LightSwitch,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanLightLevler),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${0}",
Condition: "1 == 1",
Name: LightLeveler,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanLightBack),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${1}",
Condition: "${0} == 0",
Name: LightBack,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanDoorState),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${2}",
Condition: "${0} == 0 && ${1} == 0",
Name: DoorState,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanCoolant),
CanValueDef: CanValueDef{
Unit: "°C",
Calculation: "${3} - 40",
Condition: "${5} == 0x04 && ${6} == 0",
Name: CoolantTemperature,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanOutputTemperature),
CanValueDef: CanValueDef{
Unit: "°C",
Calculation: "${1} / 2 - 40",
Condition: "${0} == 0x00",
Name: OutdoorTemperature,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanTPMS),
CanValueDef: CanValueDef{
Unit: "bar",
Calculation: "${2}/25;${3}/25;${4}/25;${5}/25",
Condition: "1 == 1",
Name: TPMS,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanCruseControl),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${5}",
Condition: "1 == 1",
Name: CruseControl,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(GMLanSysTime),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${0};${1};${2}",
Condition: "1 == 1",
Name: SystemTime,
},
TriggerEvent: true,
},
}
var OpelAstraHOpc2006EntertainmentCAN []CanValueMap = []CanValueMap{
{
ArbitrationID: uint32(EntertainmentCANDisplayTemperature),
CanValueDef: CanValueDef{
Unit: "°C",
Calculation: "${2} / 2 - 40", // as normal calculation
Condition: "${0} == 0x46 && ${1} == 0x01",
Name: DisplayTemperature,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANSensorTemperature),
CanValueDef: CanValueDef{
Unit: "°C",
Calculation: "${2} / 2 - 40", // as normal calculation
Condition: "${0} == 0x46 && ${1} == 0x01",
Name: SensorTemperature,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANDate),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${2};${3};${4}>>3;((${4}&0x07)<<2)+(${5}>>6);${5}&0x3f;${6}",
FormatSeperators: []string{"-", "-", "T", ":", ":"}, // 23-01-24T18:21:3
Condition: "1 == 1", // ever
Name: DateTime,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANAirConditioner), // works
CanValueDef: CanValueDef{
Unit: "°C",
Calculation: "(((${3} & 0x03) * 10) + (${5} & 0x3f))-48", // oberstes bit (0x80) -> low or high
Condition: "${0} == 0x22 && ${1} == 0x03", // ${0} == 0x22
Name: ACTemperature,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANAirConditioner), // works
CanValueDef: CanValueDef{
Unit: "°C",
Calculation: "100", // Hi
Condition: "${0} == 0x22 && ${1} == 0x48",
Name: ACTemperature,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANAirConditioner), // works
CanValueDef: CanValueDef{
Unit: "°C",
Calculation: "-100", // Low
Condition: "${0} == 0x22 && ${1} == 0x4c",
Name: ACTemperature,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANAirConditioner), // works
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${3} & 0x0f",
Condition: "${0} == 0x22 && ${1} == 0x50",
Name: ACFanSpeed,
},
TriggerEvent: true,
},
// {
// ArbitrationID: uint32(EntertainmentCANAirConditioner), // overwirtes always
// CanValueDef: CanValueDef{
// Unit: "",
// Calculation: "100",
// Condition: "${0} == 0x23 && ${1} == 0x26",
// Name: ACFanSpeed,
// },
// TriggerEvent: true,
// },
{
ArbitrationID: uint32(EntertainmentCANAirConditioner), // works
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${2}",
Condition: "${0} == 0x21 && ${1} == 0xe0",
Name: ACMode,
},
TriggerEvent: true,
},
// {
// ArbitrationID: uint32(EntertainmentCANAirConditioner),
// CanValueDef: CanValueDef{
// Unit: "l",
// Calculation: "52 - ${2} * 2",
// Condition: "0 == 0", // ? 0x46
// Name: "Full Level Midspeed", // ToDO
// },
// TriggerEvent: true,
// },
{
ArbitrationID: uint32(EntertainmentCANFullLevel),
CanValueDef: CanValueDef{
Unit: "l",
Calculation: "94-(${2}/2)",
Condition: "${0} == 0x46",
Name: FullLevelMid,
},
},
{
ArbitrationID: uint32(EntertainmentCANDistance),
CanValueDef: CanValueDef{
Unit: "cm",
Calculation: "(${2} * 256 + ${3}) * 1.5748",
Condition: "${0} == 0x46",
Name: Distance, // ToDO
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANEngineMotion),
CanValueDef: CanValueDef{
Unit: "rpm",
Calculation: "(${2} * 256 + ${3}) / 4",
Condition: "${0} == 0x46",
Name: EngineSpeedRPM,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANEngineMotion),
CanValueDef: CanValueDef{
Unit: "km/h",
Calculation: "${4} * 2",
Condition: "${0} == 0x46",
Name: VehicleSpeedMid, // VehicleSpeed,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANEngineTemperature),
CanValueDef: CanValueDef{
Unit: "°C",
Calculation: "${2} - 40",
Condition: "${0} == 0x46",
Name: CoolantTemperature,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANFullInjection),
CanValueDef: CanValueDef{
Unit: "x1",
Calculation: "${2} * 256 + ${3}",
Condition: "${0} == 0x46",
Name: FullInjectionMid, // ToDO (upcounting value -> find out, how much is the value) highly propable means l since started -> posibilities to calc l/h
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANRange),
CanValueDef: CanValueDef{
Unit: "km",
Calculation: "(${2} * 256 + ${3}) * 0.5",
Condition: "${0} == 0x46",
Name: LeftTravelRange,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANRange),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${1}",
Condition: "${0} == 0x46",
Name: RangeWarning,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANDisplayData),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${2};${4};${6}",
FormatSeperators: []string{",", ","},
Condition: "${0} == 0x23",
Name: DisplayR1C1,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANDisplayData),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${1};${3};${5};${7}",
Condition: "${0} == 0x24",
FormatSeperators: []string{",", ",", ","},
Name: DisplayR1C2,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANDisplayData),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${2};${4};${6}",
FormatSeperators: []string{",", ","},
Condition: "${0} == 0x25",
Name: DisplayR1C3,
},
TriggerEvent: true,
},
{
ArbitrationID: uint32(EntertainmentCANDisplayData),
CanValueDef: CanValueDef{
Unit: "",
Calculation: "${1};${3};${5};${7}",
FormatSeperators: []string{",", ",", ","},
Condition: "${0} == 0x26",
Name: DisplayR1C4,
},
TriggerEvent: true,
},
}
var OpelAstraHOpc2006HighSpeedCAN []CanValueMap = []CanValueMap{
{},
}