Пример #1
0
 def _start(self):
     self.target_depth = max(data.depth() + self.amount, 0)
     pid.depth.heading = self.target_depth
Пример #2
0
 def _poll(self):
     if abs(self.target_depth - data.depth()) <= self.tolerance:
         return NavRoutine.COMPLETED
     return NavRoutine.RUNNING
Пример #3
0
 def _poll(self):
     if abs(self.target_depth - data.depth()) <= self.tolerance:
         return NavRoutine.COMPLETED
     return NavRoutine.RUNNING
Пример #4
0
 def _start(self):
     self.target_depth = data.depth() + self.amount
     pid.depth.heading = self.target_depth
Пример #5
0
 def _start(self):
     self.target_depth = max(data.depth() + self.amount, 0)
     pid.depth.heading = self.target_depth