Skip to content
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

Open
wants to merge 15 commits into
base: roman
Choose a base branch
from
Open

Git Hash CAN Functions #29

wants to merge 15 commits into from

Conversation

equationcrunchor
Copy link
Collaborator

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.

msg.hash3 = HASH[3];
msg.hash4 = HASH[4];
msg.hash5 = HASH[5];
msg.board = 0;
Copy link
Collaborator

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:
Copy link
Collaborator

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.

@@ -78,9 +78,9 @@ void can_handle_bms_heartbeat(carstats_t *cs) {
cs->soc = msg.soc;
}

void can_handle_mc_temperature1(carstats_t *cs) {
Copy link
Collaborator

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.

@@ -43,7 +45,7 @@ void write_can_brakethrottle_msg() {
}

void write_can_left_wheel_speed_msg() {
LIMIT(can0_FrontCanNodeLeftWheelSpeed_period)
LIMIT(can0_FrontCanNodeLeftWheelSpeed_period);
Copy link
Collaborator

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.

@equationcrunchor
Copy link
Collaborator Author

Made suggested changes. But for some reason there's this plotting stuff?

@daniwhite
Copy link
Collaborator

daniwhite commented Oct 13, 2018

@mingfei Generally you should not include files if they're not related to your PR
Also @nistath thanks for removing them

@skoppula skoppula closed this Oct 16, 2018
@skoppula skoppula reopened this Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants