Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG] "Downsampling Error for Magic Formula Tyre Tool V1.4" "Expected X to be nonempty" #4

Closed
Zaga272 opened this issue Sep 29, 2023 · 13 comments
Assignees

Comments

@Zaga272
Copy link

Zaga272 commented Sep 29, 2023

Hey Tom,
I was trying to use the fitter of your Magic Formula Tyre Tool but unfortunately there is a problem with the downsampling. Once i click "Start Fitter" Matlab gives out an error message which says: "Error using downsample, Expected X to be nonempty" I tried it with different FSAE TTC Raw data but the error keeps showing up. So in order to reproduce the error you just have to import Cornering and DriveBrake data of your tyre and start the fitter. I also tried to change the downsampling from 1 to 5 and so on but this did not fix the problem.
I just started learning about Tyre modelling and your tool helps me a lot to understand the tyre characteristics and how to work with the FSAE TTC Data.
So any help to fix this problem would be much appreciated.

Here is also a screenshot of the error message:
image

Btw I am using Matlab 2022b

@teasit
Copy link
Owner

teasit commented Oct 2, 2023

@Zaga272 The downsampling factor is not the issue. It's that your data did not contain any relevant samples to fit the model to.

The tool currently does not give a better error description, sorry for that. Which dataset are you using?

@Zaga272
Copy link
Author

Zaga272 commented Oct 3, 2023

Hey, I am using the Raw FSAE TTC Data from Round 9.

@Gianluca2
Copy link

@Zaga272 You need to run RUN data to make the program work

@BhandeGiridhar
Copy link

Hi! I've been facing a similar issue. When I try to fit for Mz0, Mx, etc modes, it states me an error that "Parameter 'UNLOADED_RADIUS' is required to fit 'Mz0'". I am not sure what to do, the data cant be incomplete now, can it? Ive tried different measurement data and still face the same issue.

@teasit
Copy link
Owner

teasit commented Nov 14, 2023 via email

@lmpsn
Copy link

lmpsn commented Nov 14, 2023

Hi , I'm facing the same issue as @Zaga272 but I have actually used RUN data from the Round 9 of the TTC. What would be the problem ?

@Zaga272
Copy link
Author

Zaga272 commented Nov 14, 2023

Hi, well, I've also used the RUN Data from Round 9 from the beginning and the problem still exists.

@cabadiez
Copy link

I have the same problem as zaga

@teasit
Copy link
Owner

teasit commented Dec 6, 2023

@Zaga272 OK, I can reproduce the issue with some Round 9 data. Will look into it.

@teasit
Copy link
Owner

teasit commented Dec 6, 2023

@Zaga272 Please try using this updated import script to see if it fixes your issue.
FSAETTC_SI_ISO_Mat.zip

The file to be replaced should be located here:
<path-to-tool>/src/magic-formula-tyre-library/src/+tydex/+parsers

Or navigate to the file by clicking this button:
image

@Zaga272
Copy link
Author

Zaga272 commented Dec 16, 2023

Hey @teasit, now it works. Thank you very much.

@teasit
Copy link
Owner

teasit commented Dec 18, 2023

Alright. Glad to hear it.

Will update the script with the next release!

@teasit
Copy link
Owner

teasit commented Dec 20, 2023

fixed in v1.5.1

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants