Skip to content

Commit cc47195

Browse files
committed
added roslaunch for file
1 parent 084ab9a commit cc47195

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<launch>
2+
<include file="$(find propulsion)/launch/propulsion.launch" />
3+
4+
<node name="thrusters_test" pkg="propulsion" type="thruster_tests.py" respawn="false" output="screen"/>
5+
</launch>

pio_workspace/test/thruster_tests/Docker/catkin_ws/src/propulsion/src/thruster_tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222

2323
# Ascending sequence
2424
for pwm in range(1508, 1901, 8): # Changed step to 8
25+
# Initial arming
26+
pwm_array[thruster_num] = 1500
27+
pub.publish(ThrusterMicroseconds(pwm_array))
28+
time.sleep(15)
29+
2530
pwm_array[thruster_num] = pwm
2631
pub.publish(ThrusterMicroseconds(pwm_array))
2732
print(f"Sent PWM {pwm} to thruster {thruster_num + 1}")

0 commit comments

Comments
 (0)