twagler / blade

1 stars 0 forks source link

Create 'Mower' Object for telemetry communication #3

Open twagler opened 9 years ago

twagler commented 9 years ago

A global object to store all mower telemetry should be created to be able to easily communicate this telemetry over the network. This would be the foundation for supplying information to a GUI that is implementable on a desktop or mobile phone.

twagler commented 9 years ago

It probably makes sense to wrap this into the ControlServer class. Give it members that are updated periodically, then serialized and sent over the network to specific GET commands. For instance a GUI could issue "GET current location" or "GET motor speeds" and the mower would respond with the values that are stored in the ControlServer members.

lagreex1 commented 9 years ago

You would also want to implement SET commands as well, right? That would make it easy to send to a specific location at a specified speed.

On Sun, May 31, 2015 at 3:34 PM, Tyler Wagler notifications@github.com wrote:

It probably makes sense to wrap this into the ControlServer class. Give it members that are updated periodically, then serialized and sent over the network to specific GET commands. For instance a GUI could issue "GET current location" or "GET motor speeds" and the mower would respond with the values that are stored in the ControlServer members.

— Reply to this email directly or view it on GitHub https://github.com/twagler/blade/issues/3#issuecomment-107239178.

twagler commented 9 years ago

Yeah, I'm going to do a combination of the title of the issue and my second comment. Working on the mower class now that all the public variables and functions are members of.