nasa / nasa/cFS-GroundSystem

An error while sending command through House Keeping (HK) Application

Open
#243 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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.

image

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:

  1. Go to 'Start Command System -> Display Page 'House Keeping'
  2. Click on 'Send' for any commands
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.