my project handover timeline is the day after tomorrow plz hlp
this is a library i ve modified and that error comes up even if i comment the line or even the whole code .compiler seems to be stuck on it . thx in advance
//Copyright 2012 Igor Campos
//
//This file is part of CustomStepper.
//
//CustomStepper is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.
//
//CustomStepper is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with CustomStepper. If not, see <http://www.gnu.org/licenses/>.
#ifndef CUSTOMSTEPPER_H
#define CUSTOMSTEPPER_H
#if defined(ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
#define CONTINUOUS 0
#define ROTATIONS 1
#define STEPS 2
#define STOP 0
#define CW 1
#define CCW 2
class CustomStepper1
{
private:
boolean done;
byte pin1;
byte pin2;
byte pin3;
byte pin4;
byte noSteps;
byte steps[8];
byte nextStep;
byte direction1;
byte mode;
unsigned int stepsToGo;
unsigned int stepsGone;
unsigned int rotationsToGo;
unsigned int rotationsGone;
float stepCorrection;
float rpm1;
float spr1;
float time;
unsigned long timer;
void setTimer();
void calcTime();
void disable();
void step();
public:
CustomStepper1(byte pin1, byte pin2, byte pin3, byte pin4, byte steps[] = (byte[]){8, B10000000, B11000000, B01000000, B01100000, B00100000, B00110000, B00010000, B10010000}, float spr = 4075.7728395, float rpm = 12, byte direction = CW);
void setRPM1(float RPM1);
void setSPR1(float SPR1);
void setDirection1(byte direction1= CW);
/*void rotate1(unsigned int rotations1 = 0);
void rotate2(unsigned int rotations2 = 0);
void rotateDegrees1(float degrees1);*/
void run();
boolean isDone();
};
class CustomStepper2
{
private:
boolean done;
byte pin5;
byte pin6;
byte pin7;
byte pin8;
byte noSteps;
byte steps2[8];
byte nextStep;
byte direction2;
byte mode;
unsigned int stepsToGo;
unsigned int stepsGone;
unsigned int rotationsToGo;
unsigned int rotationsGone;
float stepCorrection;
float rpm2;
float spr2;
float time;
unsigned long timer;
void setTimer();
void calcTime();
void disable();
void step();
public:
CustomStepper2(byte pin5, byte pin6, byte pin7, byte pin8, byte steps2[] = (byte[]){8, B00001000, B00001100, B00000100, B00000110, B00000010, B00000011, B00000001, B10000001}, float spr = 4075.7728395, float rpm = 12, byte direction = CW);
void setRPM2(float RPM2);
void setSPR2(float SPR2);
void setDirection2(byte direction2 = CW);
/*void rotate1(unsigned int rotations1 = 0);
void rotate2(unsigned int rotations2 = 0);*/
void rotateDegrees2(float degrees2);
void run();
boolean isDone();
};
#endif
Moderator edit:
</mark> <mark>[code]</mark> <mark>
</mark> <mark>[/code]</mark> <mark>
tags added.