STK Components 二次开发-创建地面站

文章介绍了如何使用CZML定义地面站的位置、创建带有模型和标签的平台,以及通过CentralBodyObstructionConstraint算法实现卫星和地面站之间的可视性链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.地面站只需要知道地面站的经纬高。

 // Define the location of the facility using cartographic coordinates.
 var location = new Cartographic(Trig.DegreesToRadians(-75.596766667), Trig.DegreesToRadians(40.0388333333), 0.0);

2.创建地面站

创建方式和卫星一样生成对象,添加模型,设置各种属性
最后生成czml 
private void CreateFacility()
{
	// Define the location of the facility using cartographic coordinates.
	var location = new Cartographic(Trig.DegreesToRadians(-75.596766667), Trig.DegreesToRadians(40.0388333333), 0.0);
	var locationPoint = new PointCartographic(m_earth, location);
	m_facility = new Platform
	{
		Name = "AGI HQ",
		LocationPoint = locationPoint,
		// Orient the facility using East-North-Up (ENU) axes.
		OrientationAxes = new AxesEastNorthUp(m_earth, locationPoint),
	};

	// Set the identifier for the facility in the CZML document. 
	m_facility.Extensions.Add(new IdentifierExtension(
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值