Page 1 of 1

Added Special Case to allow Servo to be disabled

Posted: 31 Oct 2018, 06:04
by whatsupskip
I noticed this in on one of the recent update release notes.

What does this change mean?

Re: Added Special Case to allow Servo to be disabled

Posted: 31 Oct 2018, 12:26
by waspie
i don't see anything in the commits... but im not that good at deciphering what's going on in github. hopefully it releases the servo after some allotted amount of time after a movement.

Re: Added Special Case to allow Servo to be disabled

Posted: 31 Oct 2018, 12:31
by waspie
scratch that, had to go back one more day to find it:

jamestutton
Added Special Case to allow Servo to be disabled …
Servo Motors by default forcefully hold the desired position. This consumes power. In some cases for example to turn a value or open a latch once the position is set there may be no need to hold the new position. With this update users can pass a special case value above >9000 which is out of normal range 0-180 or 365. when this value is passed the servo is detached and is free to move.

so my guess is something like servo,1,5,100 followed by servo1,5,9001 would move it to 100 then the second command detaches it? ***edit***(it's actually >= to 9000 so 9000 would work)

on eventwhatever do
servo,1,5,100
delay 200
servo,1,5,9001
endon


i've been manually editing in a detach statement so this is helpful. this would mean no longer remembering to edit the switch ino every time i compile a release.

Re: Added Special Case to allow Servo to be disabled

Posted: 31 Oct 2018, 22:20
by whatsupskip
Sorry I should have said, it is Release mega-20181030.

I am sure there was a thread about using the 9 gram servos and them burning out or consuming a lot of power when they were not engaged. It sounds like this update might fix this problem.

Re: Added Special Case to allow Servo to be disabled

Posted: 01 Nov 2018, 06:52
by kenkoknz
Hi @whatsupskip,
Thank you and good spotting, this is exactly what I am looking to stop servo creep on a 360 servo I modified, see post: http://www.letscontrolit.com/forum/view ... f=6&t=5996

Tested it (Release mega-20181030) and works perfectly.

Quick question for developers, does all new updates features (assuming no issues) get carried over to the next release?

Thanks,
Ken

Re: Added Special Case to allow Servo to be disabled

Posted: 01 Nov 2018, 07:11
by whatsupskip
kenkoknz wrote: 01 Nov 2018, 06:52 Hi @whatsupskip,
Quick question for developers, does all new updates features (assuming no issues) get carried over to the next release?
If you are referring to this fix, then yes it should carry forward.