This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.asiankoala.koawalib.hardware.motor | |
| import com.asiankoala.koawalib.logger.Logger | |
| import com.asiankoala.koawalib.math.epsilonEquals | |
| import com.asiankoala.koawalib.util.Clock | |
| import com.qualcomm.robotcore.util.MovingStatistics | |
| import kotlin.math.abs | |
| import kotlin.math.max | |
| import kotlin.math.sign |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| import PIL | |
| from PIL import Image, ImageTk | |
| import urllib.request | |
| import io, sys, os, random, time | |
| import tkinter as tk | |
| def choose_random_means(k, img, pix): | |
| means = [] | |
| w, h = img.size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const val ANSI_RESET = "\u001B[0m" | |
| const val ANSI_BLACK = "\u001B[30m" | |
| const val ANSI_RED = "\u001B[31m" | |
| const val ANSI_GREEN = "\u001B[32m" | |
| const val ANSI_YELLOW = "\u001B[33m" | |
| const val ANSI_BLUE = "\u001B[34m" | |
| const val ANSI_PURPLE = "\u001B[35m" | |
| const val ANSI_CYAN = "\u001B[36m" | |
| const val ANSI_WHITE = "\u001B[37m" | |
| const val ANSI_BLACK_BACKGROUND = "\u001B[40m" |