An error while sending command through House Keeping (HK) Application
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 102
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
A clear and concise description of what the bug is.
I'm trying to add HK application by following ground system guide : https://github.com/nasa/cFS-GroundSystem/blob/main/Guide-GroundSystem.md
I'm getting below error whenever I send command through Ground SYstem GUI.
Traceback (most recent call last):
File "/home/pi/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/Parameter.py", line 67, in ProcessSendButton
sendSuccess = self.mcu.send_packet()
File "/home/pi/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/MiniCmdUtil.py", line 136, in send_packet
self.assemble_packet()
File "/home/pi/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/MiniCmdUtil.py", line 120, in assemble_packet
pri_header = self.assemble_pri_header()
File "/home/pi/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/MiniCmdUtil.py", line 77, in assemble_pri_header
self.assemble_payload()
File "/home/pi/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/MiniCmdUtil.py", line 99, in assemble_payload
endian = type_sig.endian or self.endian
UnboundLocalError: local variable 'type_sig' referenced before assignment
To Reproduce
Steps to reproduce the behavior:
- Go to 'Start Command System -> Display Page 'House Keeping'
- Click on 'Send' for any commands
- See error
Expected behavior
Send the integer command to the object
Code snips
If applicable, add references to the software.
System observed on:
- Hardware : Raspberry Pi Zero
- OS: Raspbian GNU/Linux 11 (bullseye)"
- Versions : 11 (bullseye)"
Additional context
Add any other context about the problem here.
Reporter Info
Jaehyun Park (UT Dallas)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Subsystems/cmdGui/Parameter.py and follow ProcessSendButton into MiniCmdUtil.py, especially assemble_payload and the send_packet call path. Reproduce the issue from the House Keeping page using the documented command-send steps, then verify that an integer command is sent without the reported UnboundLocalError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100