Part | # Servo id | Home/Center | min | max | Decreasing direction |
---|---|---|---|---|---|
Base | 1 | 1750 | 1000 | 4095 | in to out |
Shoulder | 2 | 2250 | 1500 | 3000 | left to right |
Elbow | 3 | 2850 | 900 | 3500 | down up |
Wrist | 4 | 2000 | 1000 | 3000 | in out |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include "ros/ros.h" | |
#include "std_msgs/MultiArrayLayout.h" | |
#include "std_msgs/MultiArrayDimension.h" | |
#include "std_msgs/Int32MultiArray.h" |
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
#include <SCServo.h> | |
SMSCL sm; | |
SMSCL smB; | |
long int wait = 5000; | |
int center = 4095/2; | |
int speed = 250; | |
char data[5]; | |
int start = 0; |
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
/* | |
* Arduino-serial | |
* -------------- | |
* | |
* A simple command-line example program showing how a computer can | |
* communicate with an Arduino board. Works on any POSIX system (Mac/Unix/PC) | |
* | |
* | |
* Compile with something like: | |
* gcc -o arduino-serial arduino-serial.c |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<div id="knn-react-app" class="embedded-app" style="text-align: center;"> | |
<button id="knn-1-predict-btn"> <i class=""></i> Predict</button> | |
<input type="checkbox" id="knn-1-scale-btn" /> | |
<label for="subscribeNews">Scale?</label> | |
<input id="knn-1-kvalue" placeholder="# of neighbours eg. 3"/> | |
<input id="knn-1-point-input" placeholder="weight,color,seeds eg. 371,3,1" /> | |
<i class="fas fa-equals"></i> | |
<img width="25" height="25" id="knn-1-class-img" /> | |
</div> | |
<div id="knn-vis1" style="width: 100%; height: 520px;"></div> |
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
#pragma once | |
#include <variant> | |
// use fmtlib as the backbone for printing and formating messages. | |
#include <fmt/fmt.h> | |
// Colors from @gon1332 | |
// https://github.com/gon1332/fort320 | |
/* FOREGROUND */ | |
#define RST "\x1B[0m" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.