We are going to build a toy airplane controller in an Ansys SCADE Suite™ model-based development environment for critical embedded software, and then generate and execute the code on an Arduino. What we want to do is use several Arduino devices that will interact using a joystick and buttons to simulate aircraft control.
This section provides a quick introduction to the Arduino package for Ansys SCADE software called cgarduino.
The objective of this package is to allow the user to design an Arduino program in Ansys SCADE software and generate a corresponding .ino file (Arduino sketch) that can be uploaded on an Arduino board directly.
Installing this package will:
Now you will install the cgarduino package.
- Help: `cgarduino --help`
- Manual: `cgarduino --manual` (also from the Ansys SCADE Suite application setting panel)
Get the `cgarduino` wheel, then:
Use pip to install the wheel:
<scade install>/contrib/Python<ver>/python -m pip install <cgarduino.wheel> -- user
A new command `cgarduino` is available in `%APPDATA%\Python\Python<ver>\Scripts`. Call the command:
%APPDATA%\Python\Python<ver>\Scripts\cgarduino suite -- install
Once you have installed the extension for the Ansys SCADE Suite application you can check the installation by opening an Ansys SCADE Suite application project:
Image 1
Image 2