mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-29 03:30:48 +08:00
feat(simulation)!: remove jMAVSim
PX4 SIH with the Hawkeye visualizer replaces jMAVSim, in SITL and as the display-only viewer for SIH running on hardware. Drop the jMAVSim submodule, its make targets, px4-rc.jmavsim, the 10017_jmavsim_iris airframe and the VS Code debug helpers, stop installing Java and ant in the macOS and Arch setup scripts, and point the remaining mentions at SIH and Hawkeye. BREAKING CHANGE: make px4_sitl jmavsim and SYS_AUTOSTART 10017 no longer exist. Use make px4_sitl_sih sihsim_quadx with Hawkeye instead. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
1 parent
a4b722d400
commit
a23449cbe5
22 files changed
+12
-261
No files matched your search
@@ -58,7 +58,6 @@ px4_add_module(
|
||||
|
||||
include(sitl_targets_flightgear.cmake)
|
||||
include(sitl_targets_gazebo-classic.cmake)
|
||||
include(sitl_targets_jmavsim.cmake)
|
||||
include(sitl_targets_jsbsim.cmake)
|
||||
include(sitl_targets_xplane.cmake)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
* @file SimulatorMavlink.hpp
|
||||
*
|
||||
* This module interfaces via MAVLink to a software in the loop simulator (SITL)
|
||||
* such as jMAVSim or Gazebo.
|
||||
* such as Gazebo Classic or X-Plane.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
|
||||
find_program(JAVA_ANT_PATH "ant")
|
||||
find_package(Java)
|
||||
|
||||
if(JAVA_ANT_PATH AND Java_JAVAC_EXECUTABLE AND Java_JAVA_EXECUTABLE)
|
||||
|
||||
px4_add_git_submodule(TARGET git_jmavsim PATH "${PX4_SOURCE_DIR}/Tools/simulation/jmavsim/jMAVSim")
|
||||
|
||||
add_custom_target(jmavsim_run_symlink
|
||||
COMMAND ${CMAKE_COMMAND} -E create_symlink ${PX4_SOURCE_DIR}/Tools/simulation/jmavsim/jmavsim_run.sh ${PX4_BINARY_DIR}/rootfs/jmavsim_run.sh
|
||||
BYPRODUCTS ${PX4_BINARY_DIR}/rootfs/jmavsim_run.sh
|
||||
)
|
||||
|
||||
# build_jmavsim
|
||||
add_custom_command(
|
||||
OUTPUT ${PX4_SOURCE_DIR}/Tools/simulation/jmavsim/jMAVSim/out/production/jmavsim_run.jar
|
||||
COMMAND ${JAVA_ANT_PATH} create_run_jar copy_res
|
||||
WORKING_DIRECTORY ${PX4_SOURCE_DIR}/Tools/simulation/jmavsim/jMAVSim/
|
||||
USES_TERMINAL
|
||||
DEPENDS git_jmavsim jmavsim_run_symlink
|
||||
COMMENT "building jMAVSim"
|
||||
)
|
||||
add_custom_target(build_jmavsim
|
||||
DEPENDS
|
||||
${PX4_SOURCE_DIR}/Tools/simulation/jmavsim/jMAVSim/out/production/jmavsim_run.jar
|
||||
jmavsim_run_symlink
|
||||
)
|
||||
|
||||
# launch helper
|
||||
add_custom_target(jmavsim_iris
|
||||
COMMAND ${CMAKE_COMMAND} -E env PX4_SYS_AUTOSTART=10017 $<TARGET_FILE:px4>
|
||||
WORKING_DIRECTORY ${SITL_WORKING_DIR}
|
||||
USES_TERMINAL
|
||||
DEPENDS
|
||||
px4 git_jmavsim build_jmavsim jmavsim_run_symlink
|
||||
${PX4_SOURCE_DIR}/ROMFS/px4fmu_common/init.d-posix/airframes/10017_jmavsim_iris
|
||||
COMMENT "launching px4 jmavsim_iris (SYS_AUTOSTART=10017)"
|
||||
)
|
||||
add_custom_target(jmavsim DEPENDS jmavsim_iris) # alias
|
||||
|
||||
endif()
|
||||
Reference in new issue
Block a user