Skip to content

Instantly share code, notes, and snippets.

View gerth2's full-sized avatar

Chris Gerth gerth2

View GitHub Profile
@gerth2
gerth2 / discordBot.py
Created November 2, 2019 00:26
Discord.py Mike->Discord sample
import discord
import threading
import asyncio
import time, math, random
import sounddevice as sd #from https://python-sounddevice.readthedocs.io/en/0.3.14/
# Gets audio from the microphone
class MicrophoneAudioSource(discord.PCMAudio):
def __init__(self, duration_ms=20):
self.SAMP_RATE_HZ = 48000.0 #48 KHz
@gerth2
gerth2 / log_OHMV_Qualification_19_2020-02-28_10-44-43_TELEOP.csv
Created March 1, 2020 18:23
Q19 Teleop Log - Miami Valley Regional 2020
We can't make this file beautiful and searchable because it's too large.
TIME,Operator Controller Unjam Command,Ball Counter Ball Count,IMU Filtered X Angle,Shooter Desired Speed,Right Intern Moter Current,Robot Front Tilt Angle,Driver FwdRev Command,Control Panel State Machine Game Data Color Command,Operator Controller Climb Speed Command,IMU Filtered Y Angle,Hopper Motor Left Cmd,Hopper Motor Right Current,Total Tilt Angle,Pneumatics Compressor Current,Shots Taken,Climber Input Command,Operator Controller Shoot Command,Control Panel Actual Angle,Climber Motor 2 Current,botDesPoseY,botDesPoseX,Drivetrain Op Mode,botDesPoseT,Left Intern Moter Current,Intake Motor Current,Pneumatics Main System Pressure,Drivetrain Heading Correction Command,Shooter Wheel Current Control Mode,Control Panel Desired Angle,Shooter Input Mode Command,Left Master Moter Current,Drivetrain Right Motor Output Duty Cycle,Vision Raspberry Pi Duration,Conveyor Motor Speed Command,Vision Raspberry Pi Visible Target,Operator Controller Eject Desired Command,Control Panel State Machine 3.25 spin,Hopper Motor Rig