

Roll Center Calculator App with MATLAB App Designer
source link: https://blogs.mathworks.com/racing-lounge/2021/05/19/roll-center-calculator-app-with-matlab-app-designer/?doing_wp_cron=1621547571.3686609268188476562500
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Nice to meet you, I am Nobu the technical lead for Formula SAE Japan.
The other day, I created an app for Formula Student teams that automatically calculates the position of the roll center using MATLAB’s App Designer. This app enables teams to modify the code and change the algorithm.
Below I explain the details and would like to hear your feedback on this app and how you might use it.
What is the Roll Center
The roll center is the point of the center (virtual moment) when the object rotates. So why is the roll center so important? For example, a car has a center of gravity. However, the farther the center of gravity and the height of the roll center are, the easier it is for the car to lose balance. Therefore, the car body may turn over when trying to turn a curve. Therefore, it is important to know the exact position of the roll center and adjust the position of the roll center so that the car does not lose its balance.
How is the roll center determined?
There is a mechanism called a suspension that connects the car body and wheels, and the position of the roll center is determined by how the suspension is attached.
What you can do with the MATLAB Roll Center App
If you enter the necessary information in this roll center app, the position of the roll center will be calculated automatically and displayed in 3D.
How to download the roll center app
- Click the link shown below
- Click the download button in the upper right corner
- Unzip the Zip file and open the rollCenterCalculator file in the folder
Link: Roll Center App
Inputs
There are two main types of information that you need to enter in the app.
- First, information about a vehicle body
- Second, information about the mounting position of the suspension
Information about the vehicle body
Each parameter is shown in the picture below.
Suspension mounting position
Since the double wishbone suspension is used this time, the mounting points are divided into upper and lower parts, with 2 points on the vehicle body side and 1 point on the wheel side.
Outputs
- Instantaneous Center (IC): Parameters required in the process of calculating the roll center (instant center)
- Roll Center (RC): Roll Center
- Distance between RC and CG: Difference between the roll center and the height of the center of gravity
How to Customize App
- Click rollCenterCalculator.mlapp in MATLAB
- Click CodeView
- Code to customize
Afterword
The above is a brief overview of the app and how to use it, but this app is static so that even beginners can easily understand it. There are many things you can add or customize the app with MATLAB App Designer, such as increasing the parameters to make it more dynamic by changing the calculation algorithm inside or changing the display format to make it easier for others to see. Thank you.
There are useful resources for automotive competition. Please check the link below
- How-to videos (5 minutes short video)
Recommend
-
14
Webinar Quiz - Control System Designer ToolboxThis is an MCQ based online quiz for the webinar of Control System Designer Toolbox. Participation in the online quiz is completely free and you can attem...
-
8
CONTROL SYSTEM Have you ever thought of how control systems are involved in our day to day life? An Air conditioner functions depending on the temperature of the room and the desired temperature, which is set by us us...
-
13
Piano fundamentalsI am sure most of you would have heard some beautiful melodies or maybe can play some yourself, in this blog we will see how it's possible to create some tunes in MATLAB. In this blog, we will use the terms key...
-
18
Improving the Tesco Loan Calculator.By Chris Annetts — 23 July 2021I've recently started referring to myself as a 'web form designer'. I haven't spotted a single other person doing this, and s...
-
8
.st0{fill:#FFFFFF;} Driving Scenario Designer App August 13, 2021 By Abhishek Tyagi
-
6
Winner ShowcaseTill 20th Jan 2020, We saw participation of 144 enthusiasts. Three achieved success score and two completed all formalities and are featured here.
-
12
Deep Network Designer AppNeed Urgent Help?Our experts assist in all MATLAB & Simulink fields with communication options from live sessions to offline work.
-
9
.st0{fill:#FFFFFF;} App Designer for Beginners June 24, 2022 By Shubham
-
9
Connect Four With App DesignerNeed Urgent Help?Our experts assist in all MATLAB & Simulink fields with communication options from live sessions to offline wor...
-
8
Pause on Error with MATLAB App Designer » Stuart’s MATLAB Videos Here is a video I recorded not long after 22a was released, but I haven’t p...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK