![]() |
Speeduino
|
#include <Arduino.h>#include "idle.h"#include "elapsed_time.h"#include "maths.h"#include "timers.h"#include "preprocessor.h"#include "src/PID/integerPID.h"#include "units.h"#include "globals.h"#include "src/pins/fastOutputPin.h"Classes | |
| struct | StepperIdle |
Macros | |
| #define | STEPPER_FORWARD 0 |
| #define | STEPPER_BACKWARD 1 |
| #define | STEPPER_POWER_WHEN_ACTIVE 0 |
| #define | STEPPER_LESS_AIR_DIRECTION() ((configPage9.iacStepperInv == 0) ? STEPPER_BACKWARD : STEPPER_FORWARD) |
| #define | STEPPER_MORE_AIR_DIRECTION() ((configPage9.iacStepperInv == 0) ? STEPPER_FORWARD : STEPPER_BACKWARD) |
Enumerations | |
| enum | StepperStatus { SOFF , STEPPING , COOLING } |
Functions | |
| static void | enableIdle (void) |
| static void | initialiseIdleUpOutput (void) |
| static void | setIdlePidTunings (const config6 &page6) |
| static void | configureIdlePID (const config6 &page6, uint32_t minOutput, uint32_t maxOutput, uint16_t initialTarget) |
| void | initialiseIdle (bool forcehoming) |
| static uint8_t | checkForStepping (void) |
| static void | doStep (void) |
| static uint8_t | calculateIdleLoad (const config9 &page9, const StepperIdle &idleState) |
| static void | updateIdleStepAndLoad (statuses ¤t, const config9 &page9, StepperIdle &idleState) |
| static uint8_t | isStepperHomed (void) |
| void | idleControl (void) |
| void | disableIdle (void) |
| void | idleInterrupt (void) |
Variables | |
| static uint8_t | idleUpOutputHIGH = HIGH |
| static uint8_t | idleUpOutputLOW = LOW |
| static uint8_t | idleCounter |
| static uint8_t | idleTaper |
| static struct StepperIdle | idleStepper |
| static bool | idleOn |
| static uint8_t | idleInitComplete = 99 |
| static unsigned int | iacStepTime_uS |
| static unsigned int | iacCoolTime_uS |
| static unsigned int | completedHomeSteps |
| static volatile bool | idle_pwm_state |
| static bool | lastDFCOValue |
| static uint16_t | idle_pwm_max_count |
| static volatile unsigned int | idle_pwm_cur_value |
| static int32_t | idle_pid_target_value |
| static int32_t | FeedForwardTerm |
| static uint32_t | idle_pwm_target_value |
| static int32_t | idle_cl_target_rpm |
| static fastOutputPin_t | idle_pin |
| static fastOutputPin_t | idle2_pin |
| constexpr table2D_u8_u8_10 iacPWMTable & | configPage6 |
| integerPID | idlePID |
| #define STEPPER_BACKWARD 1 |
| #define STEPPER_FORWARD 0 |
| #define STEPPER_LESS_AIR_DIRECTION | ( | ) | ((configPage9.iacStepperInv == 0) ? STEPPER_BACKWARD : STEPPER_FORWARD) |
| #define STEPPER_MORE_AIR_DIRECTION | ( | ) | ((configPage9.iacStepperInv == 0) ? STEPPER_FORWARD : STEPPER_BACKWARD) |
| #define STEPPER_POWER_WHEN_ACTIVE 0 |
| enum StepperStatus |
|
inlinestatic |
|
inlinestatic |
|
static |
| void disableIdle | ( | void | ) |
|
inlinestatic |
|
inlinestatic |
| void idleControl | ( | void | ) |
| void idleInterrupt | ( | void | ) |
| void initialiseIdle | ( | bool | forcehoming | ) |
|
inlinestatic |
|
inlinestatic |
|
static |
|
inlinestatic |
|
static |
|
constexpr |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| integerPID idlePID |
|
static |
|
static |
|
static |
|
static |
|
static |