Skip to content

Commit

Permalink
Add rover DRONE_AIRFRAME type, use same as holybro (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetkillioglu authored Jun 2, 2023
1 parent 195e126 commit 4f131a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions launch/sensors_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def generate_launch_description():
SIMULATION = os.getenv('SIMULATION')
simulation_mode = (SIMULATION == "1")

# DRONE_AIRFRAME = <t-drone | holybro>
# DRONE_AIRFRAME = <t-drone | holybro | rover (same as holybro)>
is_robot_holybro_type = False
DRONE_AIRFRAME = os.getenv('DRONE_AIRFRAME')
if DRONE_AIRFRAME == "holybro":
if DRONE_AIRFRAME == "holybro" or DRONE_AIRFRAME == "rover":
is_robot_holybro_type = True
elif DRONE_AIRFRAME == "" or DRONE_AIRFRAME == "t-drone":
is_robot_holybro_type = False
Expand Down Expand Up @@ -84,7 +84,7 @@ def generate_launch_description():

# sensor tf launch
ld.add_action(
LogInfo(msg='--- HOLYBRO TYPE CONFIGURATION ---', condition=IfCondition(PythonExpression([str(is_robot_holybro_type)]))),
LogInfo(msg='--- HOLYBRO/ROVER TYPE CONFIGURATION ---', condition=IfCondition(PythonExpression([str(is_robot_holybro_type)]))),
),
ld.add_action(
IncludeLaunchDescription(
Expand Down

0 comments on commit 4f131a1

Please sign in to comment.