I noticed this in on one of the recent update release notes.
What does this change mean?
Added Special Case to allow Servo to be disabled
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 125
- Joined: 28 Feb 2018, 07:40
- Location: Melbourne, Australia
Added Special Case to allow Servo to be disabled
Friends with kangaroos and some time koala rescuer.
Re: Added Special Case to allow Servo to be disabled
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
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.
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.
-
- Normal user
- Posts: 125
- Joined: 28 Feb 2018, 07:40
- Location: Melbourne, Australia
Re: Added Special Case to allow Servo to be disabled
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.
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.
Friends with kangaroos and some time koala rescuer.
Re: Added Special Case to allow Servo to be disabled
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
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
-
- Normal user
- Posts: 125
- Joined: 28 Feb 2018, 07:40
- Location: Melbourne, Australia
Re: Added Special Case to allow Servo to be disabled
If you are referring to this fix, then yes it should carry forward.
Friends with kangaroos and some time koala rescuer.
Who is online
Users browsing this forum: Google [Bot] and 16 guests