Skip to content

only one callback at a time? #42

@MichaelWallace30

Description

@MichaelWallace30

I have a call back looping to reach a new waypoint which loops until it is reached or the autonomous mode turns back on.
bool mode = false;

callbackWaypoint(mode == false)
{
while(!auto || reachedwaypoint);//calls fine
}

Then another call back command mode which turns on autonomous mode.
callBackCommand(...)
{
mode = true;//calls fine if we aren't looping in waypoint
}

What Im noticing is while the callbackWaypoint is looping I can not trigger callbackCommand. It seems the message isn't being received. This was probably not you designed intention to loop in the callback, but this means as long as a call back is being executed no messages can be received?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions