ND Miata CAN mapping - First pass

Discussions on CAN mapping for ECUs, sensors, PDMs, and more.
Post Reply
arvind
Posts: 3
Joined: Mon Apr 24, 2017 7:22 pm

ND Miata CAN mapping - First pass

Post 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 !
Attachments
Screenshot of RaceCapture App showing CAN mapping.
Screenshot of RaceCapture App showing CAN mapping.
CAN_MappingRaceCapture070718.PNG (41.33 KiB) Viewed 17351 times

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post 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!
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

arvind
Posts: 3
Joined: Mon Apr 24, 2017 7:22 pm

Post by arvind »

Very happy to contribute a bit - thanks for building great stuff for us ! Sent you a PM.

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

ND Miata preset has been added!

DocWalt
Posts: 7
Joined: Tue Nov 13, 2018 2:52 pm

Post 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.

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post 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!
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

DocWalt
Posts: 7
Joined: Tue Nov 13, 2018 2:52 pm

Post by DocWalt »

I uploaded it to google drive here: <removed dead link>
Last edited by DocWalt on Wed Nov 17, 2021 4:06 pm, edited 1 time in total.

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Thanks! ND Miata mapping preset has been updated.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

DocWalt
Posts: 7
Joined: Tue Nov 13, 2018 2:52 pm

Post 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
Last edited by DocWalt on Wed Nov 17, 2021 4:06 pm, edited 1 time in total.

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Thanks! we updated the CAN mapping preset.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

DocWalt
Posts: 7
Joined: Tue Nov 13, 2018 2:52 pm

Re: ND Miata CAN mapping - First pass

Post by DocWalt »

Hey Brent,

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.

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Re: ND Miata CAN mapping - First pass

Post by brentp »

Updated the preset. Thanks!

v_Miyagi
Posts: 1
Joined: Tue Mar 02, 2021 6:20 am

Re: ND Miata CAN mapping - First pass

Post 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?

DocWalt
Posts: 7
Joined: Tue Nov 13, 2018 2:52 pm

Re: ND Miata CAN mapping - First pass

Post 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

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Re: ND Miata CAN mapping - First pass

Post 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.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Post Reply