Ticket #87 (closed bug report: fixed)

Opened 17 months ago

Last modified 16 months ago

Misleading description of NXTMotor::WaitFor syntax

Reported by: colin.finck@… Owned by:
Priority: low Milestone: v4.07
Component: Toolbox Function Keywords:
Cc:

Description

During the first semester MATLAB project, my project group has discovered that NXTMotor::WaitFor? doesn't support the NXT handle as the first and only parameter despite that this syntax is supported according to line 8 of @NXTMotor/WaitFor.m. To work around this problem, we had to specify a timeout of 0 and put the handle afterwards.

It's probably the easiest here to fix the misleading description in line 8 and also add some information about using 0 in case no timeout is desired.

Attachments

Change History

Changed 17 months ago by atorf

  • status changed from new to closed
  • resolution set to fixed

Fixed with r1010.

Thanks for reporting this! As you suspected, the documentation was wrong. When passing HANDLE as last argument, you also have to pass TIMEOUT. You already mentioned the correct way to handle this: Use TIMEOUT = 0 when no time out is needed. The issue is currently fixed in the trunk and will automatically be included in the next toolbox release.

— Linus

Changed 16 months ago by behrens

  • milestone set to v4.07

Add/Change #87 (Misleading description of NXTMotor::WaitFor syntax)

Author



Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.