parameters: (self)
return_statement: return mm
docstring: Get the distance in milimeters without floating point operations.
docstring_summary: Get the distance in milimeters without floating point operations.
docstring_tokens: Get the distance in milimeters without floating point operations .
function: def distance_mm(self):
          """
          Get the distance in milimeters without floating point operations.
          """
          pulse_time = self._send_pulse_and_wait()
  
          # To calculate the distance we get the pulse_time and divide it by 2 
          # (the pulse walk the distance twice) and by 29.1 becasue
          # the sound speed on air (343.2 m/s), that It's equivalent to
          # 0.34320 mm/us that is 1mm each 2.91us
          # pulse_time // 2 // 2.91 -> pulse_time // 5.82 -> pulse_time * 100 // 582 
          mm = pulse_time * 100 // 582
          return mm
function_tokens: def distance_mm ( self ) : pulse_time = self . _send_pulse_and_wait ( ) # To calculate the distance we get the pulse_time and divide it by 2  # (the pulse walk the distance twice) and by 29.1 becasue # the sound speed on air (343.2 m/s), that It's equivalent to # 0.34320 mm/us that is 1mm each 2.91us # pulse_time // 2 // 2.91 -> pulse_time // 5.82 -> pulse_time * 100 // 582  mm = pulse_time * 100 // 582 return mm