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

Downlink Shift id1 and id2 fields not being applied in uplinks #863

Open
shihaocao opened this issue Feb 10, 2022 · 2 comments
Open

Downlink Shift id1 and id2 fields not being applied in uplinks #863

shihaocao opened this issue Feb 10, 2022 · 2 comments

Comments

@shihaocao
Copy link
Collaborator

shihaocao commented Feb 10, 2022

Using the same test harnessing in #862, it is observed that specifically, this uplink below does not cause the downlink.shift_id1 and downlink.shift_id2 fields are not being updated, or at least do not change from 0 by the time DownlinkParser is being executed.

[
    {
    "field": "radio.max_wait",
    "value": 10420
    },
    {
    "field": "radio.max_transceive",
    "value": 10
    },
    {
    "field": "adcs_cmd.havt_disable18",
    "value": true
    },
    {
    "field": "adcs.state",
    "value": 1
    },
    {
    "field": "gomspace.piksi_off",
    "value": true
    },
    {
    "field": "gomspace.power_cycle_output4_cmd",
    "value": true
    },
    {
    "field": "downlink.shift_id1",
    "value": 19
    },
    {
    "field": "downlink.shift_id2",
    "value": 2
    }
]
@shihaocao
Copy link
Collaborator Author

Sample debug output from bugfix/uplink:

[2022-02-09 22:54:15.181655] (ERROR) UplinkConsumer::execute()

[2022-02-09 22:54:15.181655] (ERROR) Null or length 0

[2022-02-09 22:54:15.235655] (ERROR) DP pre execute
[2022-02-09 22:54:15.235655] (ERROR) shift_flow_ids1_f.get() = 0
[2022-02-09 22:54:15.235655] (ERROR) shift_flow_ids2_f.get() = 0
[2022-02-09 22:54:15.235655] (ERROR) DP post execute

[2022-02-09 22:54:15.327655] Successfully sent telemetry to FlightSoftware.
\x79\x11\x7c\x78\x22\x16\x88\xe6\x44\x52\x0\xc0\x11\x2d\xd\xa\x0
[2022-02-09 22:54:15.347655] (ERROR) UplinkConsumer::execute()

[2022-02-09 22:54:15.347655] (ERROR) Validating

[2022-02-09 22:54:15.347655] (ERROR) packet bytes in validate: 17

[2022-02-09 22:54:15.347655] (ERROR) Validate result 0

[2022-02-09 22:54:15.347655] (ERROR) packet bytes in validate: 17

[2022-02-09 22:54:15.405655] (ERROR) DP pre execute
[2022-02-09 22:54:15.405655] (ERROR) shift_flow_ids1_f.get() = 0
[2022-02-09 22:54:15.405655] (ERROR) shift_flow_ids2_f.get() = 0
[2022-02-09 22:54:15.405655] (ERROR) DP post execute
[2022-02-09 22:54:15.518655] (ERROR) UplinkConsumer::execute()

[2022-02-09 22:54:15.518655] (ERROR) Null or length 0

[2022-02-09 22:54:15.575655] (ERROR) DP pre execute
[2022-02-09 22:54:15.575655] (ERROR) shift_flow_ids1_f.get() = 0
[2022-02-09 22:54:15.575655] (ERROR) shift_flow_ids2_f.get() = 0
[2022-02-09 22:54:15.575655] (ERROR) DP post execute
[2022-02-09 22:54:15.692655] (ERROR) UplinkConsumer::execute()

As observed from above, either our uplinks do not contain the shift flow fields, or UplinkConsumer isn't Consuming them, or some other FSW is mutating them to be 0 before it gets to DownlinkParser

@Duncan-McD
Copy link
Member

Seems to be fixed by removing the print statements - tested on the bugfix/uplink branch on mac with no print statements, and then tested on the
862-uplink-swap-fix branch (with the linux error code -9 fix and no print statements) and it works:
image

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

No branches or pull requests

2 participants