이충섭

test : remove test directory

No preview for this file type
No preview for this file type
1 -# UAV Network 보안 (IDS 제작) 1 +# Anti GPS Spoofing Module 제작
2 2
3 -연구 목적: 본 연구는 UAV의 통신과정에서 발생 할 수 있는 보안 취약점을 파악하고 이에 대응 할 수 있는 IDS를 제작 하고자 합니다. 3 +연구 목적: 본 연구는 UAV의 운행과정에서 발생 할 수 있는 GPS-Spoofing 공격을 시연해보고 이에 대응 할 수 있는 AGSM을 제작 하고자 합니다.
4 4
5 5
6 # px4 toolchain install 6 # px4 toolchain install
......
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
55 #define MASK_GPS_VDRIFT (1<<6) 55 #define MASK_GPS_VDRIFT (1<<6)
56 #define MASK_GPS_HSPD (1<<7) 56 #define MASK_GPS_HSPD (1<<7)
57 #define MASK_GPS_VSPD (1<<8) 57 #define MASK_GPS_VSPD (1<<8)
58 -static int hold=0;
59 bool Ekf::collect_gps(const gps_message &gps) 58 bool Ekf::collect_gps(const gps_message &gps)
60 { 59 {
61 // Run GPS checks always 60 // Run GPS checks always
...@@ -141,18 +140,6 @@ bool Ekf::collect_gps(const gps_message &gps) ...@@ -141,18 +140,6 @@ bool Ekf::collect_gps(const gps_message &gps)
141 } 140 }
142 141
143 // start collecting GPS if there is a 3D fix and the NED origin has been set 142 // start collecting GPS if there is a 3D fix and the NED origin has been set
144 - if(hold != int(gps.time_usec/1000000))
145 - {
146 - hold=int(gps.time_usec/1000000);
147 - if(hold%2==0)
148 - {
149 - std::cout <<"----------------------current--------------------------"<<std::endl;
150 - std :: cout << "time : "<<gps.time_usec/1000000<<std::endl;
151 - std :: cout << "lat : " <<gps.lat <<std::endl;
152 - std :: cout << "lon : " <<gps.lon <<std::endl;
153 - std :: cout << "alt : " <<gps.alt <<std::endl;
154 - }
155 - }
156 // print GPS data every 1 seocnds 143 // print GPS data every 1 seocnds
157 return _NED_origin_initialised && (gps.fix_type >= 3); 144 return _NED_origin_initialised && (gps.fix_type >= 3);
158 } 145 }
......