GroG's blog

Control Controller Manifesto

GroG's picture

Control & Controller (aka DeviceControl & DeviceController) are a recurring patterns in MRL.
Control represents an interface for other consumers (e.g. ServoControl).  
Controller manages a resource (e.g. Arduino).

"Attach" is the ubiquitous concept of joining the two together.  The Lego Snap ! (e.g. ear.attach(mouth)).


ArduinoMsgGenerator

GroG's picture

arduino3 branch (along with ArduinoMsgGenerator) and MRLCOMM version 46 has been merged into develop branch ... WHOOHOO !

publishPinArray and enablePin appear to be working with new ArduinoMsgGenerator framework now...
(on arduino3 branch)

I've pushed all the stuff I have been working on into a new branch called arduino3.

All the important stuff is in src/resource/Arduino/generate


MrlComm library - customMsg publishCustomMsg what do we need ?

GroG's picture

Hi,

This is a question to the community about what is needed regarding custom messaging to and from MrlComm.   Any references of this being used, or requirements, or suggestions would be appreciated.

Part of this is describing what kind of interface or methods are needed (if any more) and also the msg size - potentially if we have a byte msg structure we (almost) can have msg size == 255 vs 64

Thanks.

Greg.


Arduino MrlComm Message Schema

GroG's picture

Message Definition

Message Direction Method Name Parameters
<  from Arduino to PC
>  from PC to Arduino
This will be the fuinction name called
 

Arduino Emulator

GroG's picture

Hardware can be a pain sometimes. There's all those wires, and solder, and burnt circuits.  Wouldn't it be great if we had Arduinos in the Matrix ?

There's been a buzz flying about making one. 


Runtime.getBatteryLevel

GroG's picture

We want a simple method to get battery level if it exists on a system regardless if its Linux, Windows, or Mac OSX.

Turns out this is pretty messy as part of it relies on the OS vendor and part is really low-level hardware implementation details.  But I thought I got all 3 major operating systems covered.

I tested Windows 7  64 bit & Linux Ubuntu 14.04 64 bit - was all worky, but Gael had different results :(

What do you get ?


Motor - DualPwm

GroG's picture

Ok Alessandruino - DualPwm should be worky. 
 

This is the testing I did ...

 


I Heart Directives

GroG's picture

The Start of the Port Directive

Now that I've been working in Angular for a little while, I can see the potential power of Directives.  Directives are neat, often self contained little views into your application.