Skip to content

Commit 22ab134

Browse files
committed
add change controller profile button
1 parent ee490b2 commit 22ab134

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

helper/send_test_mqtt_page.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def __init__(self, parent, controller):
2323

2424
ttk.Button(rov_frame, text="ARM ROV", command=self.send_arm_rov, width=20).pack(pady=5)
2525
ttk.Button(rov_frame, text="Change Controller Status", command=self.change_controller_status, width=20).pack(pady=5)
26+
ttk.Button(rov_frame, text="Activate PITCH", command=self.send_activate_pitch_profile, width=20).pack(pady=5)
27+
ttk.Button(rov_frame, text="Deactivate PITCH", command=self.send_deactivate_pitch_profile, width=20).pack(pady=5)
2628
ttk.Button(rov_frame, text="WORK MODE", command=self.send_work_mode, width=20).pack(pady=5)
2729

2830
# Quick Movement Panel
@@ -140,6 +142,12 @@ def send_axes_z(self):
140142
def change_controller_status(self):
141143
self.send_message(MQTT_TOPIC_COMMANDS, {"CHANGE_CONTROLLER_STATUS": 0})
142144

145+
def send_activate_pitch_profile(self):
146+
self.send_message(MQTT_TOPIC_COMMANDS, {"CHANGE_CONTROLLER_PROFILE": 7})
147+
148+
def send_deactivate_pitch_profile(self):
149+
self.send_message(MQTT_TOPIC_COMMANDS, {"CHANGE_CONTROLLER_PROFILE": 3})
150+
143151
def send_work_mode(self):
144152
self.send_message(MQTT_TOPIC_COMMANDS, {"WORK_MODE": 1})
145153

0 commit comments

Comments
 (0)