MATLAB Answers

ultrasonic (sonar) with V5

5 views (last 30 days)
is there an updted library for ultrasonic / sonar for V5 for VEX Robotics competition?

  0 Comments

Sign in to comment.

Accepted Answer

MathWorks Student Competitions Team
Edited: MathWorks Student Competitions Team on 2 May 2019
If you are using version R2019a of the VEX V5 support package you can use the files attached to this post to add support for the ultrasonic, shaft encoder and vision sensors.Follow the instructions below to install the updated library and note that this additions do not make part of the current Simulink support.
1. Install the latest version of the Simulink Coder Support for VEX V5 Robot Brain
2. Find the installation folder of the support package using the following MATLAB command:
>> matlabshared.supportpkg.getSupportPackageRoot
3. Close MATLAB
4. Navigate to the installation directory received from the command above \toolbox\target\supportpackages, and delete and replace the "vexcommon" and "vexv5" folders with the ones attached to this post.
5. Navigate to the installation directory received from the command above \resources, and delete and replace the "vexv5" folder with the one attached to this post.
6. Restart MATLAB
7. Turn off the Simulink preference to not load models created in newer versions. MATLAB>Preferences>Simulink Preferences>Model File>Do not load models created with newer versions of SImulink.
8. Open the VEX V5 Simulink library using the following command to check for new blocks.
>>vexv5lib
If you ran into any issues please contact passcompetitions@mathworks.com

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.