Blogs

Peers, Tweaks & DNA - but were afraid to ask...

GroG's picture

This is probably long overdue, but I'll try to explain how to tweak DNA (Descriptions of Neighboring Autotoma) 
 

The head arduino is created inside the InMoovHead service.


Tracking service

calamity's picture

I have look at the Tracking service and identify a few thing that was not working well


Servo limits

calamity's picture

There is currently two way to set limits to a servo

  • with servo.map(minInput, maxInput, minOutput, maxOutput)
  • with servo.setMinMax(minOutput, maxOutput)

Both method are doing a good job at keeping the servo inside the limits. However, they behave differently and that dual behavior is causing problem to services using Servo. Tracking service is an example of service that suffer from it


SuperSized Fullscreen MRL

GroG's picture

juerg asked for fullscreen gui .. and since I was polishing in the area - we now have fullscreen mrl.

The fullscreen button is a toggle button -


Festo Tentacles

GroG's picture

I want at least 7 more !


Down The Arduino Rabbit Hole

GroG's picture

Setting the arduino board type needs to come from the user's UI or helper functions like arduino.setBoardUno().

Currently the board can set the type, by data coming back from the board.  Although I would prefer this method, if Arduino & its firmware was capable of providing all the necessary information.  But its not.  Sad, too, because I like "plug and play"


Avoid Interface Primitive Parameter Types

GroG's picture

I think interfaces should NOT be using primitive types.  We should always use the Object form of the primitive.

For example :
In 
instead of this :

enablePin(int address);

do this :

enablePin(Integer address);

In the past I thought int was somehow more effecient or cleaner than using the Object form, but in MRL-Land that is not the case.  In fact it can cause problems.


Integrated Movement Demo using VinMoov

calamity's picture

 

 

 

this is the script use for the demo, run after my inMoov script.

[[home/Calamity/imdemo.py]]

 

 


On the Soap Box about DigitalWrite AnalogWrite & PinMode

GroG's picture

Ok, I feel the need to get on the SoapBox again, because I'm currently working with Swing UI and pin control. 

I have made tonnes of mistakes, the stuff I'm refactoring now could be a shiney example of what "not to do". With that said, I think Arduio's following functions were a mistake :