ND Miata CAN mapping - First pass
ND Miata CAN mapping - First pass
Here's a first pass at decoding CAN messages available on the ND Miata. List of signals:
* RPM
* Wheel speed
* Steering angle (arbitrary scaling to get usable values, can use improvement - also it seems to be a variable ratio signal, more sensitivity around center)
* Brake (arbitrary scaling to get usable values)
* Throttle
* Other (4 wheel speeds, clutch, gear)
Decoded summary sheet:
https://goo.gl/hcAyQr
Baud rate: 500k
More context: https://forum.miata.net/vb/showthread.php?t=659797
Hope this is useful - looking forward to improvements from folks !
* RPM
* Wheel speed
* Steering angle (arbitrary scaling to get usable values, can use improvement - also it seems to be a variable ratio signal, more sensitivity around center)
* Brake (arbitrary scaling to get usable values)
* Throttle
* Other (4 wheel speeds, clutch, gear)
Decoded summary sheet:
https://goo.gl/hcAyQr
Baud rate: 500k
More context: https://forum.miata.net/vb/showthread.php?t=659797
Hope this is useful - looking forward to improvements from folks !
- Attachments
-
- Screenshot of RaceCapture App showing CAN mapping.
- CAN_MappingRaceCapture070718.PNG (41.33 KiB) Viewed 17353 times
Arvind and I have done a little more digging and Arvind updated the CAN definitions
The only new issue that we've found is the steering angle adder seems to need to be adjusted depending on car. For example on my 2019 I used an adder of 331.6 but on Arvind's 2016 and another guy's 2016 that I tested on, the value of 328.6 on the sheet worked to center the steering.
We don't quite have a fix for the brake value rolling over from 90 to a negative value, I guess we'll work on a fix for that and update. Might need to do some lua scripting or find another source for the brake value that doesn't have that odd behavior. This was known behavior but it would be great to find a fix.
The only new issue that we've found is the steering angle adder seems to need to be adjusted depending on car. For example on my 2019 I used an adder of 331.6 but on Arvind's 2016 and another guy's 2016 that I tested on, the value of 328.6 on the sheet worked to center the steering.
We don't quite have a fix for the brake value rolling over from 90 to a negative value, I guess we'll work on a fix for that and update. Might need to do some lua scripting or find another source for the brake value that doesn't have that odd behavior. This was known behavior but it would be great to find a fix.
Hey Brent, I've updated the definitions with a brake pressure that works properly (I wrote a Lua script to handle the VERY weird behavior Mazda does with rolling the value over on itself multiple times). The brake pressure location was correctly identified by Arvind
I also rescaled the steering angle to be based on the physical degrees of the wheel, instead of -100/100% value.
<removed dead link>
https://www.youtube.com/watch?v=bNalVtw_xUc
I also rescaled the steering angle to be based on the physical degrees of the wheel, instead of -100/100% value.
<removed dead link>
https://www.youtube.com/watch?v=bNalVtw_xUc
Last edited by DocWalt on Wed Nov 17, 2021 4:06 pm, edited 1 time in total.
Re: ND Miata CAN mapping - First pass
Hey Brent,
A few of us ran into minor issues so we came up with a updated profile: <removed dead link>
A few of us ran into minor issues so we came up with a updated profile: <removed dead link>
Last edited by DocWalt on Wed Nov 17, 2021 4:06 pm, edited 1 time in total.
Re: ND Miata CAN mapping - First pass
Updated the preset. Thanks!
Re: ND Miata CAN mapping - First pass
When I bring in the Preset. I don't get Brake listed as a channel. Is that correct?
I've just set up a new device with Firmware 2.17.8 and the latest presets.
I see: Steering, Wheelspeed, TPS and RPM
Is there more I need to do?
Also tried directly adding the RCP file from last post here, same result - Thanks!
EDIT: I'm in an ND2 - Seems from Comments in the mapping file at start of thread that ND2 may not get brake pressure. Can anyone confirm?
I've just set up a new device with Firmware 2.17.8 and the latest presets.
I see: Steering, Wheelspeed, TPS and RPM
Is there more I need to do?
Also tried directly adding the RCP file from last post here, same result - Thanks!
EDIT: I'm in an ND2 - Seems from Comments in the mapping file at start of thread that ND2 may not get brake pressure. Can anyone confirm?
Re: ND Miata CAN mapping - First pass
Updated preset here: https://drive.google.com/file/d/1vTXkms ... sp=sharing
I developed this on an ND2, it still gets brake pressure. I have since sold the car so this will be the last of my updates.
If you're looking for an easy way to mount your Track Mk2 in the ND I designed a 3D printable mount that clips into the center console cupholders. See here: https://drive.google.com/file/d/1Nv6es8 ... sp=sharing
https://www.youtube.com/watch?v=XhBPJj1L1sA
Brake pressure is a LUA script due to how Mazda handled brake pressure on the NDs. It sometimes gets unhappy if you spike the brake pedal too quickly, slow your foot down.
Latest config as shared above is working fine as evidenced here:
https://www.youtube.com/watch?v=uyeZig3AWm0
I developed this on an ND2, it still gets brake pressure. I have since sold the car so this will be the last of my updates.
If you're looking for an easy way to mount your Track Mk2 in the ND I designed a 3D printable mount that clips into the center console cupholders. See here: https://drive.google.com/file/d/1Nv6es8 ... sp=sharing
https://www.youtube.com/watch?v=XhBPJj1L1sA
Brake pressure is a LUA script due to how Mazda handled brake pressure on the NDs. It sometimes gets unhappy if you spike the brake pedal too quickly, slow your foot down.
Latest config as shared above is working fine as evidenced here:
https://www.youtube.com/watch?v=uyeZig3AWm0
Re: ND Miata CAN mapping - First pass
Thanks! In the future you can create your own shared preset for CAN and Lua scripting mappings, right within the new V2 app. See the details here: https://www.autosportlabs.com/racecaptu ... -its-here/ and related video in the blog post.