code: def pixy_value_update(current_pan_angle_deg, prev_pan_move_deg, blocks):
      
      if len(blocks) > 0:
          pan_error = X_CENTER - blocks[0]["x"]
          if math.fabs(pan_error) < 20.0:
              print("Close enough.")
              return current_pan_angle_deg, 0
          pan_move_deg = 1 if pan_error > 0 else -1
          if prev_pan_move_deg > 0 and pan_move_deg > 0:
              pan_move_deg = 3
          if prev_pan_move_deg < 0 and pan_move_deg < 0:
              pan_move_deg = -3
          current_pan_angle_deg += pan_move_deg
          if current_pan_angle_deg > 150:
              current_pan_angle_deg = 150
          if current_pan_angle_deg < 20:
              current_pan_angle_deg = 20
          print("x: {}  pan_error: {}  pan_move_deg: {}  angle: {}".format(blocks[0]["x"], pan_error, pan_move_deg, current_pan_angle_deg))
          return current_pan_angle_deg, pan_move_deg
      return current_pan_angle_deg, 0
docs: Prints the Pixy blocks data.