Date
1 - 5 of 5
compiling errors
JoAnn
Forgive my lack of experience on programming. I downloaded the beta branch. I changed the config file for MiniPCB according to the spreadsheet values. I only changed the ones noted on the spreadsheet. I turned to OFF all but the miniPcb config file:
#if !defined(Classic_OFF) && !defined(MiniPCB_ON) && !defined(MaxPCB_OFF) && !defined(TM4C_OFF) && !defined(Ramps14_OFF) && !defined(Mega2560Alt_OFF) && !defined(STM32_OFF) #error "Choose ONE Config.xxx.h file and enable it for use by turning it _ON."
#endif
I get these errors when compiling:Arduino: 1.8.5 (Windows 10), TD: 1.40, Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"
OnStep:192: error: 'MaxRate' was not declared in this scope
long maxRate = MaxRate*16L;
^
OnStep:206: error: 'StepsPerDegreeAxis1' was not declared in this scope
volatile double timerRateRatio = ((double)StepsPerDegreeAxis1/(double)StepsPerDegreeAxis2);
^
OnStep:206: error: 'StepsPerDegreeAxis2' was not declared in this scope
volatile double timerRateRatio = ((double)StepsPerDegreeAxis1/(double)StepsPerDegreeAxis2);
^
OnStep:207: error: 'StepsPerDegreeAxis1' was not declared in this scope
volatile boolean useTimerRateRatio = (StepsPerDegreeAxis1!=StepsPerDegreeAxis2);
^
OnStep:207: error: 'StepsPerDegreeAxis2' was not declared in this scope
volatile boolean useTimerRateRatio = (StepsPerDegreeAxis1!=StepsPerDegreeAxis2);
^
OnStep:213: error: 'DegreesForAcceleration' was not declared in this scope
volatile double StepsForRateChangeAxis1= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis1))*0.3333333*StepsPerDegreeAxis1*MaxRate;
^
OnStep:213: error: 'StepsPerDegreeAxis1' was not declared in this scope
volatile double StepsForRateChangeAxis1= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis1))*0.3333333*StepsPerDegreeAxis1*MaxRate;
^
OnStep:213: error: 'StepsPerDegreeAxis1' was not declared in this scope
volatile double StepsForRateChangeAxis1= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis1))*0.3333333*StepsPerDegreeAxis1*MaxRate;
^
OnStep:213: error: 'MaxRate' was not declared in this scope
volatile double StepsForRateChangeAxis1= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis1))*0.3333333*StepsPerDegreeAxis1*MaxRate;
^
OnStep:214: error: 'DegreesForAcceleration' was not declared in this scope
volatile double StepsForRateChangeAxis2= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis2))*0.3333333*StepsPerDegreeAxis2*MaxRate;
^
OnStep:214: error: 'StepsPerDegreeAxis2' was not declared in this scope
volatile double StepsForRateChangeAxis2= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis2))*0.3333333*StepsPerDegreeAxis2*MaxRate;
^
OnStep:214: error: 'StepsPerDegreeAxis2' was not declared in this scope
volatile double StepsForRateChangeAxis2= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis2))*0.3333333*StepsPerDegreeAxis2*MaxRate;
^
OnStep:214: error: 'MaxRate' was not declared in this scope
volatile double StepsForRateChangeAxis2= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis2))*0.3333333*StepsPerDegreeAxis2*MaxRate;
^
OnStep:299: error: 'StepsPerDegreeAxis1' was not declared in this scope
volatile long posAxis1 = 90L*(long)StepsPerDegreeAxis1;// hour angle position in steps
^
OnStep:300: error: 'StepsPerDegreeAxis1' was not declared in this scope
long trueAxis1 = 90L*(long)StepsPerDegreeAxis1;// correction to above for motor shaft position steps
^
OnStep:301: error: 'StepsPerDegreeAxis1' was not declared in this scope
volatile long startAxis1 = 90L*(long)StepsPerDegreeAxis1;// hour angle of goto start position in steps
^
OnStep:312: error: 'StepsPerDegreeAxis2' was not declared in this scope
volatile long posAxis2 = 90L*(long)StepsPerDegreeAxis2;// declination position in steps
^
OnStep:313: error: 'StepsPerDegreeAxis2' was not declared in this scope
long trueAxis2 = 90L*(long)StepsPerDegreeAxis2;// correction to above for motor shaft position steps
^
OnStep:314: error: 'StepsPerDegreeAxis2' was not declared in this scope
volatile long startAxis2 = 90L*(long)StepsPerDegreeAxis2;// declination of goto start position in steps
^
OnStep:489: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define slewRate (1.0/(((double)StepsPerDegreeAxis1*(MaxRate/1000000.0)))*3600.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:491:23: note: in expansion of macro 'slewRate'
#define halfSlewRate (slewRate/2.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:493:55: note: in expansion of macro 'halfSlewRate'
double guideRates[10]={3.75,7.5,15,30,60,120,360,720,halfSlewRate,slewRate};
^
OnStep:489: error: 'MaxRate' was not declared in this scope
#define slewRate (1.0/(((double)StepsPerDegreeAxis1*(MaxRate/1000000.0)))*3600.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:491:23: note: in expansion of macro 'slewRate'
#define halfSlewRate (slewRate/2.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:493:55: note: in expansion of macro 'halfSlewRate'
double guideRates[10]={3.75,7.5,15,30,60,120,360,720,halfSlewRate,slewRate};
^
OnStep:489: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define slewRate (1.0/(((double)StepsPerDegreeAxis1*(MaxRate/1000000.0)))*3600.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:493:68: note: in expansion of macro 'slewRate'
double guideRates[10]={3.75,7.5,15,30,60,120,360,720,halfSlewRate,slewRate};
^
OnStep:489: error: 'MaxRate' was not declared in this scope
#define slewRate (1.0/(((double)StepsPerDegreeAxis1*(MaxRate/1000000.0)))*3600.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:493:68: note: in expansion of macro 'slewRate'
double guideRates[10]={3.75,7.5,15,30,60,120,360,720,halfSlewRate,slewRate};
^
OnStep:531: error: 'PEC_SENSE_STATE' was not declared in this scope
int LastPecPinState = PEC_SENSE_STATE;
^
OnStep:538: error: 'PECBufferSize' was not declared in this scope
byte pecBuffer[PECBufferSize];
^
Timer:161: error: expected constructor, destructor, or type conversion before '(' token
ISR(TIMER1_COMPA_vect,ISR_NOBLOCK)
^
Timer:310: error: expected constructor, destructor, or type conversion before '(' token
ISR(TIMER3_COMPA_vect)
^
Timer:425: error: expected constructor, destructor, or type conversion before '(' token
ISR(TIMER4_COMPA_vect)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino: In function 'void setup()':
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:713:33: note: in expansion of macro 'StepsPerSecondAxis1'
SiderealRate=siderealInterval/StepsPerSecondAxis1;
^
OnStep:719: error: 'BacklashTakeupRate' was not declared in this scope
timerRateBacklashAxis1=SiderealRate/BacklashTakeupRate;
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino: In function 'void loop()':
OnStep:796: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(EE_pecTable+pecAutoRecord,pecBuffer[pecAutoRecord]);
^
OnStep:796: error: 'pecBuffer' was not declared in this scope
EEPROM.update(EE_pecTable+pecAutoRecord,pecBuffer[pecAutoRecord]);
^
OnStep:1035: error: 'meridianFlip' was not declared in this scope
if (meridianFlip!=MeridianFlipNever) {
^
OnStep:1038: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (p1>(minutesPastMeridianW*(long)StepsPerDegreeAxis1/4L)) {
^
OnStep:1053: error: 'UnderPoleLimit' was not declared in this scope
if (pierSide==PierSideEast) { cli(); if (posAxis1+indexAxis1Steps>(UnderPoleLimit*15L*(long)StepsPerDegreeAxis1)) { lastError=ERR_UNDER_POLE; if (trackingState==TrackingMoveTo) abortSlew=true; else trackingState=TrackingNone; } sei(); }
^
OnStep:1053: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideEast) { cli(); if (posAxis1+indexAxis1Steps>(UnderPoleLimit*15L*(long)StepsPerDegreeAxis1)) { lastError=ERR_UNDER_POLE; if (trackingState==TrackingMoveTo) abortSlew=true; else trackingState=TrackingNone; } sei(); }
^
OnStep:1057: error: 'UnderPoleLimit' was not declared in this scope
cli(); if (posAxis1+indexAxis1Steps>(UnderPoleLimit*15L*(long)StepsPerDegreeAxis1)) { lastError=ERR_UNDER_POLE; if (trackingState==TrackingMoveTo) abortSlew=true; else trackingState=TrackingNone; } sei();
^
OnStep:1057: error: 'StepsPerDegreeAxis1' was not declared in this scope
cli(); if (posAxis1+indexAxis1Steps>(UnderPoleLimit*15L*(long)StepsPerDegreeAxis1)) { lastError=ERR_UNDER_POLE; if (trackingState==TrackingMoveTo) abortSlew=true; else trackingState=TrackingNone; } sei();
^
OnStep:1065: error: 'MinDec' was not declared in this scope
if ((getApproxDec()<MinDec) || (getApproxDec()>MaxDec)) { lastError=ERR_DEC; if (trackingState==TrackingMoveTo) abortSlew=true; else trackingState=TrackingNone; }
^
OnStep:1065: error: 'MaxDec' was not declared in this scope
if ((getApproxDec()<MinDec) || (getApproxDec()>MaxDec)) { lastError=ERR_DEC; if (trackingState==TrackingMoveTo) abortSlew=true; else trackingState=TrackingNone; }
^
C:\Users\g3258\Documents\Arduino\OnStep\Align.ino: In member function 'bool TGeoAlign::addStar(int, int, double, double)':
Align:353: error: 'StepsPerDegreeAxis1' was not declared in this scope
AlignStars[I-1].HA1=((double)(long)targetAxis1.part.m)/(double)StepsPerDegreeAxis1;
^
Align:354: error: 'StepsPerDegreeAxis2' was not declared in this scope
AlignStars[I-1].Dec=((double)(long)targetAxis2.part.m)/(double)StepsPerDegreeAxis2;
^
C:\Users\g3258\Documents\Arduino\OnStep\Align.ino: In member function 'void TGeoAlign::EquToInstr(double, double, double, double*, double*)':
Align:497: error: 'UnderPoleLimit' was not declared in this scope
if ((Lat>=0) && ((abs(*HA1)>(double)UnderPoleLimit*15.0))) {
^
Align:501: error: 'UnderPoleLimit' was not declared in this scope
if ((Lat<0) && ((abs(*HA1)>(double)UnderPoleLimit*15.0) )) {
^
C:\Users\g3258\Documents\Arduino\OnStep\Astro.ino: In function 'void SetDeltaTrackingRate()':
Astro:383: error: 'StepsPerDegreeAxis1' was not declared in this scope
fstepAxis1.fixed=doubleToFixed( (((double)StepsPerDegreeAxis1/240.0)*(az_deltaAxis1/15.0))/100.0 );
^
Astro:384: error: 'StepsPerDegreeAxis2' was not declared in this scope
fstepAxis2.fixed=doubleToFixed( (((double)StepsPerDegreeAxis2/240.0)*(az_deltaAxis2/15.0))/100.0 );
^
C:\Users\g3258\Documents\Arduino\OnStep\Astro.ino: In function 'void SetAccelerationRates(double)':
Astro:718: error: 'DegreesForAcceleration' was not declared in this scope
StepsForRateChangeAxis1= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis1))*0.3333333*StepsPerDegreeAxis1*maxRate;
^
Astro:718: error: 'StepsPerDegreeAxis1' was not declared in this scope
StepsForRateChangeAxis1= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis1))*0.3333333*StepsPerDegreeAxis1*maxRate;
^
Astro:719: error: 'StepsPerDegreeAxis2' was not declared in this scope
StepsForRateChangeAxis2= ((double)DegreesForAcceleration/sqrt((double)StepsPerDegreeAxis2))*0.3333333*StepsPerDegreeAxis2*maxRate;
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino: In function 'void processCommands()':
Command:88: error: 'MAX_NUM_ALIGN_STARS' was not declared in this scope
reply[0]=MAX_NUM_ALIGN_STARS;
^
Command:142: error: 'meridianFlip' was not declared in this scope
if ((alignNumStars==alignThisStar) && (meridianFlip==MeridianFlipAlign)) meridianFlip=MeridianFlipNever;
^
In file included from sketch\OnStep.ino.cpp:1:0:
Command:178: error: 'StepsPerDegreeAxis2' was not declared in this scope
backlashAxis2=(int)round(((double)i*(double)StepsPerDegreeAxis2)/3600.0);
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:182: error: 'StepsPerDegreeAxis1' was not declared in this scope
backlashAxis1 =(int)round(((double)i*(double)StepsPerDegreeAxis1)/3600.0);
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:197: error: 'StepsPerDegreeAxis2' was not declared in this scope
i=(int)round(((double)backlashAxis2*3600.0)/(double)StepsPerDegreeAxis2);
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:203: error: 'StepsPerDegreeAxis1' was not declared in this scope
i=(int)round(((double)backlashAxis1*3600.0)/(double)StepsPerDegreeAxis1);
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:727: error: 'MaxRate' was not declared in this scope
case '3': sprintf(reply,"%ld",(long)(MaxRate)); quietReply=true; break; // MaxRate (default)
^
Command:728: error: 'meridianFlip' was not declared in this scope
case '4': if (meridianFlip==MeridianFlipNever) { sprintf(reply,"%d N",(int)(pierSide)); } else { sprintf(reply,"%d",(int)(pierSide)); } quietReply=true; break; // pierSide (N if never)
^
Command:752: error: 'MaxRate' was not declared in this scope
case '1': sprintf(reply,"%ld",(long)MaxRate); quietReply=true; break;
^
Command:753: error: 'DegreesForAcceleration' was not declared in this scope
case '2': dtostrf(DegreesForAcceleration,2,1,reply); quietReply=true; break;
^
In file included from sketch\OnStep.ino.cpp:1:0:
Command:754: error: 'BacklashTakeupRate' was not declared in this scope
case '3': sprintf(reply,"%ld",(long)round(BacklashTakeupRate)); quietReply=true; break;
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:755: error: 'StepsPerDegreeAxis1' was not declared in this scope
case '4': sprintf(reply,"%ld",(long)round(StepsPerDegreeAxis1)); quietReply=true; break;
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:756: error: 'StepsPerDegreeAxis2' was not declared in this scope
case '5': sprintf(reply,"%ld",(long)round(StepsPerDegreeAxis2)); quietReply=true; break;
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:758: error: 'StepsPerWormRotationAxis1' was not declared in this scope
case '7': sprintf(reply,"%ld",(long)round(StepsPerWormRotationAxis1)); quietReply=true; break;
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:759: error: 'PECBufferSize' was not declared in this scope
case '8': sprintf(reply,"%ld",(long)round(PECBufferSize)); quietReply=true; break;
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:764: error: 'UnderPoleLimit' was not declared in this scope
case 'B': sprintf(reply,"%ld",(long)round(UnderPoleLimit)); quietReply=true; break;
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:765: error: 'MinDec' was not declared in this scope
case 'C': sprintf(reply,"%ld",(long)round(MinDec)); quietReply=true; break;
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:766: error: 'MaxDec' was not declared in this scope
case 'D': sprintf(reply,"%ld",(long)round(MaxDec)); quietReply=true; break;
^
C:\Users\g3258\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/Arduino.h:132:24: note: in definition of macro 'round'
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
^
Command:1079: error: 'class EEPROMClass' has no member named 'update'
if (parameter[1]=='+') { if (pecRecorded) pecStatus=ReadyPlayPEC; EEPROM.update(EE_pecStatus,pecStatus); } else
^
Command:1080: error: 'class EEPROMClass' has no member named 'update'
if (parameter[1]=='-') { pecStatus=IgnorePEC; EEPROM.update(EE_pecStatus,pecStatus); } else
^
Command:1081: error: 'class EEPROMClass' has no member named 'update'
if ((parameter[1]=='/') && (trackingState==TrackingSidereal)) { pecStatus=ReadyRecordPEC; EEPROM.update(EE_pecStatus,IgnorePEC); } else
^
Command:1083: error: 'PECBufferSize' was not declared in this scope
for (i=0; i<PECBufferSize; i++) pecBuffer[i]=128;
^
Command:1083: error: 'pecBuffer' was not declared in this scope
for (i=0; i<PECBufferSize; i++) pecBuffer[i]=128;
^
Command:1087: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(EE_pecStatus,pecStatus);
^
Command:1088: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(EE_pecRecorded,pecRecorded);
^
Command:1092: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(EE_pecRecorded,pecRecorded);
^
Command:1095: error: 'PECBufferSize' was not declared in this scope
pecAutoRecord=PECBufferSize;
^
Command:1320: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(EE_sites+(currentSite)*25+8,b);
^
Command:1330: error: 'class EEPROMClass' has no member named 'update'
if ( (atoi2(parameter,&i)) && ((i>=-30) && (i<=30))) { minAlt=i; EEPROM.update(EE_minAlt,minAlt+128); } else commandError=true;
^
Command:1366: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(EE_maxAlt,maxAlt);
^
Command:1450: error: 'MaxRate' was not declared in this scope
if (maxRate<(MaxRate/2L)*16L) maxRate=(MaxRate/2L)*16L;
^
Command:1451: error: 'MaxRate' was not declared in this scope
if (maxRate>(MaxRate*2L)*16L) maxRate=(MaxRate*2L)*16L;
^
Command:1458: error: 'MaxRate' was not declared in this scope
case '5': maxRate=MaxRate*32L; break; // 50%
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1592:47: note: in expansion of macro 'StepsPerSecondAxis1'
cli(); SiderealRate=siderealInterval/StepsPerSecondAxis1; sei();
^
Command:1614: error: 'PECBufferSize' was not declared in this scope
if ((conv_result) && ((i>=0) && (i<PECBufferSize))) {
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1616:30: note: in expansion of macro 'SecondsPerWormRotationAxis1'
i-=1; if (i<0) i+=SecondsPerWormRotationAxis1; if (i>=SecondsPerWormRotationAxis1) i-=SecondsPerWormRotationAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1616:30: note: in expansion of macro 'SecondsPerWormRotationAxis1'
i-=1; if (i<0) i+=SecondsPerWormRotationAxis1; if (i>=SecondsPerWormRotationAxis1) i-=SecondsPerWormRotationAxis1;
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1616:66: note: in expansion of macro 'SecondsPerWormRotationAxis1'
i-=1; if (i<0) i+=SecondsPerWormRotationAxis1; if (i>=SecondsPerWormRotationAxis1) i-=SecondsPerWormRotationAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1616:66: note: in expansion of macro 'SecondsPerWormRotationAxis1'
i-=1; if (i<0) i+=SecondsPerWormRotationAxis1; if (i>=SecondsPerWormRotationAxis1) i-=SecondsPerWormRotationAxis1;
^
Command:1617: error: 'pecBuffer' was not declared in this scope
i1=pecBuffer[i]-128; sprintf(reply,"%+04i,%03i",i1,i);
^
Command:1619: error: 'pecBuffer' was not declared in this scope
i1=pecBuffer[i]-128; sprintf(reply,"%+04i",i1);
^
Command:1630: error: 'PECBufferSize' was not declared in this scope
if ( (atoi2(parameter,&i)) && ((i>=0) && (i<PECBufferSize))) {
^
Command:1635: error: 'pecBuffer' was not declared in this scope
if (i+j<PECBufferSize) b=pecBuffer[i+j]; else b=128;
^
Command:1648: error: 'StepsPerWormRotationAxis1' was not declared in this scope
sprintf(reply,"%06ld",(long)StepsPerWormRotationAxis1);
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1658:18: note: in expansion of macro 'StepsPerSecondAxis1'
dtostrf(StepsPerSecondAxis1,0,6,temp);
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1668:51: note: in expansion of macro 'StepsPerSecondAxis1'
long s=(long)((double)wormSensePos/(double)StepsPerSecondAxis1);
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1669:17: note: in expansion of macro 'SecondsPerWormRotationAxis1'
while (s>SecondsPerWormRotationAxis1) s-=SecondsPerWormRotationAxis1;
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1670:23: note: in expansion of macro 'SecondsPerWormRotationAxis1'
while (s<0) s+=SecondsPerWormRotationAxis1;
^
Command:1688: error: 'StepsPerWormRotationAxis1' was not declared in this scope
if ( (¶meter[0]!=conv_end) && ((l>=0) && (l<(long)StepsPerWormRotationAxis1))) {
^
Command:1705: error: 'pecBuffer' was not declared in this scope
i=pecBuffer[SecondsPerWormRotationAxis1-1];
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1705:24: note: in expansion of macro 'SecondsPerWormRotationAxis1'
i=pecBuffer[SecondsPerWormRotationAxis1-1];
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1705:24: note: in expansion of macro 'SecondsPerWormRotationAxis1'
i=pecBuffer[SecondsPerWormRotationAxis1-1];
^
Command:1711: error: 'pecBuffer' was not declared in this scope
i=pecBuffer[0];
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1712:64: note: in expansion of macro 'SecondsPerWormRotationAxis1'
memmove((byte *)&pecBuffer[0],(byte *)&pecBuffer[1],SecondsPerWormRotationAxis1-1);
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Command.ino:1712:64: note: in expansion of macro 'SecondsPerWormRotationAxis1'
memmove((byte *)&pecBuffer[0],(byte *)&pecBuffer[1],SecondsPerWormRotationAxis1-1);
^
Command:1720: error: 'PECBufferSize' was not declared in this scope
if ( (atoi2(parameter,&i)) && ((i>=0) && (i<PECBufferSize))) {
^
Command:1724: error: 'pecBuffer' was not declared in this scope
pecBuffer[i]=i2+128;
^
Command:1740: error: 'class EEPROMClass' has no member named 'update'
currentSite=command[1]-'0'; EEPROM.update(EE_currentSite,currentSite); quietReply=true;
^
C:\Users\g3258\Documents\Arduino\OnStep\EEProm.ino: In function 'void EEPROM_writeInt(int, int)':
EEProm:7: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(i+0,*k); k++;
^
EEProm:8: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(i+1,*k);
^
C:\Users\g3258\Documents\Arduino\OnStep\EEProm.ino: In function 'void EEPROM_writeQuad(int, byte*)':
EEProm:22: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(i+0,*v); v++;
^
EEProm:23: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(i+1,*v); v++;
^
EEProm:24: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(i+2,*v); v++;
^
EEProm:25: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(i+3,*v);
^
C:\Users\g3258\Documents\Arduino\OnStep\EEProm.ino: In function 'void EEPROM_writeString(int, char*)':
EEProm:39: error: 'class EEPROMClass' has no member named 'update'
EEPROM.update(i+l1,*l); l++;
^
C:\Users\g3258\Documents\Arduino\OnStep\Goto.ino: In function 'int syncEqu(double, double)':
Goto:42: error: 'meridianFlip' was not declared in this scope
if (meridianFlip!=MeridianFlipNever) {
^
Goto:82: error: 'StepsPerDegreeAxis1' was not declared in this scope
indexAxis1=Axis1-((double)(long)targetAxis1.part.m)/(double)StepsPerDegreeAxis1;
^
Goto:84: error: 'StepsPerDegreeAxis2' was not declared in this scope
indexAxis2=Axis2-((double)(long)targetAxis2.part.m)/(double)StepsPerDegreeAxis2;
^
C:\Users\g3258\Documents\Arduino\OnStep\Goto.ino: In function 'void getHADec(double*, double*)':
Goto:114: error: 'StepsPerDegreeAxis1' was not declared in this scope
*HA=Axis1/(double)StepsPerDegreeAxis1;
^
Goto:116: error: 'StepsPerDegreeAxis2' was not declared in this scope
*Dec=Axis2/(double)StepsPerDegreeAxis2;
^
C:\Users\g3258\Documents\Arduino\OnStep\Goto.ino: In function 'byte goToEqu(double, double)':
Goto:248: error: 'StepsPerDegreeAxis1' was not declared in this scope
long Axis1=h*(double)StepsPerDegreeAxis1;
^
Goto:249: error: 'StepsPerDegreeAxis2' was not declared in this scope
long Axis2=d*(double)StepsPerDegreeAxis2;
^
Goto:263: error: 'meridianFlip' was not declared in this scope
if (meridianFlip!=MeridianFlipNever) {
^
C:\Users\g3258\Documents\Arduino\OnStep\Goto.ino: In function 'byte validateGotoCoords(double, double, double)':
Goto:302: error: 'MaxDec' was not declared in this scope
if (Dec>MaxDec) return 6; // fail, outside limits
^
Goto:303: error: 'MinDec' was not declared in this scope
if (Dec<MinDec) return 6; // fail, outside limits
^
Goto:304: error: 'UnderPoleLimit' was not declared in this scope
if ((abs(HA)>(double)UnderPoleLimit*15.0) ) return 6; // fail, outside limits
^
C:\Users\g3258\Documents\Arduino\OnStep\Goto.ino: In function 'byte goTo(long int, long int, long int, long int, byte)':
Goto:319: error: 'meridianFlip' was not declared in this scope
if (meridianFlip!=MeridianFlipNever) {
^
Goto:321: error: 'StepsPerDegreeAxis1' was not declared in this scope
long eastOfPierMaxHA= 12L*15L*(long)StepsPerDegreeAxis1;
^
Goto:383: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (((thisTargetAxis1+indexAxis1Steps>(long)StepsPerDegreeAxis1*180L) || (thisTargetAxis1+indexAxis1Steps<-(long)StepsPerDegreeAxis1*180L)) ||
^
Goto:384: error: 'StepsPerDegreeAxis2' was not declared in this scope
((thisTargetAxis2+indexAxis2Steps>(long)StepsPerDegreeAxis2*180L) || (thisTargetAxis2+indexAxis2Steps<-(long)StepsPerDegreeAxis2*180L))) return 9; // fail, unspecified error
^
C:\Users\g3258\Documents\Arduino\OnStep\Guide.ino: In function 'void setGuideRate(int)':
Guide:103: error: 'class EEPROMClass' has no member named 'update'
if ((g<=GuideRate1x) && (currentPulseGuideRate!=g)) { currentPulseGuideRate=g; EEPROM.update(EE_pulseGuideRate,g); }
^
C:\Users\g3258\Documents\Arduino\OnStep\Guide.ino: In function 'void enableGuideRate(int)':
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Guide.ino:117:60: note: in expansion of macro 'StepsPerSecondAxis1'
amountGuideAxis1.fixed=doubleToFixed((guideTimerBaseRate*StepsPerSecondAxis1)/100.0);
^
OnStep:209: error: 'StepsPerDegreeAxis2' was not declared in this scope
#define StepsPerSecondAxis2 ((double)StepsPerDegreeAxis2/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Guide.ino:118:60: note: in expansion of macro 'StepsPerSecondAxis2'
amountGuideAxis2.fixed=doubleToFixed((guideTimerBaseRate*StepsPerSecondAxis2)/100.0);
^
C:\Users\g3258\Documents\Arduino\OnStep\Home.ino: In function 'int goHome()':
Home:10: error: 'celestialPoleAxis1' was not declared in this scope
if (pierSide==PierSideWest) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
Home:10: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideWest) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
Home:10: error: 'celestialPoleAxis1' was not declared in this scope
if (pierSide==PierSideWest) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
Home:10: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideWest) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
Home:11: error: 'StepsPerDegreeAxis2' was not declared in this scope
targetAxis2.part.m=(long)(celestialPoleAxis2*(double)StepsPerDegreeAxis2)-indexAxis2Steps; targetAxis2.part.f=0;
^
C:\Users\g3258\Documents\Arduino\OnStep\Home.ino: In function 'boolean setHome()':
Home:59: error: 'celestialPoleAxis1' was not declared in this scope
startAxis1 = celestialPoleAxis1*(long)StepsPerDegreeAxis1;
^
Home:59: error: 'StepsPerDegreeAxis1' was not declared in this scope
startAxis1 = celestialPoleAxis1*(long)StepsPerDegreeAxis1;
^
Home:60: error: 'StepsPerDegreeAxis2' was not declared in this scope
startAxis2 = celestialPoleAxis2*(double)StepsPerDegreeAxis2;
^
C:\Users\g3258\Documents\Arduino\OnStep\Initialize.ino: In function 'void Init_Startup_Values()':
Initialize:15: error: 'StepsPerDegreeAxis1' was not declared in this scope
targetAxis1.part.m = 90L*(long)StepsPerDegreeAxis1; targetAxis1.part.f = 0;
^
Initialize:18: error: 'StepsPerDegreeAxis2' was not declared in this scope
targetAxis2.part.m = 90L*(long)StepsPerDegreeAxis2; targetAxis2.part.f = 0;
^
C:\Users\g3258\Documents\Arduino\OnStep\Initialize.ino: In function 'void Init_Pins()':
Initialize:99: error: 'Axis1StepPin' was not declared in this scope
pinMode(Axis1StepPin,OUTPUT);
^
Initialize:100: error: 'Axis1DirPin' was not declared in this scope
pinMode(Axis1DirPin,OUTPUT);
^
Initialize:105: error: 'Axis2StepPin' was not declared in this scope
pinMode(Axis2StepPin,OUTPUT);
^
Initialize:106: error: 'Axis2DirPin' was not declared in this scope
pinMode(Axis2DirPin,OUTPUT);
^
Initialize:189: error: 'TonePin' was not declared in this scope
pinMode(TonePin,OUTPUT);
^
Initialize:238: error: 'Axis1_FAULT' was not declared in this scope
pinMode(Axis1_FAULT,INPUT);
^
Initialize:250: error: 'Axis2_FAULT' was not declared in this scope
pinMode(Axis2_FAULT,INPUT);
^
Initialize:255: error: 'Axis1_EN' was not declared in this scope
pinMode(Axis1_EN,OUTPUT);
^
Initialize:256: error: 'Axis2_EN' was not declared in this scope
pinMode(Axis2_EN,OUTPUT);
^
C:\Users\g3258\Documents\Arduino\OnStep\Initialize.ino: In function 'void Init_ReadEEPROM_Values()':
Initialize:321: error: 'celestialPoleAxis1' was not declared in this scope
startAxis1 = celestialPoleAxis1*(long)StepsPerDegreeAxis1;
^
Initialize:321: error: 'StepsPerDegreeAxis1' was not declared in this scope
startAxis1 = celestialPoleAxis1*(long)StepsPerDegreeAxis1;
^
Initialize:322: error: 'StepsPerDegreeAxis2' was not declared in this scope
startAxis2 = celestialPoleAxis2*(double)StepsPerDegreeAxis2;
^
Initialize:377: error: 'PECBufferSize' was not declared in this scope
for (int i=0; i<PECBufferSize; i++) pecBuffer[i]=EEPROM.read(EE_pecTable+i);
^
Initialize:377: error: 'pecBuffer' was not declared in this scope
for (int i=0; i<PECBufferSize; i++) pecBuffer[i]=EEPROM.read(EE_pecTable+i);
^
Initialize:393: error: 'MaxRate' was not declared in this scope
if (maxRate<(MaxRate/2L)*16L) maxRate=(MaxRate/2L)*16L;
^
Initialize:394: error: 'MaxRate' was not declared in this scope
if (maxRate>(MaxRate*2L)*16L) maxRate=(MaxRate*2L)*16L;
^
Initialize:396: error: 'MaxRate' was not declared in this scope
if (maxRate!=MaxRate*16L) { maxRate=MaxRate*16L; EEPROM_writeInt(EE_maxRate,(int)(maxRate/16L)); }
^
C:\Users\g3258\Documents\Arduino\OnStep\Initialize.ino: In function 'void Init_EEPROM_Values()':
Initialize:455: error: 'PECBufferSize' was not declared in this scope
for (int l=0; l<PECBufferSize; l++) EEPROM.write(EE_pecTable+l,128);
^
C:\Users\g3258\Documents\Arduino\OnStep\Initialize.ino: In function 'void EnableStepperDrivers()':
Initialize:638: error: 'Axis1_EN' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Enabled); axis1Enabled=true;
^
Initialize:638: error: 'Axis1_Enabled' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Enabled); axis1Enabled=true;
^
Initialize:639: error: 'Axis2_EN' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Enabled); axis2Enabled=true;
^
Initialize:639: error: 'Axis2_Enabled' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Enabled); axis2Enabled=true;
^
C:\Users\g3258\Documents\Arduino\OnStep\Initialize.ino: In function 'void DisableStepperDrivers()':
Initialize:647: error: 'Axis1_EN' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Disabled); axis1Enabled=false;
^
Initialize:647: error: 'Axis1_Disabled' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Disabled); axis1Enabled=false;
^
Initialize:648: error: 'Axis2_EN' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Disabled); axis2Enabled=false;
^
Initialize:648: error: 'Axis2_Disabled' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Disabled); axis2Enabled=false;
^
C:\Users\g3258\Documents\Arduino\OnStep\Library.ino: In constructor 'Library::Library()':
Library:8: error: 'PECBufferSize' was not declared in this scope
byteMin=200+PECBufferSize;
^
Library:19: error: 'E2END' was not declared in this scope
byteMax=E2END;
^
C:\Users\g3258\Documents\Arduino\OnStep\MoveTo.ino: In function 'void moveTo()':
MoveTo:25: error: 'celestialPoleAxis1' was not declared in this scope
if (celestialPoleAxis1==0) targetAxis1.part.m=0*(long)StepsPerDegreeAxis1-indexAxis1Steps; else {
^
MoveTo:25: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (celestialPoleAxis1==0) targetAxis1.part.m=0*(long)StepsPerDegreeAxis1-indexAxis1Steps; else {
^
MoveTo:26: error: 'StepsPerDegreeAxis1' was not declared in this scope
if ((currentAlt<10.0) && (startAxis1>-90L*(long)StepsPerDegreeAxis1-indexAxis1Steps)) targetAxis1.part.m=-60L*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps;
^
MoveTo:29: error: 'celestialPoleAxis1' was not declared in this scope
if (celestialPoleAxis1==0) targetAxis1.part.m=0*(long)StepsPerDegreeAxis1-indexAxis1Steps; else {
^
MoveTo:29: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (celestialPoleAxis1==0) targetAxis1.part.m=0*(long)StepsPerDegreeAxis1-indexAxis1Steps; else {
^
MoveTo:30: error: 'StepsPerDegreeAxis1' was not declared in this scope
if ((currentAlt<10.0) && (startAxis1<90L*(long)StepsPerDegreeAxis1-indexAxis1Steps)) targetAxis1.part.m=60L*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps;
^
MoveTo:34: error: 'StepsPerDegreeAxis2' was not declared in this scope
targetAxis2.part.m=((long)(celestialPoleAxis2*(double)StepsPerDegreeAxis2))-indexAxis2Steps; targetAxis2.part.f=0;
^
MoveTo:41: error: 'celestialPoleAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:41: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:41: error: 'celestialPoleAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:41: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:46: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-45L*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=45L*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:46: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-45L*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=45L*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:52: error: 'celestialPoleAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:52: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:52: error: 'celestialPoleAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:52: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:56: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-45L*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=45L*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:56: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipWE1) targetAxis1.part.m=-45L*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=45L*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:84: error: 'DegreesForAcceleration' was not declared in this scope
if (((latitude>10) || (latitude<-10)) && (distStartAxis1>((DegreesForAcceleration*StepsPerDegreeAxis1)/16))) {
^
MoveTo:84: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (((latitude>10) || (latitude<-10)) && (distStartAxis1>((DegreesForAcceleration*StepsPerDegreeAxis1)/16))) {
^
MoveTo:89: error: 'StepsPerDegreeAxis2' was not declared in this scope
long a=(currentAlt-minAlt2)*StepsPerDegreeAxis2; if (a<((DegreesForAcceleration*StepsPerDegreeAxis2)/8)) a=((DegreesForAcceleration*StepsPerDegreeAxis2)/8);
^
MoveTo:117: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (distDestAxis1>(long)(StepsPerDegreeAxis1*DegreesForRapidStop)) { if (posAxis1>(long)targetAxis1.part.m) targetAxis1.part.m=posAxis1-(long)(StepsPerDegreeAxis1*DegreesForRapidStop); else targetAxis1.part.m=posAxis1+(long)(StepsPerDegreeAxis1*DegreesForRapidStop); targetAxis1.part.f=0; }
^
MoveTo:118: error: 'StepsPerDegreeAxis2' was not declared in this scope
if (distDestAxis2>(long)(StepsPerDegreeAxis2*DegreesForRapidStop)) { if (posAxis2>(long)targetAxis2.part.m) targetAxis2.part.m=posAxis2-(long)(StepsPerDegreeAxis2*DegreesForRapidStop); else targetAxis2.part.m=posAxis2+(long)(StepsPerDegreeAxis2*DegreesForRapidStop); targetAxis2.part.f=0; }
^
MoveTo:184: error: 'celestialPoleAxis1' was not declared in this scope
if (celestialPoleAxis1==0) {
^
MoveTo:186: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipEW2) targetAxis1.part.m=180L*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=-180L*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:186: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipEW2) targetAxis1.part.m=180L*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=-180L*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:189: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipEW2) targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:189: error: 'StepsPerDegreeAxis1' was not declared in this scope
if (pierSide==PierSideFlipEW2) targetAxis1.part.m=celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; else targetAxis1.part.m=-celestialPoleAxis1*(long)StepsPerDegreeAxis1-indexAxis1Steps; targetAxis1.part.f=0;
^
MoveTo:191: error: 'StepsPerDegreeAxis2' was not declared in this scope
targetAxis2.part.m=(long)(celestialPoleAxis2*(double)StepsPerDegreeAxis2)-indexAxis2Steps; targetAxis2.part.f=0;
^
MoveTo:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
posAxis1-=(long)(180.0*(double)StepsPerDegreeAxis1);
^
MoveTo:219: error: 'StepsPerDegreeAxis1' was not declared in this scope
posAxis1+=(long)(180.0*(double)StepsPerDegreeAxis1);
^
MoveTo:265: error: 'Axis1_EN' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Disabled); axis1Enabled=false;
^
MoveTo:265: error: 'Axis1_Disabled' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Disabled); axis1Enabled=false;
^
MoveTo:266: error: 'Axis2_EN' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Disabled); axis2Enabled=false;
^
MoveTo:266: error: 'Axis2_Disabled' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Disabled); axis2Enabled=false;
^
MoveTo:281: error: 'Axis1_EN' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Disabled); axis1Enabled=false;
^
MoveTo:281: error: 'Axis1_Disabled' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Disabled); axis1Enabled=false;
^
MoveTo:282: error: 'Axis2_EN' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Disabled); axis2Enabled=false;
^
MoveTo:282: error: 'Axis2_Disabled' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Disabled); axis2Enabled=false;
^
C:\Users\g3258\Documents\Arduino\OnStep\Park.ino: In function 'bool doParkClearBacklash(int)':
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Park.ino:62:81: note: in expansion of macro 'StepsPerSecondAxis1'
long t; if (backlashAxis1>backlashAxis2) t=((long)backlashAxis1*1250)/(long)StepsPerSecondAxis1; else t=((long)backlashAxis2*1250)/(long)StepsPerSecondAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Park.ino:62:142: note: in expansion of macro 'StepsPerSecondAxis1'
long t; if (backlashAxis1>backlashAxis2) t=((long)backlashAxis1*1250)/(long)StepsPerSecondAxis1; else t=((long)backlashAxis2*1250)/(long)StepsPerSecondAxis1;
^
Park:63: error: 'BacklashTakeupRate' was not declared in this scope
t/=BacklashTakeupRate; // divide by the takeup rate
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Park.ino:77:81: note: in expansion of macro 'StepsPerSecondAxis1'
long t; if (backlashAxis1>backlashAxis2) t=((long)backlashAxis1*1250)/(long)StepsPerSecondAxis1; else t=((long)backlashAxis2*1250)/(long)StepsPerSecondAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Park.ino:77:142: note: in expansion of macro 'StepsPerSecondAxis1'
long t; if (backlashAxis1>backlashAxis2) t=((long)backlashAxis1*1250)/(long)StepsPerSecondAxis1; else t=((long)backlashAxis2*1250)/(long)StepsPerSecondAxis1;
^
Park:78: error: 'BacklashTakeupRate' was not declared in this scope
t/=BacklashTakeupRate; // divide by the takeup rate
^
C:\Users\g3258\Documents\Arduino\OnStep\Park.ino: In function 'byte park()':
Park:142: error: 'StepsPerDegreeAxis1' was not declared in this scope
float ih=ihs/(long)StepsPerDegreeAxis1;
^
Park:143: error: 'StepsPerDegreeAxis2' was not declared in this scope
float id=ids/(long)StepsPerDegreeAxis2;
^
C:\Users\g3258\Documents\Arduino\OnStep\Park.ino: In function 'boolean unpark()':
Park:183: error: 'StepsPerDegreeAxis1' was not declared in this scope
indexAxis1Steps=(long)(indexAxis1*(double)StepsPerDegreeAxis1);
^
Park:185: error: 'StepsPerDegreeAxis2' was not declared in this scope
indexAxis2Steps=(long)(indexAxis2*(double)StepsPerDegreeAxis2);
^
Park:210: error: 'meridianFlip' was not declared in this scope
meridianFlip=MeridianFlipNever;
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino: In function 'void Pec()':
Pec:54: error: 'StepsPerWormRotationAxis1' was not declared in this scope
while (wormRotationPos>=(long)StepsPerWormRotationAxis1) wormRotationPos-=(long)StepsPerWormRotationAxis1;
^
Pec:55: error: 'StepsPerWormRotationAxis1' was not declared in this scope
while (wormRotationPos<0) wormRotationPos+=(long)StepsPerWormRotationAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:67:36: note: in expansion of macro 'StepsPerSecondAxis1'
if ((long)fmod(wormRotationPos,StepsPerSecondAxis1)==0) {
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:77:36: note: in expansion of macro 'StepsPerSecondAxis1'
if ((long)fmod(wormRotationPos,StepsPerSecondAxis1)==0) {
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:84:48: note: in expansion of macro 'SecondsPerWormRotationAxis1'
pecRecordStopTime=PecSiderealTimer+(long)SecondsPerWormRotationAxis1*100L;
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:102:47: note: in expansion of macro 'SecondsPerWormRotationAxis1'
PecSiderealTimer=t; pecIndex=(pecIndex+1)%SecondsPerWormRotationAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:102:47: note: in expansion of macro 'SecondsPerWormRotationAxis1'
PecSiderealTimer=t; pecIndex=(pecIndex+1)%SecondsPerWormRotationAxis1;
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:104:51: note: in expansion of macro 'SecondsPerWormRotationAxis1'
pecIndex1=pecIndex; if (pecIndex1<0) pecIndex1+=SecondsPerWormRotationAxis1; if (pecIndex1>=SecondsPerWormRotationAxis1) pecIndex1-=SecondsPerWormRotationAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:104:51: note: in expansion of macro 'SecondsPerWormRotationAxis1'
pecIndex1=pecIndex; if (pecIndex1<0) pecIndex1+=SecondsPerWormRotationAxis1; if (pecIndex1>=SecondsPerWormRotationAxis1) pecIndex1-=SecondsPerWormRotationAxis1;
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:104:95: note: in expansion of macro 'SecondsPerWormRotationAxis1'
pecIndex1=pecIndex; if (pecIndex1<0) pecIndex1+=SecondsPerWormRotationAxis1; if (pecIndex1>=SecondsPerWormRotationAxis1) pecIndex1-=SecondsPerWormRotationAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:104:95: note: in expansion of macro 'SecondsPerWormRotationAxis1'
pecIndex1=pecIndex; if (pecIndex1<0) pecIndex1+=SecondsPerWormRotationAxis1; if (pecIndex1>=SecondsPerWormRotationAxis1) pecIndex1-=SecondsPerWormRotationAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:118:14: note: in expansion of macro 'StepsPerSecondAxis1'
if (l<-StepsPerSecondAxis1) l=-StepsPerSecondAxis1; if (l>StepsPerSecondAxis1) l=StepsPerSecondAxis1; // +/-1 sidereal rate range for corrections
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:118:65: note: in expansion of macro 'StepsPerSecondAxis1'
if (l<-StepsPerSecondAxis1) l=-StepsPerSecondAxis1; if (l>StepsPerSecondAxis1) l=StepsPerSecondAxis1; // +/-1 sidereal rate range for corrections
^
Pec:120: error: 'pecBuffer' was not declared in this scope
if (!pecFirstRecord) l=(l+((int)pecBuffer[pecIndex1]-128)*2)/3;
^
Pec:121: error: 'pecBuffer' was not declared in this scope
pecBuffer[pecIndex1]=l+128; // save the correction
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:128:62: note: in expansion of macro 'SecondsPerWormRotationAxis1'
int pecIndex2=pecIndex1-1; if (pecIndex2<0) pecIndex2+=SecondsPerWormRotationAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:128:62: note: in expansion of macro 'SecondsPerWormRotationAxis1'
int pecIndex2=pecIndex1-1; if (pecIndex2<0) pecIndex2+=SecondsPerWormRotationAxis1;
^
Pec:130: error: 'pecBuffer' was not declared in this scope
int l=pecBuffer[pecIndex2]-128;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:131:13: note: in expansion of macro 'StepsPerSecondAxis1'
if (l>StepsPerSecondAxis1) l=StepsPerSecondAxis1; if (l<-StepsPerSecondAxis1) l=-StepsPerSecondAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:131:64: note: in expansion of macro 'StepsPerSecondAxis1'
if (l>StepsPerSecondAxis1) l=StepsPerSecondAxis1; if (l<-StepsPerSecondAxis1) l=-StepsPerSecondAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:132:36: note: in expansion of macro 'StepsPerSecondAxis1'
pecTimerRateAxis1=((double)l/StepsPerSecondAxis1);
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino: In function 'void CleanupPec()':
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:147:25: note: in expansion of macro 'SecondsPerWormRotationAxis1'
for (int scc=0+3; scc<SecondsPerWormRotationAxis1+3; scc++) {
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:147:25: note: in expansion of macro 'SecondsPerWormRotationAxis1'
for (int scc=0+3; scc<SecondsPerWormRotationAxis1+3; scc++) {
^
Pec:148: error: 'pecBuffer' was not declared in this scope
j=pecBuffer[((scc)%SecondsPerWormRotationAxis1)]-128;
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:168:39: note: in expansion of macro 'SecondsPerWormRotationAxis1'
long sum_pec=0; for (int scc=0; scc<SecondsPerWormRotationAxis1; scc++) { sum_pec+=(int)pecBuffer[scc]-128; }
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:168:39: note: in expansion of macro 'SecondsPerWormRotationAxis1'
long sum_pec=0; for (int scc=0; scc<SecondsPerWormRotationAxis1; scc++) { sum_pec+=(int)pecBuffer[scc]-128; }
^
Pec:168: error: 'pecBuffer' was not declared in this scope
long sum_pec=0; for (int scc=0; scc<SecondsPerWormRotationAxis1; scc++) { sum_pec+=(int)pecBuffer[scc]-128; }
^
OnStep:212: error: 'StepsPerWormRotationAxis1' was not declared in this scope
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:171:40: note: in expansion of macro 'SecondsPerWormRotationAxis1'
double Ccf = (double)sum_pec/(double)SecondsPerWormRotationAxis1;
^
OnStep:208: error: 'StepsPerDegreeAxis1' was not declared in this scope
#define StepsPerSecondAxis1 ((double)StepsPerDegreeAxis1/240.0)
^
C:\Users\g3258\Documents\Arduino\OnStep\OnStep.ino:212:76: note: in expansion of macro 'StepsPerSecondAxis1'
#define SecondsPerWormRotationAxis1 ((long)(StepsPerWormRotationAxis1/StepsPerSecondAxis1))
^
C:\Users\g3258\Documents\Arduino\OnStep\Pec.ino:171:40: note: in expansion of macro 'SecondsPerWormRotationAxis1'
double Ccf = (double)sum_pec/(double)SecondsPerWormRotationAxis1;
^
Pec:181: error: 'pecBuffer' was not declared in this scope
pecBuffer[scc]=(int)pecBuffer[scc]+(lp1-lp2);
^
Pec:187: error: 'pecBuffer' was not declared in this scope
pecBuffer[0]-=sum_pec;
^
C:\Users\g3258\Documents\Arduino\OnStep\StepMode.ino: In function 'void StepperModeTrackingInit()':
StepMode:9: error: 'Axis1_EN' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Enabled); axis1Enabled=true;
^
StepMode:9: error: 'Axis1_Enabled' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Enabled); axis1Enabled=true;
^
StepMode:10: error: 'Axis2_EN' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Enabled); axis2Enabled=true;
^
StepMode:10: error: 'Axis2_Enabled' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Enabled); axis2Enabled=true;
^
StepMode:13: error: 'Axis1_Disabled' was not declared in this scope
digitalWrite(Axis1_EN,Axis1_Disabled); axis1Enabled=false;
^
StepMode:14: error: 'Axis2_Disabled' was not declared in this scope
digitalWrite(Axis2_EN,Axis2_Disabled); axis2Enabled=false;
^
C:\Users\g3258\Documents\Arduino\OnStep\Timer.ino: At global scope:
Timer:161: error: expected constructor, destructor, or type conversion before '(' token
ISR(TIMER1_COMPA_vect,ISR_NOBLOCK)
^
exit status 1
'MaxRate' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
|
|
This says that you selected an ESP8266 board, which is what you should do when you are configuring the ESP server.
toggle quoted message
Show quoted text
But when you are compiling OnStep, you have to select your MCU (Microcontroller unit). In this case, it is a Teensy 3.5 or 3.6, depending on what you physically have. So go to Tools, then Board, and select the correct board type, and try again, and see if that fixes the errors. On Sat, Jan 20, 2018 at 03:46 pm, <coachbosswife@...> wrote: Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None" |
|
JoAnn
oops, I forgot to change that. Still getting the same errors though.
|
|
Ok.
Post here your Config.xxx.h. There is an issue with the MaxRate part, or somewhere on the preceding lines. |
|
JoAnn
I did not turn it on, I thought I was supposed to turn on in the main file
#define MiniPCB_ON // <- Turn _ON to use this configuration compiled fine now. thanks. I will be right back with eps-01 questions though :) |
|