From fae310bd230a8aa4d58b66f7921d1f2fb82c18ba Mon Sep 17 00:00:00 2001 From: isaac879 Date: Thu, 6 Aug 2020 23:51:13 +0100 Subject: [PATCH] Add files via upload Number of keyframes increased to 35 from 20. --- pan_tilt_mount_nano_code_tmc2208/panTiltMount.cpp | 2 +- pan_tilt_mount_nano_code_tmc2208/panTiltMount.h | 4 ++-- .../pan_tilt_mount_nano_code_tmc2208.ino | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/pan_tilt_mount_nano_code_tmc2208/panTiltMount.cpp b/pan_tilt_mount_nano_code_tmc2208/panTiltMount.cpp index 0e9dca8..38b2085 100644 --- a/pan_tilt_mount_nano_code_tmc2208/panTiltMount.cpp +++ b/pan_tilt_mount_nano_code_tmc2208/panTiltMount.cpp @@ -466,7 +466,7 @@ void moveToIndex(int index){ float sliderInitialSpeed = stepper_slider.speed(); if(index >= 1){ - if(keyframe_array[index - 1].msDelay !p-29= 0){ + if(keyframe_array[index - 1].msDelay != 0){ panInitialSpeed = 0; tiltInitialSpeed = 0; sliderInitialSpeed = 0; diff --git a/pan_tilt_mount_nano_code_tmc2208/panTiltMount.h b/pan_tilt_mount_nano_code_tmc2208/panTiltMount.h index 679a7f1..ca5705e 100644 --- a/pan_tilt_mount_nano_code_tmc2208/panTiltMount.h +++ b/pan_tilt_mount_nano_code_tmc2208/panTiltMount.h @@ -31,7 +31,7 @@ #define TILT_GEAR_RATIO 3.047619047619047619047619047619 //64/21 teeth #define MAX_STRING_LENGTH 10 -#define KEYFRAME_ARRAY_LENGTH 20 +#define KEYFRAME_ARRAY_LENGTH 35 #define SHUTTER_DELAY 200 @@ -102,7 +102,7 @@ #define NUM_LEDS 1 #define BRIGHTNESS 255 -#define VERSION_NUMBER "Version: 3.9.4\n" +#define VERSION_NUMBER "Version: 3.9.5\n" /*------------------------------------------------------------------------------------------------------------------------------------------------------*/ diff --git a/pan_tilt_mount_nano_code_tmc2208/pan_tilt_mount_nano_code_tmc2208.ino b/pan_tilt_mount_nano_code_tmc2208/pan_tilt_mount_nano_code_tmc2208.ino index 83ae48f..6c0f9ed 100644 --- a/pan_tilt_mount_nano_code_tmc2208/pan_tilt_mount_nano_code_tmc2208.ino +++ b/pan_tilt_mount_nano_code_tmc2208/pan_tilt_mount_nano_code_tmc2208.ino @@ -18,7 +18,7 @@ * * Code written by isaac879 * - * Last modified: 22/07/2020 + * Last modified: 06/08/2020 * *--------------------------------------------------------------------------------------------------------------------------------------------------------*/ @@ -27,9 +27,6 @@ /*--------------------------------------------------------------------------------------------------------------------------------------------------------*/ -//Future development: - -//Notes: note the same start/stop pos, setting accel vals,over/undershoot on changing direction/us delays, have not tested other step modes with accel //Comment code/more documentation //Efficiency improvements