Thank you for your reply. So you mean: HAL_MTR_Handle halMtrHandle[1]; //!< the handle for the hardware abstraction //!< layer to motor control HAL_MTR_Obj halMtr[1]; //!< the hardware abstraction layer object //!< to motor control And then remove functions like these: 1) After all this, is there then a method/variable that indicates that motor two has been deactivated? 2) In your opinion, does it make sense to do all this if I only want to use one motor ? ..maybe the resources used by cpu, pwm etc. to drive the second motor (which isn't there) are derisory/insignificant ..however, consider that the driver and the engine will have to run for 8 hours
↧