-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Context
Related Issues / PRs:
- New content for control using AMDC #85
- https://github.com/Severson-Group/AMDC-Examples/issues/6
- Add AMDC tutorial article using Simulink Autogen #143
- Add AMDC article using Simulink Autogen #148
In this issue, we focused on creating the AMDC tutorial using Simulink Autogen. In this issue, we will create an additional AMDC article, explaining the theory and approach of what we are doing with Simulink + AMDC.
See this comment:
1. Control with AMDC Article
Item 1 should focus on explaining the theory and approach of what we are doing with Simulink + AMDC, and not be a set of steps for the user to follow. Take a close look at the structure of the Current Sensor Calibration article and the still-in-progress Encoder article. This document should contain items like the following:
- brief explanation of why it is a good idea to use simulink for creating control code (i.e., explain that it facilitates simulation, graphical control development)
- explanation of what exactly is generated from Simulink and how that is used in the AMDC. Explaining that this produces a function that the AMDC should call at a fixed time interval. Before calling the function, the AMDC should configure the inputs to it and after calling it (presumably from sampled sensor data), the AMDC should take the outputs and route them to the correct outputs (i.e. duty ratios).
- Document how to configure the development environment (what toolboxes to install, where to place files within the repo, what the recommended workflow looks like).
- Provide important considerations and settings in Simulink for successful development of AMDC control code -- including items that Steve identifies for us here: https://github.com/Severson-Group/AMDC-Examples/issues/6
- An example SLX file that is all ready to download and autogen code -- all settings configured.
Approach
I think the first step is to copy paste this article, which almost addresses the items above. However, we should make this simpler and make sure that is following the structure in the Control with AMDC section, see the structure of the Current Sensor Calibration article and the still-in-progress #103..