-
Notifications
You must be signed in to change notification settings - Fork 1
Added additional ON/OFF functionality for EPS and other subsystems #80
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
Conversation
rrasmuss4200
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.
Awesome start overall.
Could you also include a little readme or text with about how to use it? i.e How to send commands and see the updates on the client side.
You can also consider looking into the GPIO library in Python for this if it fits in well
Thank you for the feedback!
|
rrasmuss4200
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.
This looks good Sahil. Sorry I don't have my laptop to run it so I can approve it now but hopefully someone can do this quick and we can use it for simulating functionalities onboard with the EPS. Good work
|
Your README looks excellent, but I couldn't get the last two commands to give me the expected output stated in your README. Instead, I got I'm not sure if I just couldn't find it either but what is the ON/OFF command for the EPS? Also for a future PR, I'm pretty sure the |
|
Yes that's right. Those are deprecated. Should definitely get rid of those |
|
@kulovac were you testing this with the eps_handler in ex3_software? If not, I think that is something we should do. @sahilfidha I can show you how to get that repo built and how to run the scripts we were using for testing there sometime today or at the meeting tonight, let me know. |
|
The idea with GPIO is that it is what we will be using to communicate with the real EPS opposed to TCP so we could try to use some sort of virtual GPIO with the simulated EPS to make it more realistic. |
I forgot to add the EPS ON/OFF command to the README. It should work now. I'm unsure why you are getting the last two commands, but the code may have a flaw. I haven't been able to test it because I do not have the sort of environment set up on my laptop, so I am sort of winging it. About the 'CommandFactory' and 'CommandHandler', how are we handling commands if these are not used? Are we looking to refactor these files, create new ones, or have each subsystem handle commands internally? I am unsure of what was planned. |
I would appreciate help in this matter! I haven't been able to test or run anything on my laptop and it would be really helpful to be able to run everything for future work. |
Not yet I've still been struggling with a build issue in the ipc.rs, but yes that is something we should do. |
For now I think it's fine to ignore that but if you take a look at the other simulated subsystems (e.g. DFGM IRIS ADCS) you'll see that they all define their own command format. There is a spreadsheet with all the command definitions. But in the future it would be nice to refactor the EPS simulated subsystem to not use the CommandHandler/CommandFactory, this can be a different PR. Here is the spreadsheet if you haven't seen this. |
Sounds good. I am unable to merge it yet. Once I merge this, I will create another PR and work on this. |
|
After finally being able to run it on my own laptop, I see a bunch of issues with the code. Especially with how the commands are being handled. Not how I expected it to run, so I'll tweak it a bit more before opening the PR again. |
|
I completely rewrote the EPS simulated subsystem. It does not use command_handler or command_factory and has its own logic for commands. I tested it on my laptop, and it works as mentioned in the README. Please let me know if this is good or if changes are required. |
|
@rrasmuss4200 @kulovac @DrakBoul, could one of you review this PR and let me know if it looks good? I'm just commenting in case you folks were not aware of this. |
|
Thanks for pinging us again. Will review it this week fs |
|
Ok yes I got the same output as Kaaden. I assume the invalid command type error is happening because the eps_handler is not sending the simulated EPS the correct command to 'turn it on'. As for the eps_handler crashing after a couple failed commands, I do not know. The next step would be for @sahilfidha to make a branch on ex3_software and make the eps_handler compatible with his simualted subsystem. The plan for this simulated subsystem is to help with regression testing; to make sure our pipeline is passing data as expected. This can range from tests for turning it and other subsystems on and off, or even a LEOP regression test. At the end of the day, this subsystem will be useful for getting values from a 'dummy' EPS. |
rrasmuss4200
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.
Last thing to look into. When I start a netcat session on
nc 127.0.0.1 8080
I send a command and then the session disconnects. Is this something with your subsystem or the way netcat communicates with it?
Priority would be making this work with the full test script on ex3_software so it can be hooked up to the whole pipeline. Overall great work though. Let's move forward with getting it working with the eps_handler.



EPS ON/OFF Functionality:
Subsystem ON/OFF Functionality:
Notes: