Robots only charge to 20% when "go to home" is true
chemdork123 opened this issue ยท 7 comments
Robot recharging appears to not work properly in BC 7.0.20 when the robots power level is below 20% unless they are working in an area. The robot will charge only to 20%, then head back home... then shortly go below 20% and go back to the charging station and be locked into this back and forth forever.
This appears to only happen with robots who are set to "go to home", on their way "home", or sitting in "home". For example, a robot less than 20% when placed onto a docking station that is being given a command "go to home" will seek a power station, fill to 20% and exhibit the same behavior issue. Robots "working in area" appear to have no problem filling to 100% charge before returning to work.
Is this a bug?
Thanks, @hea3ven! Fixing it now...
Hm. I'll try it again on 7.0.21... Happened when the robot was being given the "go to home" action, both with and without a map location marker.
From only reading the code, it should happen in 7.0.x, it was introduced here 9ee5947#diff-4c137d7b470a3782fcdcfb2d8f174d5dL29 . If you re-add the "!(ai instanceof AIRobotRecharge)" condition back to prevent the overriding ai from starting, it should fix it.
Yeah, it still happens for me in 7.0.21, but seems that this is expected from the code. Thanks, @hea3ven.