Changeset 355 for branches/atorf/NXC/TestMotorControl.m
- Timestamp:
- 09/29/08 19:53:55 (5 years ago)
- Location:
- branches/atorf/NXC
- Files:
-
- 2 modified
-
. (modified) (1 prop)
-
TestMotorControl.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/atorf/NXC
- Property svn:ignore
-
old new 1 1 *.asv 2 *.bak
-
- Property svn:ignore
-
branches/atorf/NXC/TestMotorControl.m
r290 r355 1 1 2 2 COM_CloseNXT('all'); 3 3 COM_SetDefaultNXT(COM_OpenNXT('bluetooth.ini', 'check')); 4 4 … … 9 9 10 10 % RotateMotorEx(outputs, pwr, angle, turnpct, sync, stop) 11 RotateMotor(1, 50, 90, 0, false, false) 11 RotateMotor(1, 50, 1000, 0, false, true) 12 13 pause(0.5) 14 data = []; 15 tmp = GetMotorSettings(1); 16 17 while(tmp.IsRunning) 18 tmp = GetMotorSettings(1); 19 data = [data; tmp.Angle] 20 21 end 12 22 13 23 14 24 15 COM_CloseNXT(COM_GetDefaultNXT);25 %COM_CloseNXT(COM_GetDefaultNXT);
