예제 #1
0
파일: routines.py 프로젝트: tarora2/seawolf
 def _start(self):
     self.target_depth = max(data.depth() + self.amount, 0)
     pid.depth.heading = self.target_depth
예제 #2
0
파일: routines.py 프로젝트: tarora2/seawolf
 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