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

image thumbnail

Simulink Support Package for LEGO MINDSTORMS NXT hardware (R2012b)

by

 

12 Sep 2012 (Updated )

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

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