by David Ferguson on Fri Oct 27, 2023 4:44 pm
Here are your configs with the changes that I think will work.
First, I looked at your PDM Global Setup CAN Inputs. I see that messages 0x118 - 0x11E were selected. From the M1 Help for "ECU CAN Transmit", we know that the M1 sends data to 0x118 - 0x11A if enabled. So 0x11B would be the first available unused CAN messages (we could also use a different CAN address like 0x500 - 0x520).
So since I know reverse gear is typically a gear value of -1, I started to setup the PDM CAN Input for a 16 bit signed value, but later I found I could not compare "Gear equal -1" (PDM Manager converted that to "Gear equal 0"). So I switched to get getting an 8-bit unsigned value, and decided I would convert the values sent by the dash to be positive values.
Looking that the C125 Dash Manger help for "Calculations->Gear Detection..", I see that gear could be a value from -5 to 9, to account for automatic transmissions. So to be as flexible as possible the values -3 and -1 could both represent Reverse selected. So I will add 5 to the Gear value that I transmit to the PDM.
So starting with the Dash Manager, look at Connections->Communications->CAN2->Dash to PDM 0x11B (use the "Edit" button with that template selected). This will show you an example of transmitting a single byte of the gear channel offset by adding 5. So with this offset R will be value of 2 or 4.
Next look at the PDM Manager under CAN Inputs. You will see I added CAN.Gear as an 8 bit value starting at offset 0 on address 0x11B. Then under Functions I added Functions.Reverse Gear Active and test for gear to be either 2 or 4. Finally, I modified Output Pins for Out.Reverse Lights to use Functions.Reverse Gear Active.
I think it will work, but you will need to load and test. Let us know if it works or you have any questions.
- Attachments
-
- Mitsubishi EVO 8 Scott VRD Gear Reverse.pdm
- PDM config with Gear receive, reverse detection
- (314.55 KiB) Downloaded 382 times
-
- Mitsubishi EVO Scott - VRD GearTx.c125v64
- C125 Dash Config with CAN Gear transmit
- (1.34 MiB) Downloaded 351 times
David Ferguson
Veracity Racing Data