mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
platforms: use define for lockstep scheduler
Instead of using the define __PX4_POSIX_SITL it makes more sense to have a define just to determine if the lockstep scheduler should be used.
This commit is contained in:
@@ -98,5 +98,4 @@ if(REPLAY_FILE)
|
||||
add_definitions(-DORB_USE_PUBLISHER_RULES)
|
||||
endif()
|
||||
|
||||
add_definitions(-D__PX4_POSIX_SITL)
|
||||
set(LOCKSTEP_SCHEDULER_NEEDED yes)
|
||||
set(ENABLE_LOCKSTEP_SCHEDULER yes)
|
||||
|
||||
@@ -96,3 +96,5 @@ if(REPLAY_FILE)
|
||||
message("Building with uorb publisher rules support")
|
||||
add_definitions(-DORB_USE_PUBLISHER_RULES)
|
||||
endif()
|
||||
|
||||
set(ENABLE_LOCKSTEP_SCHEDULER no)
|
||||
|
||||
Reference in New Issue
Block a user