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
MyAxis.h@3:4deb86f4ccfe, 2016-06-08 (annotated)
- Committer:
- acodd
- Date:
- Wed Jun 08 13:53:50 2016 +0000
- Revision:
- 3:4deb86f4ccfe
As used for much of head tuning process documented in "T3 head Tuning" document.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
acodd | 3:4deb86f4ccfe | 1 | //#ifndef MYAXIS_H |
acodd | 3:4deb86f4ccfe | 2 | #define MYAXIS_H |
acodd | 3:4deb86f4ccfe | 3 | |
acodd | 3:4deb86f4ccfe | 4 | // Axis Specific structure |
acodd | 3:4deb86f4ccfe | 5 | struct MyAxis { |
acodd | 3:4deb86f4ccfe | 6 | int Number; |
acodd | 3:4deb86f4ccfe | 7 | float jog; |
acodd | 3:4deb86f4ccfe | 8 | int sysjogdir; |
acodd | 3:4deb86f4ccfe | 9 | bool sinusoidrun; |
acodd | 3:4deb86f4ccfe | 10 | bool scoping; |
acodd | 3:4deb86f4ccfe | 11 | bool calcmyratio; |
acodd | 3:4deb86f4ccfe | 12 | float dynamicratio; |
acodd | 3:4deb86f4ccfe | 13 | bool setramp; |
acodd | 3:4deb86f4ccfe | 14 | bool setramp_x; |
acodd | 3:4deb86f4ccfe | 15 | bool moveme; |
acodd | 3:4deb86f4ccfe | 16 | double ramp; |
acodd | 3:4deb86f4ccfe | 17 | int run_count_jog; |
acodd | 3:4deb86f4ccfe | 18 | float run_count; |
acodd | 3:4deb86f4ccfe | 19 | float System_position; |
acodd | 3:4deb86f4ccfe | 20 | float System_position_prev; |
acodd | 3:4deb86f4ccfe | 21 | double Sys_follow_error; |
acodd | 3:4deb86f4ccfe | 22 | double SysDemandPos; |
acodd | 3:4deb86f4ccfe | 23 | double SysDemand; |
acodd | 3:4deb86f4ccfe | 24 | double SysProfilerVel; |
acodd | 3:4deb86f4ccfe | 25 | double SysDerivedVel; |
acodd | 3:4deb86f4ccfe | 26 | double SysActualVel; |
acodd | 3:4deb86f4ccfe | 27 | double SysDemand_Prev; |
acodd | 3:4deb86f4ccfe | 28 | float start_SysPos; |
acodd | 3:4deb86f4ccfe | 29 | double MotorDemand_DerivedVel; |
acodd | 3:4deb86f4ccfe | 30 | float ratio; |
acodd | 3:4deb86f4ccfe | 31 | float Motor_scale; //15728; //(based on 1800RPM, 2^19 encoder and 0.001s loop) |
acodd | 3:4deb86f4ccfe | 32 | double Motor_final; |
acodd | 3:4deb86f4ccfe | 33 | float c_moving; |
acodd | 3:4deb86f4ccfe | 34 | float c_stationary; |
acodd | 3:4deb86f4ccfe | 35 | float Jog_1; |
acodd | 3:4deb86f4ccfe | 36 | float Jog_2; |
acodd | 3:4deb86f4ccfe | 37 | float Kp; |
acodd | 3:4deb86f4ccfe | 38 | float Kp_Sys; |
acodd | 3:4deb86f4ccfe | 39 | float Kff; |
acodd | 3:4deb86f4ccfe | 40 | float Kff_Sys; |
acodd | 3:4deb86f4ccfe | 41 | double follow_error; |
acodd | 3:4deb86f4ccfe | 42 | float Feed_Forward; |
acodd | 3:4deb86f4ccfe | 43 | float Prev_Motor_final; |
acodd | 3:4deb86f4ccfe | 44 | int Motor_Inst_Pos; |
acodd | 3:4deb86f4ccfe | 45 | double MotorDemandPos; |
acodd | 3:4deb86f4ccfe | 46 | int MotorLast_Inst_Pos; |
acodd | 3:4deb86f4ccfe | 47 | float Motor_Vel; |
acodd | 3:4deb86f4ccfe | 48 | float Motor_position; |
acodd | 3:4deb86f4ccfe | 49 | float dojog; |
acodd | 3:4deb86f4ccfe | 50 | float sysdojog; |
acodd | 3:4deb86f4ccfe | 51 | int jogdir; |
acodd | 3:4deb86f4ccfe | 52 | float start_MotPos; |
acodd | 3:4deb86f4ccfe | 53 | }; |
acodd | 3:4deb86f4ccfe | 54 | extern MyAxis Pan; |
acodd | 3:4deb86f4ccfe | 55 | extern MyAxis Tilt; |