Hello,
there is something I miss about the functioning of event detectors.
I want to adapt satellite attitude (nominally Earth Pointed) to avoid on-board sensor blinding when I know Sun is present in the field of view, by freezing the attitude to inertial just before when the sensor is about to be blinded by Sun.
Say I use an event detector that detects the blinding of the sensor on-board (blinding occurs when Sun direction is less than 60° of the camera line of sight), based on geometrical positions of Sun and Satellite, assuming the SC attitude is Earth Pointed (but not directly using satellite attitude provider since I will be modifiying afterwards!)
My event ‘g’ function will output the difference between the actual angle and that 60°, basically when positive there is no blinding, when negative there is blinding.
But now, I want this event to be used in an Attitude Sequence, in the following manner:
- when blinding is about to start, I want to freeze attitude
- when blinding is about to end, I want to resume Earth Pointed attitude.
The problem I have is that my event above will trigger in both cases (entry and exit), thus I don’t see how I could discriminate both cases when using this event to create the AttitudeSequence ?
More conceptually, what I look for is how to setup the event to only detect entry of blinding, or exit, but I don’t want the event to trigger on both because the action I expect to do is different between entry and exit
thanks
Vianney