Highlights from
Simulink Support Package for LEGO MINDSTORMS NXT hardware (R2012a)

image thumbnail

Simulink Support Package for LEGO MINDSTORMS NXT hardware (R2012a)

by

 

23 Feb 2012 (Updated )

Simulink block library for creating models that run directly on yourLEGO MINDSTORMS NXT robot

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

lego_selfbalance_closemodel.m
% Clear all the variables used during simulation of lego_selfbalance

% Copyright 2011 The MathWorks, Inc.

clear A1 A2 A_BAR B1 B2 BATTERY B_BAR C1 C2 D D1 D2 DoHw DoSim GYRO0 H Jm 
clear Jphi Jpsi Jw KK Kb Kt L M PSI0 R Rm START_POS TS W X1IV X2IV 
clear a_b a_d a_gc a_gd a_r fm fw g k_f k_i k_phidot k_sync k_thetadot 
clear m n pwm_gain pwm_offset time_start ts1 usesimulation 

Contact us