Rename JWST pointing event to a more general name

This commit is contained in:
Malin E
2022-04-22 14:13:33 +02:00
parent 1b25e1b0dc
commit 431a6d4904
2 changed files with 23 additions and 22 deletions

View File

@@ -73,7 +73,7 @@ struct Event {
LayerAdded,
LayerRemoved,
SessionRecordingPlayback,
PointJwstRequested,
PointSpacecraft,
Custom
};
constexpr explicit Event(Type type_) : type(type_) {}
@@ -378,19 +378,20 @@ struct EventSessionRecordingPlayback : public Event {
};
/**
* This event is created when a request for pointing the JWST model to a Ra Dec coordinate
* in the sky is issued. The event contains information about the sky coordinate to point
* the JWST towards and an optional argument for the duration it should do the pointing.
* This event is created when a request for pointing a spacecraft towards a Ra Dec
* coordinate in the sky is issued. The event contains information about the sky
* coordinate to point the spacecraft towards, and an optional argument for the duration
* it should do the pointing.
*
* \param Ra The Ra part of the sky coordinate in decimal degrees to point the JWST to
* \param Dec The Dec part of the sky coordinate in decimal degrees to point the JWST to
* \param Ra The Ra part of the sky coordinate in decimal degrees to point towards
* \param Dec The Dec part of the sky coordinate in decimal degrees to point towards
* \param Duration The duration of time in seconds that the telescope should redirect
* itself to the coordinate. Default is 3 seconds
*/
struct EventPointJwstRequested : public Event {
static const Type Type = Event::Type::PointJwstRequested;
struct EventPointSpacecraft : public Event {
static const Type Type = Event::Type::PointSpacecraft;
EventPointJwstRequested(double ra_, double dec_, double duration_ = 3.0);
EventPointSpacecraft(double ra_, double dec_, double duration_ = 3.0);
const double ra;
const double dec;
const double duration;