Go to file
2025-10-24 11:19:22 +02:00
.github add spline for trajectory in editor 2025-10-13 10:34:59 +02:00
.vscode aggiunti i test unit, fix alcuni import, aggiunto il report di coverage 2025-10-15 14:12:02 +02:00
cpp/DspRIS aggiunto handler per messaggio di tipo ris_status 2025-10-17 10:00:44 +02:00
doc Initial project structure created by ProjectInitializerTool 2025-10-01 12:18:07 +02:00
target_simulator sistemato aggiornamento tabella sfp_debug_window 2025-10-24 11:19:22 +02:00
tests separati gli scenari dalla configurazione 2025-10-22 10:03:43 +02:00
tools aggiornamento calcolo spline per manovre dinamiche, riorganizzazione codice 2025-10-21 10:29:35 +02:00
.gitignore Chore: Stop tracking files based on .gitignore update. 2025-10-21 13:05:01 +02:00
GEMINI.md first commit 2025-10-01 14:17:56 +02:00
pyproject.toml aggiunti i test unit, fix alcuni import, aggiunto il report di coverage 2025-10-15 14:12:02 +02:00
README.md separati gli scenari dalla configurazione 2025-10-22 10:03:43 +02:00
run_tests.bat raggiunta una copertura del 67 % per i test automatici 2025-10-16 15:58:41 +02:00
scenarios.json sistemato aggiornamento tabella sfp_debug_window 2025-10-24 11:19:22 +02:00
settings.json sistemato aggiornamento tabella sfp_debug_window 2025-10-24 11:19:22 +02:00
SUM7056227 Rev. A.pdf aggiunto l'invio del comando tgtinit con i parametri corretti. 2025-10-20 14:09:01 +02:00
target_simulator.ico Initial project structure created by ProjectInitializerTool 2025-10-01 12:18:07 +02:00
TN-IMGSER GRIFO Video over IP Rev.A1.pdf aggiunta nella finestra di debug sfp l'interpretazione dei dati header 2025-10-16 11:49:57 +02:00
todo.md tolto connect da ppi 2025-10-24 08:29:29 +02:00

target_simulator

A brief description of target_simulator.

Features

  • Feature 1
  • Feature 2

Getting Started

...

Contributing

...

License

...

Note: debug GUI vs simulation command behaviour

The project provides two different code paths for sending target update commands:

  • Debug GUI (SFP Packet Inspector / Simple Target Sender):

    • When you press "Send Target" from the debug window, the GUI sends a tgtset command that includes state qualifiers such as /s (active), /t (traceable) and /r (restart) if the corresponding checkboxes are set.
    • This behaviour is intentional: the debug UI is meant for manual testing and for explicitly toggling target flags.
  • Runtime Simulation:

    • The simulation engine and continuous updates use tgtset commands that contain only the positional/kinematic parameters (range, azimuth, velocity, heading, altitude) and do not include the state qualifiers. This avoids unintentionally changing target lifecycle flags during normal simulation.

Why this matters

  • Historically the code used tgtinit in some debug flows. tgtinit sets some different internal parameters (for example heading_start) and can change target motion in unintended ways. To preserve correct simulation behaviour, the debug window now sends tgtset + qualifiers while the simulation keeps sending tgtset without qualifiers.

Where to look in the code

  • Debug GUI sender: target_simulator/gui/sfp_debug_window.py (_on_send_target).
  • Command builders: target_simulator/core/command_builder.py (build_tgtset_from_target_state, build_tgtset_selective, build_tgtinit).
  • Settings: debug file names and options are in settings.json (section debug) and target_simulator/config.py contains defaults.

If you want the debug UI to exactly mimic runtime behaviour, uncheck the Active/Traceable/Restart checkboxes before sending, or use the runtime APIs to send tgtset without qualifiers.