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,
"profiles": {
"mcopy": {

2
app/package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{
"name": "mcopy-app",
"version": "1.8.37",
"version": "1.8.38",
"description": "GUI for the mcopy small gauge film optical printer platform",
"main": "main.js",
"scripts": {

View File

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

View File

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

View File

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

4
package-lock.json generated
View File

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

View File

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

View File

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