bool Missile::setSlotMaxAccel(const Basic::Number* const msg) { bool ok = false; if (msg != 0) { setMaxAccel(msg->getReal()); ok = true; } return ok; }
uint8_t Stepper::begin(){ if(this->stepperIndex < MAX_STEPPERS){ pinMode(dirPin, OUTPUT); pinMode(stepPin, OUTPUT); setMaxAccel(DEFAULT_ACCEL); if(isTimerActive() == false) initISR(); steppers[this->stepperIndex].isActive = true; steppers[this->stepperIndex].stepper = this; } return this->stepperIndex; }