Sunday 22 April 2012

SurragART: C# Intergration

Luckily we managed to get some time this week to do some more work on the SurragART project, while we previously had the ability to get data from the artist to the drone, the protocol was text based. This week we have added binary protocol support for the telemetry. Clients that connect on port 1922 will receive data in 8 byte packets containing X and Y coordinates as well as a 1 or a 0 representing the status of the pen at those co-ordinates.

To help with integration we decided to also develop a C# library to provide easy data access for developers. This has the added benefit of providing an easy interface for the EZ-ROBOT EZ-B SDK allowing for direct control of hardware from within the application.



As the video shows getting data from the C# library is as easy as declaring an instance of the SurragART network class, and reading from the buffer, eventually there will be support for callback functions allowing for event driven development. 

No comments:

Post a Comment