Disable home feature for now. Fixed impossibly stupid bug with reverse mode. Used uint16_t rather than int16_t causing an overflow.

This commit is contained in:
Matt McWilliams 2023-09-28 20:46:45 -04:00
parent 29ba125534
commit 6dd29d9596
9 changed files with 12 additions and 11 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.37", "version": "1.8.38",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

2
app/package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy-app", "name": "mcopy-app",
"version": "1.8.37", "version": "1.8.38",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy-app", "name": "mcopy-app",
"version": "1.8.37", "version": "1.8.38",
"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": {

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.37", "version": "1.8.38",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -47,7 +47,7 @@ void McopyProjector::setDirection (bool dir) {
} }
void McopyProjector::frame (bool dir) { void McopyProjector::frame (bool dir) {
uint16_t spf = _stepsPerFrame * _mode; //scaled int16_t spf = _stepsPerFrame * _mode; //scaled
bool running = true; bool running = true;
if (dir != _dir) { if (dir != _dir) {
setDirection(dir); setDirection(dir);
@ -157,6 +157,7 @@ void McopyProjector::setStepperMode (uint8_t mode) {
} }
void McopyProjector::home () { void McopyProjector::home () {
/*
uint16_t steps = _motorSteps * _mode; uint16_t steps = _motorSteps * _mode;
long reading; long reading;
// //
@ -205,7 +206,7 @@ void McopyProjector::home () {
_takeup.move(-1); _takeup.move(-1);
_takeup.runToPosition(); _takeup.runToPosition();
} }
} }*/
} }
long McopyProjector::readVcc() { long McopyProjector::readVcc() {

View File

@ -75,7 +75,7 @@ void setup () {
delay(42); delay(42);
digitalWrite(LED_FWD, LOW); digitalWrite(LED_FWD, LOW);
digitalWrite(LED_BWD, LOW); digitalWrite(LED_BWD, LOW);
projector.home(); //projector.home();
} }
void loop () { void loop () {

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.37", "version": "1.8.38",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mcopy", "name": "mcopy",
"version": "1.8.37", "version": "1.8.38",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"arduino": "file:app/lib/arduino", "arduino": "file:app/lib/arduino",

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.37", "version": "1.8.38",
"description": "Small gauge film optical printer platform", "description": "Small gauge film optical printer platform",
"main": "build.js", "main": "build.js",
"directories": { "directories": {

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.37", "version": "1.8.38",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {