From 4d1ab758ea0bdd9cd9f788906eb28bbd38304507 Mon Sep 17 00:00:00 2001 From: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:10:43 -0800 Subject: [PATCH] Fix SignalGen commands in integration tests (#3075) * Fix SignalGen commands in integration tests * Fix formatting --- Ref/SignalGen/SignalGen.hpp | 2 +- Ref/SignalGen/docs/sdd.md | 2 +- Ref/test/int/ref_integration_test.py | 8 +++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Ref/SignalGen/SignalGen.hpp b/Ref/SignalGen/SignalGen.hpp index 49196f6d43..9ad5f709e9 100644 --- a/Ref/SignalGen/SignalGen.hpp +++ b/Ref/SignalGen/SignalGen.hpp @@ -52,7 +52,7 @@ namespace Ref { U32 cmdSeq /*!< The command sequence number*/ ) final; - //! Handler implementation for command SignalGen_Dp + //! Handler implementation for command Dp //! //! Signal Generator Settings void Dp_cmdHandler( diff --git a/Ref/SignalGen/docs/sdd.md b/Ref/SignalGen/docs/sdd.md index 50c35dad70..145fbbfdbc 100644 --- a/Ref/SignalGen/docs/sdd.md +++ b/Ref/SignalGen/docs/sdd.md @@ -26,7 +26,7 @@ The `Ref::SignalGen` component has the following component diagram: #### 3.1.2 Data Products -The `Ref::SignalGen` component will generate data products using the `SignalGen_Dp` command. +The `Ref::SignalGen` component will generate data products using the `Dp` command. It will demonstrate the two different ways to request data product buffers and will generate a data product based on storing a commanded number of diff --git a/Ref/test/int/ref_integration_test.py b/Ref/test/int/ref_integration_test.py index 8523e42e01..dc757d43e6 100644 --- a/Ref/test/int/ref_integration_test.py +++ b/Ref/test/int/ref_integration_test.py @@ -255,18 +255,16 @@ def test_active_logger_filter(fprime_test_api): def test_signal_generation(fprime_test_api): """Tests the behavior of signal gen component""" - fprime_test_api.send_and_assert_command( - "Ref.SG4.SignalGen_Settings", [1, 5, 0, "SQUARE"] - ) + fprime_test_api.send_and_assert_command("Ref.SG4.Settings", [1, 5, 0, "SQUARE"]) # First telemetry item should fill only the first slot of the history history = [0, 0, 0, 5] pair_history = [{"time": 0, "value": value} for value in history] info = {"type": "SQUARE", "history": history, "pairHistory": pair_history} - fprime_test_api.send_and_assert_command("Ref.SG4.SignalGen_Toggle") + fprime_test_api.send_and_assert_command("Ref.SG4.Toggle") fprime_test_api.assert_telemetry("Ref.SG4.History", history, timeout=6) fprime_test_api.assert_telemetry("Ref.SG4.PairHistory", pair_history, timeout=1) fprime_test_api.assert_telemetry("Ref.SG4.Info", info, timeout=1) - fprime_test_api.send_and_assert_command("Ref.SG4.SignalGen_Toggle") + fprime_test_api.send_and_assert_command("Ref.SG4.Toggle") def test_seqgen(fprime_test_api):