-
Notifications
You must be signed in to change notification settings - Fork 4
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
Git Hash CAN Functions #29
base: roman
Are you sure you want to change the base?
Conversation
src/bms/src/canmgr.c
Outdated
msg.hash3 = HASH[3]; | ||
msg.hash4 = HASH[4]; | ||
msg.hash5 = HASH[5]; | ||
msg.board = 0; |
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.
If you look at the enum_segments.h
file in the can library it shows what enums are generated. You should use the names from that enum (for example,msg.board = can0_GitHash_board_BMS
).
is_big_endian: true | ||
period: 1000 ms | ||
segments: | ||
hash0: |
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.
Might be nice to add a comment explaining exactly what hash0, hash1, etc. are for.
src/dashboard/src/carstats.c
Outdated
@@ -78,9 +78,9 @@ void can_handle_bms_heartbeat(carstats_t *cs) { | |||
cs->soc = msg.soc; | |||
} | |||
|
|||
void can_handle_mc_temperature1(carstats_t *cs) { |
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.
Did you commit this separately into roman? I'm suspicious this is what's causing your conflict.
src/frontCANnode/src/output.c
Outdated
@@ -43,7 +45,7 @@ void write_can_brakethrottle_msg() { | |||
} | |||
|
|||
void write_can_left_wheel_speed_msg() { | |||
LIMIT(can0_FrontCanNodeLeftWheelSpeed_period) | |||
LIMIT(can0_FrontCanNodeLeftWheelSpeed_period); |
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.
What is this change in here for? It seems unrelated.
Made suggested changes. But for some reason there's this plotting stuff? |
This is the new member project to allow all the boards to send out part of their git hash over CAN once a second. There are also some fixes of typos that were causing compile errors.