def read(self): ''' Returns a list of 5 values between 0 and 1 Depends on the line sensor being calibrated first through the Line Sensor Calibration tool May return all -1 on a read error ''' five_vals = scratch_line.absolute_line_pos() return five_vals
def read(self): ''' Returns a list of 5 values between 0 and 1 Depends on the line sensor being calibrated first through the Line Sensor Calibration tool May return all -1 on a read error ''' _wait_for_read() if _is_read_open(): _grab_read() five_vals = scratch_line.absolute_line_pos() _release_read() return five_vals
def line_position_set_button_OnButtonClick(self,event): line_val=scratch_line.absolute_line_pos() self.label.SetLabel("Line Position : "+str(line_val))
def line_position_set_button_OnButtonClick(self, event): line_val = scratch_line.absolute_line_pos() self.label.SetLabel("Line Position : " + str(line_val))
def line_position_set_button_OnButtonClick(self, event): # There's an issue with the line follower being "behind" for i in range(3): line_val = scratch_line.absolute_line_pos() self.label.SetLabel("Line Position : " + str(line_val))