Algorithm for Embedded Safety Braking Control System in City Electric Transport