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 matplotlib.pyplot as plt | |
import numpy as np | |
# PID Controller Class | |
class PIDController: | |
def init(self, Kp, Ki, Kd, setpoint, integral, prev_error, err): | |
self.Kp = Kp | |
self.Ki = Ki | |
self.Kd = Kd |
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
#!/bin/bash | |
if [ -z $1 ]; then | |
echo "usage 'esp-create project_name [target]'" | |
exit | |
fi | |
echo "cleaning the existing project..." | |
rm -rf $1 |
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
#!/bin/bash | |
if [ "$1" == "" ]; then | |
echo "define a project name" | |
exit | |
fi | |
echo "making the go project in $1" | |
mkdir $1 | |
cd $1 |