How can I use the pointAt function within the satelliteScenario object to create a sun-pointing satellite?
I am looking to be able to easily create sun-pointing satellites in the satelliteScenario object. I am trying to determine if there is any way to have easily have the pointAt funciton allow me to direct the satellite view towards the sun. Is there any way to access the sun asset within a satelliteScenario object? I have not been able to find any documentation that would indicate that the sun is accessible by the user, yet it is visible and present within the viewer.
Here is an example of the kind of thing I am looking to do:
mission.StartDate = datetime(2024,6,3);
mission.Duration = hours(12);
Rinexdata = rinexread("EXAMPLE_RINEX.rnx");
sc = satelliteScenario(mission.StartDate,mission.StartDate+mission.Duration,60);
sat = satellite(sc,Rinexdata);
Payload = satellite(sc,6878137,0,Inclination,Omega,0,0);
g = gimbal(Payload,"MountingAngles",[0; 0; 0]);
%% I am looking to have this work, so that I can point it at the sun
pointAt(g,SUN)
sensor = conicalSensor(g,MaxViewAngle=179);
fieldOfView(sensor);
access = access(sensor,sat);
viewer3D = satelliteScenarioViewer(sc);
show(access)
hide(sat.Orbit)I am looking to be able to easily create sun-pointing satellites in the satelliteScenario object. I am trying to determine if there is any way to have easily have the pointAt funciton allow me to direct the satellite view towards the sun. Is there any way to access the sun asset within a satelliteScenario object? I have not been able to find any documentation that would indicate that the sun is accessible by the user, yet it is visible and present within the viewer.
Here is an example of the kind of thing I am looking to do:
mission.StartDate = datetime(2024,6,3);
mission.Duration = hours(12);
Rinexdata = rinexread("EXAMPLE_RINEX.rnx");
sc = satelliteScenario(mission.StartDate,mission.StartDate+mission.Duration,60);
sat = satellite(sc,Rinexdata);
Payload = satellite(sc,6878137,0,Inclination,Omega,0,0);
g = gimbal(Payload,"MountingAngles",[0; 0; 0]);
%% I am looking to have this work, so that I can point it at the sun
pointAt(g,SUN)
sensor = conicalSensor(g,MaxViewAngle=179);
fieldOfView(sensor);
access = access(sensor,sat);
viewer3D = satelliteScenarioViewer(sc);
show(access)
hide(sat.Orbit) I am looking to be able to easily create sun-pointing satellites in the satelliteScenario object. I am trying to determine if there is any way to have easily have the pointAt funciton allow me to direct the satellite view towards the sun. Is there any way to access the sun asset within a satelliteScenario object? I have not been able to find any documentation that would indicate that the sun is accessible by the user, yet it is visible and present within the viewer.
Here is an example of the kind of thing I am looking to do:
mission.StartDate = datetime(2024,6,3);
mission.Duration = hours(12);
Rinexdata = rinexread("EXAMPLE_RINEX.rnx");
sc = satelliteScenario(mission.StartDate,mission.StartDate+mission.Duration,60);
sat = satellite(sc,Rinexdata);
Payload = satellite(sc,6878137,0,Inclination,Omega,0,0);
g = gimbal(Payload,"MountingAngles",[0; 0; 0]);
%% I am looking to have this work, so that I can point it at the sun
pointAt(g,SUN)
sensor = conicalSensor(g,MaxViewAngle=179);
fieldOfView(sensor);
access = access(sensor,sat);
viewer3D = satelliteScenarioViewer(sc);
show(access)
hide(sat.Orbit) matlab MATLAB Answers — New Questions