This file contains 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
unsigned long last_time; | |
float set_speed(float omega_input){ | |
// time handler | |
unsigned long now = millis(); | |
double timeChange = (double)(now - last_time); | |
// PID Setup | |
float omega_read_encoder = read_encoder_speed(); // set input or reading value | |
error = omega_input - omega_read_encoder; // error = setpoint - input |
This file contains 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
float set_speed(float omega_input){ | |
float omega_read_encoder = read_encoder_speed(); | |
if (omega_input != omega_read_encoder){ | |
if (omega_read_encoder > omega_input) mv++; | |
if (omega_read_encoder < omega_input) mv--; | |
} | |
motor_drive(mv) | |
} |
This file contains 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
#include <stdio.h> | |
#include <math.h> | |
int main(){ | |
double x; | |
//The x position of the frisbee. | |
double y; | |
//The y position of the frisbee. | |
double vx; | |
//The x velocity of the frisbee. |
This file contains 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
input { | |
beats { | |
port => 5044 | |
} | |
} | |
## Add your filters / logstash plugins configuration here | |
filter { | |
kv {} | |
} |
This file contains 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
version: '2' | |
services: | |
elasticsearch: | |
build: | |
context: elasticsearch/ | |
volumes: | |
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro | |
- /home/ubuntu/elasticdata:/usr/share/elasticsearch/data |
This file contains 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
################### Heartbeat Configuration Example ######################### | |
# This file is an example configuration file highlighting only some common options. | |
# The heartbeat.reference.yml file in the same directory contains all the supported options | |
# with detailed comments. You can use it for reference. | |
# | |
# You can find the full configuration reference here: | |
# https://www.elastic.co/guide/en/beats/heartbeat/index.html | |
############################# Heartbeat ###################################### |
This file contains 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
input { | |
beats { | |
port => 5044 | |
} | |
} | |
## Add your filters / logstash plugins configuration here | |
filter { | |
kv {} |
This file contains 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
input { | |
beats { | |
port => 5044 | |
} | |
} | |
## Add your filters / logstash plugins configuration here | |
filter { | |
csv { | |
columns => ["used_memory", "cpu_used_sys"] |
This file contains 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
input { | |
beats { | |
port => 5044 | |
} | |
} | |
filter { | |
csv { | |
columns => ["method", "duration", "key", "timestamp"] | |
separator => "," |
This file contains 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 main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
) | |
// The `json:"whatever"` bit is a way to tell the JSON |