RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
ND Miata CAN mapping - First pass
Author Message
Reply with quote
Post 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 !

View user's profile Send private message
Reply with quote
Post  
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
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
Very happy to contribute a bit - thanks for building great stuff for us ! Sent you a PM.

View user's profile Send private message
Reply with quote
Post  
ND Miata preset has been added!

View user's profile Send private message Send e-mail
Reply with quote
Post  
Arvind and I have done a little more digging and Arvind updated the CAN definitions Smile

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.

View user's profile Send private message
Reply with quote
Post  
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
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
I uploaded it to google drive here: https://drive.google.com/open?id=11Dc8dtDMsepk7-ik-xVl-_OW-UlVpP3_

View user's profile Send private message
Reply with quote
Post  
Thanks! ND Miata mapping preset has been updated.


_________________
Brent Picasso
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
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 Smile

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=1RbTzCGrJPPZs30WU5E4Ori00IDsybH_X

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

View user's profile Send private message
Reply with quote
Post  
Thanks! we updated the CAN mapping preset.


_________________
Brent Picasso
Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum