Changeset 120
- Timestamp:
- 07/05/08 02:43:07 (5 years ago)
- Location:
- branches/atorf/RWTHMindstormsNXT
- Files:
-
- 11 modified
-
GetMemoryCount.m (modified) (1 diff)
-
GetMotorSettings.m (modified) (2 diffs)
-
SendMotorSettings.m (modified) (2 diffs)
-
SetAngleLimit.m (modified) (2 diffs)
-
SetMemoryCount.m (modified) (1 diff)
-
SetPower.m (modified) (2 diffs)
-
SetRampMode.m (modified) (2 diffs)
-
SetTurnRatio.m (modified) (2 diffs)
-
SpeedRegulation.m (modified) (2 diffs)
-
StopMotor.m (modified) (2 diffs)
-
SyncToMotor.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/atorf/RWTHMindstormsNXT/GetMemoryCount.m
r117 r120 43 43 % get default handle & motorstate 44 44 h = COM_GetDefaultNXT(); 45 NXTMOTOR_State = h.NXTMOTOR_ State();45 NXTMOTOR_State = h.NXTMOTOR_getState(); 46 46 47 47 memory = NXTMOTOR_State(number+1).MemoryCount; -
branches/atorf/RWTHMindstormsNXT/GetMotorSettings.m
r118 r120 72 72 % get default handle & motorstate 73 73 h = COM_GetDefaultNXT(); 74 NXTMOTOR_State = h.NXTMOTOR_ State();74 NXTMOTOR_State = h.NXTMOTOR_getState(); 75 75 76 76 … … 120 120 121 121 % save motor state back to handle 122 h.NXTMOTOR_ State(NXTMOTOR_State);122 h.NXTMOTOR_setState(NXTMOTOR_State); 123 123 124 124 end%function -
branches/atorf/RWTHMindstormsNXT/SendMotorSettings.m
r119 r120 66 66 %% get handle & motorstate 67 67 h = COM_GetDefaultNXT(); 68 NXTMOTOR_State = h.NXTMOTOR_ State();68 NXTMOTOR_State = h.NXTMOTOR_getState(); 69 69 70 70 … … 204 204 205 205 %% save motor state back to handle 206 h.NXTMOTOR_ State(NXTMOTOR_State);206 h.NXTMOTOR_setState(NXTMOTOR_State); 207 207 208 208 -
branches/atorf/RWTHMindstormsNXT/SetAngleLimit.m
r119 r120 60 60 %% get default handle & motorstate 61 61 h = COM_GetDefaultNXT(); 62 NXTMOTOR_State = h.NXTMOTOR_ State();62 NXTMOTOR_State = h.NXTMOTOR_getState(); 63 63 64 64 whatmotor = h.NXTMOTOR_getCurrentMotor(); … … 75 75 76 76 %% save motor state back to handle 77 h.NXTMOTOR_ State(NXTMOTOR_State);77 h.NXTMOTOR_setState(NXTMOTOR_State); 78 78 79 79 -
branches/atorf/RWTHMindstormsNXT/SetMemoryCount.m
r117 r120 44 44 % get default handle & motorstate 45 45 h = COM_GetDefaultNXT(); 46 NXTMOTOR_State = h.NXTMOTOR_ State();46 NXTMOTOR_State = h.NXTMOTOR_getState(); 47 47 48 48 NXTMOTOR_State(number+1).MemoryCount = angle; 49 49 50 50 % save motor state back to handle 51 h.NXTMOTOR_ State(NXTMOTOR_State);51 h.NXTMOTOR_setState(NXTMOTOR_State); 52 52 53 53 -
branches/atorf/RWTHMindstormsNXT/SetPower.m
r119 r120 55 55 %% Get handle & motorstate 56 56 h = COM_GetDefaultNXT(); 57 NXTMOTOR_State = h.NXTMOTOR_ State();57 NXTMOTOR_State = h.NXTMOTOR_getState(); 58 58 59 59 whatmotor = h.NXTMOTOR_getCurrentMotor(); … … 77 77 78 78 %% save state back to handle 79 h.NXTMOTOR_ State(NXTMOTOR_State);79 h.NXTMOTOR_setState(NXTMOTOR_State); 80 80 81 81 -
branches/atorf/RWTHMindstormsNXT/SetRampMode.m
r119 r120 47 47 %% get default handle & motorstate 48 48 h = COM_GetDefaultNXT(); 49 NXTMOTOR_State = h.NXTMOTOR_ State();49 NXTMOTOR_State = h.NXTMOTOR_getState(); 50 50 51 51 whatmotor = h.NXTMOTOR_getCurrentMotor(); … … 70 70 71 71 %% save motor state back to handle 72 h.NXTMOTOR_ State(NXTMOTOR_State);72 h.NXTMOTOR_setState(NXTMOTOR_State); 73 73 74 74 -
branches/atorf/RWTHMindstormsNXT/SetTurnRatio.m
r119 r120 72 72 %% get default handle & motorstate 73 73 h = COM_GetDefaultNXT(); 74 NXTMOTOR_State = h.NXTMOTOR_ State();74 NXTMOTOR_State = h.NXTMOTOR_getState(); 75 75 76 76 … … 91 91 92 92 %% save motor state back to handle 93 h.NXTMOTOR_ State(NXTMOTOR_State);93 h.NXTMOTOR_setState(NXTMOTOR_State); 94 94 95 95 -
branches/atorf/RWTHMindstormsNXT/SpeedRegulation.m
r119 r120 53 53 %% get default handle & motorstate 54 54 h = COM_GetDefaultNXT(); 55 NXTMOTOR_State = h.NXTMOTOR_ State();55 NXTMOTOR_State = h.NXTMOTOR_getState(); 56 56 57 57 %% Check parameter … … 101 101 102 102 %% save motor state back to handle 103 h.NXTMOTOR_ State(NXTMOTOR_State);103 h.NXTMOTOR_setState(NXTMOTOR_State); 104 104 105 105 -
branches/atorf/RWTHMindstormsNXT/StopMotor.m
r118 r120 76 76 %% get default handle & motorstate 77 77 h = COM_GetDefaultNXT(); 78 NXTMOTOR_State = h.NXTMOTOR_ State();78 NXTMOTOR_State = h.NXTMOTOR_getState(); 79 79 80 80 %% reset regulation state … … 131 131 132 132 %% save motor state back to handle 133 h.NXTMOTOR_ State(NXTMOTOR_State);133 h.NXTMOTOR_setState(NXTMOTOR_State); 134 134 135 135 -
branches/atorf/RWTHMindstormsNXT/SyncToMotor.m
r119 r120 74 74 %% get default handle & motorstate 75 75 h = COM_GetDefaultNXT(); 76 NXTMOTOR_State = h.NXTMOTOR_ State();76 NXTMOTOR_State = h.NXTMOTOR_getState(); 77 77 78 78 whatmotor = h.NXTMOTOR_getCurrentMotor(); … … 145 145 146 146 %% save motor state back to handle 147 h.NXTMOTOR_ State(NXTMOTOR_State);147 h.NXTMOTOR_setState(NXTMOTOR_State); 148 148 149 149
