stepRocker servo Open Source TMCL
1.00
|
Motor monitoring. More...
#include <limits.h>
#include <stdlib.h>
#include "derivative.h"
#include "bits.h"
#include "stepRocker.h"
#include "Globals.h"
#include "IO.h"
#include "SysTick.h"
#include "TMC429.h"
#include "TMC262.h"
Functions | |
void | SystemControl (void) |
Motor monitoring. More... | |
Variables | |
static UCHAR | ActualAxis |
monitored axis | |
static UINT | Delay |
Delay timer. | |
static UCHAR | StandbyTimerInitFlag |
TRUE after the standby timers have been intialized. | |
static UINT | StandbyTimer [N_O_MOTORS] |
Standby timers. | |
static UINT | FreewheelingTimer [N_O_MOTORS] |
Freewheeling timers. | |
Motor monitoring.
This file contains the SystemControl function which does all necessary motor monitoring tasks.
SystemControl | ( | void | ) |
Motor monitoring.
This function must be called periodically from the main loop and does some monitoring tasks, e.g. lowering the current after the motor has not been moving for some time.