Skip to content

Instantly share code, notes, and snippets.

View deekb's full-sized avatar
💻

Derek Baier deekb

💻
View GitHub Profile
@joncardasis
joncardasis / Storing-Images-On-Github.md
Last active June 25, 2024 16:30
Storing Images and Demos in your Repo

Storing Images and Demos in your Repo

In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.

How to

1. Clone a fresh copy of your repo

In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.

2. Create a new branch

Create a new branch in your repo by using git checkout --orphan assets

@deekb
deekb / PID.py
Created July 9, 2023 12:18
A simple, tunable PID with instructions written in python
"""
PID can be confusing, it's okay if you don't understand it and still want to use it,
I hope this mini-guide gives you enough information on PID to start using it in your own projects:
PID Explained:
PID (Proportional-Integral-Derivative) is a control algorithm used in engineering and robotics.
It adjusts its output based on the error signal, which represents the deviation from the desired setpoint.
The gains, namely Kp, Ki, and Kd, determine the contribution of each component.
PID gains are prefixed with a "K" to indicate that they are coefficients or constants used to scale the effect of each component.
Such effects are explained below, as well as a guide on tuning their gains.