A Roboteq controller c++ interface to allow a Brushless motor control on a CAN bus. Used for a FBL2360 reference.
Dependencies: CAN_FIFO_Triporteur
Diff: RoboteqController.cpp
- Revision:
- 7:33d64a3c48a2
- Parent:
- 6:f9c4795448c1
--- a/RoboteqController.cpp Wed Jun 13 09:07:45 2018 +0000 +++ b/RoboteqController.cpp Mon Jun 25 14:52:57 2018 +0000 @@ -147,3 +147,8 @@ SDO_command(0, cCANGO, mot_num, data); } + +int16_t RoboteqController::getSpeed(uint8_t mot_num){ + if(mot_num == 1) return speed1; + else if(mot_num == 2) return speed2; +} \ No newline at end of file