Mission Planner 地面站调试中会遇到输出多个变量问题,这里采用CustomMessageBox.Show来输出调试多个变量,用到string.Format方法
double RR11 = Math.Cos(thetamin);
double RR12 = -Math.Sin(thetamin);
double RR21 = Math.Sin(thetamin);
double RR22 = Math.Cos(thetamin);
CustomMessageBox.Show(string.Format("RR11,12,21,22:{0:G}, {1:G}, {2:G}, {3:G} ", RR11, RR12, RR21, RR22));
string.Format() 参考网址:https://www.cnblogs.com/net-sky/p/10250880.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)