As used for motor testing May / June 2016

Dependencies:   iC_MU mbed-rtos mbed

Fork of SweptSine by Vitec Group

MyAxis.h

Committer:
acodd
Date:
2016-06-08
Revision:
3:463edcfc09c5

File content as of revision 3:463edcfc09c5:

//#ifndef MYAXIS_H
#define MYAXIS_H

// Axis Specific structure
struct MyAxis {
    int Number;    
    float jog;
    int sysjogdir;    
    bool sinusoidrun;
    bool scoping;
    bool calcmyratio;
    float dynamicratio;
    bool setramp;
    bool setramp_x;
    bool moveme;
    double ramp;
    int run_count_jog;
    float run_count;
    float System_position;
    float System_position_prev;
    double Sys_follow_error;
    double SysDemandPos;
    double SysDemand;
    double SysProfilerVel;
    double SysDerivedVel;
    double SysActualVel;
    double SysDemand_Prev;
    float start_SysPos;
    double MotorDemand_DerivedVel;
    float ratio;
    float Motor_scale; //15728;  //(based on 1800RPM, 2^19 encoder and 0.001s loop)
    double Motor_final;
    float c_moving;
    float c_stationary;
    float Jog_1;
    float Jog_2;
    float Kp;
    float Kp_Sys;
    float Kff;
    float Kff_Sys;
    double follow_error;
    float Feed_Forward;
    float Prev_Motor_final;
    int Motor_Inst_Pos;
    double MotorDemandPos;
    int MotorLast_Inst_Pos;
    float Motor_Vel;
    float Motor_position;
    float dojog;
    float sysdojog;
    int jogdir;
    float start_MotPos;
};
extern MyAxis Pan;
extern MyAxis Tilt;