Page 1 of 1

ND Miata CAN mapping - First pass

Posted: Sun Jul 08, 2018 3:04 am
by arvind
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 !

Posted: Mon Jul 09, 2018 9:27 pm
by brentp
This is great, thanks for the contribution/sharing!

We'd like to get this loaded as a CAN preset. Got a nice pic of your car we can use, that's similar to what we have for the other presets? Maybe an action shot, if you have it.

Thanks again!

Posted: Tue Jul 10, 2018 10:42 pm
by arvind
Very happy to contribute a bit - thanks for building great stuff for us ! Sent you a PM.

Posted: Mon Aug 06, 2018 9:02 pm
by brentp
ND Miata preset has been added!

Posted: Tue Dec 11, 2018 3:59 am
by DocWalt
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.

Posted: Tue Dec 11, 2018 3:14 pm
by brentp
Hi, thanks for the update. Easiest is to post the updates as an .rcp file and we can use that to update the preset.

Thanks!

Posted: Thu Dec 13, 2018 8:42 pm
by DocWalt
I uploaded it to google drive here: <removed dead link>

Posted: Sat Jan 05, 2019 9:29 pm
by brentp
Thanks! ND Miata mapping preset has been updated.

Posted: Tue Mar 05, 2019 4:28 am
by DocWalt
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

Posted: Fri Mar 08, 2019 12:19 am
by brentp
Thanks! we updated the CAN mapping preset.

Re: ND Miata CAN mapping - First pass

Posted: Wed Sep 09, 2020 3:31 pm
by DocWalt
Hey Brent,

A few of us ran into minor issues so we came up with a updated profile: <removed dead link>

Re: ND Miata CAN mapping - First pass

Posted: Mon Jan 25, 2021 7:13 pm
by brentp
Updated the preset. Thanks!

Re: ND Miata CAN mapping - First pass

Posted: Tue Mar 02, 2021 6:28 am
by v_Miyagi
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?

Re: ND Miata CAN mapping - First pass

Posted: Wed Nov 17, 2021 4:06 pm
by DocWalt
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

Re: ND Miata CAN mapping - First pass

Posted: Wed Nov 17, 2021 9:39 pm
by brentp
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.