Skip to content

Possible division by zero on robot speed handling causing crashes #160

@FelipeMartins96

Description

@FelipeMartins96

grSim/src/robot.cpp

Lines 472 to 473 in 206c8dc

vx *= new_v / v;
vy *= new_v / v;

How to reproduce:
Send v_x and v_y zero to a robot with current speed > AccBrakeAbsoluteMax * delta_t

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions