Changeset 691
- Timestamp:
- 07/17/09 15:01:00 (4 years ago)
- Files:
-
- 1 modified
-
trunk/mfiles/DirectMotorCommand.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mfiles/DirectMotorCommand.m
r670 r691 1 1 function DirectMotorCommand(f_port, f_power, f_angle, f_speed, f_sync, f_ratio, f_ramp) 2 % Sends previously specified settings to current active motor.2 % Sends a direct command to the specified motor 3 3 % 4 4 % Syntax 5 % |DirectMotorCommand()|6 5 % 7 6 % |DirectMotorCommand(port, power, angle, speedRegulation, syncedToMotor, turnRatio, rampMode)| 8 7 % 9 8 % Description 10 % |DirectMotorCommand()| sends the previously specified settings of the current motor. The motor 11 % settings are set by the functions |SetMotor|, |SetPower|, |SetAngleLimit|, |SpeedRegulation|, 12 % |SyncToMotor|, |SetTurnRatio| and |SetRampMode|. 13 % 9 14 10 % |DirectMotorCommand(port, power, angle, speedRegulation, syncedToMotor, turnRatio, rampMode)| 15 11 % sends the given settings like motor |port| (|MOTOR_A|, |MOTOR_B| or |MOTOR_C|), the |power| … … 25 21 % 26 22 % Example 27 %+ SetMotor(MOTOR_B); 28 %+ SyncToMotor(MOTOR_C); 29 %+ SetPower(76); 30 %+ SetAngleLimit(4*360); 31 %+ SetTurnRatio(20); 32 %+ DirectMotorCommand(); 33 % 34 % See also: GetMotorSettings, SetMotor, SetPower, SpeedRegulation, 35 % SyncToMotor, SetTurnRatio, SetRampMode, NXT_SetOutputState 23 % 24 % See also: NXT_SetOutputState 36 25 % 37 26 % Signature 38 27 % Author: Linus Atorf, Alexander Behrens (see AUTHORS) 39 % Date: 200 7/10/1528 % Date: 2009/07/17 40 29 % Copyright: 2007-2009, RWTH Aachen University 41 30 %
