Part Number: LAUNCHXL-F28069M
Other Parts Discussed in Thread: MOTORWARE
Dear Yanming Luo:I'm experimenting with instaspin Lab10e routines and I want to modify user.h externally, therefore, I replace the original constants with floating point variables. Error during compilation, CCS prompts "Type#28 expression must have a constant value", the reason is that the motor parameter definition in user.h #define USER_MOTOR_MAX_CURRENT (Motor_MaxCurrent_A), resulting in volatile MOTOR_Vars_t gMotorVars = MOTOR_Vars_INIT,It contains_IQ(0.1 * USER_MOTOR_MAX_CURRENT ), other no problem,can you please help me with this issue? In addition, what should I pay attention to when modifying user.h with floating point numbers?
Looking forward to your help,Thanks!