This documentation shows how to control a robotic system with a remote controller.
Remote control is sometimes necessary to provide the user with the ability to switch between autonomous and remote control.
One option for controlling a Robotic System is to use an embedded target attached to an RC remote. One of the channels on the remote can be used to toggle the robotic system between autonomous and manual mode.
Since Simulink models can be deployed to an Arduino, a block called "Arduino RC Receive" has been provided by this Getting Started Guide.
Receive Data from an RC Receiver
Here is basic example which shows how to receive data from an RC Receiver using Simulink and an Arduino.
Switching a Robotic System between Autonomous and Manual Mode
The following examples show how to switch the control of a Robotic System between autonomous and manual mode.
If you are planning on running MATLAB Functions and Simulink models directly on a desktop computer, and therefore you do not need to generate code out of the MATLAB Functions and Simulink Models, check out the following example:
If you need to generate code out of your MATLAB or Simulink code (i.e. create an executable), check out the following example: