POSIX: use lockstep_scheduler to fake time
This integrates the lockstep_scheduler, so that the system time is set by the mavlink HIL_SENSOR message. This means that the speed factor is removed and the speed is entirely given by the simulator.
Showing
- platforms/posix/src/px4_layer/drv_hrt.cpp 43 additions, 35 deletionsplatforms/posix/src/px4_layer/drv_hrt.cpp
- src/drivers/drv_hrt.h 6 additions, 1 deletionsrc/drivers/drv_hrt.h
- src/include/visibility.h 1 addition, 0 deletionssrc/include/visibility.h
- src/lib/cdev/posix/cdev_platform.cpp 4 additions, 4 deletionssrc/lib/cdev/posix/cdev_platform.cpp
- src/modules/simulator/simulator_mavlink.cpp 20 additions, 85 deletionssrc/modules/simulator/simulator_mavlink.cpp
Loading
Please register or sign in to comment