MyRobotLab / InMoov

inmoov repo
http://myrobotlab.org
91 stars 65 forks source link

Shutdown actions #71

Closed moz4r closed 7 years ago

moz4r commented 7 years ago

Some shutdown actions can be implemented. I'm thinking of one useful thing , is to set whole robot rest() just before shutdown. Why : because next time started, servo will not move at fullspeed to rest().

shutdown actions :

hairygael commented 7 years ago

This is actually what I do most of the time. -Keep the head going down though, this shows it's sleeping with rest() -disable servos -keep a sleeping neopixel animation. or the choice in the config? -wake up mode, I find it strange that you have set a random. If we have a random it should be on what it says but not various actions.

Gael Langevin Creator of InMoov InMoov Robot http://www.inmoov.fr @inmoov http://twitter.com/inmoov

2017-05-10 0:28 GMT+02:00 Anthony notifications@github.com:

Some shutdown actions can be implemented. I'm thinking of one useful thing , is to set whole robot rest() just before shutdown. Why : because next time started, servo will not move at fullspeed to rest().

shutdown actions :

  • rest()
  • disable servos
  • disable neopixel ...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MyRobotLab/inmoov/issues/71, or mute the thread https://github.com/notifications/unsubscribe-auth/AIF2x2_Q8IWprT0JILl_blyi9_7QPTuvks5r4OimgaJpZM4NV9jj .

moz4r commented 7 years ago

There is two things here

Calamity01 commented 7 years ago

Shutdown actions can be split in two situations. Controled shutdown and after crash shutdown.

Controled shutdown can be view as the user turning off the inMoov, can be treat as a gesture or something similar. It can also be from the user quitting MRL with the X button, in that case maybe the releaseService() method of any Service can be use. But I don't know in wich order services are release on a MRL shutdown

after crash shutdown should be a reaction that happen in Arduino to go in a safety state when something bad happen (computer or MRL crash, usb cable disconnected (but arduino still powered etc). So MrlComm should disable servos, stop motor (like diy servo), stop reading pins, stop or show a special animation for the neopixel etc. Data in the MRLComm are limited so it can only be simple things.

Le mar. 9 mai 2017 à 18:35, Langevin Gael notifications@github.com a écrit :

This is actually what I do most of the time. -Keep the head going down though, this shows it's sleeping with rest() -disable servos -keep a sleeping neopixel animation. or the choice in the config? -wake up mode, I find it strange that you have set a random. If we have a random it should be on what it says but not various actions.

Gael Langevin Creator of InMoov InMoov Robot http://www.inmoov.fr @inmoov http://twitter.com/inmoov

2017-05-10 0:28 GMT+02:00 Anthony notifications@github.com:

Some shutdown actions can be implemented. I'm thinking of one useful thing , is to set whole robot rest() just before shutdown. Why : because next time started, servo will not move at fullspeed to rest().

shutdown actions :

  • rest()
  • disable servos
  • disable neopixel ...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MyRobotLab/inmoov/issues/71, or mute the thread < https://github.com/notifications/unsubscribe-auth/AIF2x2_Q8IWprT0JILl_blyi9_7QPTuvks5r4OimgaJpZM4NV9jj

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MyRobotLab/inmoov/issues/71#issuecomment-300321468, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ8xSP7hou5vkXBQSAm1oTdb8O7S3dUpks5r4OpCgaJpZM4NV9jj .