@@ -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