Lego Segway.zip
There are two files:
Run kalmandesign3.m first to generate a linear state space model of the plant, design a Kalman filter to estimate the states from the gyro, accelerometer, and wheel encoders, and design a full state feedback controller.
Then use NXT_segway_kalman3.mdl to generate code that can be embedded onto the NXT using the NXT target.
In order to get this to work you will first have to install support for the NXT target:
http://www.mathworks.com/help/simulink/ug/install-target-for-lego-mindstorms-nxt-hardware.html
See the video of this working:
引用格式
Robert White (2024). Lego Segway.zip (https://www.mathworks.com/matlabcentral/fileexchange/47271-lego-segway-zip), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- Control Systems > Control System Toolbox > Control System Design and Tuning > State-Space Control Design and Estimation >
- Physical Modeling > Simscape Multibody > Multibody Modeling > Assembly >
- Robotics and Autonomous Systems > ROS Toolbox > ROS Toolbox Supported Hardware >
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!