File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ windows:
8080 model_name = is_quad ? "x500_#{ sitl_instance } " : "standard_vtol_#{ sitl_instance } "
8181 x_offset = drone [ :index ] * 2
8282 y_offset = is_quad ? x_offset : x_offset + 2
83- unsigned_32bit_ip = " #{ sim_subnet } .90. #{ drone_id } " . split ( '.' ) . inject ( 0 ) { | acc , octet | ( acc << 8 ) + octet . to_i }
84- signed_32bit_ip = unsigned_32bit_ip > 2147483647 ? unsigned_32bit_ip - 4294967296 : unsigned_32bit_ip
83+ # Env var parameter injection (using prefix PX4_PARAM_*) of https://docs.px4.io/v1.16/en/advanced_config/parameter_reference#UXRCE_DDS_AG_IP
84+ signed_32bit_ip = " #{ sim_subnet } .90. #{ drone_id } " . split ( '.' ) . map ( & :to_i ) . pack ( 'C*' ) . unpack1 ( 'l>' )
8585 elsif autopilot == 'ardupilot'
8686 vehicle_config = is_quad ? '-v ArduCopter -f gazebo-iris' : '-v ArduPlane'
8787 model_name = is_quad ? "iris_with_ardupilot_#{ drone_id } " : "alti_transition_quad_#{ drone_id } "
You can’t perform that action at this time.
0 commit comments