|
发表于 2011-5-31 12:05:06
|
显示全部楼层
回复 conon 的帖子
FC2 里面实现6轴的方法
转自ED论坛:http://forums.eagle.ru/showthread.php?t=51693
注意备份!修改必须使用NOTEPAD++等专用软件!禁止写字板和记事本。
打开server.lua
原始段落如下:
Original:
--local old_aircrafts_6DOF = {x = {-2,2},y = {-2,2},z = {-2,2},roll = 90.0} -- {x = {0,0},y = {0,0},z = {0,0},roll = 0}
local old_aircrafts_6DOF = {x = {-0.02,0.05},y = {-0.03,0.03},z = {-0.03,0.03},roll = 90.0}
limits_6DOF = {}
limits_6DOF[PlaneIndex.iSu_27] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iSu_33] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iSu_25] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iSu_39] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iMiG_29] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iMiG_29K] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iA_10] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iF_15] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iKA_50] = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
--
修改成:
--local old_aircrafts_6DOF = {x = {-2,2},y = {-2,2},z = {-2,2},roll = 90.0} -- {x = {0,0},y = {0,0},z = {0,0},roll = 0}
local old_aircrafts_6DOF = {x = {-0.02,0.05},y = {-0.03,0.03},z = {-0.03,0.03},roll = 90.0}
local new_6DOF = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
limits_6DOF = {}
limits_6DOF[PlaneIndex.iSu_27] = new_6DOF
limits_6DOF[PlaneIndex.iSu_33] = new_6DOF
limits_6DOF[PlaneIndex.iSu_25] = new_6DOF
limits_6DOF[PlaneIndex.iSu_39] = new_6DOF
limits_6DOF[PlaneIndex.iMiG_29] = new_6DOF
limits_6DOF[PlaneIndex.iMiG_29K] = new_6DOF
limits_6DOF[PlaneIndex.iA_10] = new_6DOF
limits_6DOF[PlaneIndex.iF_15] = new_6DOF
limits_6DOF[PlaneIndex.iKA_50] = new_6DOF
--
效果[系统提示:请勿讨论敏感问题]看:
http://www.youtube.com/watch?v=FplRwqO1_9I
|
|