Idle recharging,stop charging and execute the new order? #171
Replies: 2 comments 2 replies
-
this my code private void chargeStatusGetPolling(MovementCommand command) throws Exception
} |
Beta Was this translation helpful? Give feedback.
-
@yuantingxue2028 Parking and recharging orders are created automatically by the default dispatcher when configured accordingly - see the user's guide, specifically the configuration entries The transport order to send the vehicle parking/charging is flagged as dispensable, which means the default dispatcher will withdraw it automatically in case there is another transport order the vehicle can take. (In other words: you do not have to stop the charging order explicitly in openTCS - the vehicle will automatically get a new transport order once it is in a state in which it can take one.) |
Beta Was this translation helpful? Give feedback.
-
I want to charge when idle, but when there is a new order and the vehicle is charging, how should I stop charging and execute the new order? In the vehicle, I can only determine if the current battery level is greater than the "Sufficiently" energy level, but I cannot determine if a new order has been generated, so I cannot execute the stop charging task. Please guide me on how to handle this. Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions