Closed GoogleCodeExporter closed 8 years ago
>> I think belove change would be great.
Send a patch then.
Original comment by andrew.k...@gmail.com
on 4 Apr 2011 at 8:11
Attached you can find prepared patch files.
Original comment by krzysztof.blacha
on 4 Apr 2011 at 10:16
Attachments:
By the way, whould it be enough if NXTBrick.SendCommand() would just become
public? It would give access to raw protocol as well.
Original comment by andrew.k...@gmail.com
on 4 Apr 2011 at 10:19
Yes this could be also usefull but I need it for a different approach. I'm
working on a small robotics IDE for my master thesis and I need to review all
commands which are send/received to/from the NXT brick. So I need those events
as well. I could extend SerialCommunication with my own class but NXT brick
does't allow to swap communication interface implementer (you could add this as
well - strategy pattern).
Original comment by krzysztof.blacha
on 4 Apr 2011 at 11:25
Original comment by andrew.k...@gmail.com
on 19 Apr 2011 at 8:54
Issue 196: Provide a way to listen to raw protocol (NXT brick)
1) NXTBrick.SendCommand() is made public, so users may send their own custom
messages.
2) Added NXTBrick.MessageRead and NXTBrick.MessageSent events, so a
communication listener could be implemented.
Committed in revision 1418. Will be released in 2.1.6.
Notes: implementation was changed a bit because of the following reasons:
1) Don’t need to expose internal interface INXTCommunicationInterface, so
user could access its methods.
2) Also don’t need to have MessageRad/Sent event in every communication class
– it can be done once in the NXT brick.
3) The MessageEventArgs was allowing to modify sent/received buffer. What for?
4) Also create dedicated delegate for the event, so user don’t need to do any
casting.
Original comment by andrew.k...@gmail.com
on 20 Apr 2011 at 8:16
Original comment by andrew.k...@gmail.com
on 28 Jul 2011 at 9:46
Original comment by andrew.k...@gmail.com
on 10 Aug 2011 at 9:31
Original issue reported on code.google.com by
krzysztof.blacha
on 3 Apr 2011 at 11:55