Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split Mazda cars to : CX5, CX9, and Mazda3 #2097

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

Jafaral
Copy link
Contributor

@Jafaral Jafaral commented Aug 28, 2020

All Mazda cars were registered as CX-5. This PR spilts them to different models
and fills in the relevant params and allows PID tuning per model.

Signed-off-by: Jafar Al-Gharaibeh to.jafar@gmail.com

@adeebshihadeh
Copy link
Contributor

LGTM, will merge once we can get routes for each of the new models and tests pass.

@Jafaral
Copy link
Contributor Author

Jafaral commented Aug 28, 2020

BTW @adeebshihadeh, I put all of the new models under a GEN1 set for Mazda generation 1 ADAS hardware. This make it easy to separate the logic for GEN2 hardware when we add support for it.

@adeebshihadeh
Copy link
Contributor

Do the gen 2 models have the steering lockout or more torque?

@Jafaral
Copy link
Contributor Author

Jafaral commented Aug 28, 2020

Hard to tell without having a car myself and without OP support, but users reported no lockout at least, but maybe more torque as well.

@Jafaral Jafaral force-pushed the mazda-models branch 2 times, most recently from b42e4cb to b025451 Compare August 29, 2020 23:42
@Jafaral
Copy link
Contributor Author

Jafaral commented Aug 29, 2020

@adeebshihadeh the new routes are added, please see b025451

'carFingerprint': MAZDA.CX9,
'enableCamera': True,
},
"74f1038827005090|2020-08-27--10-23-22": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this route isn't uploaded

@Jafaral Jafaral force-pushed the mazda-models branch 2 times, most recently from 5262801 to 0434da0 Compare August 30, 2020 04:31
@Jafaral
Copy link
Contributor Author

Jafaral commented Sep 6, 2020

@adeebshihadeh I updated the route for Mazda 6, can you please check if all of the routes are now passing ?

'carFingerprint': MAZDA.Mazda3,
'enableCamera': True,
},
"0f702597446474bf|2020-09-01--16-53-30": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this route isn't uploaded

ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.19], [0.019]]
ret.lateralTuning.pid.kf = 0.00006

#Mazda6 params
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove these comments

Add test routes for CX9 and Mazda3

CX9: "10b5a4b380434151|2020-08-26--17-11-45"

Mazda3: "74f1038827005090|2020-08-26--20-05-50"

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
@Jafaral Jafaral changed the title Split Mazda cars to : CX5, CX9, Mazda3, and Mazda6 Split Mazda cars to : CX5, CX9, and Mazda3 Sep 9, 2020
@adeebshihadeh
Copy link
Contributor

Merging, test failure is unrelated to the PR

@adeebshihadeh adeebshihadeh merged commit 6c292c3 into commaai:master Sep 9, 2020
@Jafaral Jafaral deleted the mazda-models branch August 24, 2021 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants