Francesco Masciari
/
can_multithreadingX_vesctest
A test for vescs
canid.hpp@2:12431dd6475f, 2019-06-15 (annotated)
- Committer:
- DunkelAmber
- Date:
- Sat Jun 15 09:31:22 2019 +0000
- Revision:
- 2:12431dd6475f
feat: itocan supports template
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DunkelAmber | 2:12431dd6475f | 1 | #ifndef __CANID__ |
DunkelAmber | 2:12431dd6475f | 2 | #define __CANID__ |
DunkelAmber | 2:12431dd6475f | 3 | |
DunkelAmber | 2:12431dd6475f | 4 | enum can_commands { |
DunkelAmber | 2:12431dd6475f | 5 | /* VESCs */ |
DunkelAmber | 2:12431dd6475f | 6 | BLDC_SET_DUTY = 0, // Set the duty cycle of the motor |
DunkelAmber | 2:12431dd6475f | 7 | BLDC_SET_CURRENT, // Set the motor current |
DunkelAmber | 2:12431dd6475f | 8 | BLDC_SET_CURRENT_BRAKE, // Set the braking current |
DunkelAmber | 2:12431dd6475f | 9 | BLDC_SET_RPM, // Set the motor ERPM |
DunkelAmber | 2:12431dd6475f | 10 | BLDC_SET_POS, // Set the motor position |
DunkelAmber | 2:12431dd6475f | 11 | BLDC_FILL_RX_BUFFER, // Copy data to the VESC recieve buffer |
DunkelAmber | 2:12431dd6475f | 12 | BLDC_FILL_RX_BUFFER_LONG, // Copy data to the VESC recieve buffer |
DunkelAmber | 2:12431dd6475f | 13 | BLDC_PROCESS_RX_BUFFER, // Process a command with data from the recieve buffer |
DunkelAmber | 2:12431dd6475f | 14 | BLDC_PROCESS_SHORT_BUFFER, // Process a command with data from the recieve buffer |
DunkelAmber | 2:12431dd6475f | 15 | BLDC_STATUS, // The motor status (1 of 3) |
DunkelAmber | 2:12431dd6475f | 16 | BLDC_STATUS2, // The motor status (2 of 3) |
DunkelAmber | 2:12431dd6475f | 17 | BLDC_STATUS3, // The motor status (3 of 3) |
DunkelAmber | 2:12431dd6475f | 18 | |
DunkelAmber | 2:12431dd6475f | 19 | /* Mobility Controller */ |
DunkelAmber | 2:12431dd6475f | 20 | MOBILITY_GO = 15, // Set the motor speed |
DunkelAmber | 2:12431dd6475f | 21 | |
DunkelAmber | 2:12431dd6475f | 22 | /* BMS - Battery Management System */ |
DunkelAmber | 2:12431dd6475f | 23 | |
DunkelAmber | 2:12431dd6475f | 24 | /* Arm Controller */ |
DunkelAmber | 2:12431dd6475f | 25 | |
DunkelAmber | 2:12431dd6475f | 26 | /* Arm Joint Controllers */ |
DunkelAmber | 2:12431dd6475f | 27 | |
DunkelAmber | 2:12431dd6475f | 28 | /* Scientific Module */ |
DunkelAmber | 2:12431dd6475f | 29 | SCIENTIFIC_BOX_COMMANDS = 201, |
DunkelAmber | 2:12431dd6475f | 30 | SCIENTIFIC_BOX_DATA, |
DunkelAmber | 2:12431dd6475f | 31 | SCIENTIFIC_ENVIRONMENT_DATA |
DunkelAmber | 2:12431dd6475f | 32 | |
DunkelAmber | 2:12431dd6475f | 33 | /* Turret Pan-Tilt Controller */ |
DunkelAmber | 2:12431dd6475f | 34 | |
DunkelAmber | 2:12431dd6475f | 35 | }; |
DunkelAmber | 2:12431dd6475f | 36 | |
DunkelAmber | 2:12431dd6475f | 37 | #endif // __CANID__ |