Hi all,
I’m trying to figure out the best way to add a simple, conic shape that follows a satellite and serves as a “sensor”. I’ve gotten very close to getting what I need, but it’s not quite there, and now I’m stymied. I’m no Cesium or javascript expert by any means.
Using Cesium 1.27, I created an object (an entity?) as part of a larger CZML file in which I’ve already defined the position of CubeSat1:
{
“id” : “obs1”,
“name” : “obs1cone_sat15”,
“cylinder” : {
“length” : 530000.0,
“topRadius” : 0.0,
“bottomRadius” : 400000.0,
“material” : {
“solidColor” : {
“color” : {
“rgba” : [255, 0, 0, 150]
}
}
},
“verticalorigin”: “TOP”,
“fill” : true,
“show”: [
{
“interval”: “2017-03-15T10:00:00Z/2017-03-15T11:00:00Z”,
“boolean”: false
},
{
“interval”: “2017-03-15T11:00:00Z/2017-03-16T09:00:00Z”,
“boolean”: true
},
{
“interval”: “2017-03-16T09:00:00Z/2017-03-16T10:00:00Z”,
“boolean”: false
}
]
},
“position”:{
“reference”:“Satellite/CubeSat1#position”
}
``
The cone shows up as in the attached pic. The problem is that it’s centered on the satellite, when I actually want it below that sat. Of course I could directly specify the position coordinates of the cone separately from the satellite, but I’d really like to be able to just reference its position.
Is there any way to specify a fixed offset from a position reference? Like, 10 km along the CubeSat1 -> Earth Center line?
Also, is there an easier way to do this? I see tantalizing hints of a easier world with the “ConicSensor”, but I have no idea how to use this in a CZML file. (https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/ConicSensor)
Another side question - when I specify a cone that follows CubeSat1 position, as above, it actually rotates with the sat’s orbit and manages to always face towards the center of the earth. Why is this? Is the sat’s orientation rotating constantly wrt to the earth center line?
Any help would be much appreciated! Thanks in advance!
-Kit Kennedy