def move(self, horiz_x):
   segment = self.segment_detector.segment(horiz_x)
   print(segment)
   if(segment == 'left'):
     gopigo.set_speed(10)
     gopigo.right_rot()
   elif(segment == 'right'):
     gopigo.set_speed(10)
     gopigo.left_rot()
   elif(segment == 'centre'):
     gopigo.set_speed(50)
     gopigo.fwd()
 def test_left_rot(self):
     gopigo.left_rot()