Add more smoothing during homing step. Is running consistently but is ending with motor in wrong position each time. Very strange.
This commit is contained in:
parent
6e7c226c57
commit
99b63150ac
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "1.8.53",
|
"version": "1.8.54",
|
||||||
"ext_port": 1111,
|
"ext_port": 1111,
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"mcopy": {
|
"mcopy": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mcopy-app",
|
"name": "mcopy-app",
|
||||||
"version": "1.8.53",
|
"version": "1.8.54",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mcopy-app",
|
"name": "mcopy-app",
|
||||||
"version": "1.8.53",
|
"version": "1.8.54",
|
||||||
"description": "GUI for the mcopy small gauge film optical printer platform",
|
"description": "GUI for the mcopy small gauge film optical printer platform",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "1.8.53",
|
"version": "1.8.54",
|
||||||
"ext_port": 1111,
|
"ext_port": 1111,
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"mcopy": {
|
"mcopy": {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
Hardware
|
Hardware
|
||||||
|
|
||||||
Arduino Uno
|
Arduino Mega
|
||||||
Itead Dual Stepper Shield
|
Itead Dual Stepper Shield
|
||||||
2x NEMA17 Stepper Motors
|
2x NEMA17 Stepper Motors
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ long analogReadAccurate (uint8_t pin) {
|
||||||
}
|
}
|
||||||
|
|
||||||
long analogReadAccurateAverage (uint8_t pin) {
|
long analogReadAccurateAverage (uint8_t pin) {
|
||||||
uint8_t count = 3;
|
uint8_t count = 5;
|
||||||
double sum = 0.0;
|
double sum = 0.0;
|
||||||
for (uint8_t i = 0; i < count; i++) {
|
for (uint8_t i = 0; i < count; i++) {
|
||||||
sum += analogReadAccurate(pin);
|
sum += analogReadAccurate(pin);
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "mcopy",
|
"name": "mcopy",
|
||||||
"version": "1.8.53",
|
"version": "1.8.54",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "mcopy",
|
"name": "mcopy",
|
||||||
"version": "1.8.53",
|
"version": "1.8.54",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"arduino": "file:app/lib/arduino",
|
"arduino": "file:app/lib/arduino",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mcopy",
|
"name": "mcopy",
|
||||||
"version": "1.8.53",
|
"version": "1.8.54",
|
||||||
"description": "Small gauge film optical printer platform",
|
"description": "Small gauge film optical printer platform",
|
||||||
"main": "build.js",
|
"main": "build.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "1.8.53",
|
"version": "1.8.54",
|
||||||
"ext_port": 1111,
|
"ext_port": 1111,
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"mcopy": {
|
"mcopy": {
|
||||||
|
|
Loading…
Reference in New Issue