jsbsim icon indicating copy to clipboard operation
jsbsim copied to clipboard

Dynamic parameters for the sensor class

Open abassign opened this issue 7 years ago • 6 comments

Often the sensors have problems, for example the lack of power supply, at this point it would be useful to be able to insert directly into the sensor its operating status (for example in the form of a gain parameter that is not constant, but associated with a parameter), it would be useful also to be able to have a sensor value when it is not working, also in the form of a possibly recursive parameter (for example the value of the sensor itself when it is placed in an inoperative state). Also the error parameter should be a parameter to be able to simulate the degradation of the sensor for various causes, for example an excessive acceleration etc ...

abassign avatar Nov 15 '18 07:11 abassign

Yes, this will be part of some refactoring of the gain/bias/delay feature. At the moment, there is a lot of code duplication to handle these features in the sensors, I will take this opportunity to allow "dynamic" parameters for them.

bcoconni avatar Dec 27 '18 17:12 bcoconni

@bcoconni Thanks for your interest, I believe that the possibility of extending variable parameters over time is very useful to simplify the code and make simulation more realistic.

abassign avatar Jan 09 '19 08:01 abassign

Thanks for your interest, I believe that the possibility of extending variable parameters over time is very useful to simplify the code and make simulation more realistic.

No problem but don't expect it to happen any time soon as I have already plenty on my plate.

bcoconni avatar Jan 10 '19 21:01 bcoconni

Just on the topic of sensors, I wonder if someone could explain what the value in <bits> number </bits> means; what does this number control, and what is the "name" parameter for?

Edit - just to confirm, I can plug in these numbers:

image

I still am confused about the "name".

legoboyvdlp avatar Oct 31 '19 21:10 legoboyvdlp

@legoboyvdlp the bits field if specified is used to quantize the output, so for example if you specify 10 bits then you will only see 2^10 = 1024 distinct values output, so in effect limiting the resolution you will see from the sensor.

seanmcleod avatar Dec 15 '19 12:12 seanmcleod

Thank you!

legoboyvdlp avatar Dec 15 '19 13:12 legoboyvdlp