As used for BB testing April / May 2016 (with the odd mod to the scope outputs)

Dependencies:   iC_MU mbed-rtos mbed

Fork of SweptSine by Vitec Group

Revision:
3:4deb86f4ccfe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MyAxis.h	Wed Jun 08 13:53:50 2016 +0000
@@ -0,0 +1,55 @@
+//#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;