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

Node Module in subtype #225

Open
Massetstephane opened this issue Jan 13, 2022 · 6 comments
Open

Node Module in subtype #225

Massetstephane opened this issue Jan 13, 2022 · 6 comments

Comments

@Massetstephane
Copy link

Hi!
I'm testing the mod and the Module Node in subtype :

                        MODULE
			{
				IDENTIFIER
				{
					name = ModuleEnviroSensor
				}
				DATA
				{
					sensorType = TEMP
				}
			}
			MODULE
			{
				IDENTIFIER
				{
					name = ModuleScienceExperiment
				}
				DATA
				{
					experimentID = temperatureScan
					experimentActionName = #autoLOC_502067 //#autoLOC_502067 = Log Temperature
					resetActionName = #autoLOC_502064 //#autoLOC_502064 = Delete Data
					xmitDataScalar = 0.5
				}
			}

It's ok for ModuleEnviroSensor, sensorType value modified as well by Subtype.
But for ModuleScienceExperiment i have problem for the experimentID value

in wiki :

Any other values can be used to identify the module, e.g. engineID, experimentID

seem 's experimentID is not considered as DATA , it's possible to use this parameter as DATA in module DATA
to have possibility to switch experimentID between barometerScan, temperatureScan for example.
experimentActionName work
resetActionName work
xmitDataScalar work

But maybe it's not possible to use name like engineID, experimentID or finished by "ID".

I'm using and testing the mod on a Pitot airplane sonde Here

Steph.

@Gordon-Dry
Copy link

Gordon-Dry commented Jan 13, 2022

@MODULE:HAS[@DATA:HAS[#experimentID[temperatureScan]]]

@Massetstephane
Copy link
Author

Massetstephane commented Jan 13, 2022

HI !

@Gordon-Dry

@MODULE:HAS[@DATA:HAS[#experimentID[temperatureScan]]]

It's a ModuleManager tag ?, it's work inside part.cfg, in SUBTYPE { MODULE{ etc, for B9Partswitch module ?

Looking the WIKI page i'm not sure, the switch work in Editor (VAB or SPH), i choose on the part the type of sensor

I will test anyway thank !

Steph.

EDIT
Tested in the part cfg do nothing in module B9Partswitch but no error 👍🏼 , i think is about Dynamic-Modules
And it's a module code i think, But well, that's okay I manage to manage the module "ModuleEnviroSensor" perfectly.
I activate it I choose the sensorType, and it is indeed deactivated when I choose the option without sensor.

@blowfishpro
Copy link
Owner

You want to put experimentID in the IDENTIFIER block, it's one of the things that identifies the target module, not one of the things you're trying to change

@Massetstephane
Copy link
Author

HI !
@blowfishpro thank, yes i understand now, I tested experimentID in node DATA (see first post), so the two tags experimentID and ModuleScienceExperiment are the tags used to recognize the module.

So it is not possible to detached experimentID for use as data in node DATA.

It would have been nice to be able to control the parameter of experimentID, to change the type of experience.
experimentID = gravityScan , or experimentID = seismicScan for example.

Steph

@blowfishpro
Copy link
Owner

It's also just possible the module doesn't take well to it being changed. It's done in sort of a hanky way and not every module takes to it well.

@Massetstephane
Copy link
Author

hi !

@blowfishpro ok thank 👍🏼 , it works well, anyway I control the module its function and it deactivates well when I choose the version without sensor it's perfect love the possibility with B9PartSwitch.

It's the first time I've used it, I use it to change the function of the module ModuleEnviroSensor, Between :
ACC, TEMP, GRAV , PRES and no sensor (parameter sensorType ) and I vary the texture of a small indicator on the part.
it is a part that is placed on the nose of aircraft cockpits to simulate a pitot tube, I have programming knowledge but not enough to make my own module for the moment.

Steph

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

3 participants