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:
parent
29ba125534
commit
6dd29d9596
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.8.37",
|
||||
"version": "1.8.38",
|
||||
"ext_port": 1111,
|
||||
"profiles": {
|
||||
"mcopy": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "mcopy-app",
|
||||
"version": "1.8.37",
|
||||
"version": "1.8.38",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.8.37",
|
||||
"version": "1.8.38",
|
||||
"ext_port": 1111,
|
||||
"profiles": {
|
||||
"mcopy": {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -75,7 +75,7 @@ void setup () {
|
|||
delay(42);
|
||||
digitalWrite(LED_FWD, LOW);
|
||||
digitalWrite(LED_BWD, LOW);
|
||||
projector.home();
|
||||
//projector.home();
|
||||
}
|
||||
|
||||
void loop () {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.8.37",
|
||||
"version": "1.8.38",
|
||||
"ext_port": 1111,
|
||||
"profiles": {
|
||||
"mcopy": {
|
||||
|
|
Loading…
Reference in New Issue