Changeset 691

Show
Ignore:
Timestamp:
07/17/09 15:01:00 (4 years ago)
Author:
atorf
Message:

Updated doc of DirectMotorCommand?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/mfiles/DirectMotorCommand.m

    r670 r691  
    11function 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 
    33 
    44% Syntax 
    5 %   |DirectMotorCommand()|  
    65% 
    76%   |DirectMotorCommand(port, power, angle, speedRegulation, syncedToMotor, turnRatio, rampMode)|  
    87% 
    98% 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 
    1410%   |DirectMotorCommand(port, power, angle, speedRegulation, syncedToMotor, turnRatio, rampMode)| 
    1511%   sends the given settings like motor |port| (|MOTOR_A|, |MOTOR_B| or |MOTOR_C|), the |power| 
     
    2521% 
    2622% 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 
    3625% 
    3726% Signature 
    3827%   Author: Linus Atorf, Alexander Behrens (see AUTHORS) 
    39 %   Date: 2007/10/15 
     28%   Date: 2009/07/17 
    4029%   Copyright: 2007-2009, RWTH Aachen University 
    4130%