Plot error using the tireData and tireModel features with a FSAE TTC files

3 次查看(过去 30 天)
Hi everyone,
I am writing to you here because I have several questions about the tiredata and tire model functions.
I can't plot the curves obtained in the examples :
When I load my file (.dat or .mat, FSAE TTC from Calspan), Matlab recognizes it well and loads the different values.
However, when I use this command for example
plot(tm,"Direction","alpha")
I have the followng error:
(Error using autoplot
All data sets removed due to unrecognized tire test type. Plotting function aborted.
Error in tireData/plot
Error in tireModel/plot)
The second question I have is about the values obtained.
When I import the same file with tireData (Matlab) or External File (Combined Slip Wheel 2DOF), I do not get the same values.
If you have any ideas, I thank you in advance.
  17 个评论
Tanguy
Tanguy 2024-11-12
I used the two attached files.
I also put the live script file.
Thanks for the advice for the fit, I will try all that.
I also had a question about the tire dimensions.
Using "tm.TireSize" and then doing, [tm, diffTable] = fit(tm, td, "Dimensions"), I have the following warning:
Warning: Unable to set parameter(s) 'UNLOADED_RADIUS', 'WIDTH', 'ASPECT_RATIO', 'RIM_RADIUS', 'RIM_WIDTH'. Input tire data array does not contain any non-empty values.
Thanks in advance,
Tanguy
Matthew
Matthew 2024-11-12
Tanguy,
Those tire model parameters are not determined by the "TireSize" property, but by the following properties:
UNLOADED_RADIUS = OverallDiameter / 2
WIDTH = SectionWidth / 1000
ASPECT_RATIO = AspectRatio / 100
RIM_RADIUS = RimDiameter / 2 * 0.0254
RIM_WIDTH = RimWidth * 0.0254
You can find this in the fit doc page, under "FitType" argument.
Hope this helps!
Matt

请先登录,再进行评论。

回答(1 个)

Matthew
Matthew 2024-12-10
Many good tidbits are in the comment history! To summarize a few:
Plotting Tire Models
Try using the "DataVariableNames" input argument to explicitly specify which data channels to plot.
Importing FSAE Data
Tire measurement data can be imported from a .MAT file by first loading the data variables and then assigning to a tireData object. Be sure to pay attention to units and coordinate systems!
% load the data into the MATLAB workspace
matdata = load("B2356run17-Corner.mat");
% instantiate an empty tireData object
td = tireData;
% the Fz channel contains negative values, so this indicates the coordinate
% system is SAE. Change the coordinate system prior to moving the data into
% the tireData object. It can then be transformed to other coordinate
% systems (like ISO).
td = coordinateTransform(td,"SAE");
% move the measurement data into the tireData object
td.et = matdata.ET;
td.alpha = deg2rad(matdata.SA);
td.gamma = deg2rad(matdata.IA);
Better yet, if you have the Calspan .DAT files, they are natively supported! Import them directly!
Interacting with VDBS Simulink Blocks
If you're moving tire model parameters in and out of VDBS blocks often, you might consider using the tireModel.set and tireModel.get methods so you don't have to export and import the TIR files.
Want to fit a tire model but don't have measurement data?
Run this command and you'll have access to example measurement data!
openExample('vdynblks/FitATireModelToTireDataExample')

类别

Help CenterFile Exchange 中查找有关 Wheels and Tires 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by