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 83 times

brentp
Site Admin
Posts: 5925
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: 5925
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

ND Miata preset has been added!

DocWalt
Posts: 3
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: 5925
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: 3
Joined: Tue Nov 13, 2018 2:52 pm

Post by DocWalt »

I uploaded it to google drive here: https://drive.google.com/open?id=11Dc8d ... OW-UlVpP3_

brentp
Site Admin
Posts: 5925
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: 3
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.

https://drive.google.com/open?id=1RbTzC ... 00IDsybH_X

https://www.youtube.com/watch?v=bNalVtw_xUc

brentp
Site Admin
Posts: 5925
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

Post Reply