rccn-gen 1.3.1__tar.gz → 1.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/CHANGELOG.md +3 -0
  2. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/PKG-INFO +1 -1
  3. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/pyproject.toml +1 -1
  4. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/systems.py +3 -3
  5. rccn_gen-1.3.2/src/rccn_gen/text_modules/cargo_toml/cargo.txt +17 -0
  6. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/.gitignore +0 -0
  7. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/.gitlab-ci.yml +0 -0
  8. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/README.md +0 -0
  9. /rccn_gen-1.3.1/src/rccn_gen/text_modules/cargo_toml/cargo.txt → /rccn_gen-1.3.2/rccn_usr_bi_x1_cntrl_app/Cargo.toml +0 -0
  10. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/LICENSE +0 -0
  11. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/__init__.py +0 -0
  12. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/command/command.txt +0 -0
  13. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/command/command_module_enum.txt +0 -0
  14. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/command/command_module_struct.txt +0 -0
  15. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/main/main.txt +0 -0
  16. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/main/service_module_import_service.txt +0 -0
  17. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/main/service_module_mod_service.txt +0 -0
  18. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/main/service_module_register_service.txt +0 -0
  19. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/mod/mod.txt +0 -0
  20. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/service/command_module_match_cmd.txt +0 -0
  21. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/service/service.txt +0 -0
  22. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/text_modules/telemetry/telemetry.txt +0 -0
  23. {rccn_gen-1.3.1 → rccn_gen-1.3.2}/src/rccn_gen/utils.py +0 -0
@@ -1,5 +1,8 @@
1
1
  # CHANGE LOG
2
2
 
3
+ ### [1.3.2] - 2025-05-26
4
+ - Fixed base command hinheritance bug
5
+
3
6
  ### [1.3.1] - 2025-05-15
4
7
  - Added documentation for utils.py
5
8
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rccn_gen
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: A python based generator for RACCOON OS source files in Rust from yamcs-pymdb config files.
5
5
  Project-URL: Homepage, https://gitlab.com/rccn/pymdb_code_generation
6
6
  Project-URL: Issues, https://gitlab.com/rccn/pymdb_code_generation/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "rccn_gen"
7
- version = "1.3.1"
7
+ version = "1.3.2"
8
8
  authors = [
9
9
  { name="Fabian Krech", email="f.krech@tu-berlin.de" },
10
10
  ]
@@ -974,7 +974,7 @@ class RCCNCommand(Command):
974
974
  - If no subtype is provided, a unique one will be assigned automatically
975
975
  - The command's APID is automatically set to match the service's application APID
976
976
  """
977
- if not 'base' in self.init_kwargs and not any(command.name == 'base' for command in service.commands):
977
+ if self.init_kwargs['base'] is None and not any(command.name == 'base' for command in service.commands):
978
978
  print("RCCN-Information: Command \'"+self.init_kwargs['name']+"\' doesn\'t have a base argument and no base command was found in service \'"+service.name+"\'.\nStandard base command will be created with system = \'"+service.name+"\' and type = "+str(service.service_id)+".")
979
979
  self.init_kwargs['base'] = Command(
980
980
  system=service,
@@ -983,7 +983,7 @@ class RCCNCommand(Command):
983
983
  base='/PUS/pus-tc',
984
984
  assignments={'type': service.service_id}
985
985
  )
986
- elif not 'base' in self.init_kwargs and any(command.name == 'base' for command in service.commands):
986
+ elif self.init_kwargs['base'] is None and any(command.name == 'base' for command in service.commands):
987
987
  print("RCCN-Information: Command \'"+self.init_kwargs['name']+"\' doesn\'t have a \'base\' argument. Existing base command for service \'"+service.name+"\' will be used.")
988
988
  self.init_kwargs['base'] = next(command for command in service.commands if command.name == 'base')
989
989
  if 'system' in self.init_kwargs and isinstance(self.init_kwargs['system'], Service):
@@ -991,7 +991,7 @@ class RCCNCommand(Command):
991
991
  else:
992
992
  super().__init__(system=service, *self.init_args, **self.init_kwargs)
993
993
  self.assignments['apid'] = self.system.system.apid
994
- if not 'subtype' in self.assignments and self.name is not 'base':
994
+ if not 'subtype' in self.assignments and self.name != 'base':
995
995
  used_subtypes = [command.assignments['subtype'] if 'subtype' in command.assignments else None for command in self.system.rccn_commands()]
996
996
  new_subtype = 1
997
997
  while new_subtype in used_subtypes:
@@ -0,0 +1,17 @@
1
+ [package]
2
+ name = "rccn_usr_example_app"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+
6
+ [dependencies]
7
+ anyhow = "1.0.91"
8
+ binary_serde = "1.0.24"
9
+ crossbeam-channel = "0.5.13"
10
+ futures = "0.3.31"
11
+ rccn_usr = { version = "0.1.0", path = "../rccn_usr" }
12
+ satrs = "0.2.1"
13
+ spacepackets = "0.12.0"
14
+ tokio = "1.41.1"
15
+ env_logger = { version = "0.11.7", default-features = false, features = ["color", "humantime"] }
16
+ num-derive = "0.4"
17
+ num-traits = "0.2"
File without changes
File without changes
File without changes
File without changes
File without changes