Open slgrobotics opened 4 months ago
Thanks for the issue! I started testing during the dev call and so far I found:
mc_rate_control
module which is AFAIK in the path for lockstep also works fine there.Thanks, I'll take a look!
I think I fixed the segmentation fault. You just have to add a return statement after the exit_and_cleanup() (line 68 of DifferentialDrive.cpp), otherwise it will try to update the current parameters even if the memory for the module has already been freed.
if (should_exit()) {
ScheduleClear();
exit_and_cleanup();
return; // < add this
}
Can I try to pull this?
Describe the bug
When running a "_make px4_sitl gz_r1rover" (or _gzlawnmower) differential_drive module runs at startup by the rc.rover_differential_apps
If user wants to stop the module, by "_differentialdrive stop" - a Segmentation fault happens and whole PX4 program quits.
@PerFrivik @MaEtUgR @dagar - issue created per your request
To Reproduce
pxh> differential_drive stop
... Segmentation fault
Expected behavior
The module should stop and could be started again
Screenshot / Media
No response
Flight Log
no log needed
Software Version
current main
Flight controller
N/A - sitl
Vehicle type
Rover
How are the different components wired up (including port information)
No response
Additional context
No response