70 likes | 175 Views
Team 12 - Jeremy Tillman. FlySpy Software Design Narrative. Overview. Software workflow Input/Output Format Costly Calculations Timing. Software Design – Control Algorithm. Rx/ Tx Coordinate Info to SD. File System Input Regular txt file format Line by line command instructions
E N D
Team 12 - Jeremy Tillman FlySpySoftware Design Narrative
Overview • Software workflow • Input/Output Format • Costly Calculations • Timing
Rx/Tx Coordinate Info to SD • File System Input • Regular txt file format • Line by line command instructions • [Latitude_Coord] [Longitude_Coord] [Altitude] [Pic?] • File System Output • XML File format • Log with timestamps • Position • Orientation • Controls
Costly Calculations • The more accurate, the more expensive • Calculating coordinate distance • Calculating change needed in heading • Orientation Algorithms • Accelerometer – Lookup Tables vs. Trig functions
Timing • GPS works • Uses a timer at 5hz • Read GPS from receiver • Calculate needed heading and distance • Accelerometer and Gyro • Uses a timer at 50 hz • Sums Gyro change for pitch and roll • Check Accelerometer readings for Gyro correction
Timing • Fasted Clock (fosc)– 32Mhz • Fasted Instruction Clock ( fosc/2) – 16Mhz • Instructions costs • Atan – 696 cycles • Sqrt – 493 cycles • Cos – 3249 cycles • Sin – 2238 cycles