Browse Source

SITL: interim fix for replay

The replay functionality was broken with lockstep. This is an interim
fix for the replay functionality.

In the longer term it would be nice to leverage the lockstep speedup
for the replay.
sbg
Julian Oes 6 years ago
parent
commit
187f3f2834
  1. 7
      boards/px4/sitl/default.cmake
  2. 7
      boards/px4/sitl/rtps.cmake
  3. 1
      boards/px4/sitl/test.cmake

7
boards/px4/sitl/default.cmake

@ -97,6 +97,9 @@ set(REPLAY_FILE "$ENV{replay}") @@ -97,6 +97,9 @@ set(REPLAY_FILE "$ENV{replay}")
if(REPLAY_FILE)
message("Building with uorb publisher rules support")
add_definitions(-DORB_USE_PUBLISHER_RULES)
endif()
set(ENABLE_LOCKSTEP_SCHEDULER yes)
message("Building without lockstep for replay")
set(ENABLE_LOCKSTEP_SCHEDULER no)
else()
set(ENABLE_LOCKSTEP_SCHEDULER yes)
endif()

7
boards/px4/sitl/rtps.cmake

@ -98,6 +98,9 @@ set(REPLAY_FILE "$ENV{replay}") @@ -98,6 +98,9 @@ set(REPLAY_FILE "$ENV{replay}")
if(REPLAY_FILE)
message("Building with uorb publisher rules support")
add_definitions(-DORB_USE_PUBLISHER_RULES)
endif()
set(ENABLE_LOCKSTEP_SCHEDULER yes)
message("Building without lockstep for replay")
set(ENABLE_LOCKSTEP_SCHEDULER no)
else()
set(ENABLE_LOCKSTEP_SCHEDULER yes)
endif()

1
boards/px4/sitl/test.cmake

@ -99,4 +99,5 @@ if(REPLAY_FILE) @@ -99,4 +99,5 @@ if(REPLAY_FILE)
add_definitions(-DORB_USE_PUBLISHER_RULES)
endif()
message("Building without lockstep for test")
set(ENABLE_LOCKSTEP_SCHEDULER no)

Loading…
Cancel
Save