-
Notifications
You must be signed in to change notification settings - Fork 0
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
Andrewi/97 canlink bringup #99
Conversation
Hey Andrew, I have lots of studying to do until Tuesday. I'll be sure to have a look at your PR then. |
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.
Is the canlink/README
up to date?
Still need to add documentation for |
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.
I don't see where the Handler interface is, i.e. the pub-sub one which lets you attach behaviour to a CAN bus. The writers should implement this Handler interface. I don't think I should have to manually call writer.WriteFrameToFile
. Shouldn't that be automatic when attached?
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.
Looking really good.
@langei This PR now includes your can-broker
branch. Where's that branch at? It looks like @AndrewI26 did a good job integrating his work with yours. Is there anything else you need to do before putting this in?
Can you mention the |
The bus manager already supports transmitting frames to the can bus/can socket in the |
I think I don't see any value in a Handler-style This project is pretty similar to Python's
In the logging module, you directly call |
I like this a lot, because then we can remove the incoming channel functionality. I will work on this. Makes the bus manager cleaner since we don't need o distribute the incoming frames channel. I also like the idea of having handlers have the option to implement a filter function if they want to filter incoming frames. We could make a filter that acts like a canclient and drops frames if they are not contained within a specific dbc. I think this will work well I'm just not sure if it will be useful in the sil. I'll wait to code this. @BlakeFreer and @langei do you think this is useful or should we not even worry about implementing a filtering system. |
The beauty of making |
…bringup' into andrewi/97-canlink-bringup
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.
Looks really good, a few minor things. Did an initial review and will test it locally tomorrow.
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.
I'm happy with this. I'll let @langei give the final approval when he is
a9e854d
to
72c7110
Compare
#97 Added writer structs for json and ascii to handle file writing for tracer. Also added tests for both jsonWriter and asciiWriter. Changed tracer so that we write each frame to the trace file immediately after receiving the can frame through the socket. Added empty test for the tracer which just initializes the tracer, sleeps for 5 seconds, then closes the tracer. (Eventually we can add more robust testing for the tracer but just wanted to add this test for easy development. Just run the test then use cansend to ensure tracer is working)