raphaelthurnherr / algobot_onionOmega

1 stars 0 forks source link

Motor must accept no distance and no time to run in not synchronized mode #45

Closed YannCaron closed 5 years ago

YannCaron commented 5 years ago

I have extracted this MQTT exchanges.

# part OK
8:57:18 AM  Command {"MsgID":0,"MsgTo":"algo_973a","MsgFrom":"algo_973a_75","MsgData":{"MsgType":"command","MsgParam":"config","MsgValue":[{"stream":{"state":"on","onEvent":"on","time":250}}]}}   0   NO
8:57:18 AM  Debug   algo_973a -> Message ID: -1 -> New message received 0   NO
8:57:37 AM  Command {"MsgID":1,"MsgTo":"algo_973a","MsgFrom":"algo_973a_60","MsgData":{"MsgType":"command","MsgParam":"pwm","MsgValue":[{"pwm":2,"power":100,"state":"on"}]}}   0   NO
8:57:37 AM  Debug   algo_973a -> Message ID: -1 -> New message received 0   NO
8:57:37 AM  Event   { "MsgTo": "algo_973a_60", "MsgFrom": "algo_973a", "MsgID": 1, "MsgData": { "MsgType": "event", "MsgParam": "pwm", "MsgValue": [ { "action": "begin" } ] } }    0   NO
8:57:37 AM  Event   { "MsgTo": "algo_973a_60", "MsgFrom": "algo_973a", "MsgID": 1, "MsgData": { "MsgType": "event", "MsgParam": "pwm", "MsgValue": [ { "action": "end" } ] } }  0   NO
8:57:37 AM  Debug   algo_973a -> Message ID: 1 -> FIN DES ACTIONS PWM pour la tache #1  0   NO
8:57:37 AM  Command {"MsgID":2,"MsgTo":"algo_973a","MsgFrom":"algo_973a_60","MsgData":{"MsgType":"command","MsgParam":"motor","MsgValue":[{"motor":0,"velocity":0,"accel":20,"decel":60}]}} 0   NO
# là, ça commance à merder
8:57:37 AM  Debug   algo_973a -> Message ID: -1 -> New message received 0   NO
# c'est qui cet ID -1 ? j'ai rien envoyé !
8:57:37 AM  Debug   algo_973a -> Message ID: 2 -> ATTENTION: Action infinie, aucun parametre defini "time" ou "cm" pour l'action sur le moteur 0    0   NO
# ouais ben c'est ma façon de dire que je veux lancer le moteur
# il faut que tu lance le moteur et que tu m'envoie action:fin sinon mon programme se bloque
# je pense que le problème viens de là
8:57:37 AM  Event   { "MsgTo": "algo_973a_60", "MsgFrom": "algo_973a", "MsgID": 50, "MsgData": { "MsgType": "event", "MsgParam": "motor", "MsgValue": [ { "action": "abort" } ] } } 0   NO
8:57:37 AM  Debug   algo_973a -> Message ID: 50 -> Annulation des actions moteur pour la tache #50  0   NO
8:57:37 AM  Debug   algo_973a -> Message ID: 2 -> Start wheel 0 with velocity 0 for time 0  0   NO
8:57:37 AM  Event   { "MsgTo": "algo_973a_60", "MsgFrom": "algo_973a", "MsgID": 2, "MsgData": { "MsgType": "event", "MsgParam": "motor", "MsgValue": [ { "action": "begin" } ] } }  0   NO
raphaelthurnherr commented 5 years ago

Invalid...