-
Notifications
You must be signed in to change notification settings - Fork 1
Generated Torpedo Board Component #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
cartercooper
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure everything builds still and then you can merge this.
| @@ -0,0 +1,11 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change this file
| static const CAN_HWConfig_S CAN_HWConfig = | ||
| { | ||
| // GPIO | ||
| .rxPin = 8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are not using these pins for CAN in your schematic.
| static const debug_HWConfig_S debug_HWConfig = | ||
| { | ||
| // GPIO | ||
| .rxPin = 12, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are not using these pins for UART in your schematic.
|
|
||
| [MESSAGE_HANDLER_RX_CHANNEL_TESTER] = | ||
| { | ||
| .messageID = protocol_MID_MC_deviceName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the message ID for motor controller. Use the one for torpedo board. Create one if it doesn't exist.
| .callbackEnable = true, | ||
| .initValue = | ||
| { | ||
| .MC_deviceName = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to Torpedo Board
| { | ||
| [MESSAGE_HANDLER_TX_CHANNEL_RID] = | ||
| { | ||
| .messageID = protocol_MID_MC_deviceName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Torpedo board
| { | ||
| case MESSAGE_HANDLER_TX_CHANNEL_RID: | ||
| { | ||
| memcpy(message->MC_deviceName.name, "MTR_BRD", 7U); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Torpedo board
Copied motor controller 3 component and changed all the make files and etc to be torpedo board.