@@ -710,13 +710,13 @@ async def receive_landing_status(self, timeout=TIMEOUT_DURATION) -> int:
710710 self .logger .error ("[Controller] Bad response received for landing status" )
711711 return self .BAD_RESPONSE_ERROR
712712
713- async def set_message_interval (self , message_type , interval ) -> int :
713+ async def set_message_interval (self , message_type : int , interval : int ) -> int :
714714 """
715715 Set the message interval for the specified message type.
716716
717717 Args:
718- message_type (str ): The type of message to set the interval for.
719- interval (int): The interval in milliseconds to set for the message type.
718+ message_type (int ): The type of message to set the interval for.
719+ interval (int): The interval in microseconds to set for the message type.
720720 timeout (int): The timeout duration in seconds. Default is 5 seconds.
721721
722722 Returns:
@@ -816,7 +816,7 @@ async def receive_current_mission_index(self) -> int:
816816 self .logger .error ("[Controller] Bad response received for mission item reached" )
817817 return self .BAD_RESPONSE_ERROR
818818
819- async def set_current_mission_index (self , index ) -> int :
819+ async def set_current_mission_index (self , index : int , reset : bool = False ) -> int :
820820 """
821821 sets the target mission index to the specified index
822822
@@ -833,7 +833,7 @@ async def set_current_mission_index(self, index) -> int:
833833 mavutil .mavlink .MAV_CMD_DO_SET_MISSION_CURRENT , # command
834834 0 , # confirmation
835835 index , # param1
836- 0 , # param2
836+ 1 if reset else 0 , # param2
837837 0 , # param3
838838 0 , # param4
839839 0 , # param5
0 commit comments