/branches/salvo_gps/Basis_v0067g/tags/v0004/Flight-Ctrl_MEGA644_V0_04a.hex |
---|
0,0 → 1,2394 |
:100000000C946C020C9489020C9489020C94890261 |
:100010000C9489020C9489020C9489020C94890234 |
:100020000C9489020C94820C0C9489020C94890221 |
:100030000C949D150C9489020C9489020C948902ED |
:100040000C9489020C9489020C94850B0C948902FF |
:100050000C94AA070C9489020C94C5040C94890290 |
:100060000C94880D0C9489020C94D1140C94890280 |
:100070000A0A0D004E65757472616C004865616412 |
:10008000696E67486F6C64000A0D5374657565721C |
:10009000756E673A20004F4B0A0D000A0D416267EA |
:1000A0006C65696368204C756674647275636B7304 |
:1000B000656E736F722E2E000A0D42656E75747A2E |
:1000C0006520506172616D657465727361747A2028 |
:1000D0002564000A0D414343206E69636874206102 |
:1000E000626765676C696368656E21000A0D496E19 |
:1000F00069742E20454550524F4D3A2047656E6534 |
:1001000072696572652044656661756C742D506115 |
:1001100072616D657465722E2E2E000A0D3D3D3D97 |
:100120003D3D3D3D3D3D3D3D3D3D3D3D3D3D3D3DFF |
:100130003D3D3D3D3D3D3D3D3D3D3D000A0D466C57 |
:1001400069676874436F6E74726F6C0A0D486172F0 |
:1001500064776172653A25642E25640A0D536F66D3 |
:1001600074776172653A5625642E256425632000F4 |
:100170002E0052616E67653A2533692D253369007B |
:100180005374656C6C756E673A202533690053654E |
:1001900074706F696E742020253369005365727620 |
:1001A0006F202000506F7469343A20202533690095 |
:1001B000506F7469333A202025336900506F746999 |
:1001C000323A202025336900506F7469313A20207B |
:1001D0002533690053746172743A20202020202551 |
:1001E0003569004D657373776572743A2020253543 |
:1001F00069005269636874756E673A202025356915 |
:10020000004B6F6D70617373202020202020200030 |
:10021000456D70662E506567656C3A2535690053EB |
:1002200070616E6E756E673A202025356900486FE3 |
:1002300063682025346920282533692900526F6CB2 |
:100240006C20253469202825336929004E69636BA9 |
:100250002025346920282533692900414343202D76 |
:100260002053656E736F720047696572202534698B |
:1002700020282533692900526F6C6C2025346920B1 |
:100280002825336929004E69636B202534692028AD |
:10029000253369290047696572202534692028259E |
:1002A00033692900526F6C6C20253469202825336E |
:1002B0006929004E69636B2025346920282533693C |
:1002C00029004779726F202D2053656E736F72007D |
:1002D00050333A253469202050343A2534692000BF |
:1002E00050313A253469202050323A2534692000B3 |
:1002F00047733A253469202047693A25346920003C |
:100300004E693A2534692020526F3A25346920001D |
:100310004B373A25346920204B383A253469200080 |
:100320004B353A25346920204B363A253469200074 |
:100330004B333A25346920204B343A253469200068 |
:100340004B313A25346920204B323A25346920005C |
:100350004B6F6D706173733A202020253569005210 |
:100360006F6C6C3A202020202020253569004E69D2 |
:10037000636B3A20202020202025356900616B74B2 |
:100380002E204C6167650048F668656E726567658A |
:100390006C756E67004B65696E6520004F66662060 |
:1003A00020202020203A20253569004C7566746491 |
:1003B0007275636B3A2025356900536F6C6C486F1A |
:1003C0006568653A2025356900486F6568653A209B |
:1003D000202020202535690028632920486F6C677C |
:1003E000657220427573730053657474696E673A61 |
:1003F000202564200048573A5625642E2564205352 |
:10040000573A25642E25642563002B2B204D696BFC |
:10041000726F4B6F70746572202B2B005B25695DCA |
:100420000000001100230034004600570069007AE4 |
:10043000008B009C00AE00BF00D000E100F2000382 |
:100440000114012401350146015601660177018737 |
:10045000019701A701B601C601D501E501F4010329 |
:1004600002120221022F023E024C025A0268027559 |
:1004700002830290029D02AA02B702C302CF02DBEE |
:1004800002E702F302FE02090314031F03290333E8 |
:10049000033D0347035003590362036B0373037B5C |
:1004A0000383038A03920399039F03A603AC03B259 |
:1004B00003B703BC03C103C603CA03CE03D203D6EA |
:1004C00003D903DC03DE03E103E303E403E603E70C |
:1004D00003E703E803E8030011241FBECFEFD0E1D8 |
:1004E000DEBFCDBF14E0A0E0B1E0E4EDF1E902C071 |
:1004F00005900D92A23AB107D9F719E0A2EAB4E04B |
:1005000001C01D92AD39B107E1F70E94C4020C94FD |
:10051000E9480C94000022E030E0D9010E94D5485F |
:10052000802D863028F082E0D901082E0E94DD4817 |
:1005300090E00895FB01282F863008F025E0429FC7 |
:10054000D0011124AC59BF4F842F90E0019724F0C3 |
:1005500001900E94DD48FACFA2E0B0E0022E0E9496 |
:10056000DD480895FB01863008F085E0489FD00102 |
:100570001124AC59BF4F842F90E0019724F00E94C2 |
:10058000D5480192FACF0895EF92FF921F93CF932F |
:10059000DF9314B815B8189B02C08BE001C08AE045 |
:1005A000809300018DEC87B98FEF88B98BE184B916 |
:1005B00081E085B98EE38AB9579A87EF8BB984B702 |
:1005C000877F84BF80916000886180936000109273 |
:1005D000600080ED97E09093C5048093C40410926E |
:1005E00064051092630510924D0810924C08109209 |
:1005F0006205109261051092600510925F0580916E |
:1006000000018A3011F4289801C0289A0E94250D13 |
:100610000E94FD050E9488150E94820D0E94B71459 |
:10062000789410924B0784E080934C0787E0809386 |
:100630004D0720910001822F6AE00E942E48492F29 |
:1006400050E0822F0E942E4890E021E630E03F9358 |
:100650002F9324E030E03F932F931F921F925F93DC |
:100660004F939F938F938CE391E09F938F931F926F |
:100670000E94E1088BE191E09F938F931F920E946B |
:10068000E108299AA1E0B0E00E94D548802D2DB75D |
:100690003EB7205F3F4F0FB6F8943EBF0FBE2DBF51 |
:1006A0008434A9F18CEE90E09F938F931F920E9467 |
:1006B000E1080E94AF23C0E0D0E00F900F900F90B0 |
:1006C00086E7E82E88E0F82E1C2FC23039F0C330C0 |
:1006D00019F40E948E2204C0C43010F00E941E2320 |
:1006E00047E4B701812F0E949A022196C630D105B6 |
:1006F00059F783E022E030E0D901082E0E94DD485E |
:1007000084E421503040D901082E0E94DD48C4E025 |
:10071000D0E0DE010E94D548802D853050F083ED79 |
:1007200090E09F938F931F920E94E1080F900F908B |
:100730000F902297DE010E94D548802D863028F048 |
:1007400082E0DE01082E0E94DD4847E466E778E09B |
:100750000E94B202DE010E94D548802D863028F02A |
:1007600082E0DE01082E0E94DD4890E09F938F9387 |
:1007700088EB90E09F938F931F920E94E1088091F5 |
:100780007E080F900F900F900F900F9080FD03C088 |
:10079000C8EED3E020C08BE990E09F938F931F9227 |
:1007A0000E94E10888EE93E00E946D0CEC010E942B |
:1007B00020100F900F900F90CE010E94760C88238E |
:1007C000D9F386E990E09F938F931F920E94E108EE |
:1007D0000F900F900F900E940021809100018A30AD |
:1007E00011F4289801C0289A469880ED97E09093DC |
:1007F000C5048093C40488EE93E0909346078093E9 |
:10080000450785E58093400788E890E09F938F93A4 |
:100810001F920E94E10880917E080F900F900F9028 |
:1008200082FF03C08CE790E002C084E790E09F93D2 |
:100830008F931F920E94E1080F900F900F9080E716 |
:1008400090E09F938F931F920E94E1080E9469108D |
:1008500088E893E190938603809385030F900F902F |
:100860000F908091C104882309F462C01092C104E2 |
:100870000E9441240E94D520209100012A3011F4C9 |
:10088000289801C0289A80910301882321F0815083 |
:100890008093030110C01092B2041092B30410921E |
:1008A0007F0510927E0510928105109280051092AE |
:1008B00083051092820580915E05882329F080913E |
:1008C0005E05815080935E0580918503909186033B |
:1008D000892B01F585E090E0909386038093850352 |
:1008E0000E94621580910403909105038F5F9F4FD2 |
:1008F000F9F4809165058823D9F080E197E290931F |
:10090000C5048093C40480E890E09093050380932D |
:1009100004030EC080918503909186030197909304 |
:100920008603809385032A3011F4289801C0289A01 |
:100930000E9418060E94B106CE010E94760C882300 |
:1009400009F48FCF209108033091090380918E081C |
:1009500090E0281739079CF48091040390910503D7 |
:100960008F5F9F4F61F480E797E19093C504809378 |
:10097000C40480E093E0909305038093040384E62D |
:1009800090E00E946D0CEC016CCF1F920F920FB69D |
:100990000F9211248F939F93EF93FF938091010106 |
:1009A0008823E1F48091BD049091BE040196909358 |
:1009B000BE048093BD04FC01EE5EF94FE081ED3092 |
:1009C00019F08639910539F41092BE041092BD04D5 |
:1009D00081E080930101E093C60004C01092BE0440 |
:1009E0001092BD04FF91EF919F918F910F900FBED8 |
:1009F0000F901F901895DC0120E030E040E050E0BF |
:100A000008C0FA01EE5EF94F8081280F311D4F5F5B |
:100A10005F4F4A175B07A9F73F70C90136E096950B |
:100A200087953A95E1F7835CFD01EE5EF94F80838F |
:100A300011962F73235CFD01EE5EF94F2083AD5EAE |
:100A4000B94F8DE08C931092010180911206809332 |
:100A5000C60008951F93CF93DF93EA01722F93E2AC |
:100A6000909312066093130680931406A3E0B0E0FF |
:100A700060E04FC0FE01E60FF11D90816F5F715085 |
:100A800019F410E040E00FC0FE01E60FF11D4081B7 |
:100A90006F5F715011F410E006C0FE01E60FF11D0A |
:100AA00010816F5F7150892F86958695835CFD015B |
:100AB000EE5EF94F808350E09A0184E036952795E9 |
:100AC0008A95E1F7892F90E083709070F4E0880FA9 |
:100AD000991FFA95E1F7282B235CFD01ED5EF94F94 |
:100AE0002083812F82958695869583704F705070F4 |
:100AF000440F551F440F551F842B835CFD01EC5E92 |
:100B0000F94F80831F73135CFD01EB5EF94F108377 |
:100B10001496772309F0AECFCD010E94FB04DF913C |
:100B2000CF911F9108951F93CF93DF93EC0170E055 |
:100B3000A22FB0E0129748C0E42FF0E0EB5AF84F34 |
:100B400030814F5FE42FF0E0EB5AF84F50814F5F58 |
:100B5000E42FF0E0EB5AF84F10814F5FE42FF0E004 |
:100B6000EB5AF84F20814F5F842F90E0A817B90708 |
:100B700074F15D53FE01E70FF11D852F82958F7093 |
:100B80003D53330F330F382B3083613001F1912FF8 |
:100B90009D537F5FFE01E70FF11D71505295507F0D |
:100BA000892F86958695582B508363506F3F79F037 |
:100BB0007E5FFE01E70FF11D9295990F990F907CD2 |
:100BC0002D53922B90837F5F662309F0B5CFDF9181 |
:100BD000CF911F9108951F93182F8A3019F48DE03B |
:100BE0000E94EB058091C00085FFFCCF1093C600EA |
:100BF00080E090E01F9108950895E1ECF0E088E135 |
:100C00008083A0ECB0E08C9182608C9380818068BE |
:100C100080838081806480838AE28093C40088EC32 |
:100C200090E00E946D0C90933F0780933E070895DB |
:100C300080910101882309F493C08091A204882344 |
:100C400071F080910101882351F0609111062BE031 |
:100C500040E457E087E40E942A051092A2048091A4 |
:100C60003E0790913F070E94760C882321F48091E3 |
:100C7000A4048823F9F0809101018823D9F06091C0 |
:100C8000110622E44BEE57E084E40E942A051092FC |
:100C9000A4048091B5049091B60401969093B60493 |
:100CA0008093B5048AEF90E00E946D0C90933F070B |
:100CB00080933E07609102016F3F89F0462F50E01C |
:100CC00094E0440F551F9A95E1F74C5F5E4F605DCD |
:100CD00020E181E40E942A058FEF80930201809138 |
:100CE000A304882359F180910101882339F10E94DE |
:100CF00072101092A3043091AC04932F9F5F9093D5 |
:100D0000AC04943021F08091AD04882359F026E1A1 |
:100D100048E458E060E084E30E942A058FEF809366 |
:100D2000AC040CC044E1949FA0011124465E5C4FCA |
:100D300024E160E0832F8F5C0E942A058091A50446 |
:100D4000882371F080910101882351F06091110690 |
:100D50002AE04BE457E086E50E942A051092A5049C |
:100D600008951F93CF93DF93CDB7DEB722970FB6C9 |
:100D7000F894DEBF0FBECDBF8091A704882309F48D |
:100D8000DFC08FEF80930301809157078B3609F402 |
:100D90005EC08C3678F4833629F1843620F48136AF |
:100DA00009F0CCC013C0873609F45EC0883609F05C |
:100DB000C5C02BC0813709F45BC0813708F480C0FF |
:100DC0008437F1F1863709F0B9C04AC02091AA04EE |
:100DD00043E062E0CE0101960E94930589818093F1 |
:100DE0000201ACC02091AA0443E06BE080E497E0EC |
:100DF0000E9493058091F10490914207892B809382 |
:100E0000F10481E08093A40499C02091AA0443E0F6 |
:100E100062E0CE0101960E9493058091F1049981D0 |
:100E2000892B8093F1048A818F3F21F481E08093A4 |
:100E3000AD0402C01092AD0481E08093A3047EC093 |
:100E40002091AA0443E064E08EEA94E006C0209179 |
:100E5000AA0443E063E082EB94E00E9493056EC035 |
:100E600081E08093A5046AC081E08093A20466C0FB |
:100E70002091AA0443E062E0CE0101960E9493050E |
:100E800089818F3F89F0863010F085E0898347E4BF |
:100E900066E778E089810E94B2026091110689813B |
:100EA00027E446E758E008C0109111060E948B0223 |
:100EB00027E446E758E0612F855B0E942A053EC083 |
:100EC0002091AA0443E067E486E798E00E94930536 |
:100ED0008091570747E466E778E08B560E949A02B4 |
:100EE000809157078B56A2E0B0E0082E0E94DD48A3 |
:100EF0006091A10870E080E090E024EC39E040E0EF |
:100F000050E00E940F48609387037093880380939A |
:100F1000890390938A036091A20870E080E090E0DA |
:100F20000E940F4860938B0370938C0380938D0312 |
:100F300090938E030E948B020E94C0201092A704FF |
:100F400022960FB6F894DEBF0FBECDBFDF91CF91D2 |
:100F50001F9108951F920F920FB60F9211242F9395 |
:100F60003F934F935F936F937F938F939F93AF9331 |
:100F7000BF93CF93DF93EF93FF938091C60080934D |
:100F8000A6048091A6040E94F03B4091B804463923 |
:100F900010F01092B7048091A6048D3009F05DC066 |
:100FA0008091B704823009F058C01092B704A42F82 |
:100FB000B0E0FD01ED5AF84F3081ED01CC5AD84F29 |
:100FC00028818091BB049091BC04831B9109821BF2 |
:100FD00091099F709093BC048093BB049C0168941A |
:100FE00015F8369527951694E1F7235C2093BA04FB |
:100FF000982F9F73935C9093B9048081281729F4EC |
:101000008881981711F491E006C08091A9048F5F40 |
:101010008093A90490E08091A704882309F065C01B |
:10102000992309F462C081E08093A7044093AA0445 |
:10103000AB5AB84F8DE08C9380915707823509F0F9 |
:1010400054C088E190E02CE00FB6F894A895809306 |
:1010500060000FBE2093600048C08091B7048130CB |
:10106000D9F0813018F08230F1F521C08091A604CA |
:10107000833239F48091A704882319F481E08093A6 |
:10108000B7048091A6048093550781E08093B8044B |
:101090008091A60490E022C082E08093B704E42F00 |
:1010A000F0E08091A604EB5AF84F808309C0E42F4A |
:1010B000F0E08091A604EB5AF84F8083463920F483 |
:1010C0004F5F4093B80402C01092B7042091A60469 |
:1010D0008091BB049091BC04820F911D9093BC043D |
:1010E0008093BB0402C01092B704FF91EF91DF918F |
:1010F000CF91BF91AF919F918F917F916F915F91B0 |
:101100004F913F912F910F900FBE0F901F90189508 |
:10111000982F80912D08813069F48091F004E82F98 |
:10112000F0E0E65EFC4F90838F5F8093F00421E057 |
:1011300030E005C0892F0E94EB05282F30E0C9015F |
:1011400008951F93182F04C080E30E94880811504F |
:101150001116D4F31F9108951F93182F04C080E235 |
:101160000E94880811501116D4F31F9108950F930F |
:101170001F93CF93DF938C01EB0108C0F8010F5F41 |
:101180001F4FE4918E2F0E94880821972097B1F776 |
:10119000DF91CF911F910F9108950F931F93CF93DC |
:1011A000DF938C01EB0106C0F80181918F010E9451 |
:1011B000880821972097C1F7DF91CF911F910F9158 |
:1011C00008952F923F924F925F926F927F928F92EB |
:1011D0009F92AF92BF92CF92DF92EF92FF920F93C6 |
:1011E0001F93CF93DF93CDB7DEB7E5970FB6F89493 |
:1011F000DEBF0FBECDBF2B968FAD2B9780932D08F2 |
:10120000CE01835B9F4F9B838A832D964EAC5FAC50 |
:101210002D971EA61FA618AA19AA9E01225D3F4F50 |
:101220003DAB2CAB820102C00F5F1F4FF801F49061 |
:10123000FF2019F0F5E2FF16B9F7B8016419750936 |
:1012400019F0C2010E94B708FF2009F445C2280125 |
:101250000894411C511C1982AA81BB8133241BAA0A |
:101260002FEF2AABF2010894411C511CB490632D5E |
:1012700070E06170707035E7B31621F08B2D8062DD |
:101280008837C9F46115710559F02D913D914D9143 |
:101290005C9113972EA73FA748AB59AB14960BC090 |
:1012A0008D919C9111979C0140E050E02EA73FA7A3 |
:1012B00048AB59AB129630E2B31621F489818823EA |
:1012C00089F61CC043E2B41611F458E055C08AE216 |
:1012D000B81621F09DE2B91671F408C0FD0112960E |
:1012E000E081EBABE7FFBECFE195EBABE0E13E2A5F |
:1012F000FFED3F22B7CF2BE2B21611F4B982B2CF85 |
:101300003EE2B31699F5F2010894411C511C8491F8 |
:101310008A3221F0B82E20E030E01DC0FD01129687 |
:101320004081518157FF02C04FEF5FEF4AAB9ACF28 |
:10133000C90153E0880F991F5A95E1F7220F331F17 |
:10134000280F391F2B0D311D20533040F201089416 |
:10135000411C511CB4908B2D80538A3048F3A90155 |
:1013600037FF02C04FEF5FEF4AAB85CF40E3B416C3 |
:1013700029F434FC77CF50E2352A74CF8B2D81537A |
:101380008930D8F420E030E0C90103E0880F991FCC |
:101390000A95E1F7220F331F280F391F2B0D311D3E |
:1013A00020533040F2010894411C511CB4908B2D05 |
:1013B00080538A3048F32BAB5ECF88E6B81619F419 |
:1013C00094E0392A4FCFECE6BE1619F4F1E03F2A3B |
:1013D00049CFBB83AA8323E6B21639F41296BB83A6 |
:1013E000AA8312978C918E8322C134E4B31639F00C |
:1013F00044E6B41631F059E6B516A9F502C081E00D |
:10140000382A30FE08C01496BB83AA835E914E91A1 |
:101410003E912E910AC01296BB83AA839E918E9113 |
:101420009C01442737FD4095542F2EA73FA748AB7A |
:1014300059AB8EA59FA5A8A9B9A9BB238CF42EA54D |
:101440003FA548A959A950954095309521953F4F02 |
:101450004F4F5F4F2EA73FA748AB59AB8DE2898313 |
:10146000BAE02B2E80C03FE4B31621F04FE6B4164D |
:1014700031F402C051E0352AA8E02A2E73C080E77B |
:10148000B81689F41296BB83AA839E918E919C0113 |
:1014900040E050E02EA73FA748AB59AB30E4332AD9 |
:1014A000F8E7BF2E5DC043E7B416D1F51296BB83B3 |
:1014B000AA83DE90CE90C114D10489F488E28E8391 |
:1014C0008EE68F8385E788878CE689878A8789E21D |
:1014D0008B871C86E6E0CE2ED12CCC0EDD1E5AA9C1 |
:1014E00057FD14C0452F552747FD509560E070E02B |
:1014F000C6010E94E745009711F4FAA80EC0F82E25 |
:10150000FC188AA98F154CF4F82E07C0F60101903B |
:101510000020E9F73197FE2EFC18198240E090C0B8 |
:1015200095E5B91621F0A5E7BA1631F402C0B1E08D |
:101530003B2A7AE0272E16C0E8E5BE1621F0F8E730 |
:10154000BF1609F070C033FE0BC02EA53FA548A9F9 |
:1015500059A9211531054105510511F030E4332A0F |
:1015600060E1262E19824AA947FD02C05FED3522AF |
:101570008EA59FA5A8A9B9A90097A105B10549F411 |
:101580009AA9992331F45EE2C52ED12CCC0EDD1E32 |
:1015900046C06EA47FA488A899A84EE2C42ED12C80 |
:1015A000CC0EDD1EE22CFF2400E010E06EA57FA52E |
:1015B00088A999A9A80197010E9461486A3020F47E |
:1015C00030E3A32EA60E08C027E5A22EA60EA8E59E |
:1015D000BA1611F4BFEDAB22F601A2926F016EA50F |
:1015E0007FA588A999A9A80197010E9461482EA703 |
:1015F0003FA748AB59AB6E147F048006910618F0E4 |
:1016000039014A01D3CFF8E02F1649F433FE07C061 |
:1016100020E3A21621F080E3D6018E936D01FCA891 |
:10162000FC184AA90DC0BB2009F456C0BE8219821D |
:1016300096E0C92ED12CCC0EDD1E40E0FF24F394A1 |
:10164000E42EEF18E7FCEE248981882319F08F2D12 |
:101650008F5F06C036FC02C08F2D02C08F2D8E5FBB |
:10166000A82EAE0C032D10E080E3882E912C802252 |
:1016700091228114910421F48BA98A190E94AC084B |
:101680008981882329F061E070E0CE01019609C0CC |
:1016900006FF09C080E38C83BD8262E070E0CE016A |
:1016A00004960E94CD08B0E28B16910421F48BA918 |
:1016B0008A190E94A1088E2D0E94A1086F2D7727FC |
:1016C00067FD7095C6010E94CD0804FFABCD8BA9C4 |
:1016D0008A190E94AC08A6CDE5960FB6F894DEBF35 |
:1016E0000FBECDBFDF91CF911F910F91FF90EF9073 |
:1016F000DF90CF90BF90AF909F908F907F906F9032 |
:101700005F904F903F902F9008951F920F920FB6C9 |
:101710000F9211242F933F935F936F937F938F9337 |
:101720009F93AF93BF938091CD0481508093CD045C |
:101730008F3F11F58091CB049091CC04009729F054 |
:1017400001979093CC048093CB0489E08093CD04DF |
:10175000809107038F5F817080930703882319F4BA |
:1017600081E08093C1048091BF049091C0040196F0 |
:101770009093C0048093BF048091C4049091C504E9 |
:101780000297B8F08091C4049091C504019790939A |
:10179000C5048093C4048091C4049091C504209131 |
:1017A00004033091050382239323892B09F081C020 |
:1017B00006C08FEF9FEF9093050380930403809101 |
:1017C00000018A3039F404C05A9A05C0479A03C010 |
:1017D0005A9801C04798349B0AC08091C2049091E6 |
:1017E000C30401969093C3048093C20468C080919F |
:1017F000C2049091C304892B09F43DC08091C204B6 |
:101800009091C304805A9F40B0F58FEF90E0909381 |
:10181000CC048093CB042091C2043091C304809106 |
:10182000770590E0880F991F281B390B30934B05E3 |
:1018300020934A0580914A0590914B0597FF0AC075 |
:1018400080914A0590914B0588599E4F90934B0586 |
:1018500080934A0580914A0590914B0588569140A6 |
:1018600054F080914A0590914B0588569140909391 |
:101870004B0580934A0580914A0590914B05209134 |
:101880004C0530914D05845E9D4F821B930B68E69D |
:1018900071E00E944E48845B904090934F05809386 |
:1018A0004E0581E08093C8041092C3041092C204D4 |
:1018B00006C0809100018A3009F088CF85CFBF91A2 |
:1018C000AF919F918F917F916F915F913F912F91F8 |
:1018D0000F900FBE0F901F9018952091BF0430916C |
:1018E000C0042F5F3F4F820F931F08952091BF04C4 |
:1018F0003091C004821B930B892F992786958074A1 |
:1019000090E008951F920F920FB60F9211241F932B |
:101910002F933F934F935F936F937F938F939F93F7 |
:10192000AF93BF93CF93DF93EF93FF938091060321 |
:101930008150809306038F3F09F06FC083E8809346 |
:10194000B00080919C03C82FD0E0D093C704C0930F |
:10195000C6048091AB081091980880FF1FC0609169 |
:101960000E0570910F05809110059091110520E8EA |
:1019700030E040E050E00E948348CA01B901212FC5 |
:1019800030E040E050E00E940F4820E032E040E0CC |
:1019900050E00E948348C20FD31F1EC060910E0505 |
:1019A00070910F05809110059091110520E830E0AD |
:1019B00040E050E00E948348CA01B901212F30E085 |
:1019C00040E050E00E940F4820E032E040E050E06C |
:1019D0000E948348C21BD30BD093C704C093C60494 |
:1019E0002091C6043091C7048091990890E028178F |
:1019F000390734F080919A0890E08217930724F415 |
:101A00009093C7048093C6048091C6048093B3006A |
:101A100080919B088093060304C083E08093B0000C |
:101A20005F98FF91EF91DF91CF91BF91AF919F911F |
:101A30008F917F916F915F914F913F912F911F9166 |
:101A40000F900FBE0F901F9018958091BF0490913A |
:101A5000C0040B969093CF048093CE0482E085BDA2 |
:101A600083EA84BD17BC88E788BD96E096BD83EC09 |
:101A70008093B0009093B100E0E7F0E08081826055 |
:101A80008083EEE6F0E08081816080838AE080934D |
:101A9000B3001092B2000895AC012091BF043091C0 |
:101AA000C0042F5F3F4F03C08FEE80937A00809178 |
:101AB000BF049091C004B901681B790BCB01840F5E |
:101AC000951F80709078892F99278695882361F3D8 |
:101AD0000895AC012091BF043091C0042F5F3F4FA7 |
:101AE0008091BF049091C004B901681B790BCB01B0 |
:101AF000840F951F80709078892F99278695882369 |
:101B000079F3089510927C008FEE80937A00089507 |
:101B10001F920F920FB60F921124EF92FF920F9324 |
:101B20001F932F933F934F935F936F937F938F9365 |
:101B30009F93AF93BF93CF93DF93EF93FF93109255 |
:101B40007A008091EC048F5F8093EC0481508530A3 |
:101B500009F486C0863090F4823009F440C08330A6 |
:101B600030F48823F1F0813009F044C22FC0833073 |
:101B700009F441C0843009F03DC25AC0883009F4EC |
:101B8000C2C0893038F4863009F483C0873009F048 |
:101B900031C29CC0893009F4D3C08A3009F02AC20E |
:101BA000B1C180917800909179009093EB0480937B |
:101BB000EA0481E08093ED048091E4049091E504CF |
:101BC00001969093E5048093E40418C28091780014 |
:101BD000909179009093E9048093E80492C08091F9 |
:101BE0007800909179009093E7048093E60484E074 |
:101BF0008093ED0403C24091080350910903809142 |
:101C00007800909179009A01220F331F240F351F1D |
:101C100063E070E00E943A48260F371F36952795FB |
:101C200036952795309309032093080386E0E0CF8B |
:101C300080910605909107052091780030917900F8 |
:101C4000821B930B90932F0880932E0880912E086F |
:101C500090912F089093D7048093D60487E0C8CF43 |
:101C600080917800909179002091040530910505CC |
:101C7000821B930B90933A0880933908809139081E |
:101C800090913A089093D9048093D8041092ED046F |
:101C9000B5C1809100012091EA043091EB048A30B3 |
:101CA00049F48091780090917900820F931F969566 |
:101CB000879506C08091780090917900820F931FDC |
:101CC0009093D5048093D40481E092CF8091000159 |
:101CD0002091E8043091E9048A3049F48091780039 |
:101CE00090917900820F931F9695879506C08091F9 |
:101CF000780090917900820F931F9093D304809382 |
:101D0000D20482E075CF809100012091E6043091E9 |
:101D1000E7048A3049F48091780090917900820F2D |
:101D2000931F9695879506C08091780090917900D1 |
:101D3000820F931F9093D1048093D00485E058CFF5 |
:101D40006091780070917900E0900805F0900905A5 |
:101D500000910A0510910B05882777FD8095982F33 |
:101D60000E94F446A80197010E94F4450E94C146D2 |
:101D70007093DB046093DA04E091DA04F091DB0401 |
:101D800080912E0890912F08C0913908D0913A087F |
:101D900097FF03C0909581959F4F64E070E00E948B |
:101DA0004E489B01CE01D7FF03C0909581959F4F70 |
:101DB00064E070E00E944E48260F371FE20FF31FC9 |
:101DC000F093DB04E093DA048091DA049091DB0471 |
:101DD000029704F1609108057091090580910A0548 |
:101DE00090910B0520E030E048E454E40E942F4736 |
:101DF00088230CF03CC06091080570910905809122 |
:101E00000A0590910B052AE037ED43EA5CE30E9456 |
:101E1000F54525C08091DA049091DB048F5F9F4FD8 |
:101E200034F5609108057091090580910A0590913B |
:101E30000B0520E030E046E154E40E9433471816D9 |
:101E4000B4F4609108057091090580910A0590919C |
:101E50000B052AE037ED43EA5CE30E94F44560930A |
:101E600008057093090580930A0590930B0581E09E |
:101E70008093E104809178009091790090933108EB |
:101E800080933008209146053091470540914805E0 |
:101E9000509149058091DA049091DB04AA2797FDBF |
:101EA000A095BA2F820F931FA41FB51F80934605DC |
:101EB00090934705A0934805B0934905E0904605E7 |
:101EC000F09047050091480510914905609146053D |
:101ED00070914705809148059091490520E034E0D4 |
:101EE00040E050E00E948348E21AF30A040B150B0D |
:101EF000E0924605F0924705009348051093490586 |
:101F000083E076CE80913E0890913F082091780042 |
:101F100030917900820F931F90933F0880933E0881 |
:101F2000809136088F5F809336088091360885301F |
:101F300008F460C0809178009091790090930F032D |
:101F400080930E03109236088091320890913308E6 |
:101F500020913E0830913F08821B930B209166052B |
:101F600030916705821B930B9093E3048093E20406 |
:101F700020913E0830913F08E0900A03F0900B0357 |
:101F800000910C0310910D03C801B701660F771F74 |
:101F9000881F991F6E0D7F1D801F911F442737FDDD |
:101FA0004095542F620F731F841F951F24E030E06B |
:101FB00040E050E00E94834820930A0330930B03D3 |
:101FC00040930C0350930D03209132083091330855 |
:101FD00080910A0390910B03A0910C03B0910D0323 |
:101FE000281B390B309367052093660510923F0834 |
:101FF00010923E081092ED041092EC048091ED04D2 |
:1020000080937C008091EC04882319F08FEE8093FC |
:102010007A00FF91EF91DF91CF91BF91AF919F91A6 |
:102020008F917F916F915F914F913F912F911F9170 |
:102030000F91FF90EF900F900FBE0F901F9018958B |
:102040000F931F93CF93DF93A3E0B0E00E94D54896 |
:10205000802DC82FD0E0C531D10508F02A97C7BD23 |
:1020600084E690E00E944C0D80910E0390910F0346 |
:1020700082559340C8F4C0E0D0E016C0C7BD82E3EB |
:1020800090E00E944C0D1F930F931F920E94E10855 |
:1020900080910E0390910F030F900F900F90845832 |
:1020A000934038F0219602C000E711E0CA3FD10505 |
:1020B00028F3A3E0B0E00C2E0E94DD48C0933B085B |
:1020C0008CE291E00E944C0DDF91CF911F910F9116 |
:1020D0000895EAE1F3E080E2819383E0EA36F807CD |
:1020E000D1F708950F931F938091F104282F30E0CA |
:1020F000C90181709070682F8823A9F08091F20443 |
:10210000882311F0815002C080916A038093F20409 |
:10211000EAE1F3E080E2819383E0EA36F807D1F761 |
:102120008FEF8093AC04A9014270507021FF10C062 |
:102130008091F2048F5F8093F204EAE1F3E080E2A1 |
:10214000819393E0EA36F907D1F78FEF8093AC04DF |
:10215000662321F0452B11F01092F20481E1809367 |
:10216000F0048091F20490E09F938F938CE194E0CF |
:102170009F938F9301E00F930E94E1081091F20466 |
:102180000F900F900F900F900F90153009F4FCC135 |
:10219000163090F4123009F4CCC0133030F411230F |
:1021A000F1F0113009F0D9C361C0133009F416C140 |
:1021B000143009F0D2C365C1183009F416C31930C0 |
:1021C00038F4163009F499C2173009F0C6C3EAC2D0 |
:1021D000193009F447C31A3009F0BFC381C3109204 |
:1021E000F0048AE094E09F938F930F930E94E1089C |
:1021F00084E18093F00420910001822F6AE00E9424 |
:102200002E48492F50E0822F0E942E4890E021E670 |
:1022100030E03F932F9324E030E03F932F931F92C1 |
:102220001F925F934F939F938F9385EF93E09F93BC |
:102230008F930F930E94E10888E28093F0040E943C |
:102240008B0290E09F938F9388EE93E09F938F9300 |
:102250000F930E94E1088CE38093F00488ED93E0F3 |
:102260009F938F930F930E94E10898C280917E08FC |
:1022700080FF47C01092F004809166059091670539 |
:102280009F938F9389EC93E09F938F931F930E946A |
:10229000E10884E18093F0048091680590916905DC |
:1022A0009F938F938AEB93E09F938F931F930E944A |
:1022B000E10888E28093F00480910E0390910F036F |
:1022C0009F938F938BEA93E09F938F931F930E942A |
:1022D000E1088CE38093F00480913B0890E09F93A9 |
:1022E0008F938CE993E09F938F931F930E94E10853 |
:1022F0008DB79EB744960FB6F8949EBF0FBE8DBFA4 |
:1023000031C384E18093F00485E993E09F938F9338 |
:102310001F930E94E10888E28093F00487E893E02D |
:102320009F938F931F930E94E1088DB79EB70696E7 |
:10233000E2CF1092F0048DE793E09F938F930F9379 |
:102340000E94E10884E18093F00460910E05709191 |
:102350000F05809110059091110520E034E040E0D8 |
:1023600050E00E9483485F934F933F932F938EE6F4 |
:1023700093E09F938F930F930E94E10888E28093EC |
:10238000F0046091160570911705809118059091E1 |
:10239000190520E034E040E050E00E9483485F935C |
:1023A0004F933F932F938FE593E09F938F930F93DA |
:1023B0000E94E1088CE38093F00480914A0590919B |
:1023C0004B059F938F9380E593E09F938F930F939B |
:1023D0000E94E1088DB79EB746968DCF1092F0040B |
:1023E00080914C0890914D0820914A0830914B08FB |
:1023F0009F938F933F932F9380E493E09F938F93CA |
:102400000F930E94E10884E18093F00480915008CA |
:102410009091510820914E0830914F089F938F93CF |
:102420003F932F9380E393E09F938F930F930E94AA |
:10243000E10888E28093F004809154089091550857 |
:1024400020915208309153089F938F933F932F937D |
:1024500080E293E09F938F930F930E94E1088CE3B7 |
:102460008093F00480915808909159082091560863 |
:10247000309157089F938F933F932F9380E193E080 |
:102480007AC01092F004E0917708F0E0EE0FFF1FA1 |
:10249000E85BF74F20813181E0917608F0E0EE0FA4 |
:1024A000FF1FE85BF74F808191813F932F939F93AC |
:1024B0008F9380E093E09F938F930F930E94E108A6 |
:1024C00084E18093F004E0917908F0E0EE0FFF1FC3 |
:1024D000E85BF74F20813181E0917808F0E0EE0F62 |
:1024E000FF1FE85BF74F808191813F932F939F936C |
:1024F0008F9380EF92E09F938F930F930E94E10858 |
:1025000088E28093F004E0917B08F0E0EE0FFF1F7B |
:10251000E85BF74F20813181E0917A08F0E0EE0F1F |
:10252000FF1FE85BF74F808191813F932F939F932B |
:102530008F9380EE92E09F938F930F930E94E10818 |
:102540008CE38093F004E0917D08F0E0EE0FFF1F34 |
:10255000E85BF74F20813181E0917C08F0E0EE0FDD |
:10256000FF1FE85BF74F808191813F932F939F93EB |
:102570008F9380ED92E09F938F930F930E94E108D9 |
:102580008DB79EB74C96B7CE1092F00482EC92E0D5 |
:102590009F938F930F930E94E1080F900F900F90DD |
:1025A000809100018A3009F04AC084E18093F004F0 |
:1025B0004091FA045091FB048091D0049091D10491 |
:1025C0002091FA043091FB04821B930B5F934F938D |
:1025D0009F938F9383EB92E09F938F930F930E942F |
:1025E000E10888E28093F0044091FC045091FD04DE |
:1025F0008091D2049091D3042091FC043091FD0489 |
:10260000821B930B5F934F939F938F9384EA92E087 |
:102610009F938F930F930E94E1088CE38093F004C3 |
:102620008091FE049091FF042091FD083091FE08F6 |
:102630009F938F933F932F9385E992E055C084E158 |
:102640008093F0048091FA049091FB0462E070E0C2 |
:102650000E944E488091D0049091D1042091FA04B8 |
:102660003091FB04821B930B7F936F939F938F9307 |
:1026700086E892E09F938F930F930E94E10888E28F |
:102680008093F0048091FC049091FD0462E070E07E |
:102690000E944E488091D2049091D3042091FC0472 |
:1026A0003091FD04821B930B7F936F939F938F93C5 |
:1026B00087E792E09F938F930F930E94E1088CE34A |
:1026C0008093F0048091FE049091FF0462E070E03A |
:1026D0000E944E488091FD089091FE087F936F9371 |
:1026E0009F938F9388E692E09F938F930F930E941E |
:1026F000E1088DB79EB74596FECD1092F0048BE5AC |
:1027000092E09F938F930F930E94E10884E180935E |
:10271000F00480910405909105052091D804309132 |
:10272000D9049F938F933F932F938CE492E09F93D0 |
:102730008F930F930E94E10888E28093F0048091C8 |
:102740000605909107052091D6043091D7049F93F8 |
:102750008F933F932F938DE392E09F938F930F93EB |
:102760000E94E1088CE38093F00460910805709169 |
:10277000090580910A0590910B050E94C1462091A0 |
:10278000D1083091D2087F936F933F932F938EE2BD |
:1027900092E09F938F930F930E94E1088DB79EB7AD |
:1027A0004896A9CD84E18093F0048091080390912C |
:1027B00009039F938F938FE192E09F938F930F93E1 |
:1027C0000E94E10888E28093F00480915E0590E029 |
:1027D0009F938F9380E192E09F938F930F930E943A |
:1027E000E1088DB79EB70A9686CD1092F00481E07D |
:1027F00092E09F938F930F930E94E10884E180936E |
:10280000F00480914E0590914F059F938F9382EF36 |
:1028100091E09F938F930F930E94E10888E2809349 |
:10282000F00480914A0590914B059F938F9383EE1E |
:1028300091E09F938F930F930E94E1088CE3809324 |
:10284000F00480914C0590914D059F938F9384EDFA |
:1028500091E09F938F930F930E94E1088DB79EB7ED |
:10286000429649CD1092F0048091560590915705FB |
:102870009F938F9388EC91E09F938F930F930E9487 |
:10288000E10884E18093F004809158059091590506 |
:102890009F938F938CEB91E09F938F930F930E9464 |
:1028A000E10888E28093F00480915A0590915B05DD |
:1028B0009F938F9380EB91E09F938F930F930E9450 |
:1028C000E1088CE38093F00480915C0590915D05B4 |
:1028D0009F938F9384EA91E09F938F930F9306CDFC |
:1028E0001092F0048CE991E09F938F930F930E94D4 |
:1028F000E10884E18093F00480919C0390E09F9331 |
:102900008F938EE891E09F938F930F930E94E1083D |
:1029100088E28093F0048091C6049091C7049F934D |
:102920008F9380E891E09F938F930F930E94E1082B |
:102930008CE38093F00420919A0830E0809199080C |
:1029400090E03F932F939F938F9382E791E09F9323 |
:102950008F930F930E94E108CBCC115010936A0320 |
:102960001092F2041092F1041F910F9108951092A9 |
:10297000B9008AE28093B800089585EA8093BC008C |
:1029800080E090E0089584E98093BC00089510925F |
:10299000B9008093BB0085E88093BC0080E090E0A4 |
:1029A00008951F920F920FB60F9211248F939F9349 |
:1029B000EF93FF938091F3048F5F8093F304815032 |
:1029C0008330C1F1843028F4813091F0823020F5D9 |
:1029D0000AC08530B9F18530E8F18630D9F1873009 |
:1029E00009F062C046C08091F404880F8E5A0CC072 |
:1029F0008091F4048F5F8093F40481502DC0833064 |
:102A000009F052C08091F5081092B9008093BB0084 |
:102A100085E88093BC0048C084E98093BC00809125 |
:102A2000F404843018F41092F30402C01092F404F9 |
:102A300085EAEFCF8091F504880F8D5AE5CF82307B |
:102A4000A9F0DDCF8091BB00E091F504F0E0E05CFF |
:102A5000F74F80838091F504813029F0813078F739 |
:102A60008091C008D1CF8091C508CECF8091E90870 |
:102A7000CBCF8091F5049091BB00E82FF0E0E05CB3 |
:102A8000F74F94838F5F8093F504843010F0109299 |
:102A9000F50484E98093BC008AE090E0909386037B |
:102AA000809385031092F3048091BC00806880932A |
:102AB000BC00FF91EF919F918F910F900FBE0F90EF |
:102AC0001F9018954CEB50E084E9DA018C9310923A |
:102AD000F3042BEB30E0F90180811092F40480E8DC |
:102AE0008C931092BD001092BA001082E9EBF0E0D6 |
:102AF0001082A8EBB0E01C9210828AE28C9385EAE7 |
:102B0000DA018C931082F901108285E88C93089584 |
:102B100083EC80938100EFE6F0E080818062808327 |
:102B20001092FF041092FE041092FD041092FC0417 |
:102B30001092FB041092FA0408951F920F920FB6A0 |
:102B40000F9211240F931F932F933F934F935F93F3 |
:102B50006F937F938F939F93AF93BF93CF93DF93A5 |
:102B6000EF93FF9320918600309187008091F804C5 |
:102B70009091F904281B390B809186009091870071 |
:102B80009093F9048093F804C9018D549440C09146 |
:102B9000F604D091F704835F9A4158F4249714F017 |
:102BA00010926B0381E090E09093F7048093F60419 |
:102BB00062C0CA30D1050CF05EC0C9018B5F904085 |
:102BC000845B914008F040C0A901425D5140FE0184 |
:102BD000EE0FFF1FE85BF74F80819181FA01E81B40 |
:102BE000F90BCF01F7FF03C0909581959F4F069792 |
:102BF0004CF480915E05883C28F480915E05865FE8 |
:102C000080935E05FE01EE0FFF1F8F01085B174FDB |
:102C1000D8012D913C91C901880F991F820F931FF4 |
:102C2000840F951F64E070E00E944E48D8018D919A |
:102C30009C9111979B01281B390BE25AF74F318366 |
:102C4000208311967C936E93FE013196F093F704E6 |
:102C5000E093F604E530F10511F45D9A06C05D9845 |
:102C6000E630F10511F45C9A05C05C98379711F4D1 |
:102C70005B9A01C05B98FF91EF91DF91CF91BF917B |
:102C8000AF919F918F917F916F915F914F913F9104 |
:102C90002F911F910F910F900FBE0F901F901895BD |
:102CA0002F923F924F925F926F927F928F929F925C |
:102CB000AF92BF92CF92DF92EF92FF920F931F934A |
:102CC000CF93DF93CDB7DEB722970FB6F894DEBF70 |
:102CD0000FBECDBF8091FE049091FF042091D404DB |
:102CE0003091D504821B930B9093FE088093FD08CE |
:102CF0008091D2049091D3042091FC043091FD0482 |
:102D0000821B930B9093BF088093BE088091D004E0 |
:102D10009091D1042091FA043091FB04821B930B13 |
:102D20009093C7088093C6082091F8083091F9085D |
:102D30006091D8047091D904882777FD8095982FE9 |
:102D4000B4E0660F771F881F991FBA95D1F7442703 |
:102D500037FD4095542F620F731F841F951F22E08B |
:102D600030E040E050E00E9483483093F90820931F |
:102D7000F80820910409309105096091D6047091FA |
:102D8000D704882777FD8095982FA4E0660F771FDA |
:102D9000881F991FAA95D1F7442737FD4095542FD6 |
:102DA000620F731F841F951F22E030E040E050E067 |
:102DB0000E94834830930509209304092091D1088B |
:102DC0003091D2086091DA047091DB04882777FD96 |
:102DD0008095982F442737FD4095542F620F731F1D |
:102DE000841F951F22E030E040E050E00E948348BD |
:102DF0003093D2082093D10820911E0530911F05F1 |
:102E000040912005509121058091D8049091D904DA |
:102E1000F4E0880F991FFA95E1F7AA2797FDA0958E |
:102E2000BA2F820F931FA41FB51F80931E05909386 |
:102E30001F05A0932005B093210520912205309114 |
:102E4000230540912405509125058091D604909149 |
:102E5000D704E4E0880F991FEA95E1F7AA2797FDC8 |
:102E6000A095BA2F820F931FA41FB51F8093220530 |
:102E700090932305A0932405B09325056091260522 |
:102E8000709127058091280590912905E0903008E0 |
:102E9000F0903108A0900805B0900905C0900A058F |
:102EA000D0900B050E94F4463B014C010027F7FC33 |
:102EB0000095102FC801B7010E94F446A6019501A4 |
:102EC0000E94F4459B01AC01C401B3010E94F54589 |
:102ED0000E94C146609326057093270580932805BC |
:102EE000909329052091FD083091FE08442737FD75 |
:102EF0004095542F80910D0990910E09A0910F09D2 |
:102F0000B0911009820F931FA41FB51F80930D0964 |
:102F100090930E09A0930F09B09310092091FD081A |
:102F20003091FE08442737FD4095542F8091D508F5 |
:102F30009091D608A091D708B091D808820F931F1E |
:102F4000A41FB51F8093D5089093D608A093D708E7 |
:102F5000B093D80820913E0530913F05409140053F |
:102F6000509141058091FD089091FE08AA2797FD98 |
:102F7000A095BA2F820F931FA41FB51F80933E0503 |
:102F800090933F05A0934005B093410520914205E1 |
:102F90003091430540914405509145058091FD08CD |
:102FA0009091FE08AA2797FDA095BA2F820F931F34 |
:102FB000A41FB51F8093420590934305A093440539 |
:102FC000B093450520916E052A83222309F069C03C |
:102FD00080916F05882309F064C080917E0886FF88 |
:102FE00060C060912E0570912F0580913005909101 |
:102FF0003105E090FD08F090FE08A0907C05BB2410 |
:10300000CC24DD240027F7FC0095102F20E030E1D0 |
:1030100040E050E00E948348C801B7010E940F4879 |
:10302000A60195010E940F4820E038E040E050E002 |
:103030000E9483482093C7053093C8054093C90573 |
:103040005093CA0560913605709137058091380517 |
:1030500090913905E090FD08F090FE0820E030E105 |
:1030600040E050E00E948348CA01B901A6019501E1 |
:103070000E940F480027F7FC0095102FA801970128 |
:103080000E940F4820E038E040E050E00E94834872 |
:103090002093C3053093C4054093C5055093C605DE |
:1030A00010C01092C3051092C4051092C50510926D |
:1030B000C6051092C7051092C8051092C905109256 |
:1030C000CA058091BE089091BF082090C705309036 |
:1030D000C8054090C9055090CA05820D931D909374 |
:1030E000BF088093BE080091BE081091BF08A09051 |
:1030F000C305B090C405C090C505D090C6058091A9 |
:103100007D05682E772488249924C401B301A60183 |
:1031100095010E940F4820E032E040E050E00E941C |
:103120008348020F131F1093BF080093BE0820911D |
:103130003A0530913B0540913C0550913D05809109 |
:10314000BE089091BF08AA2797FDA095BA2F820FBD |
:10315000931FA41FB51F80933A0590933B05A0933E |
:103160003C05B0933D05409136055091370560917F |
:103170003805709139058091BE089091BF08209163 |
:103180006A0530916B05821B930BAA2797FDA095CA |
:10319000BA2F840F951FA61FB71F809336059093F3 |
:1031A0003705A0933805B093390580913605909185 |
:1031B0003705A0913805B0913905E0908B03F09068 |
:1031C0008C0300918D0310918E03E816F9060A070F |
:1031D0001B0704F580E197E2A0E0B0E08E199F099B |
:1031E000A00BB10B8093360590933705A09338055B |
:1031F000B09339058091360590913705A091380537 |
:10320000B091390580933A0590933B05A0933C0516 |
:10321000B0933D0520913605309137054091380532 |
:103220005091390588279927DC018E199F09A00B39 |
:10323000B10B281739074A075B0704F580EF98EDB3 |
:10324000AFEFBFEFE80EF91E0A1F1B1FE092360515 |
:10325000F0923705009338051093390580913605B3 |
:1032600090913705A0913805B091390580933A05C2 |
:1032700090933B05A0933C05B0933D058091D2040B |
:103280009091D3040F9734F488E19CEF9093BF089A |
:103290008093BE088091D2049091D304079734F4B0 |
:1032A00080E398EF9093BF088093BE08909100014F |
:1032B00099839A30A9F48091D2049091D304835FCA |
:1032C000934034F088EE93E09093BF088093BE085B |
:1032D0008091D2049091D3048A5F9340DCF014C0B3 |
:1032E0008091D2049091D304855E974034F088EEAB |
:1032F00093E09093BF088093BE088091D204909190 |
:10330000D304835F974034F080ED97E09093BF083B |
:103310008093BE088091C6089091C7088A199B09BE |
:103320009093C7088093C6080091C6081091C708FB |
:10333000C401B301A20191010E940F4820E032E0D4 |
:1033400040E050E00E948348021B130B1093C70813 |
:103350000093C60820913205309133054091340521 |
:10336000509135058091C6089091C708AA2797FD0E |
:10337000A095BA2F820F931FA41FB51F809332050B |
:1033800090933305A0933405B093350540912E05F5 |
:1033900050912F0560913005709131058091C608DC |
:1033A0009091C70820916C0530916D05821B930B9D |
:1033B000AA2797FDA095BA2F840F951FA61FB71FA8 |
:1033C00080932E0590932F05A0933005B09331057F |
:1033D00080912E0590912F05A0913005B091310577 |
:1033E000E0908703F09088030091890310918A038D |
:1033F000E816F9060A071B0704F580E197E2A0E04A |
:10340000B0E08E199F09A00BB10B80932E0590930D |
:103410002F05A0933005B093310580912E05909132 |
:103420002F05A0913005B09131058093320590931E |
:103430003305A0933405B093350520912E053091C6 |
:103440002F05409130055091310588279927DC01DF |
:103450008E199F09A00BB10B281739074A075B0784 |
:1034600004F580EF98EDAFEFBFEFE80EF91E0A1FED |
:103470001B1FE0922E05F0922F050093300510934C |
:10348000310580912E0590912F05A0913005B091C6 |
:1034900031058093320590933305A0933405B093A2 |
:1034A00035058091D0049091D1040F9734F488E1D0 |
:1034B0009CEF9093C7088093C6088091D0049091A8 |
:1034C000D104079734F480E398EF9093C708809372 |
:1034D000C60899819A30A9F48091D0049091D104C2 |
:1034E000835F934034F088EE93E09093C708809315 |
:1034F000C6088091D0049091D1048A5F9340DCF09B |
:1035000014C08091D0049091D104855E974034F02E |
:1035100088EE93E09093C7088093C6088091D0040A |
:103520009091D104835F974034F080ED97E09093C1 |
:10353000C7088093C6088FEE80937A0080913E057D |
:1035400090913F05A0914005B091410580932A05D7 |
:1035500090932B05A0932C05B0932D0580912E05FB |
:1035600090912F05A0913005B091310580930E0503 |
:1035700090930F05A0931005B09311058091360527 |
:1035800090913705A0913805B091390580931605C3 |
:1035900090931705A0931805B093190580913205F3 |
:1035A00090913305A0913405B091350580931205B3 |
:1035B00090931305A0931405B093150580913A05D7 |
:1035C00090913B05A0913C05B0913D0580931A0573 |
:1035D00090931B05A0931C05B0931D0580917E0858 |
:1035E00087FF63C02A81222309F05FC080916F05A5 |
:1035F000882309F05AC08091C6089091C708893C79 |
:1036000091055CF02091C6083091C7088091C608EA |
:103610009091C7082052334011C08091C608909104 |
:10362000C70888539F4FA4F42091C6083091C7085B |
:103630008091C6089091C708205E3C4F880F991F63 |
:10364000880F991F280F391F3093C7082093C60889 |
:103650008091BE089091BF08893C91055CF0209153 |
:10366000BE083091BF088091BE089091BF082052DB |
:10367000334011C08091BE089091BF0888539F4F7E |
:10368000A4F42091BE083091BF088091BE089091AB |
:10369000BF08205E3C4F880F991F880F991F280F85 |
:1036A000391F3093BF082093BE08209156053091F2 |
:1036B000570580917A08E82FF0E0EE0FFF1FE85BD6 |
:1036C000F74F8081918182599F4F281739071CF449 |
:1036D0002F5F3F4F0CC08081918182599F4F82178D |
:1036E00093074CF42115310531F0215030403093CF |
:1036F0005705209356052091580530915905809122 |
:103700007B08E82FF0E0EE0FFF1FE85BF74F8081AA |
:10371000918182599F4F281739071CF42F5F3F4F23 |
:103720000CC08081918182599F4F821793074CF47E |
:103730002115310531F02150304030935905209347 |
:10374000580520915A0530915B0580917C08E82F3F |
:10375000F0E0EE0FFF1FE85BF74F80819181825907 |
:103760009F4F281739071CF42F5F3F4F0CC08081F3 |
:10377000918182599F4F821793074CF4211531058F |
:1037800031F02150304030935B0520935A05209151 |
:103790005C0530915D0580917D08E82FF0E0EE0F2B |
:1037A000FF1FE85BF74F8081918182599F4F281757 |
:1037B00039071CF42F5F3F4F0CC0808191818259E3 |
:1037C0009F4F821793074CF42115310531F021509A |
:1037D000304030935D0520935C05809156059091B3 |
:1037E000570597FF05C010925705109256050AC05D |
:1037F0008F3F910539F034F08FEF90E090935705AB |
:1038000080935605809158059091590597FF05C002 |
:1038100010925905109258050AC08F3F910539F052 |
:1038200034F08FEF90E09093590580935805809184 |
:103830005A0590915B0597FF05C010925B051092A9 |
:103840005A050AC08F3F910539F034F08FEF90E0B0 |
:1038500090935B0580935A0580915C0590915D057E |
:1038600097FF05C010925D0510925C050AC08F3F5E |
:10387000910539F034F08FEF90E090935D058093DF |
:103880005C0522960FB6F894DEBF0FBECDBFDF9168 |
:10389000CF911F910F91FF90EF90DF90CF90BF904D |
:1038A000AF909F908F907F906F905F904F903F90E0 |
:1038B0002F90089510927A008091D0049091D104B5 |
:1038C0009093C7088093C6088091D2049091D30446 |
:1038D0009093BF088093BE088091D4049091D50442 |
:1038E0009093FE088093FD088091D8049091D904AC |
:1038F000AA2797FDA095BA2F74E0880F991FAA1FD9 |
:10390000BB1F7A95D1F79093F9088093F8088091BE |
:10391000D6049091D704AA2797FDA095BA2F64E00A |
:10392000880F991FAA1FBB1F6A95D1F790930509AD |
:10393000809304098091DA049091DB049093D2087B |
:103940008093D1088FEE80937A00209156053091B4 |
:10395000570580917A08E82FF0E0EE0FFF1FE85B33 |
:10396000F74F8081918182599F4F281739071CF4A6 |
:103970002F5F3F4F0CC08081918182599F4F8217EA |
:1039800093074CF42115310531F02150304030932C |
:10399000570520935605209158053091590580917F |
:1039A0007B08E82FF0E0EE0FFF1FE85BF74F808108 |
:1039B000918182599F4F281739071CF42F5F3F4F81 |
:1039C0000CC08081918182599F4F821793074CF4DC |
:1039D0002115310531F021503040309359052093A5 |
:1039E000580520915A0530915B0580917C08E82F9D |
:1039F000F0E0EE0FFF1FE85BF74F80819181825965 |
:103A00009F4F281739071CF42F5F3F4F0CC0808150 |
:103A1000918182599F4F821793074CF421153105EC |
:103A200031F02150304030935B0520935A052091AE |
:103A30005C0530915D0580917D08E82FF0E0EE0F88 |
:103A4000FF1FE85BF74F8081918182599F4F2817B4 |
:103A500039071CF42F5F3F4F0CC080819181825940 |
:103A60009F4F821793074CF42115310531F02150F7 |
:103A7000304030935D0520935C0580915605909110 |
:103A8000570597FF05C010925705109256050AC0BA |
:103A90008F3F910539F034F08FEF90E09093570508 |
:103AA00080935605809158059091590597FF05C060 |
:103AB00010925905109258050AC08F3F910539F0B0 |
:103AC00034F08FEF90E090935905809358058091E2 |
:103AD0005A0590915B0597FF05C010925B05109207 |
:103AE0005A050AC08F3F910539F034F08FEF90E00E |
:103AF00090935B0580935A0580915C0590915D05DC |
:103B000097FF05C010925D0510925C050AC08F3FBB |
:103B1000910539F034F08FEF90E090935D0580933C |
:103B20005C056091A10870E080E090E024EC39E051 |
:103B300040E050E00E940F48609387037093880331 |
:103B40008093890390938A0360938B0370938C0313 |
:103B500080938D0390938E030895809181088B3F0D |
:103B600098F08B3F19F4809156050EC08C3F19F4E4 |
:103B70008091580509C08D3F19F480915A0504C001 |
:103B80008E3F21F480915C0580939403809194038F |
:103B9000882319F41092940304C08F3F11F480938A |
:103BA0009403809180088B3F98F08B3F19F48091AB |
:103BB00056050EC08C3F19F48091580509C08D3F01 |
:103BC00019F480915A0504C08E3F21F480915C0560 |
:103BD0008093930380919303882319F410929303A5 |
:103BE00005C0843618F084E68093930380918208A0 |
:103BF0008B3F98F08B3F19F4809156050EC08C3F97 |
:103C000019F48091580509C08D3F19F480915A0527 |
:103C100004C08E3F21F480915C05809395038091D0 |
:103C20009503882319F41092950305C0843618F083 |
:103C300084E680939503809184088B3F98F08B3FB6 |
:103C400019F4809156050EC08C3F19F480915805E7 |
:103C500009C08D3F19F480915A0504C08E3F21F4AC |
:103C600080915C058093960380919603882319F4D4 |
:103C70001092960304C08F3F11F4809396038091B5 |
:103C80008B088B3F98F08B3F19F4809156050EC03E |
:103C90008C3F19F48091580509C08D3F19F480912B |
:103CA0005A0504C08E3F21F480915C0580939703F0 |
:103CB00080919703882319F41092970304C08F3FD3 |
:103CC00011F48093970380918C088B3F98F08B3F81 |
:103CD00019F4809156050EC08C3F19F48091580557 |
:103CE00009C08D3F19F480915A0504C08E3F21F41C |
:103CF00080915C0580939803809198038B3010F439 |
:103D00008AE002C08F3F11F48093980380918D0860 |
:103D10008B3F98F08B3F19F4809156050EC08C3F75 |
:103D200019F48091580509C08D3F19F480915A0506 |
:103D300004C08E3F21F480915C05809399038091AB |
:103D40009903882319F41092990304C08F3F11F44A |
:103D500080939903809192088B3F98F08B3F19F4E0 |
:103D6000809156050EC08C3F19F48091580509C00A |
:103D70008D3F19F480915A0504C08E3F21F4809143 |
:103D80005C0580939B0380919B03882319F4109218 |
:103D90009B0304C08F3F11F480939B038091930891 |
:103DA0008B3F98F08B3F19F4809156050EC08C3FE5 |
:103DB00019F48091580509C08D3F19F480915A0576 |
:103DC00004C08E3F21F480915C058093740580913E |
:103DD0007405882319F41092740504C08F3F11F400 |
:103DE00080937405809194088B3F98F08B3F19F471 |
:103DF000809156050EC08C3F19F48091580509C07A |
:103E00008D3F19F480915A0504C08E3F21F48091B2 |
:103E10005C058093750580917505882319F41092CF |
:103E2000750504C08F3F11F4809375058091950846 |
:103E30008B3F98F08B3F19F4809156050EC08C3F54 |
:103E400019F48091580509C08D3F19F480915A05E5 |
:103E500004C08E3F21F480915C05809376058091AB |
:103E60007605882319F41092760504C08F3F11F46B |
:103E700080937605809196088B3F98F08B3F19F4DC |
:103E8000809156050EC08C3F19F48091580509C0E9 |
:103E90008D3F19F480915A0504C08E3F21F4809122 |
:103EA0005C058093770580917705882319F410923B |
:103EB000770504C08F3F11F4809377058091A608A1 |
:103EC0008B3F98F08B3F19F4809156050EC08C3FC4 |
:103ED00019F48091580509C08D3F19F480915A0555 |
:103EE00004C08E3F21F480915C0580937805809119 |
:103EF0007805882319F41092780504C08F3F11F4D7 |
:103F0000809378058091A7088B3F98F08B3F19F438 |
:103F1000809156050EC08C3F19F48091580509C058 |
:103F20008D3F19F480915A0504C08E3F21F4809191 |
:103F30005C058093790580917905882319F41092A6 |
:103F4000790504C08F3F11F4809379058091A8080A |
:103F50008B3F98F08B3F19F4809156050EC08C3F33 |
:103F600019F48091580509C08D3F19F480915A05C4 |
:103F700004C08E3F21F480915C0580937A05809186 |
:103F80007A05882319F410927A0504C08F3F11F442 |
:103F900080937A058091A9088B3F98F08B3F19F4A4 |
:103FA000809156050EC08C3F19F48091580509C0C8 |
:103FB0008D3F19F480915A0504C08E3F21F4809101 |
:103FC0005C0580937B0580917B05882319F4109212 |
:103FD0007B0504C08F3F11F480937B058091970887 |
:103FE0008B3F98F08B3F19F4809156050EC08C3FA3 |
:103FF00019F48091580509C08D3F19F480915A0534 |
:1040000004C08E3F21F480915C0580939C038091D5 |
:104010009C03882319F410929C0304C08F3F11F471 |
:1040200080939C0380919C088B3F98F08B3F19F400 |
:10403000809156050EC08C3F19F48091580509C037 |
:104040008D3F19F480915A0504C08E3F21F4809170 |
:104050005C0580939D0380919D03882319F4109241 |
:104060009D0304C08F3F11F480939D0380919F08AE |
:104070008B3F98F08B3F19F4809156050EC08C3F12 |
:1040800019F48091580509C08D3F19F480915A05A3 |
:1040900004C08E3F21F480915C0580937C05809163 |
:1040A0007C05882319F410927C0504C08F3F11F41D |
:1040B00080937C058091A0088B3F98F08B3F19F48A |
:1040C000809156050EC08C3F19F48091580509C0A7 |
:1040D0008D3F19F480915A0504C08E3F21F48091E0 |
:1040E0005C0580937D0580917D05882319F41092ED |
:1040F0007D0504C08F3F11F480937D058091A50854 |
:104100008B3F98F08B3F19F4809156050EC08C3F81 |
:1041100019F48091580509C08D3F19F480915A0512 |
:1041200004C08E3F21F480915C0580939E038091B2 |
:104130009E03882319F410929E0304C08F3F11F44C |
:1041400080939E0360919B0370E080E090E00E946A |
:10415000474427E137EB41ED58E30E94AC476093B9 |
:104160008F037093900380939103909392038091B7 |
:1041700089088093FC08809188088093C808089576 |
:104180001F93182F0EC080916505882361F484E683 |
:1041900090E09093C5048093C4048AEF90E00E945D |
:1041A000690D115080F71F9108958091650588234E |
:1041B00001F51092C5081092C0081092E9081092FB |
:1041C000F5088091AE04882311F08093C008809197 |
:1041D000AF04882311F08093C5088091B004882330 |
:1041E00011F08093F5088091B104882311F0809339 |
:1041F000E9081092F3041092F4040E94BD1408958B |
:10420000469A109205051092040510920705109227 |
:10421000060580E090E0A0E0B0E080930805909370 |
:104220000905A0930A05B0930B051092FB041092A8 |
:10423000FA041092FD041092FC041092FF041092F4 |
:10424000FE0410927C0510927D050E945A1C84E6A3 |
:1042500090E00E944C0D0E945A1C80917E0880FFC5 |
:1042600010C080910E0390910F03875B934038F448 |
:1042700080910E0390910F038E5E924010F40E9485 |
:1042800020108091D0049091D1049093FB048093EE |
:10429000FA048091D2049091D3049093FD0480930A |
:1042A000FC048091D4049091D5049093FF048093F2 |
:1042B000FE048091FC049091FD049093010580938D |
:1042C00000058091FA049091FB049093030580937C |
:1042D000020544E050E0DA010E94D548802D853087 |
:1042E00038F1809104099091050997FF03C09095DA |
:1042F00081959F4F60E170E00E944E4870930705E2 |
:10430000609306058091F8089091F90897FF03C023 |
:10431000909581959F4F60E170E00E944E487093A8 |
:10432000050560930405609130087091310839C02B |
:10433000DA010E94D548802D4F5F5F4FDA010E945D |
:10434000D548202D90E0982F8827820F911D9093BB |
:104350000505809304054F5F5F4FDA010E94D54841 |
:10436000802D4F5F5F4FDA010E94D548202D90E0ED |
:10437000982F8827820F911D90930705809306053B |
:104380004F5F5F4FDA010E94D548602D4F5F5F4F4E |
:10439000DA010E94D548202D70E0762F6627620F43 |
:1043A000711D882777FD8095982F0E94F4466093B1 |
:1043B00008057093090580930A0590930B051092E8 |
:1043C0002E0510922F051092300510923105109293 |
:1043D0003205109233051092340510923505109273 |
:1043E0003605109237051092380510923905109253 |
:1043F0003A0510923B0510923C0510923D05109233 |
:104400003E0510923F051092400510924105109212 |
:10441000C7081092C6081092BF081092BE081092EA |
:10442000FE081092FD081092D5081092D60810923E |
:10443000D7081092D80880910A0390910B03A0919D |
:104440000C03B0910D0390933308809332081092BF |
:10445000E3041092E2041092460510924705109270 |
:1044600048051092490580914A0590914B0590931B |
:104470004D0580934C050E94993A82E390E0909319 |
:10448000C5048093C4046091A10870E080E090E0CE |
:1044900024EC39E040E050E00E940F48609387032D |
:1044A000709388038093890390938A036091A20894 |
:1044B00070E080E090E00E940F4860938B0370935F |
:1044C0008C0380938D0390938E031092A00310921F |
:1044D0009F0320914A0530914B0584E195E0AC01A2 |
:1044E000249FC001259F900D349F900D1124AA2771 |
:1044F00097FDA095BA2F80930D0990930E09A09374 |
:104500000F09B09310098EE190E09093CE0580934F |
:10451000CD059093CC058093CB05089581E08093E1 |
:10452000760852E05093770843E04093780874E0AF |
:104530007093790865E060937A0886E080937B0841 |
:1045400087E080937C0898E090937D0880EC8093CE |
:104550007E088EE180937F088BEF809381083AE09C |
:104560003093820822E3209380082093840850939C |
:1045700083084093850810928608909387088FE0FF |
:10458000809388088AEF809389088AE180938A085B |
:1045900080E880938B0888EC80938C088FEA809366 |
:1045A0008D0894E690938E088FE580938F088CE3B6 |
:1045B00080939008109291083093920880E5809340 |
:1045C00093081092940810929508109296081092F1 |
:1045D000A6081092A7081092A8081092A908909314 |
:1045E000970888E2809398081092AB082093990866 |
:1045F00086E980939A0860939B0820939C088AE53B |
:1046000080939D0820939E081092AA0890939F087B |
:104610003093A0089093A1089093A2089093A308C8 |
:104620007093A4082093A508A0EBB8E0ECE6F3E0B3 |
:104630008CE001900D928150E1F7089581E0809324 |
:10464000760892E09093770883E08093780844E0BE |
:104650004093790855E050937A0886E080937B0870 |
:1046600087E080937C0888E080937D0880E48093D5 |
:104670007E088EE180937F088BEF809381083AE07B |
:104680003093820822E3209380082093840890933B |
:1046900083084093850810928608309387088FE03E |
:1046A000809388088AEF809389088AE180938A083A |
:1046B00080E880938B088FEA80938C0880938D0824 |
:1046C00094E690938E088FE580938F088CE3809317 |
:1046D00090081092910880E28093920880E5809380 |
:1046E00093081092940810929508109296081092D0 |
:1046F000A6081092A7081092A8081092A9089093F3 |
:10470000970888E2809398081092AB082093990844 |
:1047100086E980939A0850939B0820939C088AE529 |
:1047200080939D0820939E081092AA0890939F085A |
:104730003093A0089093A1089093A2089093A308A7 |
:104740004093A4088BE48093A508A0EBB8E0E6E7CB |
:10475000F3E08CE001900D928150E1F7089581E043 |
:104760008093760882E08093770893E090937808AE |
:1047700044E04093790875E070937A0886E080936E |
:104780007B0887E080937C0888E080937D0880E444 |
:1047900080937E088EE180937F088BEF8093810861 |
:1047A0006AE06093820822E32093800820938408C3 |
:1047B0004093830890938508409386088EE0809309 |
:1047C00087088FE0809388088AEF809389088AE1C0 |
:1047D00080938A0880E880938B0888E780938C0810 |
:1047E00056E950938D0894E690938E088FE5809358 |
:1047F0008F088CE3809390081092910880E2809358 |
:1048000092083AE53093930888E18093940882E80F |
:1048100080939508109296081092A6081092A70807 |
:104820001092A8081092A9089093970888E28093A4 |
:1048300098081092AB082093990850939A087093A7 |
:104840009B0820939C0830939D0820939E0810920B |
:10485000AA0890939F086093A0089093A108909352 |
:10486000A2082093A3084093A4089093A508A0EB66 |
:10487000B8E0EEE7F3E08CE001900D928150E1F7B3 |
:1048800008952F923F924F925F926F927F928F92F4 |
:104890009F92AF92BF92CF92DF92EF92FF920F93CF |
:1048A0001F93CF93DF93CDB7DEB766970FB6F8941B |
:1048B000DEBF0FBECDBF0E94501680917809909147 |
:1048C0007909009729F001979093790980937809E5 |
:1048D0000E94653B892B39F4809100018A3011F4E4 |
:1048E000289A01C02898299AE0917808F0E0EE0F04 |
:1048F000FF1FE85BF74F008111818091FC0890E079 |
:10490000449708581F4F801791070CF48C01209191 |
:1049100008033091090380918E0890E0049740913C |
:1049200084055091850582179307C4F123E0493E21 |
:10493000520724F110928505109284058090CB05D2 |
:104940009090CC052091CD053091CE05C901880FFE |
:10495000991F820F931F880F991F880F991F6FE06F |
:1049600070E00E944E486815790574F40894810837 |
:1049700091089092CC058092CB0506C04F5F5F4FA7 |
:1049800050938505409384058091CB059091CC058B |
:10499000801791070CF03FC08C013DC033E0493EC9 |
:1049A0005307C4F08091CD059091CE059C0143E062 |
:1049B000220F331F4A95E1F7280F391FC801820FD4 |
:1049C000931F6AE070E00E944E487093CE0560939A |
:1049D000CD0519C0CA010196909385058093840581 |
:1049E0006AE070E00E944E48892B89F48091CB05E3 |
:1049F0009091CC058017910734F401969093CC05E3 |
:104A00008093CB0504C01093CC050093CB05009197 |
:104A1000CB051091CC051A83098317FF02C01A82B7 |
:104A2000198280915E05843608F05DC08091030193 |
:104A3000882399F480910403909105038F5F9F4F21 |
:104A400061F488E99AE39093C5048093C40480E0FC |
:104A50009CE090930503809304038091A5059091B9 |
:104A6000A605009731F001979093A6058093A505C0 |
:104A700004C01092650510925005809100018A30A3 |
:104A800011F4289A01C028988091A0059091A10561 |
:104A9000815D974028F180918F08682F70E07A83BC |
:104AA000698381E080935005E0917608F0E0EE0F95 |
:104AB000FF1FE85BF74F11821082E0917708F0E06A |
:104AC000EE0FFF1FE85BF74F11821082E09179082B |
:104AD000F0E0EE0FFF1FE85BF74F118210826EC20D |
:104AE000109265056BC280915E058D3808F466C230 |
:104AF000109250058091900822E3829FC0011124FA |
:104B00009093A6058093A50589819A8189976CF079 |
:104B10008091A0059091A105AFEF8F3F9A0729F0F2 |
:104B200001969093A1058093A0058091A005909196 |
:104B3000A105883C910520F0E981FA81B89704F538 |
:104B40001092BF051092C0051092C1051092C205C7 |
:104B50001092BB051092BC051092BD051092BE05C7 |
:104B600010923E0510923F051092400510924105AB |
:104B7000109242051092430510924405109245058B |
:104B800029813A81293C31050CF472C18091650577 |
:104B9000882309F013C280917908E82FF0E0EE0F26 |
:104BA000FF1FE85BF74F808191818C3491050CF4F5 |
:104BB000D5C08091A4058F5F8093A405893C08F43B |
:104BC000FDC129980E940021109265051092A4054C |
:104BD0001092A1051092A00580917608282F30E050 |
:104BE000F901EE0FFF1FE85BF74F80819181873459 |
:104BF00091059CF4E0917708F0E0EE0FFF1FE85B71 |
:104C0000F74F0190F081E02DF7FF03C0F095E1959B |
:104C1000FF4FE734F1050CF46CC080917708682FE2 |
:104C200070E0DB01AA0FBB1FA85BB74F8D919C9171 |
:104C30001197873491053CF0F901EE0FFF1FE85BF7 |
:104C4000F74F808191818D919C918734910564F01B |
:104C5000F901EE0FFF1FE85BF74F808191818734E8 |
:104C6000910514F042E001C041E0FB01EE0FFF1F8F |
:104C7000E85BF74F80819181863491055CF4F901FE |
:104C8000EE0FFF1FE85BF74F80819181873491051C |
:104C90000CF043E0FB01EE0FFF1FE85BF74F808154 |
:104CA00091818A5B9F4F5CF4F901EE0FFF1FE85B77 |
:104CB000F74F80819181873491050CF044E0660FB5 |
:104CC000771F685B774FDB018D919C918A5B9F4FCB |
:104CD0005CF4220F331F285B374FF90180819181EB |
:104CE000863491050CF445E0A2E0B0E0042E0E9469 |
:104CF000DD480E948B0247E466E778E00E94B2023A |
:104D00000E948B020E94C02080917E0880FF10C00C |
:104D100080910E0390910F03875B934038F480914C |
:104D20000E0390910F038E5E924010F40E942010AB |
:104D30000E94B83B80916209882309F43FC188EE44 |
:104D400093E00E94690D88EE93E09093C5048093F0 |
:104D5000C40484EF91E00E94690D30C1808191818B |
:104D6000855B9F4F0CF081C08091A4058F5F80937D |
:104D7000A405893C08F422C129988FEF04E010E0D3 |
:104D8000D801082E0E94DD48109265051092A405F6 |
:104D90001092A1051092A0050E94002180910405A7 |
:104DA0009091050560E071E00E944E48D801062E02 |
:104DB0000E94DD48809104059091050560E071E056 |
:104DC0000E944E480F5F1F4FD801082E0E94DD48F9 |
:104DD000809106059091070560E071E00E944E48C1 |
:104DE0000F5F1F4FD801062E0E94DD4880910605F7 |
:104DF0009091070560E071E00E944E480F5F1F4FE1 |
:104E0000D801082E0E94DD486091080570910905BF |
:104E100080910A0590910B050E94C146DC01CB01EF |
:104E200060E071E00E944E480F5F1F4FD801062ED0 |
:104E30000E94DD48609108057091090580910A057E |
:104E400090910B050E94C146DC01CB0160E071E04E |
:104E50000E944E480F5F1F4FD801082E0E94DD4868 |
:104E60000E948B020E94C020A9C01092A405A6C077 |
:104E7000E981FA81B3970CF0A1C0E0917908F0E0E4 |
:104E8000EE0FFF1FE85BF74F80819181855B9F4F9D |
:104E90000CF072C08091A3058F5F8093A305893CBD |
:104EA00008F46CC0469A88EC8093A30581E090E0FA |
:104EB0009093A1058093A00581E0809365051092F1 |
:104EC000B7051092B8051092B9051092BA05109264 |
:104ED0003E0510923F051092400510924105109238 |
:104EE0004205109243051092440510924505109218 |
:104EF0002E0510922F051092300510923105109258 |
:104F000036051092370510923805109239058091B8 |
:104F10000E0590910F05A0911005B0911105809399 |
:104F2000320590933305A0933405B09335058091F5 |
:104F3000160590911705A0911805B0911905809359 |
:104F40003A0590933B05A0933C05B0933D05109224 |
:104F5000BF051092C0051092C1051092C2051092B3 |
:104F6000BB051092BC051092BD051092BE0580E0F5 |
:104F700090E00E940D3D02C01092A305E0917908D7 |
:104F8000F0E0EE0FFF1FE85BF74F808191818C34DA |
:104F9000910594F08091A2058F5F8093A205893CD2 |
:104FA00068F046981092650588EC8093A2051092EF |
:104FB000A1051092A00502C01092A20580916B037A |
:104FC000815080936B0380916B038F3F29F0809118 |
:104FD0005005882309F429C30E94AD1D80917608ED |
:104FE000882E9924D401AA0FBB1FCD01885B974F4F |
:104FF000FC01808191819A8B898B80918508E82EB4 |
:10500000FF24A25AB74F0D90BC91A02DBC8BAB8B47 |
:1050100080918608282E332480917708C82EDD24BD |
:10502000C601880F991FDC01A85BB74F0D90BC919A |
:10503000A02DB88BAF87825A974FDC01AD90BC9002 |
:10504000E0917908AE2FB0E0AA0FBB1FA85BB74F65 |
:105050000D90BC91A02DBE87AD876091980370E044 |
:1050600080E090E00E94474420E030E040E251E4DC |
:105070000E94F54520E030E040E85BE30E94AC4749 |
:105080002B013C016093FF08709300098093010994 |
:10509000909302096091990370E080E090E00E9493 |
:1050A000474420E030EE4BE257E40E9459466093BB |
:1050B000E5087093E6088093E7089093E80820914C |
:1050C000B304222331F08AE090E09093C5048093EA |
:1050D000C404E22F22FF09C080917405482F50E0DC |
:1050E000440F551F440F551F10C023FD03C040E05F |
:1050F00050E00BC08091740590E0880F991F880FD5 |
:10510000991F44275527481B590B20917E05309144 |
:105110007F05C90113E0880F991F1A95E1F7821BDB |
:10512000930B840F951F68E070E00E944E488B013E |
:1051300070937F0560937E05E4FF09C0809174053C |
:10514000482F50E0440F551F440F551F10C0E5FD78 |
:1051500003C040E050E00BC08091740590E0880FE0 |
:10516000991F880F991F44275527481B590B809179 |
:105170008005909181059C01F3E0220F331FFA9581 |
:10518000E1F7281B390BCA01820F931F68E070E01A |
:105190000E944E487E8B6D8B7093810560938005D5 |
:1051A0008091B204282F83FF03C082E390E004C003 |
:1051B00082FF07C08EEC9FEF90938305809382055A |
:1051C00004C0109283051092820521FF09C08091CE |
:1051D0009F039091A00301969093A00380939F0357 |
:1051E00024FF09C080919F039091A00301979093A1 |
:1051F000A00380939F032B893C89229DF001239D6E |
:10520000F00D329DF00D112449895A894E9DC0013F |
:105210004F9D900D5E9D900D1124E80FF91FC80160 |
:1052200068E070E00E944E48E60FF71FFC8BEB8BA6 |
:10523000F0936005E0935F05A29C8001A39C100D94 |
:10524000B29C100D11246F8578896E9DC0016F9DF1 |
:10525000900D7E9D900D1124080F191F8D899E8938 |
:1052600068E070E00E944E48060F171F1093620519 |
:10527000009361058091820590918305AD85BE857F |
:105280008A1B9B0B909364058093630580917E0835 |
:1052900082FF0CC080E090E0A0E0B0E08093E508E1 |
:1052A0009093E608A093E708B093E80820E030E088 |
:1052B00040E050E0C301B2010E942F47882364F40C |
:1052C00080E090E0A0E0B0E08093FF0890930009B8 |
:1052D000A0930109B093020920E030E040E050E0E3 |
:1052E0006091E5087091E6088091E7089091E808E0 |
:1052F0000E942F47882364F480E090E0A0E0B0E0B3 |
:105300008093E5089093E608A093E708B093E80837 |
:105310008091AA08682F70E0E4E06E2E712C66225E |
:10532000772282FDC4C083FDC2C080910E0590919A |
:105330000F05A0911005B091110581569A4EA0401D |
:10534000B040E4F0C70173E0880F991F7A95E1F748 |
:105350002B893C89281B390B3093600520935F050E |
:1053600080910E0590910F05A0911005B091110547 |
:1053700081589843A140B040ACF128C080910E05FF |
:1053800090910F05A0911005B0911105805A95419B |
:10539000AF4FBF4F3CF5970153E0220F331F5A9593 |
:1053A000E1F74B895C89240F351F3093600520930A |
:1053B0005F0580910E0590910F05A0911005B091A9 |
:1053C000110581589843A140B04064F0C70144E002 |
:1053D000880F991F4A95E1F7281B390B3093600518 |
:1053E00020935F058091160590911705A0911805EF |
:1053F000B091190581569A4EA040B0403CF1C701CA |
:10540000B3E0880F991FBA95E1F7F801E81BF90B93 |
:10541000F0936205E0936105809116059091170560 |
:10542000A0911805B091190581589843A140B0404A |
:105430000CF43DC0A4E0EE0CFF1CAA95E1F7EE19B8 |
:10544000FF09F0936205E093610531C08091160574 |
:1054500090911705A0911805B0911905805A9541B2 |
:10546000AF4FBF4F24F5970173E0220F331F7A959A |
:10547000E1F7200F311F3093620520936105809181 |
:10548000160590911705A0911805B091190581583E |
:105490009843A140B0405CF054E0EE0CFF1C5A95DC |
:1054A000E1F72E193F093093620520936105F6015B |
:1054B000EE0FFF1FE85BF74F2081318180919D083F |
:1054C000482F50E04217530734F4672821F081E059 |
:1054D0008093700511C0F601EE0FFF1FE85BF74FD8 |
:1054E0002081318180919E08DA01A81BB1092A1719 |
:1054F0003B0714F410927005F601EE0FFF1FE85BF6 |
:10550000F74F80819181AA27BB27A41BB50B8A176F |
:105510009B0734F463FF04C081E08093710517C0DA |
:1055200080917105882399F0CC0CDD1CE8E4F8E04B |
:10553000CE0EDF1EF6012081318180919E0890E021 |
:10554000841B950B8217930714F410927105F401D4 |
:10555000EE0FFF1FE85BF74F8081918148175907D5 |
:1055600034F460FF04C081E08093730515C080911E |
:105570007305882389F0F401EE0FFF1FE85BF74FF6 |
:105580002081318180919E08FA01E81BF1092E17D4 |
:105590003F0714F410927305F401EE0FFF1FE85B50 |
:1055A000F74F808191818A179B0734F461FF04C013 |
:1055B00081E08093720517C080917205882399F06D |
:1055C000880C991C28E438E0820E931ED4012D919A |
:1055D0003C9180919E0890E0841B950B8217930765 |
:1055E00014F41092720580917005882321F4809143 |
:1055F0007105882321F081E080936F0502C010922D |
:105600006F0580917305882321F4809172058823AA |
:1056100051F081E080936E0510926F051092700535 |
:105620001092710502C010926E0580916F0588235B |
:1056300011F40C94763A84E690E09093C50480933C |
:10564000C40480919C0890E0E981FA818E179F073D |
:1056500014F49A83898380915005882341F1109234 |
:105660006405109263051092600510925F05109218 |
:105670006205109261058DEC9CECACECBDE380936F |
:10568000FF0890930009A0930109B09302098AE0F2 |
:1056900097EDA3EABBE38093E5089093E608A09317 |
:1056A000E708B093E80810926F0510926E052091FC |
:1056B000DB083091DC084091DD085091DE088091D4 |
:1056C0000E0590910F05A0911005B0911105820F64 |
:1056D000931FA41FB51F8093DB089093DC08A09351 |
:1056E000DD08B093DE082091DF083091E00840919A |
:1056F000E1085091E2088091160590911705A0915C |
:105700001805B0911905820F931FA41FB51F809330 |
:10571000DF089093E008A093E108B093E20820919D |
:10572000CD083091CE084091CF085091D00880919B |
:10573000120590911305A0911405B0911505820FE3 |
:10574000931FA41FB51F8093CD089093CE08A093FC |
:10575000CF08B093D0082091C1083091C208409181 |
:10576000C3085091C40880911A0590911B05A0911F |
:105770001C05B0911D05820F931FA41FB51F8093B8 |
:10578000C1089093C208A093C308B093C408509076 |
:105790006E05552029F480916F05882309F45FC0B8 |
:1057A00010921E0510921F051092200510922105DF |
:1057B00010922205109223051092240510922505BF |
:1057C0001092DB081092DC081092DD081092DE08BF |
:1057D0001092DF081092E0081092E1081092E2089F |
:1057E0001092CD081092CE081092CF081092D008D7 |
:1057F0001092C1081092C2081092C3081092C408F7 |
:1058000080912E0590912F05A0913005B091310522 |
:105810008093320590933305A0933405B0933505FA |
:105820008091360590913705A0913805B0913905E2 |
:1058300080933A0590933B05A0933C05B0933D05BA |
:105840001092E5041092E40410926D0510926C051C |
:1058500010926B0510926A05552009F0A7C080913F |
:105860006F05882309F0A2C060910E0570910F05A5 |
:105870008091100590911105A0908A08BB24CC243A |
:10588000DD24E090F808F090F908A60195010E9447 |
:1058900083480027F7FC0095102F2E193F09400B75 |
:1058A000510BCA01B90120E130E040E050E00E9414 |
:1058B000834839014A01609116057091170580915E |
:1058C000180590911905E0900409F0900509A601CA |
:1058D00095010E9483480027F7FC0095102F2E1990 |
:1058E0003F09400B510BCA01B90120E130E040E013 |
:1058F00050E00E948348F1E26F1671048104910424 |
:1059000034F0F0E26F2E712C812C912C11C060EEDE |
:1059100066166FEF76066FEF86066FEF960644F415 |
:10592000E0EE6E2EEFEF7E2EEFEF8E2EEFEF9E2E3F |
:1059300021323105410551052CF020E230E040E0F4 |
:1059400050E00CC0203E7FEF37077FEF47077FEF27 |
:10595000570724F420EE3FEF4FEF5FEF80912E05C5 |
:1059600090912F05A0913005B091310586199709C6 |
:10597000A809B90980932E0590932F05A0933005AF |
:10598000B09331058091360590913705A091380587 |
:10599000B0913905821B930BA40BB50B8093360590 |
:1059A00090933705A0933805B09339058091E404AE |
:1059B0009091E5048F3F910509F008F4A9C45520A2 |
:1059C00009F02AC480916F05882309F025C46091ED |
:1059D000DB087091DC088091DD089091DE0820E002 |
:1059E00031E040E050E00E9483482093DB08309390 |
:1059F000DC084093DD085093DE086091DF08709169 |
:105A0000E0088091E1089091E20820E031E040E078 |
:105A100050E00E9483482093DF083093E0084093D1 |
:105A2000E1085093E208E0908A08FF2400E010E0CB |
:105A300020911E0530911F054091200550912105B0 |
:105A4000C801B7010E940F4820E031E040E050E07B |
:105A50000E94834820931E0530931F054093200524 |
:105A60005093210520912205309123054091240572 |
:105A700050912505C801B7010E940F4820E031E090 |
:105A800040E050E00E948348209322053093230594 |
:105A900040932405509325056091260570912705B4 |
:105AA000809128059091290520E031E040E050E008 |
:105AB0000E948348209326053093270540932805AC |
:105AC000509329056091DB087091DC088091DD0816 |
:105AD0009091DE0820911E0530911F054091200510 |
:105AE00050912105E090A308FF2400E010E0621B24 |
:105AF000730B840B950BA80197010E948348209398 |
:105B000098053093990540939A0550939B05CA01D7 |
:105B1000B90120E031E040E050E00E948348690193 |
:105B200030936D0520936C056091DF087091E0085B |
:105B30008091E1089091E20820912205309123059F |
:105B40004091240550912505621B730B840B950B26 |
:105B5000A80197010E948348CA01B90120E031E001 |
:105B600040E050E00E948348290130936B05209368 |
:105B70006A056091CD087091CE088091CF08909110 |
:105B8000D00820E031E040E050E00E9483482093BC |
:105B9000CD083093CE084093CF085093D008609141 |
:105BA000C1087091C2088091C3089091C40820E098 |
:105BB00031E040E050E00E9483482093C1083093D8 |
:105BC000C2084093C3085093C408609012057090B7 |
:105BD0001305809014059090150580910E05909105 |
:105BE0000F05A0911005B0911105681A790A8A0A6B |
:105BF0009B0A6092B3057092B4058092B5059092AD |
:105C0000B605E0901A05F0901B0500911C05109157 |
:105C10001D058091160590911705A0911805B0916A |
:105C20001905E81AF90A0A0B1B0BE092AF05F0926E |
:105C3000B0050093B1051093B2056092AB05709268 |
:105C4000AC058092AD059092AE05E092A705F0926A |
:105C5000A8050093A9051093AA058091320590919B |
:105C60003305A0913405B091350586199709A80927 |
:105C7000B9098093320590933305A0933405B0930E |
:105C8000350580913A0590913B05A0913C05B09176 |
:105C90003D058E199F09A00BB10B80933A05909397 |
:105CA0003B05A0933C05B0933D0580910D09909173 |
:105CB0000E09A0910F09B09110098032E4E29E070D |
:105CC000E7E0AE07E0E0BE0764F080529442A740F0 |
:105CD000B04080930D0990930E09A0930F09B093E3 |
:105CE000100980910D0990910E09A0910F09B091B2 |
:105CF0001009B7FF0CC0805E9B4DA84FBF4F80932B |
:105D00000D0990930E09A0930F09B093100980918B |
:105D100000018A3011F4289801C0289A81E090E0AF |
:105D200090939305809392058091DB089091DC0815 |
:105D3000A091DD08B091DE0820918A0530918B0595 |
:105D400040918C0550918D05281B390B4A0B5B0B3C |
:105D500057FF07C050954095309521953F4F4F4FC5 |
:105D60005F4F20523E44404050400CF0B9C021E00B |
:105D7000621620E1720620E0820620E092060CF412 |
:105D80004EC080919105882309F445C0D401C30118 |
:105D90007CE0B595A795979587957A95D1F701966B |
:105DA0009093930580939205D401C30163E0B59568 |
:105DB000A795979587956A95D1F7809398059093C5 |
:105DC0009905A0939A05B0939B0589589341A040EB |
:105DD000B04064F088E893E1A0E0B0E080939805DB |
:105DE00090939905A0939A05B0939B0560919805AF |
:105DF0007091990580919A0590919B0520E031E082 |
:105E000040E050E00E948348C20ED31ED0926D0540 |
:105E1000C0926C0562C081E0809391055EC01092D3 |
:105E2000910540E0641640EF74064FEF84064FEF93 |
:105E300094060CF052C080919005882309F449C063 |
:105E400088279927DC0186199709A809B9095CE018 |
:105E5000B595A795979587955A95D1F70196909303 |
:105E6000930580939205C401B30128E030E040E03F |
:105E700050E00E9483482093980530939905409301 |
:105E80009A0550939B0528573C4E4F4F5F4F64F443 |
:105E900088E79CEEAFEFBFEF80939805909399054C |
:105EA000A0939A05B0939B05609198057091990510 |
:105EB00080919A0590919B0520E031E040E050E010 |
:105EC0000E948348C20ED31ED0926D05C0926C050D |
:105ED0000BC081E08093900507C01092900504C02C |
:105EE0001092930510929205C090F808D090F9088E |
:105EF000D7FE04C0D094C194D108D394D092CA08DC |
:105F0000C092C908A0900409B0900509B7FE04C06A |
:105F1000B094A194B108B394B092F008A092EF08A5 |
:105F200074E6C716D1040CF041C084E6A816B1048B |
:105F3000ECF58091A408282F30E080919205909193 |
:105F400093052817390724F430939305209392057D |
:105F500091E0691694E0790690E0890690E0990650 |
:105F600074F08091FA049091FB0420919205309195 |
:105F70009305820F931F9093FB048093FA04A0E093 |
:105F80006A16ACEF7A06AFEF8A06AFEF9A0674F4A2 |
:105F90008091FA049091FB04209192053091930531 |
:105FA000821B930B9093FB048093FA0481E090E0B2 |
:105FB0009093930580939205109294051092950505 |
:105FC00010929605109297058091DF089091E00855 |
:105FD000A091E108B091E2082091860530918705F3 |
:105FE0004091880550918905281B390B4A0B5B0BA2 |
:105FF00057FF07C050954095309521953F4F4F4F23 |
:106000005F4F20523E44404050400CF0B9C0E1E0A8 |
:10601000EE16E0E1FE06E0E00E07E0E01E070CF4FD |
:106020004EC080918F05882309F445C0D801C7016F |
:106030004CE0B595A795979587954A95D1F7019628 |
:106040009093930580939205D801C70133E0B595ED |
:10605000A795979587953A95D1F780939405909356 |
:106060009505A0939605B093970589589341A04054 |
:10607000B04064F088E893E1A0E0B0E0809394053C |
:1060800090939505A0939605B0939705609194051C |
:1060900070919505809196059091970520E031E0EB |
:1060A00040E050E00E948348420E531E50926B0520 |
:1060B00040926A0562C081E080938F055EC01092B5 |
:1060C0008F0520E0E21620EFF2062FEF02072FEFF8 |
:1060D00012070CF052C080918E05882309F449C044 |
:1060E00088279927DC018E199F09A00BB10B2CE0A2 |
:1060F000B595A795979587952A95D1F70196909391 |
:10610000930580939205C801B70128E030E040E094 |
:1061100050E00E9483482093940530939505409366 |
:1061200096055093970528573C4E4F4F5F4F64F4A8 |
:1061300088E79CEEAFEFBFEF8093940590939505B1 |
:10614000A0939605B093970560919405709195057D |
:10615000809196059091970520E031E040E050E075 |
:106160000E948348420E531E50926B0540926A056E |
:106170000BC081E080938E0507C010928E0504C08D |
:10618000109293051092920578ECC716D1040CF08A |
:106190004BC088ECA816B1040CF046C08091A4084E |
:1061A000282F30E0809192059091930528173907A8 |
:1061B00024F4309393052093920591E0E91694E03E |
:1061C000F90690E0090790E0190774F08091FC044B |
:1061D0009091FD042091920530919305820F931FB9 |
:1061E0009093FD048093FC04A0E0EA16ACEFFA065D |
:1061F000AFEF0A07AFEF1A07BCF48091FC0490914F |
:10620000FD042091920530919305821B930B90938E |
:10621000FD048093FC0408C010926B0510926A057F |
:1062200010926D0510926C0520E030E040E050E0E7 |
:106230006091E5087091E6088091E7089091E80880 |
:106240000E942F47882341F410926B0510926A0533 |
:1062500010926D0510926C058091DB089091DC081E |
:10626000A091DD08B091DE0880938A0590938B059C |
:10627000A0938C05B0938D058091DF089091E00884 |
:10628000A091E108B091E20880938605909387057C |
:10629000A0938805B093890510921E0510921F05E2 |
:1062A00010922005109221051092220510922305CC |
:1062B00010922405109225051092260510922705AC |
:1062C00010922805109229051092DB081092DC0824 |
:1062D0001092DD081092DE081092DF081092E0089C |
:1062E0001092E1081092E2081092CD081092CE08A8 |
:1062F0001092CF081092D0081092C1081092C208D4 |
:106300001092C3081092C4081092E5041092E4049D |
:106310008091C804882309F46EC11092C8042091AA |
:10632000F8083091F90837FF03C0309521953F4FA9 |
:106330003093CA082093C9088091040990910509F7 |
:1063400097FF03C0909581959F4F9093F00880939D |
:10635000EF08243631050CF03CC1843691050CF071 |
:1063600038C120914A0530914B058091C904909124 |
:10637000CA04281B390B37FF03C0309521953F4FC6 |
:10638000263031050CF02FC1809163059091640592 |
:106390004396879708F091C08091540590915505D8 |
:1063A0008F3F91052CF401969093550580935405E9 |
:1063B000809154059091550503970CF492C060911B |
:1063C000D5087091D6088091D7089091D80824E11B |
:1063D00035E040E050E00E948348F9013093CA085C |
:1063E0002093C90860914A0570914B05809174080B |
:1063F00090917508681B790B7093F0086093EF0813 |
:10640000BFEF6C347B0734F468597E4F7093F0080B |
:106410006093EF088091EF089091F008853B91051B |
:1064200034F0885691409093F0088093EF08809163 |
:10643000EF089091F008E81BF90BF093F008E09357 |
:10644000EF08399734F088E090E09093F00880935B |
:10645000EF088091EF089091F008885F9F4F34F427 |
:1064600088EF9FEF9093F0088093EF08C90137FF02 |
:1064700003C0909581959F4F02979CF11092D5088B |
:106480001092D6081092D7081092D80880914A0529 |
:1064900090914B0590937508809374088091FE0449 |
:1064A0009091FF042091EF083091F008821B930B2C |
:1064B0009093FF048093FE0414C080914A0590914C |
:1064C0004B059093750880937408109255051092AF |
:1064D00054051092D5081092D6081092D708109241 |
:1064E000D80881E08093520560910D0970910E09E2 |
:1064F00080910F099091100924E135E040E050E0CF |
:106500000E94834820930D0930930E0940930F0990 |
:106510005093100960914A0570914B05621B730BF3 |
:106520007093CA086093C908CB010197833B91051A |
:1065300088F0643B710534F4CB018C549F4F843B4D |
:10654000910528F4215030404040504007C06C5421 |
:106550007F4F64F42F5F3F4F4F4F5F4F20930D09E4 |
:1065600030930E0940930F095093100980910D0943 |
:1065700090910E09A0910F09B0911009B7FF0CC0BE |
:1065800088599E4FAF4FBF4F80930D0990930E09CE |
:10659000A0930F09B093100960910D0970910E0935 |
:1065A00080910F099091100928E631E040E050E019 |
:1065B0000E94834824E135E040E050E00E940F480B |
:1065C00060930D0970930E0980930F099093100941 |
:1065D0000AC0109252051092D5081092D608109257 |
:1065E000D7081092D80880914A0590914B05909356 |
:1065F000CA048093C90480917E0885FF3EC0E09163 |
:106600007608F0E0EE0FFF1FE85BF74F0190F08196 |
:10661000E02DF7FF03C0F095E195FF4F74976CF5FF |
:10662000E0917708F0E0EE0FFF1FE85BF74F019075 |
:10663000F081E02DF7FF03C0F095E195FF4F7497CF |
:10664000E4F48091780990917909892BB1F08091D7 |
:10665000940390915305893C20F0933021F084E01D |
:1066600006C0943019F41092530503C083E0809360 |
:1066700053058091530590E008C08091530588230D |
:1066800031F01092530580E090E00E940D3DA09003 |
:106690006309B0906409A114B10429F080919D05AB |
:1066A0008C3009F44298C0906305D090640586014F |
:1066B000D7FE04C0002711270C191D09053111054B |
:1066C0003CF080917E0884FD03C081E080939C05AE |
:1066D000E0908708B601882777FD8095982F2E2DAA |
:1066E00030E040E050E00E940F489801442737FD19 |
:1066F0004095542F0E940F4820E032E040E050E0E7 |
:106700000E94834889019A01FF24EC9CC001ED9C02 |
:10671000900DFC9C900D112464E070E00E944E48A6 |
:10672000600F711F1B01442437FC4094542C2092AD |
:10673000B7053092B8054092B9055092BA058091DC |
:106740003E0590913F05A0914005B0914105821909 |
:106750009309A409B50980933E0590933F05A09342 |
:106760004005B093410580913E0590913F05A09171 |
:106770004005B09141058155934CA040B04064F074 |
:1067800080E593ECA0E0B0E080933E0590933F0558 |
:10679000A0934005B093410580913E0590913F053F |
:1067A000A0914005B0914105805B9C43AF4FBF4F26 |
:1067B00064F480EB9CE3AFEFBFEF80933E059093D2 |
:1067C0003F05A0934005B093410580914A05909103 |
:1067D0004B05892B09F460C080917E0883FF5CC063 |
:1067E0008091CB049091CC04892B09F455C0209161 |
:1067F000EF083091F0088091C9089091CA0882177B |
:10680000930724F43093CA082093C90820915205B5 |
:10681000222371F080919C05882351F080914A05D4 |
:1068200090914B0590934D0580934C0510929C05DB |
:1068300080919703482F50E05093CA084093C908AD |
:10684000882351F1222341F100913E0510913F052B |
:10685000209140053091410580914E0590914F0562 |
:10686000BC01469FC001479F900D569F900D11247B |
:1068700060E270E00E944E48882777FD8095982F4F |
:10688000600F711F821F931F60933E0570933F0539 |
:10689000809340059093410580919D0581508093A0 |
:1068A0009D058F3F09F04AC188E180939D05809145 |
:1068B000C4049091C5042091040330910503822300 |
:1068C0009323892B29F488B194E0892788B907C0DC |
:1068D00080916505882311F0429A01C04298609129 |
:1068E0000E0570910F058091100590911105E090B3 |
:1068F0008A08FF2400E010E0A80197010E94834865 |
:106900003093EE072093ED076091160570911705FF |
:106910008091180590911905A80197010E9483485C |
:106920003093F0072093EF078091F8089091F908D1 |
:106930009093F2078093F1078091040990910509E3 |
:106940009093F4078093F3078091FD089091FE08DF |
:106950009093F6078093F5078091660590916705FF |
:106960009093F8078093F70760914605709147056B |
:10697000809148059091490520E032E040E050E0E8 |
:106980000E9483483093FA072093F90780914A05C3 |
:1069900090914B059093FE078093FD0760910D0940 |
:1069A00070910E0980910F099091100924E135E052 |
:1069B00040E050E00E948348309300082093FF0796 |
:1069C0008091B5049091B60490930E0880930D08C1 |
:1069D00080910803909109039093100880930F0809 |
:1069E0008091C6089091C70890931208809311086F |
:1069F0008091BE089091BF0890931408809313086B |
:106A00008091FD089091FE089093160880931508D8 |
:106A100080915F0590916005909318088093170806 |
:106A2000809161059091620590931A0880931908EE |
:106A3000D0921C08C0921B088091740590E090933E |
:106A40000208809301088091760590E090930408F5 |
:106A5000809303088091CF059091D00590931E08F4 |
:106A600080931D088091D1059091D20590932008C4 |
:106A700080931F0880918109909182099093220848 |
:106A80008093210880918309909184099093240830 |
:106A90008093230880918509909186099093260818 |
:106AA0008093250880918A0990918B099C0163E06D |
:106AB000220F331F6A95E1F7880F991F820F931FEA |
:106AC0008A0D9B1D2091530542E3249F90011124C0 |
:106AD000820F931F90932808809327088091ED08D8 |
:106AE0009091EE0890932A08809329088091F108EC |
:106AF0009091F20890932C0880932B088091CB08FA |
:106B00009091CC08909306088093050880910B091A |
:106B100090910C0990930808809307088091D308FE |
:106B20009091D40890930A08809309088091EA080C |
:106B30009091EB0890930C0880930B0880916E0560 |
:106B40008823A9F06091C6087091C708882777FD4F |
:106B50008095982F0E94F4462091FF0830910009FB |
:106B600040910109509102090E94AC4732C06091E6 |
:106B70000E0570910F058091100590911105E09020 |
:106B8000C608F090C7080E94F4462091E5083091AD |
:106B9000E6084091E7085091E8080E94AC475B0185 |
:106BA0006C010027F7FC0095102FC801B7010E9467 |
:106BB000F4462091FF08309100094091010950915D |
:106BC00002090E94AC479B01AC01C601B5010E94BD |
:106BD000F5450E94C1467093C7086093C60880912E |
:106BE0006F058823A9F06091BE087091BF088827BF |
:106BF00077FD8095982F0E94F4462091FF083091F0 |
:106C0000000940910109509102090E94AC4732C02D |
:106C100060911605709117058091180590911905DE |
:106C2000E090BE08F090BF080E94F4462091E5086D |
:106C30003091E6084091E7085091E8080E94AC477F |
:106C40005B016C010027F7FC0095102FC801B7010C |
:106C50000E94F4462091FF083091000940910109FB |
:106C6000509102090E94AC479B01AC01C601B501DD |
:106C70000E94F5450E94C1467093BF086093BE080C |
:106C80006091FD087091FE08E0902A05F0902B05B8 |
:106C900000912C0510912D058091E5089091E60852 |
:106CA000A091E708B091E8088B839C83AD83BE83F5 |
:106CB000882777FD8095982F0E94F4462091FF0841 |
:106CC0003091000940910109509102090E94AC479E |
:106CD0005B016C01C801B7010E94F4462B813C8125 |
:106CE0004D815E810E94AC4720E030E040E05FE3F0 |
:106CF0000E94AC479B01AC01C601B5010E94F5455D |
:106D00000E94C1467093FE086093FD088091C608FA |
:106D10009091C7088150984034F080E098E09093BB |
:106D2000C7088093C6088091C6089091C708805014 |
:106D3000984F34F480E098EF9093C7088093C6088A |
:106D40008091BE089091BF088150984034F080E057 |
:106D500098E09093BF088093BE088091BE08909100 |
:106D6000BF088050984F34F480E098EF9093BF08AC |
:106D70008093BE088091FD089091FE088150984054 |
:106D800034F080E098E09093FE088093FD088091B5 |
:106D9000FD089091FE088050984F34F480E098EF01 |
:106DA0009093FE088093FD0880917E0880FFD8C0F4 |
:106DB0004091940381FF0EC0423310F58091660527 |
:106DC00090916705449790936905809368051092A8 |
:106DD000510519C020919F033091A003240F311D4C |
:106DE0008091830890E0AC01249FC001259F900D05 |
:106DF000349F900D11244497909369058093680502 |
:106E000081E08093510580915005882321F01092F4 |
:106E100069051092680520916605309167054091DB |
:106E2000680550916905421753070CF099C080918D |
:106E30005105882309F494C08091950390E0241BA8 |
:106E4000350BBC01629FC001639F900D729F900D36 |
:106E5000112460E170E00E944E486B01A090E204B2 |
:106E6000B090E30460914605709147058091480514 |
:106E700090914905E0909603FF2400E010E020E0A7 |
:106E800032E040E050E00E948348C801B7010E9410 |
:106E90000F4820E230E040E050E00E9483487FEF5E |
:106EA0002E3C370714F42EEC3FEF80919E05909115 |
:106EB0009F058C0144E0000F111F4A95E1F7081B64 |
:106EC000190B8091930390E0DC01AA9DC001AB9D5A |
:106ED000900DBA9D900D112468E070E00E944E481C |
:106EE000061B170B2333310514F022E330E0021B9D |
:106EF000130B89819A818C199D09800F911F60E184 |
:106F000070E00E944E4870939F0560939E058091AB |
:106F10007F0890E06817790784F4E981FA81E8171F |
:106F2000F9072CF090939F0580939E0506C0298158 |
:106F30003A8130939F0520939E0580919E05909104 |
:106F40009F0549815A814817590724F450939F059A |
:106F500040939E0560919E0570919F057A83698399 |
:106F600089819A819093FC078093FB072091FD080B |
:106F70003091FE088091FC08682E7724A981BA819F |
:106F800054971CF418861F822DC0B9016219730929 |
:106F900029813A8135952795621773070CF49B0177 |
:106FA00089819A8162E070E00E944E4870956195F7 |
:106FB0007F4FC901261737070CF4CB019301E981F4 |
:106FC000FA812E1B3F0B281739070CF4C9012981C0 |
:106FD0003A812619370998878F838217930714F40B |
:106FE00038872F832091C6083091C70880905F05AD |
:106FF000909060058091CF059091D005881A990AEC |
:10700000281939093093DA082093D90820E030E0B4 |
:1070100040E050E06B817C818D819E810E942F47F2 |
:107020008823F1F1E0900E05F0900F050091100516 |
:10703000109111056091BF057091C0058091C10547 |
:107040009091C2050E94F4465B016C01C801B70132 |
:107050000E94F4462B813C814D815E810E94AC47A9 |
:107060007B018C01B401882777FD8095982F0E94C1 |
:10707000F4469B01AC01C801B7010E94F4459B0195 |
:10708000AC01C601B5010E94F5450E94C14660935E |
:10709000BF057093C0058093C1059093C2051CC0C5 |
:1070A0002091D9083091DA08442737FD4095542FB4 |
:1070B0008091BF059091C005A091C105B091C20516 |
:1070C000820F931FA41FB51F8093BF059093C00527 |
:1070D000A093C105B093C2058091BF059091C005F2 |
:1070E000A091C105B091C205181619061A061B0613 |
:1070F00024F40297A109B10903C00296A11DB11D94 |
:107100008093BF059093C005A093C105B093C205BD |
:107110008091BF059091C005A091C105B091C205B5 |
:1071200081589E43A040B04064F080E89EE3A0E018 |
:10713000B0E08093BF059093C005A093C105B093C4 |
:10714000C2058091BF059091C005A091C105B09185 |
:10715000C2058058914CAF4FBF4F64F480E891EC6A |
:10716000AFEFBFEF8093BF059093C005A093C1051B |
:10717000B093C2056091D9087091DA0880918F03AD |
:1071800090919003A0919103B091920389879A877F |
:10719000AB87BC87882777FD8095982F0E94F4469F |
:1071A0007B018C016091BF057091C0058091C10584 |
:1071B0009091C2050E94F4469B01AC0169857A85D5 |
:1071C0008B859C850E94AC479B01AC01C801B7012F |
:1071D0000E94F5450E94C1467B018C016B018F81A5 |
:1071E000988597FF03C0909581959F4F62E070E06E |
:1071F0000E944E48A981BA816A0F7B1F882777FDBC |
:107200008095982F20919E0330E040E050E00E944E |
:107210000F4820E430E040E050E00E94834819012C |
:10722000C216D3060CF4970144245524421853087F |
:10723000241535050CF492014F815885E981FA81B6 |
:107240004E0F5F1FCA01820F931F97FF03C060E0BC |
:1072500070E005C0BC01681679060CF4B30180919A |
:10726000C808882E9924CB01681579050CF4C4014F |
:107270008093C008421B530B9A0157FF03C020E0C4 |
:1072800030E004C0641675060CF493012815390526 |
:107290000CF494012093C5082091BE083091BF08DA |
:1072A00040916105509162058091D1059091D20580 |
:1072B000481B590B5C8B4B8B241B350B3093BD0843 |
:1072C0002093BC0820E030E040E050E06B817C81FE |
:1072D0008D819E810E942F47882309F440C0E09051 |
:1072E0001605F09017050091180510911905609189 |
:1072F000BB057091BC058091BD059091BE050E94B3 |
:10730000F4465B016C01C801B7010E94F4462B8171 |
:107310003C814D815E810E94AC477B018C01AB8931 |
:10732000BC89BD01882777FD8095982F0E94F4467F |
:107330009B01AC01C801B7010E94F4459B01AC015F |
:10734000C601B5010E94F5450E94C1466093BB0588 |
:107350007093BC058093BD059093BE051CC0209121 |
:10736000BC083091BD08442737FD4095542F8091CB |
:10737000BB059091BC05A091BD05B091BE05820FE3 |
:10738000931FA41FB51F8093BB059093BC05A093CA |
:10739000BD05B093BE058091BB059091BC05A09141 |
:1073A000BD05B091BE05181619061A061B0624F471 |
:1073B0000297A109B10903C00296A11DB11D8093D6 |
:1073C000BB059093BC05A093BD05B093BE0580910D |
:1073D000BB059091BC05A091BD05B091BE0581583B |
:1073E0009E43A040B04064F080E89EE3A0E0B0E09F |
:1073F0008093BB059093BC05A093BD05B093BE05DB |
:107400008091BB059091BC05A091BD05B091BE05D2 |
:107410008058914CAF4FBF4F64F480E891ECAFEFD0 |
:10742000BFEF8093BB059093BC05A093BD05B093BF |
:10743000BE056091BC087091BD08882777FD8095D6 |
:10744000982F0E94F4467B018C016091BB057091DE |
:10745000BC058091BD059091BE050E94F4469B013C |
:10746000AC0169857A858B859C850E94AC479B0120 |
:10747000AC01C801B7010E94F5450E94C1469101C7 |
:10748000621573050CF49B01241535050CF492016B |
:1074900069817A814F815885641B750B620F731F58 |
:1074A00077FF03C060E070E004C0661677060CF456 |
:1074B000B301681579050CF4B4016093F50869818E |
:1074C0007A81621B730B9B018F819885281B390B76 |
:1074D00037FF03C020E030E004C0621673060CF4EE |
:1074E00093012815390554F4940108C080916E0564 |
:1074F000882311F00C94212B0C942B2B2093E9085A |
:1075000066960FB6F894DEBF0FBECDBFDF91CF9168 |
:107510001F910F91FF90EF90DF90CF90BF90AF90B1 |
:107520009F908F907F906F905F904F903F902F90A3 |
:1075300008951092D4051092D30510926409109208 |
:10754000630910928B0910928A0910924F091092C8 |
:10755000350910929C0910926209109277091092D5 |
:1075600087091092D0051092CF051092D205109283 |
:10757000D10510928909109288091092F205109293 |
:10758000F1051092F4051092F3051092790910920A |
:107590007809089580914F09882319F481E090E0DB |
:1075A000089580919C09882309F48CC08091350945 |
:1075B000882309F487C08091900990E083709070CF |
:1075C00002970CF474C08091910980FF70C01092F2 |
:1075D0009C09609141097091420980914309909101 |
:1075E00044092AE030E040E050E00E9483482093C4 |
:1075F0006509309366094093670950936809609163 |
:1076000045097091460980914709909148092AE0FF |
:1076100030E040E050E00E948348209369093093B5 |
:107620006A0940936B0950936C0960914909709104 |
:107630004A0980914B0990914C092AE030E040E0E2 |
:1076400050E00E94834820936D0930936E09409367 |
:107650006F095093700910924F09809125099091FC |
:107660002609A0912709B091280980937109909368 |
:107670007209A0937309B0937409609129097091FC |
:107680002A0980912B0990912C0920EA36E841E0E3 |
:1076900050E00E9483483093760920937509109238 |
:1076A000350981E08093770980E090E00895109299 |
:1076B00077091092350910929C0910924F0982E0C7 |
:1076C00090E0089581E090E008950E94CA3A18166B |
:1076D00019060CF44CC0809178099091790923E047 |
:1076E000883E920730F4885A9D4F90937909809391 |
:1076F0007809809162098823B1F1809165099091A0 |
:1077000066092091500930915109821B930B909387 |
:107710008209809381098091690990916A09209179 |
:10772000540930915509821B930B909384098093DF |
:10773000830980916D0990916E09209158093091CB |
:107740005909821B930B909386098093850981E0E8 |
:107750008093870981E090E090938909809388095C |
:1077600080E090E008951092870982E090E008950B |
:107770000E94CA3A892B99F5809165099091660912 |
:10778000A0916709B09168098093500990935109BD |
:10779000A0935209B09353098091690990916A09A5 |
:1077A000A0916B09B0916C0980935409909355098D |
:1077B000A0935609B093570980916D0990916E0975 |
:1077C000A0916F09B091700980935809909359095D |
:1077D000A0935A09B0935B0981E0809362090895F0 |
:1077E000482F2091D3053091D4052530310509F477 |
:1077F0009AC0263031058CF42130310529F1223030 |
:1078000031051CF4232BD1F003C12230310571F175 |
:107810002330310509F0FCC02FC02730310509F4B1 |
:10782000E2C0273031050CF490C02830310509F44E |
:10783000E5C02930310509F0EBC0A2C0853B09F055 |
:10784000E7C081E090E0D5C0823639F482E090E074 |
:107850009093D4058093D30504C01092D405109260 |
:10786000D3051092E9051092EA050895813009F0D8 |
:10787000CFC083E090E0BDC0883031F0823151F15B |
:10788000833009F044C013C02FE439E030930A0676 |
:107890002093090680914F098823C9F52251304071 |
:1078A00030930806209307062E5E3F4F25C02CE933 |
:1078B00039E030930A062093090680919C098823B9 |
:1078C00031F5205130403093080620930706205FA1 |
:1078D0003F4F12C025E339E030930A062093090692 |
:1078E00080913509882399F424523040309308065A |
:1078F000209307062C5D3F4F3093FC052093FB053A |
:1079000085E090E09093D4058093D30504C0109255 |
:10791000D4051092D305842F8F5F8093E9058F5F84 |
:107920008093EA05089590E09093FA058093F90515 |
:107930009091E905940F9093E9058091EA05890FEC |
:107940008093EA0586E090E054C0282F30E0322F83 |
:1079500022278091F9059091FA05820F931F909349 |
:10796000FA058093F9059091E905940F9093E90544 |
:107970008091EA05890F8093EA0589E090E039C09B |
:107980006091F9057091FA056115710509F440C01F |
:10799000E0910706F091080680838091E905840F45 |
:1079A0008093E9059091EA05980F9093EA05CB0141 |
:1079B00001979093FA058093F905892B89F08091BE |
:1079C000FB059091FC058E179F0750F03196F093C0 |
:1079D0000806E09307063093D4052093D305089555 |
:1079E00087E090E006C08091E905481789F488E0B7 |
:1079F00090E09093D4058093D30508958091EA0593 |
:107A0000481731F4E0910906F0910A0681E080837D |
:107A10001092D4051092D30508952F923F924F9261 |
:107A20005F926F927F928F929F92AF92BF92CF920E |
:107A3000DF92EF92FF920F931F93CF93DF93CDB717 |
:107A4000DEB726970FB6F894DEBF0FBECDBF1C0180 |
:107A50008330910509F4B7C08430910521F0892B5A |
:107A600009F419C166C58091630990916409019771 |
:107A7000029708F42DC18091E7059091E8050196E1 |
:107A80009093E8058093E705893C910508F454C577 |
:107A90001092E8051092E705109202061092010676 |
:107AA0001092040610920306109206061092050624 |
:107AB0001092D8051092D7051092D6051092D505D0 |
:107AC0001092F6051092F5051092F8051092F70540 |
:107AD0001092E4051092E3051092E6051092E50578 |
:107AE0001092DE051092DD051092DC051092DB0588 |
:107AF0001092E2051092E1051092E0051092DF0568 |
:107B000010920B0610920C0610920D0610920E06A3 |
:107B10001092DA051092D90510928B0910928A09F9 |
:107B200080918709882309F44BC080918109909145 |
:107B3000820990937B0980937A09609183097091FF |
:107B4000840970937D0960937C0921E0209380096A |
:107B500090933709809336097093390960933809F7 |
:107B600020933C09709561957F4F909581959F4F2B |
:107B70000E94BA429C019093FE058093FD05E0911E |
:107B80007A09F0917B09F7FF03C08AE590E002C013 |
:107B90008EE091E0821B930B9093FE058093FD0590 |
:107BA0004091FD055091FE0560917C0970917D0921 |
:107BB000CF010E94F443709300066093FF05AEC4AA |
:107BC00010928009B2C48091630990916409019771 |
:107BD00009F47EC08091E7059091E80501969093A5 |
:107BE000E8058093E705855F914008F4A5C41092ED |
:107BF000E8051092E70580918709882309F448C0B9 |
:107C000010920406109203061092060610920506C2 |
:107C10001092D8051092D7051092D6051092D5056E |
:107C20001092F6051092F5051092F8051092F705DE |
:107C30001092E4051092E3051092E6051092E50516 |
:107C40001092DE051092DD051092DC051092DB0526 |
:107C50001092E2051092E1051092E0051092DF0506 |
:107C60001092100610920F0680918109909182095E |
:107C70009093370980933609809183099091840904 |
:107C8000909339098093380981E080933C099DC124 |
:107C900010923C094AC41092E8051092E705109230 |
:107CA000D0051092CF051092D2051092D1051092F6 |
:107CB000F2051092F1051092F4051092F30510925E |
:107CC0008B0910928A09109264091092630937C4D3 |
:107CD00080916309909164098130910509F478C11C |
:107CE0008230910541F0892B09F01FC41092E805FC |
:107CF0001092E70524C480918009882309F415C4F3 |
:107D00008091880990918909181619060CF05DC1B7 |
:107D100080918A0990918B09099709F456C1809145 |
:107D20000106909102060196909302068093010647 |
:107D3000609136097091370980918109909182098B |
:107D40008B01081B190B17FF03C0109501951F4FDE |
:107D5000E0913809F0913909809183099091840963 |
:107D6000DF01A81BB90BB7FF03C0B095A195BF4FAA |
:107D700020910B0630910C0640910D0650910E0695 |
:107D80008091FF0590910006821B930B8333910530 |
:107D90000CF443C00C3311052CF5DC971CF58091D5 |
:107DA000D9059091DA058C3091052CF401969093C9 |
:107DB000DA058093D9058091D9059091DA05AA2733 |
:107DC00097FDA095BA2F820F931FA41FB51F809314 |
:107DD0000B0690930C06A0930D06B0930E0683E05D |
:107DE00090E040C08091D9059091DA0582309105EC |
:107DF0002CF001979093DA058093D9052F5F3F4FC0 |
:107E00004F4F5F4F20930B0630930C0640930D06A7 |
:107E100050930E0684E090E025C04F970CF483C089 |
:107E2000083211058CF498977CF42A5F3F4F4F4F2E |
:107E30005F4F20930B0630930C0640930D06509332 |
:107E40000E0685E090E00EC02F5F3F4F4F4F5F4F13 |
:107E500020930B0630930C0640930D0650930E06AC |
:107E600086E090E090938B0980938A091092060631 |
:107E70001092050681E090E090930406809303063B |
:107E800060900B0670900C0680900D0690900E0688 |
:107E90008091FD059091FE050E9496437C01209003 |
:107EA0000B0630900C0640900D0650900E06809107 |
:107EB000FD059091FE050E94EC435C010027F7FC54 |
:107EC0000095102FC801B701A40193010E940F482B |
:107ED00028EE33E040E050E00E94834880917A0928 |
:107EE00090917B09820F931F9093370980933609F5 |
:107EF000CC24B7FCC094DC2CC601B501A2019101D1 |
:107F00000E940F4828EE33E040E050E00E94834892 |
:107F100080917C0990917D09820F931F909339097C |
:107F20008093380952C0083211050CF048C0989768 |
:107F30000CF045C087E090E090938B0980938A090C |
:107F4000109204061092030610920606109205067F |
:107F5000633071051CF06350704006C05FEF6E3FE8 |
:107F6000750734F46D5F7F4F70933709609336095E |
:107F7000E330F10514F0339705C08FEFEE3FF807BB |
:107F80002CF43396F0933909E0933809809136093F |
:107F90009091370903960797C0F480913809909122 |
:107FA00039090396079788F4109237091092360919 |
:107FB000109239091092380989E090E002C088E0F7 |
:107FC00090E090938B0980938A0981E090E0A8C2A9 |
:107FD0008091880990918909181619060CF09AC2A7 |
:107FE000809036099090370980918109909182099B |
:107FF000881A990A9092E4058092E3056090380906 |
:10800000709039098091830990918409681A790ADE |
:108010007092E6056092E5052091D7053091D8056C |
:10802000280D391D3093D8052093D7050091D5052B |
:108030001091D605060D171D1093D6050093D50592 |
:108040008091190990911A09E0911509F09116098A |
:10805000FC83EB8310928909109288099093CC08D5 |
:108060008093CB08F0930C09E0930B094427552724 |
:10807000481B590B5A8349835093DE054093DD0515 |
:10808000F093DC05E093DB05C90137FF04C08827C6 |
:108090009927821B930B895B9B4054F4C80117FFFF |
:1080A00004C088279927801B910B895B9B4064F053 |
:1080B00080910F06909110068832910528F4019660 |
:1080C0009093100680930F0680910F0690911006F2 |
:1080D000009729F101979093100680930F06C9012C |
:1080E00043E0880F991F4A95E1F7821B930B68E0E4 |
:1080F00070E00E944E487093D8056093D705C80180 |
:10810000B3E0880F991FBA95E1F7801B910B68E0E7 |
:1081100070E00E944E487093D6056093D50580911B |
:108120000506909106061816190644F41092D80513 |
:108130001092D7051092D6051092D505E0907505DE |
:10814000FF2400E010E02091D7053091D8054427A6 |
:1081500037FD4095542FC801B7010E940F4820E019 |
:1081600031E040E050E00E94834859016A0160918B |
:10817000D5057091D605882777FD8095982FA801A1 |
:1081800097010E940F4820E031E040E050E00E945B |
:108190008348FCE9AF16FFEFBF06FFEFCF06FFEF06 |
:1081A000DF0644F4ACE9AA2EAFEFBA2EAFEFCA2E29 |
:1081B000AFEFDA2E79018A012CE9E2162FEFF206F1 |
:1081C0002FEF02072FEF120744F4FCE9EF2EFFEF29 |
:1081D000FF2EFFEF0F2FFFEF1F2F80917405869565 |
:1081E00086958695482E55248091760586958695A8 |
:1081F0008695482F50E05E834D83E981FA81E49FA4 |
:10820000C001E59F900DF49F900D11249C01E3E0C7 |
:10821000220F331FEA95E1F7880F991F820F931FF2 |
:1082200064E670E00E944E489B01880C991C849C77 |
:10823000C001859C900D949C900D112460E170E02C |
:108240000E944E48260F371FC601B50165367105DD |
:108250008105910524F064E670E080E090E059012A |
:10826000A60EB71EB092F605A092F5058B819C81F3 |
:1082700053E0880F991F5A95E1F72B813C81220F1B |
:10828000331F3C832B83280F391F4D815E81249F30 |
:10829000C001259F900D349F900D112464E670E07D |
:1082A0000E944E48FB01660C771C649CC001659CD3 |
:1082B000900D749C900D112460E170E00E944E4876 |
:1082C000E60FF71FA8019701253631054105510535 |
:1082D00024F024E630E040E050E0BF01620F731F5D |
:1082E0007093F8056093F705B092EE08A092ED0840 |
:1082F0007093F2086093F108C5010E94BA429C0194 |
:108300009093EC058093EB05C090F505D090F605B1 |
:10831000D7FC03C08AE590E002C08EE091E0821BAA |
:10832000930B9093EC058093EB050091EB05109176 |
:10833000EC0560910D0970910E0980910F099091E3 |
:10834000100924E135E040E050E00E948348C80174 |
:10835000821B930B9C019093EE058093ED05853B6A |
:1083600091057CF0043B11051CF0285631400FC0EC |
:1083700088E691E0821B930B9093EE058093ED05C8 |
:108380000AC09FEF2C34390734F428593E4F3093FC |
:10839000EE052093ED05A090F705B090F805960145 |
:1083A000D7FE04C0222733272C193D09C501B7FE8B |
:1083B00004C0882799278A199B098217930754F4C8 |
:1083C000C8010E9496437C01B601882777FD8095FD |
:1083D000982F09C0C8010E94EC437C01B501882791 |
:1083E00077FD8095982F28EE33E040E050E00E9422 |
:1083F0000F480027F7FC0095102FA80197010E9455 |
:108400008348C90137FF03C0909581959F4F5C0158 |
:10841000CC24B7FCC094DC2CB092F005A092EF0500 |
:108420008091ED059091EE050E9496437C0180912C |
:10843000ED059091EE050E94EC438C018091E305DF |
:108440009091E40597FF03C0909581959F4F8159C6 |
:10845000914064F48091E5059091E60597FF03C093 |
:10846000909581959F4F815991404CF01092D20583 |
:108470001092D1051092D0051092CF0556C0B701C9 |
:10848000882777FD8095982FA60195010E940F48B7 |
:1084900028EE33E040E050E00E948348C9012FEF0E |
:1084A0008833920714F488E39FEF893C910514F018 |
:1084B00088EC90E068E070E00E944E487093D2052E |
:1084C0006093D105B801882777FD8095982FA60184 |
:1084D00095010E940F4828E13CEF4FEF5FEF0E94AB |
:1084E0008348C9013FEF8833930714F488E39FEF73 |
:1084F000893C910514F088EC90E068E070E00E94FF |
:108500004E487093D0056093CF0544E024163104A3 |
:10851000B1F404C054E02516310489F482E090E0FF |
:1085200090936409809363090AC0109264091092C1 |
:10853000630982E090E005C081E090E002C080E045 |
:1085400090E026960FB6F894DEBF0FBECDBFDF9148 |
:10855000CF911F910F91FF90EF90DF90CF90BF9040 |
:10856000AF909F908F907F906F905F904F903F90D3 |
:108570002F900895EF92FF920F931F93CF93DF9365 |
:108580008C01EB019C0197FF04C022273327281B95 |
:10859000390BCE01D7FF04C0882799278C1B9D0B70 |
:1085A000821793073CF4CE01E8018C01B1E0EB2E79 |
:1085B000F12C02C0EE24FF24209741F4011511058F |
:1085C00029F461E070E080E090E024C0B8018827E1 |
:1085D00077FD8095982F28EE33E040E050E00E9430 |
:1085E0000F489E01442737FD4095542F0E94834831 |
:1085F000B90137FF03C0709561957F4F882777FDDC |
:108600008095982F6D3021E0720720E0820720E0EE |
:10861000920704F524E630E040E050E00E940F4865 |
:108620002CE031E040E050E00E948348CA01B901EB |
:10863000A4E0660F771F881F991FAA95D1F7621BC8 |
:10864000730B840B950B24E630E040E050E00E9471 |
:10865000834853C0633422E0720720E0820720E0A1 |
:10866000920734F524E630E040E050E00E940F48E5 |
:10867000605B78468040904026E331E040E050E087 |
:108680000E948348CA01B901F4E0660F771F881F72 |
:10869000991FFA95D1F7621B730B840B950B24E697 |
:1086A00030E040E050E00E948348215F3F4F25C00A |
:1086B00022E330E040E050E00E940F48645E7047E3 |
:1086C0008040904026EA31E040E050E00E9483483C |
:1086D000CA01B901E4E0660F771F881F991FEA9568 |
:1086E000D1F7621B730B840B950B22E330E040E063 |
:1086F00050E00E948348225E3F4FEF2829F48AE52C |
:1087000090E0821B930B9C0117FD03C0D7FF06C0AE |
:1087100002C0D7FD03C0309521953F4FC901DF91BD |
:10872000CF911F910F91FF90EF900895FC01F7FFFB |
:1087300004C0882799278E1B9F0B8856914034F0E0 |
:10874000CF0168E671E00E944E48FC01F7FD03C0CE |
:1087500041E050E005C0F095E195FF4F4FEF5FEF2E |
:10876000CF018B5590408A35910530F484EB90E031 |
:108770008E1B9F0BFC010FC0CF01855B90408A359B |
:10878000910518F4E45BF0400EC0CF018F5091408A |
:108790008A35910518F081E090E007C088E691E005 |
:1087A0008E1B9F0BFC018FEF9FEFEE0FFF1FEF5D06 |
:1087B000FB4F25913491BC01649FC001659F900DD2 |
:1087C000749F900D1124AC01429FC001439F900DF6 |
:1087D000529F900D112408952AE530E0281B390B93 |
:1087E000C9010E9496430895EF92FF920F931F9341 |
:1087F000CF93DF93EA01AC0197FF04C044275527CC |
:10880000481B590B9B0177FF04C022273327261BE7 |
:10881000370B2417350794F49C01B901882777FD9D |
:108820008095982F28EE33E040E050E00E940F48FA |
:108830007B018C01CE010E9496430FC0882777FDF3 |
:108840008095982F28EE33E040E050E00E940F48DA |
:108850007B018C01CE010E94EC439C01442737FD33 |
:108860004095542FC801B7010E948348B90137FFD2 |
:1088700003C0709561957F4F882777FD8095982F6D |
:10888000DF91CF911F910F91FF90EF900895A8E095 |
:10889000B0E0EDE4F4E40C94A8487B018C01611590 |
:1088A00071058105910519F482E089835AC083E03E |
:1088B00089838EE1C82ED12CDC82CB82ED82FE82B0 |
:1088C0000F831887C801B7010E94BA44BC016150E8 |
:1088D000704077FF33C0EE27FF27E61BF70B20E041 |
:1088E00030E040E050E081E090E0A0E0B0E00E2E0B |
:1088F00004C0880F991FAA1FBB1F0A94D2F70197C3 |
:10890000A109B1098E219F21A023B1230097A105C0 |
:10891000B10521F021E030E040E050E004C01695C0 |
:108920000795F794E794EA95D2F72E293F29402B33 |
:10893000512B2D833E834F8358870FC061157105DE |
:1089400081F0062E04C0EE0CFF1C001F111F0A94BC |
:10895000D2F7ED82FE820F831887C61AD70ADC820F |
:10896000CB821A82CE0101960E940745E8E0289644 |
:108970000C94C448EF92FF920F931F939B01AC019C |
:10898000203080E0380781E0480780E0580780F415 |
:108990002F3F31054105510509F020F4EE24FF2455 |
:1089A000870119C068E0E62EF12C012D112D13C0AE |
:1089B000203080E0380780E0480781E0580730F435 |
:1089C00090E1E92EF12C012D112D05C088E1E82E52 |
:1089D000F12C012D112D80E290E0A0E0B0E08E1985 |
:1089E0009F09A00BB10B04C0569547953795279565 |
:1089F000EA94D2F7F901EF55FC4F2081821B9109CF |
:108A0000A109B1091F910F91FF90EF9008959F92D6 |
:108A1000AF92BF92CF92DF92EF92FF920F931F938C |
:108A2000EE24FF248701FC01248135814681578192 |
:108A300091808081823010F44061A2C0843009F4BA |
:108A40009BC0823029F420E030E040E050E005C0D7 |
:108A5000211531054105510519F4E0E0F0E092C01F |
:108A6000828193816FEF823896070CF05AC062E8DA |
:108A70007FEF681B790B6A3171052CF020E030E044 |
:108A800040E050E02AC0AA24BB24650181E090E0C8 |
:108A9000A0E0B0E0062E04C0880F991FAA1FBB1FDC |
:108AA0000A94D2F70197A109B10982239323A42341 |
:108AB000B5230097A105B10529F071E0A72EB12CCF |
:108AC000C12CD12C04C056954795379527956A95AA |
:108AD000D2F72A293B294C295D29DA01C9018F7770 |
:108AE0009070A070B07080349105A105B10539F483 |
:108AF00027FF09C0205C3F4F4F4F5F4F04C0215CF0 |
:108B00003F4F4F4F5F4F80E090E0203060E03607EE |
:108B100060E0460760E4560710F081E090E0FC0159 |
:108B200023C08038910544F5FC01E158FF4FDA017C |
:108B3000C9018F779070A070B07080349105A10545 |
:108B4000B10539F427FF09C0205C3F4F4F4F5F4FFD |
:108B500004C0215C3F4F4F4F5F4F57FF05C05695F4 |
:108B6000479537952795319687E0569547953795E0 |
:108B700027958A95D1F706C020E030E040E050E02C |
:108B8000EFEFF0E0E22EF32E942F9F77802F807886 |
:108B9000892B9E2F9795992797958F77082F092BCB |
:108BA0009E2F9695812F8078892B9794992497945E |
:108BB0008F77182F1929C801B7011F910F91FF90C6 |
:108BC000EF90DF90CF90BF90AF909F900895FC0101 |
:108BD0004150504030F001900616D1F73197CF0147 |
:108BE00008958827992708955058BB27AA270ED0A3 |
:108BF00079C16AD130F06FD120F031F49F3F11F488 |
:108C00001EF45FC10EF4E095E7FB55C1E92F7BD15F |
:108C100080F3BA17620773078407950718F071F499 |
:108C20009EF593C10EF4E0950B2EBA2FA02D0B01EB |
:108C3000B90190010C01CA01A0011124FF27591BA1 |
:108C400099F0593F50F4503E68F11A16F040A22FA7 |
:108C5000232F342F4427585FF3CF46953795279518 |
:108C6000A795F0405395C9F77EF41F16BA0B620B17 |
:108C7000730B840BBAF09150A1F0FF0FBB1F661F5E |
:108C8000771F881FC2F70EC0BA0F621F731F841FA1 |
:108C900048F4879577956795B795F7959E3F08F0C7 |
:108CA000B3CF9395880F08F09927EE0F9795879586 |
:108CB00008950CD017C10FD140F006D130F021F447 |
:108CC0005F3F19F0F8C0511141C1FBC01CD198F3AE |
:108CD0009923C9F35523B1F3951B550BBB27AA273D |
:108CE00062177307840738F09F5F5F4F220F331FAF |
:108CF000441FAA1FA9F333D00E2E3AF0E0E830D07B |
:108D000091505040E695001CCAF729D0FE2F27D07D |
:108D1000660F771F881FBB1F261737074807AB074B |
:108D2000B0E809F0BB0B802DBF01FF2793585F4FC0 |
:108D30002AF09E3F510568F0BEC008C15F3FECF3CA |
:108D4000983EDCF3869577956795B795F7959F5F85 |
:108D5000C9F7880F911D9695879597F90895E1E0D9 |
:108D6000660F771F881FBB1F621773078407BA0738 |
:108D700020F0621B730B840BBA0BEE1F88F7E09593 |
:108D8000089504D06894B111E1C00895C4D088F06A |
:108D90009F5790F0B92F9927B751A0F0D1F0660FE7 |
:108DA000771F881F991F1AF0BA95C9F712C0B13002 |
:108DB00081F0CBD0B1E00895C8C0672F782F882705 |
:108DC000B85F39F0B93FCCF3869577956795B39541 |
:108DD000D9F73EF490958095709561957F4F8F4FB0 |
:108DE0009F4F0895E89409C097FB3EF490958095B5 |
:108DF000709561957F4F8F4F9F4F9923A9F0F92F61 |
:108E000096E9BB279395F695879577956795B795DE |
:108E1000F111F8CFFAF4BB0F11F460FF1BC06F5FC4 |
:108E20007F4F8F4F9F4F16C0882311F096E911C0D6 |
:108E3000772321F09EE8872F762F05C0662371F0F7 |
:108E400096E8862F70E060E02AF09A95660F771F0B |
:108E5000881FDAF7880F9695879597F9089507D0B8 |
:108E600008F481E0089503D008F48FEF0895990F76 |
:108E70000008550FAA0BE0E8FEEF16161706E807E4 |
:108E8000F907C0F012161306E407F50798F0621B05 |
:108E9000730B840B950B39F40A2661F0232B242BDA |
:108EA000252B21F408950A2609F4A140A6958FEFF9 |
:108EB000811D811D089597F99F6780E870E060E04B |
:108EC00008959FEF80EC089500240A941616170663 |
:108ED00018060906089500240A94121613061406AB |
:108EE00005060895092E0394000C11F4882352F00E |
:108EF000BB0F40F4BF2B11F460FF04C06F5F7F4FC6 |
:108F00008F4F9F4F089557FD9058440F551F59F0AC |
:108F10005F3F71F04795880F97FB991F61F09F3F66 |
:108F200079F087950895121613061406551FF2CF8F |
:108F30004695F1DF08C0161617061806991FF1CFDF |
:108F400086957105610508940895E894BB27662706 |
:108F50007727CB0197F908950BD0C4CFB5DF28F060 |
:108F6000BADF18F0952309F0A6CFABCF1124EECFCE |
:108F7000CADFA0F3959FD1F3950F50E0551F629F74 |
:108F8000F001729FBB27F00DB11D639FAA27F00D62 |
:108F9000B11DAA1F649F6627B00DA11D661F829F89 |
:108FA0002227B00DA11D621F739FB00DA11D621F6E |
:108FB000839FA00D611D221F749F3327A00D611D8B |
:108FC000231F849F600D211D822F762F6A2F11246D |
:108FD0009F5750408AF0E1F088234AF0EE0FFF1FC0 |
:108FE000BB1F661F771F881F91505040A9F79E3FF7 |
:108FF000510570F060CFAACF5F3FECF3983EDCF3F1 |
:10900000869577956795B795F795E7959F5FC1F733 |
:10901000FE2B880F911D9695879597F90895629F6D |
:10902000D001739FF001829FE00DF11D649FE00D60 |
:10903000F11D929FF00D839FF00D749FF00D659FC1 |
:10904000F00D9927729FB00DE11DF91F639FB00DC0 |
:10905000E11DF91FBD01CF0111240895991B79E08D |
:1090600004C0991F961708F0961B881F7A95C9F7B8 |
:1090700080950895AA1BBB1B51E107C0AA1FBB1F07 |
:10908000A617B70710F0A61BB70B881F991F5A9594 |
:10909000A9F780959095BC01CD01089597FB092E05 |
:1090A00007260AD077FD04D0E5DF06D000201AF4A9 |
:1090B000709561957F4F0895F6F7909581959F4F34 |
:1090C0000895A1E21A2EAA1BBB1BFD010DC0AA1F09 |
:1090D000BB1FEE1FFF1FA217B307E407F50720F021 |
:1090E000A21BB30BE40BF50B661F771F881F991F9C |
:1090F0001A9469F760957095809590959B01AC01E5 |
:10910000BD01CF01089597FB092E05260ED057FD0E |
:1091100004D0D7DF0AD0001C38F450954095309524 |
:1091200021953F4F4F4F5F4F0895F6F790958095EB |
:10913000709561957F4F8F4F9F4F08952F923F926B |
:109140004F925F926F927F928F929F92AF92BF9257 |
:10915000CF92DF92EF92FF920F931F93CF93DF9303 |
:10916000CDB7DEB7CA1BDB0B0FB6F894DEBF0FBE60 |
:10917000CDBF09942A88398848885F846E847D84AD |
:109180008C849B84AA84B984C884DF80EE80FD80AF |
:109190000C811B81AA81B981CE0FD11D0FB6F89425 |
:1091A000DEBF0FBECDBFED010895F999FECFB2BD70 |
:1091B000A1BDF89A119600B40895F999FECFB2BDF9 |
:1091C000A1BD00BC11960FB6F894FA9AF99A0FBE99 |
:0491D0000895FFCF30 |
:1091D4000A01FF64496E74656772616C4E69636B62 |
:1091E40020202020496E74656772616C526F6C6C2C |
:1091F400202020204163634E69636B2020202020BF |
:1092040020202020416363526F6C6C20202020209A |
:10921400202020204779726F476965722020202022 |
:1092240020202020486F6568656E57657274202081 |
:10923400202020204163635A202020202020202049 |
:10924400202020204761732020202020202020205F |
:10925400202020204B6F6D7061737356616C7565AF |
:109264002020202045727361747A6B6F6D70617376 |
:10927400732020205573725F5061723120202020AA |
:10928400202020205573725F7061723320202020CB |
:109294002020202073706565645F652020202020D5 |
:1092A4002020202073706565645F6E2020202020BC |
:1092B40020202020646966665F656173745F6620A0 |
:1092C40020202020646966665F6E6F7274685F6632 |
:1092D40020202020496E6465782020202020202032 |
:1092E400202020205542617420202020202020208E |
:1092F400202020204D657373776572745F4E696317 |
:109304006B2020204D657373776572745F526F6CA8 |
:109314006C2020204D657373776572745F476965AF |
:1093240072202020537469636B5F4E69636B202045 |
:1093340020202020537469636B5F526F6C6C202073 |
:1093440020202020537469636B5F47696572202075 |
:10935400202020204750535F4E69636B202020203B |
:10936400202020204750535F526F6C6C2020202017 |
:109374002020202075746D5F656173742020202087 |
:109384002020202075746D5F6E6F72746820202019 |
:109394002020202075746D5F616C742020202020B3 |
:1093A400202020206770735F73746174652020200F |
:1093B4002020202067705F7265675F78202020205E |
:1093C4002020202067705F7265675F79202020204D |
:1093D40020202020FFFF0A016400007D0000FF031D |
:1093E4000102030405060708090A48616C6C6F2032 |
:1093F40057656C74000000000000000000000000CD |
:109404000000000000000000000000000000000058 |
:109414000000000000000000000000000000000048 |
:109424000000000000000000000000000000000038 |
:10943400000000000000000000000A0142656769A6 |
:109444006E6E657200004E6F726D616C0000537039 |
:109454006F72740000640090D0030090D003001772 |
:10946400B7D13830FB103A409696020A644664EC51 |
:10947400FF000102020303030304040404040404BC |
:109484000405050505050505050505050505050589 |
:109494000506060606060606060606060606060669 |
:1094A4000606060606060606060606060606060658 |
:1094B4000607070707070707070707070707070739 |
:1094C4000707070707070707070707070707070728 |
:1094D4000707070707070707070707070707070718 |
:1094E4000707070707070707070707070707070708 |
:1094F40007080808080808080808080808080808E9 |
:1095040008080808080808080808080808080808D7 |
:1095140008080808080808080808080808080808C7 |
:1095240008080808080808080808080808080808B7 |
:1095340008080808080808080808080808080808A7 |
:109544000808080808080808080808080808080897 |
:109554000808080808080808080808080808080887 |
:109564000808080808080808080808080808080877 |
:029574000800ED |
:00000001FF |
/branches/salvo_gps/Basis_v0067g/tags/v0004/GPS.c |
---|
0,0 → 1,683 |
/* |
This program (files gps.c and gps.h) is free software; you can redistribute it and/or modify |
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; |
either version 3 of the License, or (at your option) any later version. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License and GNU Lesser General Public License for more details. |
You should have received a copy of GNU General Public License (License_GPL.txt) and |
GNU Lesser General Public License (License_LGPL.txt) along with this program. |
If not, see <http://www.gnu.org/licenses/>. |
Please note: All the other files for the project "Mikrokopter" by H.Buss are under the license (license_buss.txt) published by www.mikrokopter.de |
*/ |
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
Peter Muehlenbrock |
Auswertung der Daten vom GPS im ublox Format |
Hold Modus mit PID Regler |
Rückstuerz zur Basis Funktion |
Stand 24.10.2007 |
Anederung: 24.10. Altitude in relativer Position jetzt auch drin |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
*/ |
#include "main.h" |
#include "math.h" |
//#include "gps.h" |
// Defines fuer ublox Messageformat um Auswertung zu steuern |
#define UBLOX_IDLE 0 |
#define UBLOX_SYNC1 1 |
#define UBLOX_SYNC2 2 |
#define UBLOX_CLASS 3 |
#define UBLOX_ID 4 |
#define UBLOX_LEN1 5 |
#define UBLOX_LEN2 6 |
#define UBLOX_CKA 7 |
#define UBLOX_CKB 8 |
#define UBLOX_PAYLOAD 9 |
// ublox Protokoll Identifier |
#define UBLOX_NAV_POSUTM 0x08 |
#define UBLOX_NAV_STATUS 0x03 |
#define UBLOX_NAV_VELED 0x12 |
#define UBLOX_NAV_CLASS 0x01 |
#define UBLOX_SYNCH1_CHAR 0xB5 |
#define UBLOX_SYNCH2_CHAR 0x62 |
signed int GPS_Nick = 0; |
signed int GPS_Roll = 0; |
short int ublox_msg_state = UBLOX_IDLE; |
static uint8_t chk_a =0; //Checksum |
static uint8_t chk_b =0; |
short int gps_state,gps_sub_state; //Zustaende der Statemachine |
short int gps_updte_flag; |
static signed int GPS_hdng_abs_2trgt; //Winkel zum Ziel bezogen auf Nordpol |
static signed int GPS_hdng_rel_2trgt; //Winkel zum Ziel bezogen auf Nordachse des Kopters |
static signed int GPS_dist_2trgt; //vorzeichenlose Distanz zum Ziel |
static signed int gps_int_x,gps_int_y,gps_reg_x,gps_reg_y; |
static unsigned int rx_len; |
static unsigned int ptr_payload_data_end; |
unsigned int gps_alive_cnt; // Wird bei jedem gueltigen GPS Telegramm hochgezaehlt |
static signed int hdng_2home,dist_2home; //Richtung und Entfernung zur home Position |
static signed gps_tick; //wird bei jedem Update durch das GPS Modul hochgezaehlt |
static short int hold_fast,hold_reset_int; //Flags fuer Hold Regler |
static uint8_t *ptr_payload_data; |
static uint8_t *ptr_pac_status; |
static long int dist_flown; |
static unsigned int int_ovfl_cnt; // Zaehler fuer Overflows des Integrators |
short int Get_GPS_data(void); |
NAV_POSUTM_t actual_pos; // Aktuelle Nav Daten werden hier im ublox Format abgelegt |
NAV_STATUS_t actual_status; // Aktueller Nav Status |
NAV_VELNED_t actual_speed; // Aktueller Geschwindigkeits und Richtungsdaten |
GPS_ABS_POSITION_t gps_act_position; // Alle wichtigen Daten zusammengefasst |
GPS_ABS_POSITION_t gps_home_position; // Die Startposition, beim Kalibrieren ermittelt |
GPS_REL_POSITION_t gps_rel_act_position; // Die aktuelle relative Position bezogen auf Home Position |
GPS_REL_POSITION_t gps_rel_hold_position; // Die gespeicherte Sollposition fuer GPS_ Hold Mode |
GPS_REL_POSITION_t gps_rel_start_position; // Die gespeicherte Ausgangsposition fuer GPS_ Home Mode |
// Initialisierung |
void GPS_Neutral(void) |
{ |
ublox_msg_state = UBLOX_IDLE; |
gps_state = GPS_CRTL_IDLE; |
gps_sub_state = GPS_CRTL_IDLE; |
actual_pos.status = 0; |
actual_speed.status = 0; |
actual_status.status = 0; |
gps_home_position.status = 0; // Noch keine gueltige Home Position |
gps_act_position.status = 0; |
gps_rel_act_position.status = 0; |
GPS_Nick = 0; |
GPS_Roll = 0; |
gps_updte_flag = 0; |
gps_int_x = 0; |
gps_int_y = 0; |
gps_alive_cnt = 0; |
} |
// Home Position sichern falls Daten verfuegbar sind. |
void GPS_Save_Home(void) |
{ |
short int n; |
n = Get_GPS_data(); |
if (n == 0) // Gueltige und aktuelle Daten ? |
{ |
// Neue GPS Daten liegen vor |
gps_home_position.utm_east = gps_act_position.utm_east; |
gps_home_position.utm_north = gps_act_position.utm_north; |
gps_home_position.utm_alt = gps_act_position.utm_alt; |
gps_home_position.status = 1; // Home Position gueltig |
} |
} |
// Relative Position zur Home Position bestimmen |
// Rueckgabewert 0= Daten sind aktuell und gueltig. 1= Keine Aenderung. 2= Daten ungueltig |
short int Get_Rel_Position(void) |
{ |
short int n = 0; |
n = Get_GPS_data(); |
if (n >=1) return (n); // nix zu tun, weil keine neue Daten da sind |
if (gps_alive_cnt < 1000) gps_alive_cnt += 600; // Timeoutzaehler. Wird in Motorregler Routine ueberwacht und dekrementiert |
if (gps_home_position.status > 0) //Nur wenn Home Position vorliegt |
{ |
gps_rel_act_position.utm_east = (int) (gps_act_position.utm_east - gps_home_position.utm_east); |
gps_rel_act_position.utm_north = (int) (gps_act_position.utm_north - gps_home_position.utm_north); |
gps_rel_act_position.utm_alt = (int) (gps_act_position.utm_alt - gps_home_position.utm_alt); |
gps_rel_act_position.status = 1; // gueltige Positionsdaten |
n = 0; |
gps_updte_flag = 1; // zeigt an, dass neue Daten vorliegen. |
} |
else |
{ |
n = 2; //keine gueltigen Daten vorhanden |
gps_rel_act_position.status = 0; //keine gueltige Position weil keine home Position da ist. |
} |
return (n); |
} |
// Daten aus aktuellen ublox Messages extrahieren |
// Rueckgabewert 0= Daten sind aktuell und gueltig. 1= Keine Aenderung. 2= Daten ungueltig |
short int Get_GPS_data(void) |
{ |
short int n = 1; |
if (actual_pos.status == 0) return (1); //damit es schnell geht, wenn nix zu tun ist |
if ((actual_pos.status > 0) && (actual_status.status > 0) && (actual_speed.status > 0)) |
{ |
if (((actual_status.gpsfix_type & 0x03) >=2) && ((actual_status.nav_status_flag & 0x01) >=1)) // nur wenn Daten aktuell und gueltig sind |
{ |
actual_status.status = 0; |
gps_act_position.utm_east = actual_pos.utm_east/10; |
gps_act_position.utm_north = actual_pos.utm_north/10; |
gps_act_position.utm_alt = actual_pos.utm_alt/10; |
actual_pos.status = 0; //neue ublox Messages anfordern |
gps_act_position.speed_gnd = actual_speed.speed_gnd; |
gps_act_position.speed_gnd = actual_speed.speed_gnd; |
gps_act_position.heading = actual_speed.heading/100000; |
actual_speed.status = 0; |
gps_act_position.status = 1; |
n = 0; //Daten gueltig |
} |
else |
{ |
gps_act_position.status = 0; //Keine gueltigen Daten |
actual_speed.status = 0; |
actual_status.status = 0; |
actual_pos.status = 0; //neue ublox Messages anfordern |
n = 2; |
} |
} |
return (n); |
} |
/* |
Daten vom GPS im ublox MSG Format auswerten |
Die Routine wird bei jedem Empfang eines Zeichens vom GPS Modul durch den UART IRQ aufgerufen |
// Die UBX Messages NAV_POSUTM, NAV_STATUS und NAV_VALED muessen aktiviert sein |
*/ |
void Get_Ublox_Msg(uint8_t rx) |
{ |
switch (ublox_msg_state) |
{ |
case UBLOX_IDLE: // Zuerst Synchcharacters pruefen |
if ( rx == UBLOX_SYNCH1_CHAR ) ublox_msg_state = UBLOX_SYNC1; |
else ublox_msg_state = UBLOX_IDLE; |
break; |
case UBLOX_SYNC1: |
if (rx == UBLOX_SYNCH2_CHAR) ublox_msg_state = UBLOX_SYNC2; |
else ublox_msg_state = UBLOX_IDLE; |
chk_a = 0,chk_b = 0; |
break; |
case UBLOX_SYNC2: |
if (rx == UBLOX_NAV_CLASS) ublox_msg_state = UBLOX_CLASS; |
else ublox_msg_state = UBLOX_IDLE; |
break; |
case UBLOX_CLASS: // Nur NAV Meldungen auswerten |
switch (rx) |
{ |
case UBLOX_NAV_POSUTM: |
ptr_pac_status = &actual_pos.status; |
if (*ptr_pac_status > 0) ublox_msg_state = UBLOX_IDLE; //Abbruch weil Daten noch nicht verwendet wurden |
else |
{ |
ptr_payload_data = &actual_pos; |
ptr_payload_data_end = &actual_pos.status; |
ublox_msg_state = UBLOX_LEN1; |
} |
break; |
case UBLOX_NAV_STATUS: |
ptr_pac_status = &actual_status.status; |
if (*ptr_pac_status > 0) ublox_msg_state = UBLOX_IDLE; |
else |
{ |
ptr_payload_data = &actual_status; |
ptr_payload_data_end = &actual_status.status; |
ublox_msg_state = UBLOX_LEN1; |
} |
break; |
case UBLOX_NAV_VELED: |
ptr_pac_status = &actual_speed.status; |
if (*ptr_pac_status > 0) ublox_msg_state = UBLOX_IDLE; |
else |
{ |
ptr_payload_data = &actual_speed; |
ptr_payload_data_end = &actual_speed.status; |
ublox_msg_state = UBLOX_LEN1; |
} |
break; |
default: |
ublox_msg_state = UBLOX_IDLE; |
break; |
} |
chk_a = UBLOX_NAV_CLASS + rx; |
chk_b = UBLOX_NAV_CLASS + chk_a; |
break; |
case UBLOX_LEN1: // Laenge auswerten |
rx_len = rx; |
chk_a += rx; |
chk_b += chk_a; |
ublox_msg_state = UBLOX_LEN2; |
break; |
case UBLOX_LEN2: // Laenge auswerten |
rx_len = rx_len + (rx *256); // Laenge ermitteln |
chk_a += rx; |
chk_b += chk_a; |
ublox_msg_state = UBLOX_PAYLOAD; |
break; |
case UBLOX_PAYLOAD: // jetzt Nutzdaten einlesen |
if (rx_len > 0) |
{ |
*ptr_payload_data = rx; |
chk_a += rx; |
chk_b += chk_a; |
--rx_len; |
if ((rx_len > 0) && (ptr_payload_data <= ptr_payload_data_end)) |
{ |
ptr_payload_data++; |
ublox_msg_state = UBLOX_PAYLOAD; |
} |
else ublox_msg_state = UBLOX_CKA; |
} |
else ublox_msg_state = UBLOX_IDLE; // Abbruch wegen Fehler |
break; |
case UBLOX_CKA: // Checksum pruefen |
if (rx == chk_a) ublox_msg_state = UBLOX_CKB; |
else ublox_msg_state = UBLOX_IDLE; // Abbruch wegen Fehler |
break; |
case UBLOX_CKB: // Checksum pruefen |
if (rx == chk_b) *ptr_pac_status = 1; // Paket ok |
ublox_msg_state = UBLOX_IDLE; |
break; |
default: |
ublox_msg_state = UBLOX_IDLE; |
break; |
} |
} |
//Zentrale Statemachine fuer alle GPS relevanten Regelungsablauefe |
short int GPS_CRTL(short int cmd) |
{ |
static unsigned int cnt; //Zaehler fuer diverse Verzoegerungen |
static signed int dist_north,dist_east; // Distanz zur Sollpoistion |
static signed int diff_east,diff_north; // Differenzierer (Differenz zum vorhergehenden x bzw. y Wert) |
static signed int diff_east_f,diff_north_f; // Differenzierer, gefiltert |
signed int n,n1; |
static signed int gps_g2t_act_v; // Aktuelle Geschwindigkeitsvorgabe fuer Home Funktion |
long signed int dev; |
signed int dist_frm_start_east,dist_frm_start_north; |
int diff_v_east,diff_v_north; //Verstaerkungsfaktoren fuer Differenzierer |
static signed int int_east,int_north; //Integrierer |
int speed_east,speed_north; //Aktuelle Geschwindigkeit |
signed long int_east1,int_north1; |
// signed long dist; |
switch (cmd) |
{ |
case GPS_CMD_REQ_HOME: // Es soll zum Startpunkt zurueckgeflogen werden. |
if ((gps_state != GPS_CRTL_HOLD_ACTIVE) && (gps_state != GPS_CRTL_HOME_ACTIVE)) |
{ |
cnt++; |
if (cnt > 200) // erst nach Verzoegerung |
{ |
// Erst mal initialisieren |
cnt = 0; |
gps_tick = 0; |
hold_fast = 0; |
hold_reset_int = 0; // Integrator enablen |
int_east = 0, int_north = 0; |
gps_reg_x = 0, gps_reg_y = 0; |
dist_east = 0, dist_north = 0; |
diff_east_f = 0, diff_north_f= 0; |
diff_east = 0, diff_north = 0; |
dist_flown = 0; |
gps_g2t_act_v = 0; |
gps_sub_state = GPS_CRTL_IDLE; |
// aktuelle positionsdaten abspeichern |
if (gps_rel_act_position.status > 0) |
{ |
gps_rel_start_position.utm_east = gps_rel_act_position.utm_east; |
gps_rel_start_position.utm_north= gps_rel_act_position.utm_north; |
gps_rel_start_position.status = 1; // gueltige Positionsdaten |
gps_rel_hold_position.utm_east = gps_rel_act_position.utm_east; |
gps_rel_hold_position.utm_north = gps_rel_act_position.utm_north; |
gps_rel_hold_position.status = 1; // gueltige Positionsdaten |
//Richtung zur Home Position bezogen auf Nordpol bestimmen |
hdng_2home = arctan_i(-gps_rel_start_position.utm_east,-gps_rel_start_position.utm_north); |
// in Winkel 0...360 Grad umrechnen |
if (( gps_rel_start_position.utm_east < 0)) hdng_2home = ( 90-hdng_2home); |
else hdng_2home = (270 - hdng_2home); |
dist_2home = (int) get_dist(gps_rel_start_position.utm_east,gps_rel_start_position.utm_north,hdng_2home); //Entfernung zur Home Position bestimmen |
gps_state = GPS_CRTL_HOME_ACTIVE; |
return (GPS_STST_OK); |
} |
else |
{ |
gps_rel_start_position.status = 0; //Keine Daten verfuegbar |
gps_state = GPS_CRTL_IDLE; |
return(GPS_STST_ERR); // Keine Daten da |
} |
} |
else return(GPS_STST_PEND); // noch warten |
} |
break; |
// ****************************** |
case GPS_CMD_REQ_HOLD: // Die Lageregelung soll aktiviert werden. |
if (gps_state != GPS_CRTL_HOLD_ACTIVE) |
{ |
cnt++; |
if (cnt > 500) // erst nach Verzoegerung |
{ |
cnt = 0; |
// aktuelle positionsdaten abspeichern |
if (gps_rel_act_position.status > 0) |
{ |
hold_fast = 0; |
hold_reset_int = 0; // Integrator enablen |
int_east = 0, int_north = 0; |
gps_reg_x = 0, gps_reg_y = 0; |
dist_east = 0, dist_north = 0; |
diff_east_f = 0, diff_north_f= 0; |
diff_east = 0, diff_north = 0; |
speed_east = 0; speed_north= 0; |
int_ovfl_cnt = 0; |
gps_rel_hold_position.utm_east = gps_rel_act_position.utm_east; |
gps_rel_hold_position.utm_north = gps_rel_act_position.utm_north; |
gps_rel_hold_position.status = 1; // gueltige Positionsdaten |
gps_state = GPS_CRTL_HOLD_ACTIVE; |
return (GPS_STST_OK); |
} |
else |
{ |
gps_rel_hold_position.status = 0; //Keine Daten verfuegbar |
gps_state = GPS_CRTL_IDLE; |
return(GPS_STST_ERR); // Keine Daten da |
} |
} |
else return(GPS_STST_PEND); // noch warten |
} |
break; |
case GPS_CMD_STOP: // Lageregelung beenden |
cnt = 0; |
GPS_Nick = 0; |
GPS_Roll = 0; |
gps_int_x = 0; |
gps_int_y = 0; |
gps_sub_state = GPS_CRTL_IDLE; |
gps_state = GPS_CRTL_IDLE; |
return (GPS_STST_OK); |
break; |
default: |
return (GPS_STST_ERR); |
break; |
} |
switch (gps_state) |
{ |
case GPS_CRTL_IDLE: |
cnt = 0; |
return (GPS_STST_OK); |
break; |
case GPS_CRTL_HOME_ACTIVE: // Rueckflug zur Basis |
//Der Sollwert des Lagereglers wird der Homeposition angenaehert |
if (gps_rel_start_position.status >0) |
{ |
if ((gps_updte_flag > 0) && (gps_sub_state !=GPS_HOME_FINISHED)) // nur wenn neue GPS Daten vorliegen und nicht schon alles fertig ist |
{ |
gps_tick++; |
int d1,d2,d3; |
d1 = abs (gps_rel_hold_position.utm_east - gps_rel_act_position.utm_east ); |
d2 = abs (gps_rel_hold_position.utm_north - gps_rel_act_position.utm_north ); |
d3 = (dist_2home - (int)dist_flown); // Restdistanz zum Ziel |
if (d3 > GPS_G2T_DIST_MAX_STOP) // Schneller Rueckflug, noch weit weg vom Ziel |
{ |
if ((d1 < GPS_G2T_FAST_TOL) && (d2 < GPS_G2T_FAST_TOL)) //nur weiter wenn Lage innerhalb der Toleranz |
{ |
if (gps_g2t_act_v < GPS_G2T_V_MAX) gps_g2t_act_v++; //Geschwindigkeit langsam erhoehen |
dist_flown +=(long)gps_g2t_act_v; // Vorgabe der Strecke anhand der Geschwindigkeit |
gps_sub_state = GPS_HOME_FAST_IN_TOL; |
} |
else //Den Lageregler in Ruhe arbeiten lassen weil ausserhalb der Toleranz |
{ |
if (gps_g2t_act_v > 1) gps_g2t_act_v--; // Geschwindigkeit reduzieren |
dist_flown++; //Auch ausserhalb der Toleranz langsam erhoehen |
gps_sub_state = GPS_HOME_FAST_OUTOF_TOL; |
} |
hold_reset_int = 0; // Integrator einsschalten |
hold_fast = 1; // Regler fuer schnellen Flug |
dist_frm_start_east = (int)((dist_flown * (long)sin_i(hdng_2home))/1000); |
dist_frm_start_north = (int)((dist_flown * (long)cos_i(hdng_2home))/1000); |
gps_rel_hold_position.utm_east = gps_rel_start_position.utm_east + dist_frm_start_east; //naechster Zielpunkt |
gps_rel_hold_position.utm_north = gps_rel_start_position.utm_north + dist_frm_start_north; //naechster Zielpunkt |
} |
else if (d3 > GPS_G2T_DIST_HOLD) //Das Ziel naehert sich, deswegen abbremsen |
{ |
if ((d1 < GPS_G2T_NRML_TOL) && (d2 < GPS_G2T_NRML_TOL)) |
{ |
dist_flown += GPS_G2T_V_RAMP_DWN; // Vorgabe der Strecke anhand der Geschwindigkeit |
gps_sub_state = GPS_HOME_RMPDWN_IN_TOL; |
} |
else |
{ |
dist_flown++; //Auch ausserhalb der Toleranz langsam erhoehen |
gps_sub_state = GPS_HOME_RMPDWN_OUTOF_TOL; |
} |
hold_reset_int = 0; // Integrator ausschalten |
hold_fast = 1; // Wieder normal regeln |
dist_frm_start_east = (int)((dist_flown * (long)sin_i(hdng_2home))/1000); |
dist_frm_start_north = (int)((dist_flown * (long)cos_i(hdng_2home))/1000); |
gps_rel_hold_position.utm_east = gps_rel_start_position.utm_east + dist_frm_start_east; //naechster Zielpunkt |
gps_rel_hold_position.utm_north = gps_rel_start_position.utm_north + dist_frm_start_north; //naechster Zielpunkt |
} |
else //Soll-Ziel fast erreicht, Jetzt noch Reste ausgleichen, weil Zielpunkt nicht exakt bestimmt werden konnte (Fehler in Winkelfkt) |
{ |
if ((d1 < GPS_G2T_NRML_TOL) && (d2 < GPS_G2T_NRML_TOL)) // Jetzt bis zum Zielpunkt regeln |
{ |
gps_sub_state = GPS_HOME_IN_TOL; |
hold_fast = 0; // Wieder normal regeln |
hold_reset_int = 0; // Integrator wieder aktivieren |
if (gps_rel_hold_position.utm_east >= GPS_G2T_V_MIN) gps_rel_hold_position.utm_east -= GPS_G2T_V_MIN; |
else if (gps_rel_hold_position.utm_east <= -GPS_G2T_V_MIN ) gps_rel_hold_position.utm_east += GPS_G2T_V_MIN; |
if (gps_rel_hold_position.utm_north >= GPS_G2T_V_MIN) gps_rel_hold_position.utm_north -= GPS_G2T_V_MIN; |
else if (gps_rel_hold_position.utm_north <= - GPS_G2T_V_MIN ) gps_rel_hold_position.utm_north += GPS_G2T_V_MIN; |
if ((abs(gps_rel_hold_position.utm_east) <= GPS_G2T_V_MIN) && (abs(gps_rel_hold_position.utm_north) <=GPS_G2T_V_MIN)) |
{ |
gps_rel_hold_position.utm_east = 0; |
gps_rel_hold_position.utm_north = 0; |
gps_sub_state = GPS_HOME_FINISHED; |
} |
} |
else gps_sub_state = GPS_HOME_OUTOF_TOL; |
} |
} |
gps_state = GPS_CRTL_HOLD_ACTIVE; //Zwischensprung |
return (GPS_STST_OK); |
} |
else // Keine GPS Daten verfuegbar, deswegen Abbruch |
{ |
gps_state = GPS_CRTL_IDLE; |
return (GPS_STST_ERR); |
} |
break; |
case GPS_CRTL_HOLD_ACTIVE: // Hier werden die Daten fuer Nick und Roll errechnet |
if (gps_updte_flag >0) // nur wenn neue GPS Daten vorliegen |
{ |
// ab hier wird geregelt |
// diff_east = dist_east; //Alten Wert fuer Differenzierer schon mal addieren |
// diff_north = dist_north; |
dist_east = gps_rel_hold_position.utm_east - gps_rel_act_position.utm_east; |
dist_north = gps_rel_hold_position.utm_north - gps_rel_act_position.utm_north; |
int_east += dist_east; |
int_north += dist_north; |
// diff_east -= dist_east; // Differenz zur vorhergehenden East Position |
// diff_north -= dist_north; // Differenz zur vorhergehenden North Position |
speed_east = (int) actual_speed.speed_e; |
speed_north = (int) actual_speed.speed_n; |
gps_updte_flag = 0; // Neue Werte koennen vom GPS geholt werden |
debug_gp_2 = speed_east; // zum Debuggen |
debug_gp_3 = speed_north; // zum Debuggen |
if (hold_fast > 0) // wegen Sollpositionsspruengen im Fast Mode Differenzierer daempfen |
{ |
// diff_east_f = (((diff_east_f *2)/3) + ((diff_east *1*10)/3)); //Differenzierer filtern |
// diff_north_f = (((diff_north_f *2)/3) + ((diff_north*1*10)/3)); //Differenzierer filtern |
} |
else // schwache Filterung |
{ |
// diff_east_f = (((diff_east_f * 2)/4) + ((diff_east *2*10)/4)); //Differenzierer filtern |
// diff_north_f = (((diff_north_f * 2)/4) + ((diff_north*2*10)/4)); //Differenzierer filtern |
} |
// Differenz aus Distanz durch eche geschwindigkeit aus VELNED Msg ersetzten |
diff_east_f = -speed_east; |
diff_north_f = speed_north; |
#define GPSINT_MAX 3000 // Neues Verfahren ab 30.12.2007 bei Integratoroverflow |
if ((abs(int_east) > GPSINT_MAX) || (abs(int_north)> GPSINT_MAX)) |
{ |
if (int_ovfl_cnt < 40) int_ovfl_cnt += 1; // Zahl der Overflows zaehlen |
// int_east -= dist_east; auf alten Wert halten |
// int_north -= dist_north; |
} |
if (int_ovfl_cnt > 0) //bei Overflow Wert Integratorwert reduzieren |
{ |
int_ovfl_cnt -= 1; |
int_east = (int_east*7)/8; // Wert reduzieren |
int_north = (int_north*7)/8; |
} |
if (hold_reset_int > 0) //Im Schnellen Mode Integrator abschalten |
{ |
int_east = 0; |
int_north = 0; |
} |
// int phi; |
// phi = arctan_i(abs(dist_north),abs(dist_east)); |
// dist = get_dist(dist_east,dist_north,phi); //Zunaechst Entfernung zum Ziel ermitteln |
if (hold_fast == 0) // je Nach Modus andere Verstaerkungskurve fuer Differenzierer |
{ |
// diff_v = (int)((dist * (GPS_DIFF_NRML_MAX_V - 10)) / GPS_DIFF_NRML_MAX_D) +10; //Verstaerkung * 10 |
// if (diff_v > GPS_DIFF_NRML_MAX_V) diff_v = GPS_DIFF_NRML_MAX_V; //begrenzen |
// diff_v = GPS_DIFF_NRML_MAX_V ; //variable Versterkung raus 31.12.2007 |
} |
else |
{ |
// diff_v = (int)((dist * (GPS_DIFF_FAST_MAX_V - 10)) / GPS_DIFF_FAST_MAX_D) +10; //Verstaerkung * 10 |
// if (diff_v > GPS_DIFF_FAST_MAX_V) diff_v = GPS_DIFF_FAST_MAX_V; //begrenzen |
// diff_v = GPS_DIFF_FAST_MAX_V ; //variable Versterkung raus 31.12.2007 |
} |
diff_v_east = (((abs(diff_east_f)) *(DIFF_Y_MAX-1))/DIFF_X_MAX) +10; |
diff_v_north = (((abs(diff_north_f))*(DIFF_Y_MAX-1))/DIFF_X_MAX) +10; |
if (diff_v_east > (DIFF_Y_MAX *10)) diff_v_east = DIFF_Y_MAX *10; // Begrenzung |
if (diff_v_north > (DIFF_Y_MAX *10)) diff_v_north = DIFF_Y_MAX *10; // Begrenzung |
// diff_v_east *= 2; |
// diff_v_north *= 2; |
int diff_p; //Vom Modus abhaengige zusaetzliche Verstaerkung |
if (hold_fast > 0) diff_p = GPS_PROP_FAST_V; |
else diff_p = GPS_PROP_NRML_V; |
//I Werte begrenzen |
#define INT1_MAX (GPS_NICKROLL_MAX * GPS_V)/2 //ab 30.12.2007 auf Halben Maximalen Nick/Rollwert begrenzen |
int_east1 = ((((long)int_east) * Parameter_UserParam2)/32)/GPS_USR_PAR_FKT; |
int_north1 = ((((long)int_north) * Parameter_UserParam2)/32)/GPS_USR_PAR_FKT; //Fehler behoben am 17.12.2007 vorher int_north= |
if (int_east1 > INT1_MAX) int_east1 = INT1_MAX; //begrenzen |
else if (int_east1 < -INT1_MAX) int_east1 = -INT1_MAX; |
if (int_north1 > INT1_MAX) int_north1 = INT1_MAX; //begrenzen |
else if (int_north1 < -INT1_MAX) int_north1 = -INT1_MAX; |
//PID Regler Werte aufsummieren |
gps_reg_x = ((int)int_east1 + ((dist_east * (Parameter_UserParam1/GPS_USR_PAR_FKT) * diff_p)/(8*2))+ ((diff_east_f * diff_v_east * (Parameter_UserParam3/GPS_USR_PAR_FKT))/100)); // I + P +D Anteil X Achse |
gps_reg_y = ((int)int_north1 + ((dist_north * (Parameter_UserParam1/GPS_USR_PAR_FKT) * diff_p)/(8*2))+ ((diff_north_f * diff_v_north * (Parameter_UserParam3/GPS_USR_PAR_FKT))/100)); // I + P +D Anteil Y Achse |
debug_gp_0 = gps_reg_x; // zum Debuggen |
debug_gp_1 = gps_reg_y; // zum Debuggen |
//Ziel-Richtung bezogen auf Nordpol bestimmen |
GPS_hdng_abs_2trgt = arctan_i(gps_reg_x,gps_reg_y); |
// in Winkel 0...360 Grad umrechnen |
if ((gps_reg_x >= 0)) GPS_hdng_abs_2trgt = ( 90-GPS_hdng_abs_2trgt); |
else GPS_hdng_abs_2trgt = (270 - GPS_hdng_abs_2trgt); |
// Relative Richtung in bezug auf Nordachse des Kopters errechen |
n= GyroKomp_Int/GYROKOMP_INC_GRAD_DEFAULT; |
GPS_hdng_rel_2trgt = GPS_hdng_abs_2trgt - n; |
if ((GPS_hdng_rel_2trgt >180) && (GPS_hdng_abs_2trgt >=180)) GPS_hdng_rel_2trgt = GPS_hdng_rel_2trgt-360; |
else if (GPS_hdng_rel_2trgt >180) GPS_hdng_rel_2trgt = 360 - GPS_hdng_rel_2trgt; |
else if (GPS_hdng_rel_2trgt <-180) GPS_hdng_rel_2trgt = 360 + GPS_hdng_rel_2trgt; |
// Regelabweichung aus x,y zu Ziel in Distanz umrechnen |
if (abs(gps_reg_x) > abs(gps_reg_y) ) |
{ |
dev = (long)gps_reg_x; //Groesseren Wert wegen besserer Genauigkeit nehmen |
dev = abs((dev *1000) / (long) sin_i(GPS_hdng_abs_2trgt)); |
} |
else |
{ |
dev = (long)gps_reg_y; |
dev = abs((dev *1000) / (long) cos_i(GPS_hdng_abs_2trgt)); |
} |
GPS_dist_2trgt = (int) dev; |
// Winkel und Distanz in Nick und Rollgroessen umrechnen |
n = (int) +( (dev * (long) sin_i(GPS_hdng_rel_2trgt))/1000); //Rollwert bestimmen |
n1 = (int) -( (dev * (long) cos_i(GPS_hdng_rel_2trgt))/1000); //Nickwert bestimmen |
// GPS_Roll = (int) +( (dev * (long) sin_i(GPS_hdng_rel_2trgt))/1000); |
// GPS_Nick = (int) -( (dev * (long) cos_i(GPS_hdng_rel_2trgt))/1000); |
if (n > (GPS_NICKROLL_MAX * GPS_V)) n = (GPS_NICKROLL_MAX * GPS_V); |
else if (n < -(GPS_NICKROLL_MAX * GPS_V)) n = -(GPS_NICKROLL_MAX * GPS_V); |
if (n1 > (GPS_NICKROLL_MAX * GPS_V)) n1 = (GPS_NICKROLL_MAX * GPS_V); |
else if (n1 < -(GPS_NICKROLL_MAX * GPS_V)) n1 = -(GPS_NICKROLL_MAX * GPS_V); |
n = n/GPS_V; |
n1 = n1/GPS_V; |
//Kleine Werte verstaerken, Grosse abschwaechen |
/* n = sin_i((GPS_Roll*90)/(GPS_NICKROLL_MAX * GPS_V)); |
n_l = ((long) GPS_NICKROLL_MAX * (long) n)/1000; |
GPS_Roll = (int) n_l; |
n = sin_i((GPS_Nick*90)/(GPS_NICKROLL_MAX * GPS_V)); |
n_l = ((long) GPS_NICKROLL_MAX * (long) n)/1000; |
GPS_Nick = (int) n_l; |
*/ |
if ((abs(dist_east) > GPS_DIST_MAX) || (abs(dist_north) > GPS_DIST_MAX)) // bei zu grossem Abstand abbrechen |
{ |
GPS_Roll = 0; |
GPS_Nick = 0; |
gps_state = GPS_CRTL_IDLE; |
return (GPS_STST_ERR); |
break; |
} |
else |
{ |
GPS_Roll = n; |
GPS_Nick = n1; |
if ( cmd == GPS_CMD_REQ_HOME ) gps_state = GPS_CRTL_HOME_ACTIVE; // State umsetzen |
return (GPS_STST_OK); |
} |
} |
else |
{ |
if ( cmd == GPS_CMD_REQ_HOME ) gps_state = GPS_CRTL_HOME_ACTIVE; // State umsetzen |
return (GPS_STST_OK); |
} |
break; |
default: |
gps_state = GPS_CRTL_IDLE; |
return (GPS_STST_ERR); |
break; |
} |
return (GPS_STST_ERR); |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/License_GPL.txt |
---|
0,0 → 1,674 |
GNU GENERAL PUBLIC LICENSE |
Version 3, 29 June 2007 |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
Everyone is permitted to copy and distribute verbatim copies |
of this license document, but changing it is not allowed. |
Preamble |
The GNU General Public License is a free, copyleft license for |
software and other kinds of works. |
The licenses for most software and other practical works are designed |
to take away your freedom to share and change the works. By contrast, |
the GNU General Public License is intended to guarantee your freedom to |
share and change all versions of a program--to make sure it remains free |
software for all its users. We, the Free Software Foundation, use the |
GNU General Public License for most of our software; it applies also to |
any other work released this way by its authors. You can apply it to |
your programs, too. |
When we speak of free software, we are referring to freedom, not |
price. Our General Public Licenses are designed to make sure that you |
have the freedom to distribute copies of free software (and charge for |
them if you wish), that you receive source code or can get it if you |
want it, that you can change the software or use pieces of it in new |
free programs, and that you know you can do these things. |
To protect your rights, we need to prevent others from denying you |
these rights or asking you to surrender the rights. Therefore, you have |
certain responsibilities if you distribute copies of the software, or if |
you modify it: responsibilities to respect the freedom of others. |
For example, if you distribute copies of such a program, whether |
gratis or for a fee, you must pass on to the recipients the same |
freedoms that you received. You must make sure that they, too, receive |
or can get the source code. And you must show them these terms so they |
know their rights. |
Developers that use the GNU GPL protect your rights with two steps: |
(1) assert copyright on the software, and (2) offer you this License |
giving you legal permission to copy, distribute and/or modify it. |
For the developers' and authors' protection, the GPL clearly explains |
that there is no warranty for this free software. For both users' and |
authors' sake, the GPL requires that modified versions be marked as |
changed, so that their problems will not be attributed erroneously to |
authors of previous versions. |
Some devices are designed to deny users access to install or run |
modified versions of the software inside them, although the manufacturer |
can do so. This is fundamentally incompatible with the aim of |
protecting users' freedom to change the software. The systematic |
pattern of such abuse occurs in the area of products for individuals to |
use, which is precisely where it is most unacceptable. Therefore, we |
have designed this version of the GPL to prohibit the practice for those |
products. If such problems arise substantially in other domains, we |
stand ready to extend this provision to those domains in future versions |
of the GPL, as needed to protect the freedom of users. |
Finally, every program is threatened constantly by software patents. |
States should not allow patents to restrict development and use of |
software on general-purpose computers, but in those that do, we wish to |
avoid the special danger that patents applied to a free program could |
make it effectively proprietary. To prevent this, the GPL assures that |
patents cannot be used to render the program non-free. |
The precise terms and conditions for copying, distribution and |
modification follow. |
TERMS AND CONDITIONS |
0. Definitions. |
"This License" refers to version 3 of the GNU General Public License. |
"Copyright" also means copyright-like laws that apply to other kinds of |
works, such as semiconductor masks. |
"The Program" refers to any copyrightable work licensed under this |
License. Each licensee is addressed as "you". "Licensees" and |
"recipients" may be individuals or organizations. |
To "modify" a work means to copy from or adapt all or part of the work |
in a fashion requiring copyright permission, other than the making of an |
exact copy. The resulting work is called a "modified version" of the |
earlier work or a work "based on" the earlier work. |
A "covered work" means either the unmodified Program or a work based |
on the Program. |
To "propagate" a work means to do anything with it that, without |
permission, would make you directly or secondarily liable for |
infringement under applicable copyright law, except executing it on a |
computer or modifying a private copy. Propagation includes copying, |
distribution (with or without modification), making available to the |
public, and in some countries other activities as well. |
To "convey" a work means any kind of propagation that enables other |
parties to make or receive copies. Mere interaction with a user through |
a computer network, with no transfer of a copy, is not conveying. |
An interactive user interface displays "Appropriate Legal Notices" |
to the extent that it includes a convenient and prominently visible |
feature that (1) displays an appropriate copyright notice, and (2) |
tells the user that there is no warranty for the work (except to the |
extent that warranties are provided), that licensees may convey the |
work under this License, and how to view a copy of this License. If |
the interface presents a list of user commands or options, such as a |
menu, a prominent item in the list meets this criterion. |
1. Source Code. |
The "source code" for a work means the preferred form of the work |
for making modifications to it. "Object code" means any non-source |
form of a work. |
A "Standard Interface" means an interface that either is an official |
standard defined by a recognized standards body, or, in the case of |
interfaces specified for a particular programming language, one that |
is widely used among developers working in that language. |
The "System Libraries" of an executable work include anything, other |
than the work as a whole, that (a) is included in the normal form of |
packaging a Major Component, but which is not part of that Major |
Component, and (b) serves only to enable use of the work with that |
Major Component, or to implement a Standard Interface for which an |
implementation is available to the public in source code form. A |
"Major Component", in this context, means a major essential component |
(kernel, window system, and so on) of the specific operating system |
(if any) on which the executable work runs, or a compiler used to |
produce the work, or an object code interpreter used to run it. |
The "Corresponding Source" for a work in object code form means all |
the source code needed to generate, install, and (for an executable |
work) run the object code and to modify the work, including scripts to |
control those activities. However, it does not include the work's |
System Libraries, or general-purpose tools or generally available free |
programs which are used unmodified in performing those activities but |
which are not part of the work. For example, Corresponding Source |
includes interface definition files associated with source files for |
the work, and the source code for shared libraries and dynamically |
linked subprograms that the work is specifically designed to require, |
such as by intimate data communication or control flow between those |
subprograms and other parts of the work. |
The Corresponding Source need not include anything that users |
can regenerate automatically from other parts of the Corresponding |
Source. |
The Corresponding Source for a work in source code form is that |
same work. |
2. Basic Permissions. |
All rights granted under this License are granted for the term of |
copyright on the Program, and are irrevocable provided the stated |
conditions are met. This License explicitly affirms your unlimited |
permission to run the unmodified Program. The output from running a |
covered work is covered by this License only if the output, given its |
content, constitutes a covered work. This License acknowledges your |
rights of fair use or other equivalent, as provided by copyright law. |
You may make, run and propagate covered works that you do not |
convey, without conditions so long as your license otherwise remains |
in force. You may convey covered works to others for the sole purpose |
of having them make modifications exclusively for you, or provide you |
with facilities for running those works, provided that you comply with |
the terms of this License in conveying all material for which you do |
not control copyright. Those thus making or running the covered works |
for you must do so exclusively on your behalf, under your direction |
and control, on terms that prohibit them from making any copies of |
your copyrighted material outside their relationship with you. |
Conveying under any other circumstances is permitted solely under |
the conditions stated below. Sublicensing is not allowed; section 10 |
makes it unnecessary. |
3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
No covered work shall be deemed part of an effective technological |
measure under any applicable law fulfilling obligations under article |
11 of the WIPO copyright treaty adopted on 20 December 1996, or |
similar laws prohibiting or restricting circumvention of such |
measures. |
When you convey a covered work, you waive any legal power to forbid |
circumvention of technological measures to the extent such circumvention |
is effected by exercising rights under this License with respect to |
the covered work, and you disclaim any intention to limit operation or |
modification of the work as a means of enforcing, against the work's |
users, your or third parties' legal rights to forbid circumvention of |
technological measures. |
4. Conveying Verbatim Copies. |
You may convey verbatim copies of the Program's source code as you |
receive it, in any medium, provided that you conspicuously and |
appropriately publish on each copy an appropriate copyright notice; |
keep intact all notices stating that this License and any |
non-permissive terms added in accord with section 7 apply to the code; |
keep intact all notices of the absence of any warranty; and give all |
recipients a copy of this License along with the Program. |
You may charge any price or no price for each copy that you convey, |
and you may offer support or warranty protection for a fee. |
5. Conveying Modified Source Versions. |
You may convey a work based on the Program, or the modifications to |
produce it from the Program, in the form of source code under the |
terms of section 4, provided that you also meet all of these conditions: |
a) The work must carry prominent notices stating that you modified |
it, and giving a relevant date. |
b) The work must carry prominent notices stating that it is |
released under this License and any conditions added under section |
7. This requirement modifies the requirement in section 4 to |
"keep intact all notices". |
c) You must license the entire work, as a whole, under this |
License to anyone who comes into possession of a copy. This |
License will therefore apply, along with any applicable section 7 |
additional terms, to the whole of the work, and all its parts, |
regardless of how they are packaged. This License gives no |
permission to license the work in any other way, but it does not |
invalidate such permission if you have separately received it. |
d) If the work has interactive user interfaces, each must display |
Appropriate Legal Notices; however, if the Program has interactive |
interfaces that do not display Appropriate Legal Notices, your |
work need not make them do so. |
A compilation of a covered work with other separate and independent |
works, which are not by their nature extensions of the covered work, |
and which are not combined with it such as to form a larger program, |
in or on a volume of a storage or distribution medium, is called an |
"aggregate" if the compilation and its resulting copyright are not |
used to limit the access or legal rights of the compilation's users |
beyond what the individual works permit. Inclusion of a covered work |
in an aggregate does not cause this License to apply to the other |
parts of the aggregate. |
6. Conveying Non-Source Forms. |
You may convey a covered work in object code form under the terms |
of sections 4 and 5, provided that you also convey the |
machine-readable Corresponding Source under the terms of this License, |
in one of these ways: |
a) Convey the object code in, or embodied in, a physical product |
(including a physical distribution medium), accompanied by the |
Corresponding Source fixed on a durable physical medium |
customarily used for software interchange. |
b) Convey the object code in, or embodied in, a physical product |
(including a physical distribution medium), accompanied by a |
written offer, valid for at least three years and valid for as |
long as you offer spare parts or customer support for that product |
model, to give anyone who possesses the object code either (1) a |
copy of the Corresponding Source for all the software in the |
product that is covered by this License, on a durable physical |
medium customarily used for software interchange, for a price no |
more than your reasonable cost of physically performing this |
conveying of source, or (2) access to copy the |
Corresponding Source from a network server at no charge. |
c) Convey individual copies of the object code with a copy of the |
written offer to provide the Corresponding Source. This |
alternative is allowed only occasionally and noncommercially, and |
only if you received the object code with such an offer, in accord |
with subsection 6b. |
d) Convey the object code by offering access from a designated |
place (gratis or for a charge), and offer equivalent access to the |
Corresponding Source in the same way through the same place at no |
further charge. You need not require recipients to copy the |
Corresponding Source along with the object code. If the place to |
copy the object code is a network server, the Corresponding Source |
may be on a different server (operated by you or a third party) |
that supports equivalent copying facilities, provided you maintain |
clear directions next to the object code saying where to find the |
Corresponding Source. Regardless of what server hosts the |
Corresponding Source, you remain obligated to ensure that it is |
available for as long as needed to satisfy these requirements. |
e) Convey the object code using peer-to-peer transmission, provided |
you inform other peers where the object code and Corresponding |
Source of the work are being offered to the general public at no |
charge under subsection 6d. |
A separable portion of the object code, whose source code is excluded |
from the Corresponding Source as a System Library, need not be |
included in conveying the object code work. |
A "User Product" is either (1) a "consumer product", which means any |
tangible personal property which is normally used for personal, family, |
or household purposes, or (2) anything designed or sold for incorporation |
into a dwelling. In determining whether a product is a consumer product, |
doubtful cases shall be resolved in favor of coverage. For a particular |
product received by a particular user, "normally used" refers to a |
typical or common use of that class of product, regardless of the status |
of the particular user or of the way in which the particular user |
actually uses, or expects or is expected to use, the product. A product |
is a consumer product regardless of whether the product has substantial |
commercial, industrial or non-consumer uses, unless such uses represent |
the only significant mode of use of the product. |
"Installation Information" for a User Product means any methods, |
procedures, authorization keys, or other information required to install |
and execute modified versions of a covered work in that User Product from |
a modified version of its Corresponding Source. The information must |
suffice to ensure that the continued functioning of the modified object |
code is in no case prevented or interfered with solely because |
modification has been made. |
If you convey an object code work under this section in, or with, or |
specifically for use in, a User Product, and the conveying occurs as |
part of a transaction in which the right of possession and use of the |
User Product is transferred to the recipient in perpetuity or for a |
fixed term (regardless of how the transaction is characterized), the |
Corresponding Source conveyed under this section must be accompanied |
by the Installation Information. But this requirement does not apply |
if neither you nor any third party retains the ability to install |
modified object code on the User Product (for example, the work has |
been installed in ROM). |
The requirement to provide Installation Information does not include a |
requirement to continue to provide support service, warranty, or updates |
for a work that has been modified or installed by the recipient, or for |
the User Product in which it has been modified or installed. Access to a |
network may be denied when the modification itself materially and |
adversely affects the operation of the network or violates the rules and |
protocols for communication across the network. |
Corresponding Source conveyed, and Installation Information provided, |
in accord with this section must be in a format that is publicly |
documented (and with an implementation available to the public in |
source code form), and must require no special password or key for |
unpacking, reading or copying. |
7. Additional Terms. |
"Additional permissions" are terms that supplement the terms of this |
License by making exceptions from one or more of its conditions. |
Additional permissions that are applicable to the entire Program shall |
be treated as though they were included in this License, to the extent |
that they are valid under applicable law. If additional permissions |
apply only to part of the Program, that part may be used separately |
under those permissions, but the entire Program remains governed by |
this License without regard to the additional permissions. |
When you convey a copy of a covered work, you may at your option |
remove any additional permissions from that copy, or from any part of |
it. (Additional permissions may be written to require their own |
removal in certain cases when you modify the work.) You may place |
additional permissions on material, added by you to a covered work, |
for which you have or can give appropriate copyright permission. |
Notwithstanding any other provision of this License, for material you |
add to a covered work, you may (if authorized by the copyright holders of |
that material) supplement the terms of this License with terms: |
a) Disclaiming warranty or limiting liability differently from the |
terms of sections 15 and 16 of this License; or |
b) Requiring preservation of specified reasonable legal notices or |
author attributions in that material or in the Appropriate Legal |
Notices displayed by works containing it; or |
c) Prohibiting misrepresentation of the origin of that material, or |
requiring that modified versions of such material be marked in |
reasonable ways as different from the original version; or |
d) Limiting the use for publicity purposes of names of licensors or |
authors of the material; or |
e) Declining to grant rights under trademark law for use of some |
trade names, trademarks, or service marks; or |
f) Requiring indemnification of licensors and authors of that |
material by anyone who conveys the material (or modified versions of |
it) with contractual assumptions of liability to the recipient, for |
any liability that these contractual assumptions directly impose on |
those licensors and authors. |
All other non-permissive additional terms are considered "further |
restrictions" within the meaning of section 10. If the Program as you |
received it, or any part of it, contains a notice stating that it is |
governed by this License along with a term that is a further |
restriction, you may remove that term. If a license document contains |
a further restriction but permits relicensing or conveying under this |
License, you may add to a covered work material governed by the terms |
of that license document, provided that the further restriction does |
not survive such relicensing or conveying. |
If you add terms to a covered work in accord with this section, you |
must place, in the relevant source files, a statement of the |
additional terms that apply to those files, or a notice indicating |
where to find the applicable terms. |
Additional terms, permissive or non-permissive, may be stated in the |
form of a separately written license, or stated as exceptions; |
the above requirements apply either way. |
8. Termination. |
You may not propagate or modify a covered work except as expressly |
provided under this License. Any attempt otherwise to propagate or |
modify it is void, and will automatically terminate your rights under |
this License (including any patent licenses granted under the third |
paragraph of section 11). |
However, if you cease all violation of this License, then your |
license from a particular copyright holder is reinstated (a) |
provisionally, unless and until the copyright holder explicitly and |
finally terminates your license, and (b) permanently, if the copyright |
holder fails to notify you of the violation by some reasonable means |
prior to 60 days after the cessation. |
Moreover, your license from a particular copyright holder is |
reinstated permanently if the copyright holder notifies you of the |
violation by some reasonable means, this is the first time you have |
received notice of violation of this License (for any work) from that |
copyright holder, and you cure the violation prior to 30 days after |
your receipt of the notice. |
Termination of your rights under this section does not terminate the |
licenses of parties who have received copies or rights from you under |
this License. If your rights have been terminated and not permanently |
reinstated, you do not qualify to receive new licenses for the same |
material under section 10. |
9. Acceptance Not Required for Having Copies. |
You are not required to accept this License in order to receive or |
run a copy of the Program. Ancillary propagation of a covered work |
occurring solely as a consequence of using peer-to-peer transmission |
to receive a copy likewise does not require acceptance. However, |
nothing other than this License grants you permission to propagate or |
modify any covered work. These actions infringe copyright if you do |
not accept this License. Therefore, by modifying or propagating a |
covered work, you indicate your acceptance of this License to do so. |
10. Automatic Licensing of Downstream Recipients. |
Each time you convey a covered work, the recipient automatically |
receives a license from the original licensors, to run, modify and |
propagate that work, subject to this License. You are not responsible |
for enforcing compliance by third parties with this License. |
An "entity transaction" is a transaction transferring control of an |
organization, or substantially all assets of one, or subdividing an |
organization, or merging organizations. If propagation of a covered |
work results from an entity transaction, each party to that |
transaction who receives a copy of the work also receives whatever |
licenses to the work the party's predecessor in interest had or could |
give under the previous paragraph, plus a right to possession of the |
Corresponding Source of the work from the predecessor in interest, if |
the predecessor has it or can get it with reasonable efforts. |
You may not impose any further restrictions on the exercise of the |
rights granted or affirmed under this License. For example, you may |
not impose a license fee, royalty, or other charge for exercise of |
rights granted under this License, and you may not initiate litigation |
(including a cross-claim or counterclaim in a lawsuit) alleging that |
any patent claim is infringed by making, using, selling, offering for |
sale, or importing the Program or any portion of it. |
11. Patents. |
A "contributor" is a copyright holder who authorizes use under this |
License of the Program or a work on which the Program is based. The |
work thus licensed is called the contributor's "contributor version". |
A contributor's "essential patent claims" are all patent claims |
owned or controlled by the contributor, whether already acquired or |
hereafter acquired, that would be infringed by some manner, permitted |
by this License, of making, using, or selling its contributor version, |
but do not include claims that would be infringed only as a |
consequence of further modification of the contributor version. For |
purposes of this definition, "control" includes the right to grant |
patent sublicenses in a manner consistent with the requirements of |
this License. |
Each contributor grants you a non-exclusive, worldwide, royalty-free |
patent license under the contributor's essential patent claims, to |
make, use, sell, offer for sale, import and otherwise run, modify and |
propagate the contents of its contributor version. |
In the following three paragraphs, a "patent license" is any express |
agreement or commitment, however denominated, not to enforce a patent |
(such as an express permission to practice a patent or covenant not to |
sue for patent infringement). To "grant" such a patent license to a |
party means to make such an agreement or commitment not to enforce a |
patent against the party. |
If you convey a covered work, knowingly relying on a patent license, |
and the Corresponding Source of the work is not available for anyone |
to copy, free of charge and under the terms of this License, through a |
publicly available network server or other readily accessible means, |
then you must either (1) cause the Corresponding Source to be so |
available, or (2) arrange to deprive yourself of the benefit of the |
patent license for this particular work, or (3) arrange, in a manner |
consistent with the requirements of this License, to extend the patent |
license to downstream recipients. "Knowingly relying" means you have |
actual knowledge that, but for the patent license, your conveying the |
covered work in a country, or your recipient's use of the covered work |
in a country, would infringe one or more identifiable patents in that |
country that you have reason to believe are valid. |
If, pursuant to or in connection with a single transaction or |
arrangement, you convey, or propagate by procuring conveyance of, a |
covered work, and grant a patent license to some of the parties |
receiving the covered work authorizing them to use, propagate, modify |
or convey a specific copy of the covered work, then the patent license |
you grant is automatically extended to all recipients of the covered |
work and works based on it. |
A patent license is "discriminatory" if it does not include within |
the scope of its coverage, prohibits the exercise of, or is |
conditioned on the non-exercise of one or more of the rights that are |
specifically granted under this License. You may not convey a covered |
work if you are a party to an arrangement with a third party that is |
in the business of distributing software, under which you make payment |
to the third party based on the extent of your activity of conveying |
the work, and under which the third party grants, to any of the |
parties who would receive the covered work from you, a discriminatory |
patent license (a) in connection with copies of the covered work |
conveyed by you (or copies made from those copies), or (b) primarily |
for and in connection with specific products or compilations that |
contain the covered work, unless you entered into that arrangement, |
or that patent license was granted, prior to 28 March 2007. |
Nothing in this License shall be construed as excluding or limiting |
any implied license or other defenses to infringement that may |
otherwise be available to you under applicable patent law. |
12. No Surrender of Others' Freedom. |
If conditions are imposed on you (whether by court order, agreement or |
otherwise) that contradict the conditions of this License, they do not |
excuse you from the conditions of this License. If you cannot convey a |
covered work so as to satisfy simultaneously your obligations under this |
License and any other pertinent obligations, then as a consequence you may |
not convey it at all. For example, if you agree to terms that obligate you |
to collect a royalty for further conveying from those to whom you convey |
the Program, the only way you could satisfy both those terms and this |
License would be to refrain entirely from conveying the Program. |
13. Use with the GNU Affero General Public License. |
Notwithstanding any other provision of this License, you have |
permission to link or combine any covered work with a work licensed |
under version 3 of the GNU Affero General Public License into a single |
combined work, and to convey the resulting work. The terms of this |
License will continue to apply to the part which is the covered work, |
but the special requirements of the GNU Affero General Public License, |
section 13, concerning interaction through a network will apply to the |
combination as such. |
14. Revised Versions of this License. |
The Free Software Foundation may publish revised and/or new versions of |
the GNU General Public License from time to time. Such new versions will |
be similar in spirit to the present version, but may differ in detail to |
address new problems or concerns. |
Each version is given a distinguishing version number. If the |
Program specifies that a certain numbered version of the GNU General |
Public License "or any later version" applies to it, you have the |
option of following the terms and conditions either of that numbered |
version or of any later version published by the Free Software |
Foundation. If the Program does not specify a version number of the |
GNU General Public License, you may choose any version ever published |
by the Free Software Foundation. |
If the Program specifies that a proxy can decide which future |
versions of the GNU General Public License can be used, that proxy's |
public statement of acceptance of a version permanently authorizes you |
to choose that version for the Program. |
Later license versions may give you additional or different |
permissions. However, no additional obligations are imposed on any |
author or copyright holder as a result of your choosing to follow a |
later version. |
15. Disclaimer of Warranty. |
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY |
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, |
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM |
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF |
ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
16. Limitation of Liability. |
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS |
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY |
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE |
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF |
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD |
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), |
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
SUCH DAMAGES. |
17. Interpretation of Sections 15 and 16. |
If the disclaimer of warranty and limitation of liability provided |
above cannot be given local legal effect according to their terms, |
reviewing courts shall apply local law that most closely approximates |
an absolute waiver of all civil liability in connection with the |
Program, unless a warranty or assumption of liability accompanies a |
copy of the Program in return for a fee. |
END OF TERMS AND CONDITIONS |
How to Apply These Terms to Your New Programs |
If you develop a new program, and you want it to be of the greatest |
possible use to the public, the best way to achieve this is to make it |
free software which everyone can redistribute and change under these terms. |
To do so, attach the following notices to the program. It is safest |
to attach them to the start of each source file to most effectively |
state the exclusion of warranty; and each file should have at least |
the "copyright" line and a pointer to where the full notice is found. |
<one line to give the program's name and a brief idea of what it does.> |
Copyright (C) <year> <name of author> |
This program is free software: you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
the Free Software Foundation, either version 3 of the License, or |
(at your option) any later version. |
This program is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Also add information on how to contact you by electronic and paper mail. |
If the program does terminal interaction, make it output a short |
notice like this when it starts in an interactive mode: |
<program> Copyright (C) <year> <name of author> |
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
This is free software, and you are welcome to redistribute it |
under certain conditions; type `show c' for details. |
The hypothetical commands `show w' and `show c' should show the appropriate |
parts of the General Public License. Of course, your program's commands |
might be different; for a GUI interface, you would use an "about box". |
You should also get your employer (if you work as a programmer) or school, |
if any, to sign a "copyright disclaimer" for the program, if necessary. |
For more information on this, and how to apply and follow the GNU GPL, see |
<http://www.gnu.org/licenses/>. |
The GNU General Public License does not permit incorporating your program |
into proprietary programs. If your program is a subroutine library, you |
may consider it more useful to permit linking proprietary applications with |
the library. If this is what you want to do, use the GNU Lesser General |
Public License instead of this License. But first, please read |
<http://www.gnu.org/philosophy/why-not-lgpl.html>. |
/branches/salvo_gps/Basis_v0067g/tags/v0004/License_LPGL.txt |
---|
0,0 → 1,165 |
GNU LESSER GENERAL PUBLIC LICENSE |
Version 3, 29 June 2007 |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
Everyone is permitted to copy and distribute verbatim copies |
of this license document, but changing it is not allowed. |
This version of the GNU Lesser General Public License incorporates |
the terms and conditions of version 3 of the GNU General Public |
License, supplemented by the additional permissions listed below. |
0. Additional Definitions. |
As used herein, "this License" refers to version 3 of the GNU Lesser |
General Public License, and the "GNU GPL" refers to version 3 of the GNU |
General Public License. |
"The Library" refers to a covered work governed by this License, |
other than an Application or a Combined Work as defined below. |
An "Application" is any work that makes use of an interface provided |
by the Library, but which is not otherwise based on the Library. |
Defining a subclass of a class defined by the Library is deemed a mode |
of using an interface provided by the Library. |
A "Combined Work" is a work produced by combining or linking an |
Application with the Library. The particular version of the Library |
with which the Combined Work was made is also called the "Linked |
Version". |
The "Minimal Corresponding Source" for a Combined Work means the |
Corresponding Source for the Combined Work, excluding any source code |
for portions of the Combined Work that, considered in isolation, are |
based on the Application, and not on the Linked Version. |
The "Corresponding Application Code" for a Combined Work means the |
object code and/or source code for the Application, including any data |
and utility programs needed for reproducing the Combined Work from the |
Application, but excluding the System Libraries of the Combined Work. |
1. Exception to Section 3 of the GNU GPL. |
You may convey a covered work under sections 3 and 4 of this License |
without being bound by section 3 of the GNU GPL. |
2. Conveying Modified Versions. |
If you modify a copy of the Library, and, in your modifications, a |
facility refers to a function or data to be supplied by an Application |
that uses the facility (other than as an argument passed when the |
facility is invoked), then you may convey a copy of the modified |
version: |
a) under this License, provided that you make a good faith effort to |
ensure that, in the event an Application does not supply the |
function or data, the facility still operates, and performs |
whatever part of its purpose remains meaningful, or |
b) under the GNU GPL, with none of the additional permissions of |
this License applicable to that copy. |
3. Object Code Incorporating Material from Library Header Files. |
The object code form of an Application may incorporate material from |
a header file that is part of the Library. You may convey such object |
code under terms of your choice, provided that, if the incorporated |
material is not limited to numerical parameters, data structure |
layouts and accessors, or small macros, inline functions and templates |
(ten or fewer lines in length), you do both of the following: |
a) Give prominent notice with each copy of the object code that the |
Library is used in it and that the Library and its use are |
covered by this License. |
b) Accompany the object code with a copy of the GNU GPL and this license |
document. |
4. Combined Works. |
You may convey a Combined Work under terms of your choice that, |
taken together, effectively do not restrict modification of the |
portions of the Library contained in the Combined Work and reverse |
engineering for debugging such modifications, if you also do each of |
the following: |
a) Give prominent notice with each copy of the Combined Work that |
the Library is used in it and that the Library and its use are |
covered by this License. |
b) Accompany the Combined Work with a copy of the GNU GPL and this license |
document. |
c) For a Combined Work that displays copyright notices during |
execution, include the copyright notice for the Library among |
these notices, as well as a reference directing the user to the |
copies of the GNU GPL and this license document. |
d) Do one of the following: |
0) Convey the Minimal Corresponding Source under the terms of this |
License, and the Corresponding Application Code in a form |
suitable for, and under terms that permit, the user to |
recombine or relink the Application with a modified version of |
the Linked Version to produce a modified Combined Work, in the |
manner specified by section 6 of the GNU GPL for conveying |
Corresponding Source. |
1) Use a suitable shared library mechanism for linking with the |
Library. A suitable mechanism is one that (a) uses at run time |
a copy of the Library already present on the user's computer |
system, and (b) will operate properly with a modified version |
of the Library that is interface-compatible with the Linked |
Version. |
e) Provide Installation Information, but only if you would otherwise |
be required to provide such information under section 6 of the |
GNU GPL, and only to the extent that such information is |
necessary to install and execute a modified version of the |
Combined Work produced by recombining or relinking the |
Application with a modified version of the Linked Version. (If |
you use option 4d0, the Installation Information must accompany |
the Minimal Corresponding Source and Corresponding Application |
Code. If you use option 4d1, you must provide the Installation |
Information in the manner specified by section 6 of the GNU GPL |
for conveying Corresponding Source.) |
5. Combined Libraries. |
You may place library facilities that are a work based on the |
Library side by side in a single library together with other library |
facilities that are not Applications and are not covered by this |
License, and convey such a combined library under terms of your |
choice, if you do both of the following: |
a) Accompany the combined library with a copy of the same work based |
on the Library, uncombined with any other library facilities, |
conveyed under the terms of this License. |
b) Give prominent notice with the combined library that part of it |
is a work based on the Library, and explaining where to find the |
accompanying uncombined form of the same work. |
6. Revised Versions of the GNU Lesser General Public License. |
The Free Software Foundation may publish revised and/or new versions |
of the GNU Lesser General Public License from time to time. Such new |
versions will be similar in spirit to the present version, but may |
differ in detail to address new problems or concerns. |
Each version is given a distinguishing version number. If the |
Library as you received it specifies that a certain numbered version |
of the GNU Lesser General Public License "or any later version" |
applies to it, you have the option of following the terms and |
conditions either of that published version or of any later version |
published by the Free Software Foundation. If the Library as you |
received it does not specify a version number of the GNU Lesser |
General Public License, you may choose any version of the GNU Lesser |
General Public License ever published by the Free Software Foundation. |
If the Library as you received it specifies that a proxy can decide |
whether future versions of the GNU Lesser General Public License shall |
apply, that proxy's public statement of acceptance of any version is |
permanent authorization for you to choose that version for the |
Library. |
/branches/salvo_gps/Basis_v0067g/tags/v0004/License_buss.txt |
---|
0,0 → 1,52 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten und nichtkommerziellen Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt und genannt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-profit use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet, our webpage (http://www.MikroKopter.de) must be |
// + clearly linked and named as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
/branches/salvo_gps/Basis_v0067g/tags/v0004/README_Gps_Deutsch.txt |
---|
0,0 → 1,80 |
********************************************************************* |
GPS Implementierung von Peter Muehlenbrock ("Salvo") für Mikrokopter/FlightCrtl |
Stand 7.1.2008 |
Verwendung der SW ohne Gewaehr. Siehe auch die Lizenzbedingungen in File Licensce_LPGL.txt und Licensce_GPL.txt |
Die Version basiert auf Holgers V00.67g. |
********************************************************************* |
Hardware-Voraussetzungen: |
Kalibrierter Kompass vom Typ CMPS03, waagrecht eingebaut |
GPS Modul vom Typ ublox, Die Meldungungen "NAV_STATUS", "NAV_POSUTM" und "NAV_VELNED" |
mussen mit 4 HZ Updaterate aktiviert sein. Alle Meldungen im NMEA Format muessen deaktivert sein. |
Anschluss an RX Port der FlightCRtl. Baudrate ist 57600 wie beim Kopter Tool. |
Software-Voraussetzungen: |
In timer0.h muss die Ausrichtung des Kompasses bezogen auf die Nordachse des Kopters |
eingetragen sein. Wenn KOMPASS_OFFSET > 0 wird dieser Wert genommen |
Wenn KOMPASS_OFFSET = 0 ist wird der UserParameter4 verwendet (=hexfile). Da die userparameter nur ein Byte lang sind werden Offsets von 0...358 Grad |
durch einen Wert von 0...179 dargestellt. |
Betriebs-Voraussetzungen: |
Damit der Kompass sauber funktioniert, muss die waagrechte Lage (Gashebel Vollanschlag und Gier rechts) |
im Eeprom abgespeichert worden sein. |
Parametrierung: |
Der GPS Hold Regler ist ein PID Regler, der ueber die UserParameter1(P), 2(I) und D(3) gesteuert wird. |
UserParameter1 beschreibt den P-Anteil, UserParameter2 den I-Anteil und UserParameter3 den D-Anteil. |
Hier kann und muss gespielt werden.Alle Parameter koennen direkt im Mikrokoptertool in den Settings eingestellt werden. |
Standarddwerte für P,I,D sind 80,0,80. |
Je größer die Werte desto "ruckeliger" reagiert die Regelung aber desto schneller und stärker greift sie auch. |
P und D Anteil mussen aufeinander abgestimmt sein, damit die Schwingneigung möglichst klein wird. |
Wenn alle 0 sind, ist der Regler deaktiviert. |
Voraussetzungen für GPS_Hold: |
Neben den genannten HW und SW Voraussetzungen muß beim Kalibrieren das GPS MOdul bereits Positionsdaten liefern. |
Nur dann wird die Home Position abgespeichert und nur dann wird GPS_Hold aktiviert. |
Kenntlich gemacht wird dies durch einen etwas längeren Piepser nach dem Kalibrieren. |
Das GPS Aktiv Flag im Setting muss aktiviert sein. |
Eine Ausrichtung des Kopters nach Nord etc. ist nicht erforderlich. |
Aktivierung GPS_Hold im Flug: |
Wenn alle genannten Voraussetzungen erfüllt sind, wird GPS Hold im Flug automatisch aktiviert, sobald der Nick und Roll Stick |
fürca. 500msec in Neutrallage sind. Weicht einer der Sticks davon ab (Parameter GPS_STICK_HOLDOFF) oder liefert das GPS Modul oder fällt der |
Kompass aus wird GPS_Hold sofort deaktiviert. |
Damit kann jederzeit die manuelle Kontrolle wieder übernommen werden. |
GPS_Hold regelt nur horizontale Abweichungen, keine Hoehe. |
Der Magnetkompass wird nur in waagrechter Lage dazu benutzt einen internen aus dem Giergyro ermittelten "Ersatz"kompasswert |
nach zu kalibrieren. Daher funktioniert die Bstimmung der Kopterausrichtung in jeder Lebenslage, sofern nur ab und zu |
der Magnetkompass in die waagrechte Lage kommt. |
Ein 3D Kompass ist damit überflüssig. |
GPS Rücksturz zur Basis (GPS Home) Funktion |
Voraussetzungen wie bei GPS Hold. |
Die Funktion kann im Flug aktiviert werden durch Setzen des Hoehenreglerschalters. |
Holgers Code habe ich so abgeändert daß der Höhenregler mit "Parameter_MaxHoehe" ab 50 aktiviert wird. |
Mit einem Schalter mit Neutrallage können damit die Funktionen |
Alles aus - Hoehenregler ein, GPS Home Aus - Hoehenregler Ein UND GPS Home ein |
aktiviert werden. Ist noch nicht die beste Lösung und werde ich noch anpassen |
Weitere Änderungen: |
-Bei Unterschreiten der eingestellten Warnschwelle für UBAT ertönt zunächst wie gewohnt der Piepser. Geht die Spannung weiter |
runter wird zwangsweise die Gaseinstellung langsam reduziert um den Kopter zum Landen zu bringen. |
-Der Ausgang PC6 kann benutzt werden um einen Externen Multiplexer zu schalten. Dieser schaltet entweder die GPS Daten |
(Wenn Motoren eingeschaltet sind) oder den Ausgang des Bluetoothmoduls (wenn Motoren ausgeschaltet sind) auf den RX |
Eingang der FlightCrtl. Damit kann eine zweite UART Schnittstelle bzw. die manuelle Umschaltung entfallen |
-Bei vorhandenem Kompass wird eine automatische Kompensation der Giergyrodrift durchgeführt. |
/branches/salvo_gps/Basis_v0067g/tags/v0004/README_Gps_English.txt |
---|
0,0 → 1,66 |
********************************************************************* |
GPS Implementation by Peter Muehlenbrock ("Salvo") for Mikrokopter/FlightCrtl |
As of 24.12.2007 |
Please note the files Licensce_LPGL.txt and Licensce_GPL.txt |
This SW is based on Holgers V00.67g. |
********************************************************************* |
Hardware-requirements: |
Calibrated compass of type CMPS03, horizontally adjusted |
GPS module of type ublox, The messages "NAV_STATUS", "NAV_POSUTM" and "NAV_VELNED" |
must be activated with 4 HZ update rate. All messages of type NMEA should be disabled. |
The TX port of the GPS module must be connected to the RX input of the Flight Crtl. Baudrate is 57600 (like Kopter Tool). |
UserParameter 4 tells the software the orientation for the compass. The difference between the "north" direction |
( = Motor "vorne" or 1 as described in Holgers Flight Crtl manual) of the kopter |
and the north direction of the compass is represented as follows: 0...360 degree offset corresponds to a value of 0...180. |
(A userparameter ist only 1 byte long and therefore can not directly represent 0..360 degree). Please check the |
correct value via the Koptertool. The "Kompass" debug value has to show the correct orientation: |
kopter Motor vorne orientated to north => value approx 0 Degree) |
Other requirements: |
Please calibrate the ACC Sensor values (pitch full, yaw full right) in horizontal orientation of the kopter |
as exactly as possible. |
Parameters: |
The GPS Hold regulator is of type PID: UserParameter1 =P(proportional), UserParameter2 = I(ntegral), |
UserParameter3 = D(ifferential). Standardvalues for P,I and D are 80,0,80. |
The i-Part may be set to 0 if a small deviation from hold position is acceptable. The D-Part is important to avoid |
oscillating. |
Please find out the best values yourself. |
It might be useful to put the P and D Part on potis and test the behaviour in flight. |
Requirements for GPS_Hold: |
The gps module has do provide a 3D-fix. If succesfull, you can hear a longer beep when performing a gyro calibration. |
Without a succesfull position fix at calibration the GPS functionality ist completely disabled. |
The red led on the FlightCrtl flashes with a 4 Hz rate if the gps module delivers a position fix. |
Enabling GPS_Hold in fligh: |
GPS Hold is automatically activated if the sticks for roll and nick are in neutral position for about 400ms. |
Moving the stick immediately disables the Hold mode. The GPS Hold function doesn not change height, pitch or yaw. |
GPS Coming-Home function |
The coming-home function is activated by the same switch as for the height regulator, if the switch is set to maximum. |
The height regulator itself is activated at approx. Maximum/2. |
Other changes: |
- automatic pitch reduction if the battery voltage falls more than 0.2V below the warning limit. |
- Output PC6 can be used to switch TX data between a Bluetooth and the GPS Module (further hardware required) to the RX input of the FlightCrtl |
- automatic Yaw gyro compensation if compass is available. |
/branches/salvo_gps/Basis_v0067g/tags/v0004/Settings.h |
---|
--- tags/v0004/_Settings.h (nonexistent) |
+++ tags/v0004/_Settings.h (revision 625) |
@@ -0,0 +1,50 @@ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Testmodi |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define MOTOR_OFF 0 |
+#define MOTOR_TEST 0 |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Abstimmung |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define ACC_AMPLIFY 16 |
+#define FAKTOR_P 1 |
+#define FAKTOR_I 0.0001 |
+ |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Debug-Interface |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define SIO_DEBUG 1 // Soll der Debugger aktiviert sein? |
+#define MIN_DEBUG_INTERVALL 250 // in diesem Intervall werden Debugdaten ohne Aufforderung gesendet |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Sender |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+ #define K_NICK 0 |
+ #define K_ROLL 1 |
+ #define K_GAS 2 |
+ #define K_GIER 3 |
+ #define K_POTI1 4 |
+ #define K_POTI2 5 |
+ #define K_POTI3 6 |
+ #define K_POTI4 7 |
+// +++++++++++++++++++++++++++++++ |
+// + Getestete Settings: |
+// +++++++++++++++++++++++++++++++ |
+// Setting: Kamera |
+// Stick_P:3 |
+// Stick_D:0 |
+// Gyro_P: 175 |
+// Gyro_I: 175 |
+// Ki_Anteil: 10 |
+// +++++++++++++++++++++++++++++++ |
+// + Getestete Settings: |
+// +++++++++++++++++++++++++++++++ |
+// Setting: Normal |
+// Stick_P:2 |
+// Stick_D:8 |
+// Gyro_P: 80 |
+// Gyro_I: 150 |
+// Ki_Anteil: 5 |
+ |
/branches/salvo_gps/Basis_v0067g/tags/v0004/analog.c |
---|
0,0 → 1,145 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az, UBat = 100; |
volatile int AdWertNick = 0, AdWertRoll = 0, AdWertGier = 0; |
volatile int AdWertAccRoll = 0,AdWertAccNick = 0,AdWertAccHoch = 0; |
volatile char MessanzahlNick = 0, MessanzahlRoll = 0, MessanzahlGier = 0; |
volatile char messanzahl_AccNick = 0, messanzahl_AccRoll = 0, messanzahl_AccHoch = 0; |
volatile long Luftdruck = 32000; |
volatile int StartLuftdruck; |
volatile unsigned int MessLuftdruck = 1023; |
unsigned char DruckOffsetSetting; |
volatile int HoeheD = 0; |
volatile char messanzahl_Druck; |
volatile int tmpLuftdruck; |
volatile unsigned int ZaehlMessungen = 0; |
//####################################################################################### |
// |
void ADC_Init(void) |
//####################################################################################### |
{ |
ADMUX = 0;//Referenz ist extern |
ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE); |
//Free Running Mode, Division Factor 128, Interrupt on |
} |
void SucheLuftruckOffset(void) |
{ |
unsigned int off; |
off = eeprom_read_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET]); |
if(off > 20) off -= 10; |
OCR0A = off; |
Delay_ms_Mess(100); |
if(MessLuftdruck < 850) off = 0; |
for(; off < 250;off++) |
{ |
OCR0A = off; |
Delay_ms_Mess(50); |
printf("."); |
if(MessLuftdruck < 900) break; |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET], off); |
DruckOffsetSetting = off; |
Delay_ms_Mess(300); |
} |
//####################################################################################### |
// |
SIGNAL(SIG_ADC) |
//####################################################################################### |
{ |
static unsigned char kanal=0,state = 0; |
static unsigned int gier1, roll1, nick1; |
ANALOG_OFF; |
switch(state++) |
{ |
case 0: |
gier1 = ADC; |
kanal = 1; |
ZaehlMessungen++; |
break; |
case 1: |
roll1 = ADC; |
kanal = 2; |
break; |
case 2: |
nick1 = ADC; |
kanal = 4; |
break; |
case 3: |
UBat = (3 * UBat + ADC / 3) / 4;//(UBat + ((ADC * 39) / 256) + 19) / 2; |
kanal = 6; |
break; |
case 4: |
Aktuell_ay = NeutralAccY - ADC; |
AdWertAccRoll = Aktuell_ay; |
kanal = 7; |
break; |
case 5: |
Aktuell_ax = ADC - NeutralAccX; |
AdWertAccNick = Aktuell_ax; |
kanal = 0; |
break; |
case 6: |
if(PlatinenVersion == 10) AdWertGier = (ADC + gier1) / 2; |
else AdWertGier = ADC + gier1; |
kanal = 1; |
break; |
case 7: |
if(PlatinenVersion == 10) AdWertRoll = (ADC + roll1) / 2; |
else AdWertRoll = ADC + roll1; |
kanal = 2; |
break; |
case 8: |
if(PlatinenVersion == 10) AdWertNick = (ADC + nick1) / 2; |
else AdWertNick = ADC + nick1; |
kanal = 5; |
break; |
case 9: |
AdWertAccHoch = (signed int) ADC - NeutralAccZ; |
AdWertAccHoch += abs(Aktuell_ay) / 4 + abs(Aktuell_ax) / 4; |
if(AdWertAccHoch > 1) |
{ |
if(NeutralAccZ < 800) NeutralAccZ+= 0.02; |
} |
else if(AdWertAccHoch < -1) |
{ |
if(NeutralAccZ > 600) NeutralAccZ-= 0.02; |
} |
messanzahl_AccHoch = 1; |
Aktuell_az = ADC; |
Mess_Integral_Hoch += AdWertAccHoch; // Integrieren |
Mess_Integral_Hoch -= Mess_Integral_Hoch / 1024; // dämfen |
kanal = 3; |
break; |
case 10: |
tmpLuftdruck += ADC; |
if(++messanzahl_Druck >= 5) |
{ |
MessLuftdruck = ADC; |
messanzahl_Druck = 0; |
HoeheD = (int)(StartLuftdruck - tmpLuftdruck - HoehenWert); // D-Anteil = neuerWert - AlterWert |
Luftdruck = (tmpLuftdruck + 3 * Luftdruck) / 4; |
HoehenWert = StartLuftdruck - Luftdruck; |
tmpLuftdruck = 0; |
} |
kanal = 0; |
state = 0; |
break; |
default: |
kanal = 0; |
state = 0; |
break; |
} |
ADMUX = kanal; |
if(state != 0) ANALOG_ON; |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/analog.h |
---|
0,0 → 1,24 |
/*####################################################################################### |
#######################################################################################*/ |
extern volatile int UBat; |
extern volatile int AdWertNick, AdWertRoll, AdWertGier; |
extern volatile int AdWertAccRoll,AdWertAccNick,AdWertAccHoch; |
extern volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az; |
extern volatile long Luftdruck; |
extern volatile char messanzahl_Druck; |
extern volatile unsigned int ZaehlMessungen; |
extern unsigned char DruckOffsetSetting; |
extern volatile int HoeheD; |
extern volatile unsigned int MessLuftdruck; |
extern volatile int StartLuftdruck; |
extern volatile char MessanzahlNick; |
unsigned int ReadADC(unsigned char adc_input); |
void ADC_Init(void); |
void SucheLuftruckOffset(void); |
#define ANALOG_OFF ADCSRA=0 |
#define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE) |
/branches/salvo_gps/Basis_v0067g/tags/v0004/eeprom.c |
---|
0,0 → 1,183 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Konstanten |
// + 0-250 -> normale Werte |
// + 251 -> Poti1 |
// + 252 -> Poti2 |
// + 253 -> Poti3 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
void DefaultKonstanten1(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV | CFG_KOMPASS_FIX;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-250 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 4; // Wert : 0-50 |
EE_Parameter.Stick_P = 3; //2 // Wert : 1-6 |
//EE_Parameter.Stick_D = 8; //8 // Wert : 0-64 |
EE_Parameter.Stick_D = 4; //8 // Wert : 0-64 Salvo |
EE_Parameter.Gier_P = 14; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 26; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 128; // Wert : 0-250 |
EE_Parameter.Gyro_P = 120; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 150; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 100; // Wert : 0-250 |
EE_Parameter.NotGas = 95; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 60; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 32; |
EE_Parameter.UserParam1 = 90; // P Anteil GPS |
EE_Parameter.UserParam2 = 24; // I Anteil GPS |
EE_Parameter.UserParam3 = 130; //D Anteil GPS |
EE_Parameter.UserParam4 = 0; //zur freien Verwendung |
EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
EE_Parameter.LoopGasLimit = 50; |
EE_Parameter.LoopThreshold = 90; // Wert: 0-250 Schwelle für Stickausschlag |
EE_Parameter.LoopHysterese = 50; |
EE_Parameter.LoopConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
EE_Parameter.AchsKopplung1 = 100; |
EE_Parameter.AchsGegenKopplung1 = 10; |
EE_Parameter.WinkelUmschlagNick = 100; |
EE_Parameter.WinkelUmschlagRoll = 100; |
EE_Parameter.GyroAccAbgleich = 50; // 1/k |
EE_Parameter.Driftkomp = 4; |
EE_Parameter.DynamicStability = 100; |
memcpy(EE_Parameter.Name, "Sport\0", 12); |
} |
void DefaultKonstanten2(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-250 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 2; // Wert : 0-50 |
EE_Parameter.Stick_P = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 0; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 10; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 26; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 128; // Wert : 0-250 |
EE_Parameter.Gyro_P = 175; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 175; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 100; // Wert : 0-250 |
EE_Parameter.NotGas = 95; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 60; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 32; |
EE_Parameter.UserParam1 = 20 * 4; // zur freien Verwendung |
EE_Parameter.UserParam2 = 0; // zur freien Verwendung |
EE_Parameter.UserParam3 = 0; // zur freien Verwendung |
EE_Parameter.UserParam4 = 0; // zur freien Verwendung |
EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
EE_Parameter.LoopGasLimit = 50; |
EE_Parameter.LoopThreshold = 90; // Wert: 0-250 Schwelle für Stickausschlag |
EE_Parameter.LoopHysterese = 50; |
EE_Parameter.LoopConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts |
EE_Parameter.AchsKopplung1 = 100; // Faktor, mit dem Gier die Achsen Roll und Nick verkoppelt |
EE_Parameter.AchsGegenKopplung1 = 10; |
EE_Parameter.WinkelUmschlagNick = 100; |
EE_Parameter.WinkelUmschlagRoll = 100; |
EE_Parameter.GyroAccAbgleich = 100; // 1/k |
EE_Parameter.Driftkomp = 4; |
EE_Parameter.DynamicStability = 75; |
memcpy(EE_Parameter.Name, "Normal\0", 12); |
} |
void DefaultKonstanten3(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = CFG_DREHRATEN_BEGRENZER | CFG_ACHSENKOPPLUNG_AKTIV;///*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-250 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 2; // Wert : 0-50 |
EE_Parameter.Stick_P = 3; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 0; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 8; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 26; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 128; // Wert : 0-250 |
EE_Parameter.Gyro_P = 200; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 175; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 100; // Wert : 0-250 |
EE_Parameter.NotGas = 95; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 60; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 10; |
EE_Parameter.UserParam1 = 20 * 4; // zur freien Verwendung |
EE_Parameter.UserParam2 = 0; // zur freien Verwendung |
EE_Parameter.UserParam3 = 0; // zur freien Verwendung |
EE_Parameter.UserParam4 = 0; // zur freien Verwendung |
EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
EE_Parameter.LoopGasLimit = 50; |
EE_Parameter.LoopThreshold = 90; // Wert: 0-250 Schwelle für Stickausschlag |
EE_Parameter.LoopHysterese = 50; |
EE_Parameter.LoopConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts |
EE_Parameter.AchsKopplung1 = 100; // Faktor, mit dem Gier die Achsen Roll und Nick verkoppelt |
EE_Parameter.AchsGegenKopplung1 = 10; |
EE_Parameter.WinkelUmschlagNick = 100; |
EE_Parameter.WinkelUmschlagRoll = 100; |
EE_Parameter.GyroAccAbgleich = 100; // 1/k |
EE_Parameter.Driftkomp = 4; |
EE_Parameter.DynamicStability = 50; |
memcpy(EE_Parameter.Name, "Beginner\0", 12); |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/fc.c |
---|
0,0 → 1,1384 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten (nicht-kommerziellen) Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-commercial use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
// + clearly linked as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Aenderungen von Peter Muehlenbrock ("Salvo") Stand 6.10.2007 |
/* |
Driftkompensation fuer Gyros verbessert |
Linearsensor mit fixem Neutralwert |
Ersatzkompass abgeleitet aus Magnetkompass und Giergyro fuer nahezu neigungsunabhaengige Kompassfunktion |
*/ |
#include "main.h" |
#include "eeprom.c" |
unsigned char h,m,s; |
volatile unsigned int I2CTimeout = 100; |
volatile int MesswertNick,MesswertRoll,MesswertGier; |
volatile int AdNeutralNick = 0,AdNeutralRoll = 0,AdNeutralGier = 0,StartNeutralRoll = 0,StartNeutralNick = 0; |
volatile int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch, NeutralAccX=0, NeutralAccY=0; |
volatile float NeutralAccZ = 0; |
unsigned char CosinusNickWinkel = 0, CosinusRollWinkel = 0; |
volatile long IntegralNick = 0,IntegralNick2 = 0; |
volatile long IntegralRoll = 0,IntegralRoll2 = 0; |
volatile long IntegralAccNick = 0,IntegralAccRoll = 0,IntegralAccZ = 0; |
volatile long Integral_Gier = 0; |
volatile long Mess_IntegralNick = 0,Mess_IntegralNick2 = 0; |
volatile long Mess_IntegralRoll = 0,Mess_IntegralRoll2 = 0; |
volatile long Mess_Integral_Gier = 0,Mess_Integral_Gier2 = 0; |
volatile long MittelIntegralNick,MittelIntegralRoll,MittelIntegralNick2,MittelIntegralRoll2; |
volatile long Mess_Integral_Hoch = 0; |
volatile int KompassValue = 0; |
volatile int KompassStartwert = 0; |
volatile int KompassRichtung = 0; |
unsigned char MAX_GAS,MIN_GAS; |
unsigned char Notlandung = 0; |
unsigned char HoehenReglerAktiv = 0; |
long Umschlag180Nick = 250000L, Umschlag180Roll = 250000L; |
//Salvo 12.10.2007 |
uint8_t magkompass_ok=0; |
uint8_t gps_cmd = GPS_CMD_STOP; |
static int ubat_cnt =0; |
static int gas_actual,gas_mittel; //Parameter fuer Gasreduzierung bei unterspannung |
int w,v; |
//Salvo End |
//Salvo 15.12.2007 Ersatzkompass und Giergyrokompensation |
long GyroKomp_Int; |
long int GyroGier_Comp; |
int GyroKomp_Value; // Der ermittelte Kompasswert aus Gyro und Magnetkompass |
short int cnt_stickgier_zero =0; |
int gyrogier_kompass; |
//Salvo End |
//Salvo 2.1.2008 Debugvariablen |
int debug_gp_0,debug_gp_1,debug_gp_2,debug_gp_3,debug_gp_4,debug_gp_5,debug_gp_6,debug_gp_7; //Allgemeine Debugvariablen |
//Salvo End |
float GyroFaktor; |
float IntegralFaktor; |
volatile int DiffNick,DiffRoll; |
int Poti1 = 0, Poti2 = 0, Poti3 = 0, Poti4 = 0; |
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links, Count; |
unsigned char MotorWert[5]; |
volatile unsigned char SenderOkay = 0; |
int StickNick = 0,StickRoll = 0,StickGier = 0; |
char MotorenEin = 0; |
int HoehenWert = 0; |
int SollHoehe = 0; |
int LageKorrekturRoll = 0,LageKorrekturNick = 0; |
float Ki = FAKTOR_I; |
unsigned char Looping_Nick = 0,Looping_Roll = 0; |
unsigned char Looping_Links = 0, Looping_Rechts = 0, Looping_Unten = 0, Looping_Oben = 0; |
unsigned char Parameter_Luftdruck_D = 48; // Wert : 0-250 |
unsigned char Parameter_MaxHoehe = 251; // Wert : 0-250 |
unsigned char Parameter_Hoehe_P = 16; // Wert : 0-32 |
unsigned char Parameter_Hoehe_ACC_Wirkung = 58; // Wert : 0-250 |
unsigned char Parameter_KompassWirkung = 64; // Wert : 0-250 |
unsigned char Parameter_Gyro_P = 150; // Wert : 10-250 |
unsigned char Parameter_Gyro_I = 150; // Wert : 0-250 |
unsigned char Parameter_Gier_P = 2; // Wert : 1-20 |
unsigned char Parameter_I_Faktor = 10; // Wert : 1-20 |
unsigned char Parameter_UserParam1 = 0; |
unsigned char Parameter_UserParam2 = 0; |
unsigned char Parameter_UserParam3 = 0; |
unsigned char Parameter_UserParam4 = 0; |
unsigned char Parameter_UserParam5 = 0; |
unsigned char Parameter_UserParam6 = 0; |
unsigned char Parameter_UserParam7 = 0; |
unsigned char Parameter_UserParam8 = 0; |
unsigned char Parameter_ServoNickControl = 100; |
unsigned char Parameter_LoopGasLimit = 70; |
unsigned char Parameter_AchsKopplung1 = 0; |
unsigned char Parameter_AchsGegenKopplung1 = 0; |
unsigned char Parameter_DynamicStability = 100; |
struct mk_param_struct EE_Parameter; |
signed int ExternStickNick = 0,ExternStickRoll = 0,ExternStickGier = 0, ExternHoehenValue = -20; |
void Piep(unsigned char Anzahl) |
{ |
while(Anzahl--) |
{ |
if(MotorenEin) return; //auf keinen Fall im Flug! |
beeptime = 100; |
Delay_ms(250); |
} |
} |
//############################################################################ |
// Nullwerte ermitteln |
void SetNeutral(void) |
//############################################################################ |
{ |
// Salvo 9.12.2007 |
RX_SWTCH_ON; //GPS Daten auf RX eingang schalten |
// Salvo End |
NeutralAccX = 0; |
NeutralAccY = 0; |
NeutralAccZ = 0; |
AdNeutralNick = 0; |
AdNeutralRoll = 0; |
AdNeutralGier = 0; |
Parameter_AchsKopplung1 = 0; |
Parameter_AchsGegenKopplung1 = 0; |
CalibrierMittelwert(); |
Delay_ms_Mess(100); |
CalibrierMittelwert(); |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
AdNeutralNick= AdWertNick; |
AdNeutralRoll= AdWertRoll; |
AdNeutralGier= AdWertGier; |
StartNeutralRoll = AdNeutralRoll; |
StartNeutralNick = AdNeutralNick; |
if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_NICK]) > 4) |
{ |
NeutralAccY = abs(Mittelwert_AccRoll) / ACC_AMPLIFY; |
NeutralAccX = abs(Mittelwert_AccNick) / ACC_AMPLIFY; |
NeutralAccZ = Aktuell_az; |
} |
else |
{ |
NeutralAccX = (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_NICK]) * 256 + (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_NICK+1]); |
NeutralAccY = (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL]) * 256 + (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL+1]); |
NeutralAccZ = (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_Z]) * 256 + (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_Z+1]); |
} |
Mess_IntegralNick = 0; |
Mess_IntegralNick2 = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralRoll2 = 0; |
Mess_Integral_Gier = 0; |
MesswertNick = 0; |
MesswertRoll = 0; |
MesswertGier = 0; |
GyroGier_Comp =0; |
StartLuftdruck = Luftdruck; |
HoeheD = 0; |
Mess_Integral_Hoch = 0; |
KompassStartwert = KompassValue; |
GPS_Neutral(); |
beeptime = 50; |
Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagRoll * 2500L; |
ExternHoehenValue = 0; |
//Salvo 13.10.2007 Ersatzkompass und Gas |
GyroKomp_Int = KompassValue * GYROKOMP_INC_GRAD_DEFAULT; //Neu ab 3.1.2007 |
gas_mittel = 30; |
gas_actual = gas_mittel; |
// Salvo End |
} |
//############################################################################ |
// Bearbeitet die Messwerte |
void Mittelwert(void) |
//############################################################################ |
{ |
static signed long tmpl,tmpl2; |
MesswertGier = (signed int) AdNeutralGier - AdWertGier; |
MesswertRoll = (signed int) AdWertRoll - AdNeutralRoll; |
MesswertNick = (signed int) AdWertNick - AdNeutralNick; |
// Beschleunigungssensor ++++++++++++++++++++++++++++++++++++++++++++++++ |
Mittelwert_AccNick = ((long)Mittelwert_AccNick * 1 + ((ACC_AMPLIFY * (long)AdWertAccNick))) / 2L; |
Mittelwert_AccRoll = ((long)Mittelwert_AccRoll * 1 + ((ACC_AMPLIFY * (long)AdWertAccRoll))) / 2L; |
Mittelwert_AccHoch = ((long)Mittelwert_AccHoch * 1 + ((long)AdWertAccHoch)) / 2L; |
IntegralAccNick += ACC_AMPLIFY * AdWertAccNick; |
IntegralAccRoll += ACC_AMPLIFY * AdWertAccRoll; |
IntegralAccZ += Aktuell_az - NeutralAccZ; |
// Gier ++++++++++++++++++++++++++++++++++++++++++++++++ |
//Salvo 12.11.2007 |
GyroKomp_Int += (long)MesswertGier; |
GyroGier_Comp += (long)MesswertGier; |
//Salvo End |
Mess_Integral_Gier += MesswertGier; |
Mess_Integral_Gier2 += MesswertGier; |
// Kopplungsanteil +++++++++++++++++++++++++++++++++++++ |
if(!Looping_Nick && !Looping_Roll && (EE_Parameter.GlobalConfig & CFG_ACHSENKOPPLUNG_AKTIV)) |
{ |
tmpl = Mess_IntegralNick / 4096L; |
tmpl *= MesswertGier; |
tmpl *= Parameter_AchsKopplung1; //125 |
tmpl /= 2048L; |
tmpl2 = Mess_IntegralRoll / 4096L; |
tmpl2 *= MesswertGier; |
tmpl2 *= Parameter_AchsKopplung1; |
tmpl2 /= 2048L; |
} |
else tmpl = tmpl2 = 0; |
// Roll ++++++++++++++++++++++++++++++++++++++++++++++++ |
MesswertRoll += tmpl; |
MesswertRoll += (tmpl2*Parameter_AchsGegenKopplung1)/512L; //109 |
Mess_IntegralRoll2 += MesswertRoll; |
Mess_IntegralRoll += MesswertRoll - LageKorrekturRoll; |
if(Mess_IntegralRoll > Umschlag180Roll) |
{ |
Mess_IntegralRoll = -(Umschlag180Roll - 10000L); |
Mess_IntegralRoll2 = Mess_IntegralRoll; |
} |
if(Mess_IntegralRoll <-Umschlag180Roll) |
{ |
Mess_IntegralRoll = (Umschlag180Roll - 10000L); |
Mess_IntegralRoll2 = Mess_IntegralRoll; |
} |
if(AdWertRoll < 15) MesswertRoll = -1000; |
if(AdWertRoll < 7) MesswertRoll = -2000; |
if(PlatinenVersion == 10) |
{ |
if(AdWertRoll > 1010) MesswertRoll = +1000; |
if(AdWertRoll > 1017) MesswertRoll = +2000; |
} |
else |
{ |
if(AdWertRoll > 2020) MesswertRoll = +1000; |
if(AdWertRoll > 2034) MesswertRoll = +2000; |
} |
// Nick ++++++++++++++++++++++++++++++++++++++++++++++++ |
MesswertNick -= tmpl2; |
MesswertNick -= (tmpl*Parameter_AchsGegenKopplung1)/512L; |
Mess_IntegralNick2 += MesswertNick; |
Mess_IntegralNick += MesswertNick - LageKorrekturNick; |
if(Mess_IntegralNick > Umschlag180Nick) |
{ |
Mess_IntegralNick = -(Umschlag180Nick - 10000L); |
Mess_IntegralNick2 = Mess_IntegralNick; |
} |
if(Mess_IntegralNick <-Umschlag180Nick) |
{ |
Mess_IntegralNick = (Umschlag180Nick - 10000L); |
Mess_IntegralNick2 = Mess_IntegralNick; |
} |
if(AdWertNick < 15) MesswertNick = -1000; |
if(AdWertNick < 7) MesswertNick = -2000; |
if(PlatinenVersion == 10) |
{ |
if(AdWertNick > 1010) MesswertNick = +1000; |
if(AdWertNick > 1017) MesswertNick = +2000; |
} |
else |
{ |
if(AdWertNick > 2020) MesswertNick = +1000; |
if(AdWertNick > 2034) MesswertNick = +2000; |
} |
//++++++++++++++++++++++++++++++++++++++++++++++++ |
// ADC einschalten |
ANALOG_ON; |
//++++++++++++++++++++++++++++++++++++++++++++++++ |
Integral_Gier = Mess_Integral_Gier; |
IntegralNick = Mess_IntegralNick; |
IntegralRoll = Mess_IntegralRoll; |
IntegralNick2 = Mess_IntegralNick2; |
IntegralRoll2 = Mess_IntegralRoll2; |
if(EE_Parameter.GlobalConfig & CFG_DREHRATEN_BEGRENZER && !Looping_Nick && !Looping_Roll) |
{ |
if(MesswertNick > 200) MesswertNick += 4 * (MesswertNick - 200); |
else if(MesswertNick < -200) MesswertNick += 4 * (MesswertNick + 200); |
if(MesswertRoll > 200) MesswertRoll += 4 * (MesswertRoll - 200); |
else if(MesswertRoll < -200) MesswertRoll += 4 * (MesswertRoll + 200); |
} |
if(Poti1 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110) Poti1++; else if(Poti1 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110 && Poti1) Poti1--; |
if(Poti2 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110) Poti2++; else if(Poti2 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110 && Poti2) Poti2--; |
if(Poti3 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110) Poti3++; else if(Poti3 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110 && Poti3) Poti3--; |
if(Poti4 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110) Poti4++; else if(Poti4 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110 && Poti4) Poti4--; |
if(Poti1 < 0) Poti1 = 0; else if(Poti1 > 255) Poti1 = 255; |
if(Poti2 < 0) Poti2 = 0; else if(Poti2 > 255) Poti2 = 255; |
if(Poti3 < 0) Poti3 = 0; else if(Poti3 > 255) Poti3 = 255; |
if(Poti4 < 0) Poti4 = 0; else if(Poti4 > 255) Poti4 = 255; |
} |
//############################################################################ |
// Messwerte beim Ermitteln der Nullage |
void CalibrierMittelwert(void) |
//############################################################################ |
{ |
// ADC auschalten, damit die Werte sich nicht während der Berechnung ändern |
ANALOG_OFF; |
MesswertNick = AdWertNick; |
MesswertRoll = AdWertRoll; |
MesswertGier = AdWertGier; |
Mittelwert_AccNick = ACC_AMPLIFY * (long)AdWertAccNick; |
Mittelwert_AccRoll = ACC_AMPLIFY * (long)AdWertAccRoll; |
Mittelwert_AccHoch = (long)AdWertAccHoch; |
// ADC einschalten |
ANALOG_ON; |
if(Poti1 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110) Poti1++; else if(Poti1 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110 && Poti1) Poti1--; |
if(Poti2 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110) Poti2++; else if(Poti2 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110 && Poti2) Poti2--; |
if(Poti3 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110) Poti3++; else if(Poti3 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110 && Poti3) Poti3--; |
if(Poti4 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110) Poti4++; else if(Poti4 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110 && Poti4) Poti4--; |
if(Poti1 < 0) Poti1 = 0; else if(Poti1 > 255) Poti1 = 255; |
if(Poti2 < 0) Poti2 = 0; else if(Poti2 > 255) Poti2 = 255; |
if(Poti3 < 0) Poti3 = 0; else if(Poti3 > 255) Poti3 = 255; |
if(Poti4 < 0) Poti4 = 0; else if(Poti4 > 255) Poti4 = 255; |
Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
} |
//############################################################################ |
// Senden der Motorwerte per I2C-Bus |
void SendMotorData(void) |
//############################################################################ |
{ |
if(MOTOR_OFF || !MotorenEin) |
{ |
Motor_Hinten = 0; |
Motor_Vorne = 0; |
Motor_Rechts = 0; |
Motor_Links = 0; |
if(MotorTest[0]) Motor_Vorne = MotorTest[0]; |
if(MotorTest[1]) Motor_Hinten = MotorTest[1]; |
if(MotorTest[2]) Motor_Links = MotorTest[2]; |
if(MotorTest[3]) Motor_Rechts = MotorTest[3]; |
} |
/* |
DebugOut.Analog[12] = Motor_Vorne; |
DebugOut.Analog[13] = Motor_Hinten; |
DebugOut.Analog[14] = Motor_Links; |
DebugOut.Analog[15] = Motor_Rechts; |
*/ |
//Start I2C Interrupt Mode |
twi_state = 0; |
motor = 0; |
i2c_start(); |
} |
//############################################################################ |
// Trägt ggf. das Poti als Parameter ein |
void ParameterZuordnung(void) |
//############################################################################ |
{ |
#define CHK_POTI(b,a,min,max) { if(a > 250) { if(a == 251) b = Poti1; else if(a == 252) b = Poti2; else if(a == 253) b = Poti3; else if(a == 254) b = Poti4;} else b = a; if(b <= min) b = min; else if(b >= max) b = max;} |
CHK_POTI(Parameter_MaxHoehe,EE_Parameter.MaxHoehe,0,255); |
CHK_POTI(Parameter_Luftdruck_D,EE_Parameter.Luftdruck_D,0,100); |
CHK_POTI(Parameter_Hoehe_P,EE_Parameter.Hoehe_P,0,100); |
CHK_POTI(Parameter_Hoehe_ACC_Wirkung,EE_Parameter.Hoehe_ACC_Wirkung,0,255); |
CHK_POTI(Parameter_KompassWirkung,EE_Parameter.KompassWirkung,0,255); |
CHK_POTI(Parameter_Gyro_P,EE_Parameter.Gyro_P,10,255); |
CHK_POTI(Parameter_Gyro_I,EE_Parameter.Gyro_I,0,255); |
CHK_POTI(Parameter_I_Faktor,EE_Parameter.I_Faktor,0,255); |
CHK_POTI(Parameter_UserParam1,EE_Parameter.UserParam1,0,255); |
CHK_POTI(Parameter_UserParam2,EE_Parameter.UserParam2,0,255); |
CHK_POTI(Parameter_UserParam3,EE_Parameter.UserParam3,0,255); |
CHK_POTI(Parameter_UserParam4,EE_Parameter.UserParam4,0,255); |
CHK_POTI(Parameter_UserParam5,EE_Parameter.UserParam5,0,255); |
CHK_POTI(Parameter_UserParam6,EE_Parameter.UserParam6,0,255); |
CHK_POTI(Parameter_UserParam7,EE_Parameter.UserParam7,0,255); |
CHK_POTI(Parameter_UserParam8,EE_Parameter.UserParam8,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
CHK_POTI(Parameter_LoopGasLimit,EE_Parameter.LoopGasLimit,0,255); |
CHK_POTI(Parameter_AchsKopplung1, EE_Parameter.AchsKopplung1,0,255); |
CHK_POTI(Parameter_AchsGegenKopplung1,EE_Parameter.AchsGegenKopplung1,0,255); |
CHK_POTI(Parameter_DynamicStability,EE_Parameter.DynamicStability,0,255); |
Ki = (float) Parameter_I_Faktor * 0.0001; |
MAX_GAS = EE_Parameter.Gas_Max; |
MIN_GAS = EE_Parameter.Gas_Min; |
} |
//############################################################################ |
// |
void MotorRegler(void) |
//############################################################################ |
{ |
int motorwert,pd_ergebnis,h,tmp_int; |
int GierMischanteil,GasMischanteil; |
static long SummeNick=0,SummeRoll=0; |
static long sollGier = 0,tmp_long,tmp_long2; |
static long IntegralFehlerNick = 0; |
static long IntegralFehlerRoll = 0; |
static unsigned int RcLostTimer; |
static unsigned char delay_neutral = 0; |
static unsigned char delay_einschalten = 0,delay_ausschalten = 0; |
static unsigned int modell_fliegt = 0; |
static int hoehenregler = 0; |
static char TimerWerteausgabe = 0; |
static char NeueKompassRichtungMerken = 0; |
static long ausgleichNick, ausgleichRoll; |
Mittelwert(); |
//****** GPS Daten holen *************** |
short int n; |
if (gps_alive_cnt > 0) gps_alive_cnt--; //Dekrementieren. Wenn 0 kommen keine ausreichenden GPS Meldungen (Timeout) |
n = Get_Rel_Position(); |
if (n == 0) |
{ |
ROT_ON; //led blitzen lassen |
} |
//******PROVISORISCH*************** |
GRN_ON; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gaswert ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GasMischanteil = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + 120; |
if(GasMischanteil > MAX_GAS - 20) GasMischanteil = MAX_GAS - 20; |
//Salvo 13.10.2007 langsame Gasreduktion bei Unterspannung. Als Ausgangswert wird der bei UBAT=k gemessen Mittelwert genommen |
// und dieser dann langsam zwangsweise reduziert |
if (UBat <= EE_Parameter.UnterspannungsWarnung - 4) //Unterhalb der Piepser Schwelle aktivieren |
{ |
if (ubat_cnt > 1000) |
{ |
ubat_cnt = 0; |
if (gas_actual > ((gas_mittel*12)/15)) gas_actual--; |
} |
else ubat_cnt++; |
if (GasMischanteil > gas_actual) GasMischanteil = gas_actual; |
} |
else //Falls UBAT wieder ok ist |
{ |
if (ubat_cnt > 1000) |
{ |
gas_mittel = ((gas_mittel*9) + GasMischanteil)/10; //Filtern |
gas_actual = GasMischanteil; |
} |
else |
{ |
ubat_cnt++; |
if ((ubat_cnt % 10) == 0) |
{ |
if (gas_actual < GasMischanteil) gas_actual++; |
else gas_actual = GasMischanteil; |
} |
} |
GasMischanteil = gas_actual; |
} |
// Salvo End |
if(GasMischanteil < 0) GasMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Empfang schlecht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay < 100) |
{ |
if(!PcZugriff) |
{ |
if(BeepMuster == 0xffff) |
{ |
beeptime = 15000; |
BeepMuster = 0x0c00; |
} |
} |
if(RcLostTimer) RcLostTimer--; |
else |
{ |
MotorenEin = 0; |
Notlandung = 0; |
} |
ROT_ON; |
if(modell_fliegt > 2000) // wahrscheinlich in der Luft --> langsam absenken |
{ |
GasMischanteil = EE_Parameter.NotGas; |
Notlandung = 1; |
PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] = 0; |
PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] = 0; |
PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] = 0; |
} |
else MotorenEin = 0; |
} |
else |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang gut |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay > 140) |
{ |
Notlandung = 0; |
RcLostTimer = EE_Parameter.NotGasZeit * 50; |
if(GasMischanteil > 40) |
{ |
if(modell_fliegt < 0xffff) modell_fliegt++; |
} |
if((modell_fliegt < 200) || (GasMischanteil < 40)) |
{ |
SummeNick = 0; |
SummeRoll = 0; |
Mess_Integral_Gier = 0; |
Mess_Integral_Gier2 = 0; |
} |
if((GasMischanteil > 200) && MotorenEin == 0) |
{ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// auf Nullwerte kalibrieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) // Neutralwerte |
{ |
if(++delay_neutral > 200) // nicht sofort |
{ |
GRN_OFF; |
SetNeutral(); |
MotorenEin = 0; |
delay_neutral = 0; |
modell_fliegt = 0; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70 || abs(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]) > 70) |
{ |
unsigned char setting=1; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < 70) setting = 1; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 2; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 3; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] <-70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 4; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] <-70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < 70) setting = 5; |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], setting); // aktiven Datensatz merken |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
Piep(GetActiveParamSetNumber()); |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
GPS_Save_Home(); //Daten sind jetzt hoffentlich verfuegbar |
if (gps_home_position.status > 0 ) |
{ |
Delay_ms(1000); //akustisch verkuenden dass GPS Home Daten da sind |
beeptime = 1000; |
Delay_ms(500); |
} |
} |
} |
else |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -75) // ACC Neutralwerte speichern |
{ |
if(++delay_neutral > 200) // nicht sofort |
{ |
GRN_OFF; |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK],0xff); // Werte löschen |
MotorenEin = 0; |
delay_neutral = 0; |
modell_fliegt = 0; |
SetNeutral(); |
if (ACC_FIXED > 0) |
{ |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK],ACC_NICK_NEUTRAL / 256); // ACC-NeutralWerte speichern |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK+1],ACC_NICK_NEUTRAL % 256); // ACC-NeutralWerte speichern |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL],ACC_ROLL_NEUTRAL / 256); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL+1],ACC_ROLL_NEUTRAL % 256); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z],(int)ACC_Z_NEUTRAL / 256); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z+1],(int)ACC_Z_NEUTRAL % 256); |
} |
else |
{ |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK],NeutralAccX / 256); // ACC-NeutralWerte speichern |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK+1],NeutralAccX % 256); // ACC-NeutralWerte speichern |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL],NeutralAccY / 256); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL+1],NeutralAccY % 256); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z],(int)NeutralAccZ / 256); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z+1],(int)NeutralAccZ % 256); |
} |
Piep(GetActiveParamSetNumber()); |
} |
} |
else delay_neutral = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gas ist unten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(GasMischanteil < 35) |
{ |
// Starten |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -75) |
{ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Einschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(++delay_einschalten > 200) |
{ |
int n; |
// Salvo 9.12.2007 |
RX_SWTCH_ON; //GPS Daten auf RX eingang schalten |
// Salvo End |
delay_einschalten = 200; |
modell_fliegt = 1; |
MotorenEin = 1; |
sollGier = 0; |
Mess_Integral_Gier = 0; |
Mess_Integral_Gier2 = 0; |
Mess_IntegralNick = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralNick2 = IntegralNick; |
Mess_IntegralRoll2 = IntegralRoll; |
SummeNick = 0; |
SummeRoll = 0; |
n= GPS_CRTL(GPS_CMD_STOP); //GPS Lageregelung beenden |
} |
} |
else delay_einschalten = 0; |
//Auf Neutralwerte setzen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Auschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) |
{ |
if(++delay_ausschalten > 200) // nicht sofort |
{ |
// Salvo 9.12.2007 |
RX_SWTCH_OFF; //Bluetooth Daten auf RX eingang schalten |
// Salvo End |
MotorenEin = 0; |
delay_ausschalten = 200; |
modell_fliegt = 0; |
} |
} |
else delay_ausschalten = 0; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// neue Werte von der Funke |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!NewPpmData-- || Notlandung) |
{ |
int tmp_int; |
ParameterZuordnung(); |
StickNick = PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] * EE_Parameter.Stick_P; |
StickNick += PPM_diff[EE_Parameter.Kanalbelegung[K_NICK]] * EE_Parameter.Stick_D; |
StickRoll = PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] * EE_Parameter.Stick_P; |
StickRoll += PPM_diff[EE_Parameter.Kanalbelegung[K_ROLL]] * EE_Parameter.Stick_D; |
StickGier = -PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]; |
GyroFaktor = ((float)Parameter_Gyro_P + 10.0) / 256.0; |
IntegralFaktor = ((float) Parameter_Gyro_I) / 44000; |
#define KEY_VALUE (Parameter_UserParam1 * 4) //(Poti3 * 8) |
if(DubWiseKeys[1]) beeptime = 10; |
if(DubWiseKeys[1] & DUB_KEY_UP) tmp_int = KEY_VALUE; else |
if(DubWiseKeys[1] & DUB_KEY_DOWN) tmp_int = -KEY_VALUE; else tmp_int = 0; |
ExternStickNick = (ExternStickNick * 7 + tmp_int) / 8; |
if(DubWiseKeys[1] & DUB_KEY_LEFT) tmp_int = KEY_VALUE; else |
if(DubWiseKeys[1] & DUB_KEY_RIGHT) tmp_int = -KEY_VALUE; else tmp_int = 0; |
ExternStickRoll = (ExternStickRoll * 7 + tmp_int) / 8; |
if(DubWiseKeys[0] & 8) ExternStickGier = 50;else |
if(DubWiseKeys[0] & 4) ExternStickGier =-50;else ExternStickGier = 0; |
if(DubWiseKeys[0] & 2) ExternHoehenValue++; |
if(DubWiseKeys[0] & 16) ExternHoehenValue--; |
StickNick += ExternStickNick / 8; |
StickRoll += ExternStickRoll / 8; |
StickGier += ExternStickGier; |
if(EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) IntegralFaktor = 0; |
if(GyroFaktor < 0) GyroFaktor = 0; |
if(IntegralFaktor < 0) IntegralFaktor = 0; |
// greift in den Stick ein, um ungewolltes überschlagen zu verhindern |
if(!(EE_Parameter.LoopConfig & CFG_LOOP_LINKS) && !(EE_Parameter.LoopConfig & CFG_LOOP_RECHTS)) |
{ |
if(IntegralNick > 60000) |
{ |
StickNick -= 8 * EE_Parameter.Stick_P; |
if(IntegralNick > 80000) StickNick -= 16 * EE_Parameter.Stick_P; |
} |
else |
if(IntegralNick < -60000) |
{ |
StickNick += 8 * EE_Parameter.Stick_P; |
if(IntegralNick > 80000) StickNick -= 16 * EE_Parameter.Stick_P; |
} |
if(IntegralRoll > 60000) |
{ |
StickRoll -= 8 * EE_Parameter.Stick_P; |
if(IntegralRoll > 80000) StickRoll -= 16 * EE_Parameter.Stick_P; |
} |
else |
if(IntegralRoll < -60000) |
{ |
StickRoll += 8 * EE_Parameter.Stick_P; |
if(IntegralRoll > 80000) StickRoll -= 16 * EE_Parameter.Stick_P; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Looping? |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if((PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_LINKS) Looping_Links = 1; |
else |
{ |
{ |
if((PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < (EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese))) Looping_Links = 0; |
} |
} |
if((PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < -EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_RECHTS) Looping_Rechts = 1; |
else |
{ |
if(Looping_Rechts) // Hysterese |
{ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > -(EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese)) Looping_Rechts = 0; |
} |
} |
if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_OBEN) Looping_Oben = 1; |
else |
{ |
if(Looping_Oben) // Hysterese |
{ |
if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < (EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese))) Looping_Oben = 0; |
} |
} |
if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < -EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_UNTEN) Looping_Unten = 1; |
else |
{ |
if(Looping_Unten) // Hysterese |
{ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > -(EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese)) Looping_Unten = 0; |
} |
} |
if(Looping_Links || Looping_Rechts) Looping_Roll = 1; else Looping_Roll = 0; |
if(Looping_Oben || Looping_Unten) {Looping_Nick = 1; Looping_Roll = 0; Looping_Links = 0; Looping_Rechts = 0;} else Looping_Nick = 0; |
} // Ende neue Funken-Werte |
if(Looping_Roll) beeptime = 100; |
if(Looping_Roll || Looping_Nick) |
{ |
if(GasMischanteil > EE_Parameter.LoopGasLimit) GasMischanteil = EE_Parameter.LoopGasLimit; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Bei Empfangsausfall im Flug |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(Notlandung) |
{ |
StickGier = 0; |
StickNick = 0; |
StickRoll = 0; |
GyroFaktor = 0.1; |
IntegralFaktor = 0.005; |
Looping_Roll = 0; |
Looping_Nick = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Integrale auf ACC-Signal abgleichen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define ABGLEICH_ANZAHL 256L |
MittelIntegralNick += IntegralNick; // Für die Mittelwertbildung aufsummieren |
MittelIntegralRoll += IntegralRoll; |
MittelIntegralNick2 += IntegralNick2; |
MittelIntegralRoll2 += IntegralRoll2; |
if(Looping_Nick || Looping_Roll) |
{ |
IntegralAccNick = 0; |
IntegralAccRoll = 0; |
MittelIntegralNick = 0; |
MittelIntegralRoll = 0; |
MittelIntegralNick2 = 0; |
MittelIntegralRoll2 = 0; |
Mess_IntegralNick2 = Mess_IntegralNick; |
Mess_IntegralRoll2 = Mess_IntegralRoll; |
ZaehlMessungen = 0; |
LageKorrekturNick = 0; |
LageKorrekturRoll = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!Looping_Nick && !Looping_Roll) |
{ |
long tmp_long, tmp_long2; |
tmp_long = (long)(IntegralNick / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccNick); |
tmp_long /= 16; |
tmp_long2 = (long)(IntegralRoll / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccRoll); |
tmp_long2 /= 16; |
#define AUSGLEICH 32 //(Parameter_UserParam1 / 2) |
if(tmp_long > AUSGLEICH) tmp_long = AUSGLEICH; |
if(tmp_long < -AUSGLEICH) tmp_long =-AUSGLEICH; |
if(tmp_long2 > AUSGLEICH) tmp_long2 = AUSGLEICH; |
if(tmp_long2 <-AUSGLEICH) tmp_long2 =-AUSGLEICH; |
Mess_IntegralNick -= tmp_long; |
Mess_IntegralRoll -= tmp_long2; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(ZaehlMessungen >= ABGLEICH_ANZAHL) |
{ |
static int cnt = 0; |
static char last_n_p,last_n_n,last_r_p,last_r_n; |
static long MittelIntegralNick_Alt,MittelIntegralRoll_Alt; |
if(!Looping_Nick && !Looping_Roll) |
{ |
MittelIntegralNick /= ABGLEICH_ANZAHL; |
MittelIntegralRoll /= ABGLEICH_ANZAHL; |
IntegralAccNick = (EE_Parameter.GyroAccFaktor * IntegralAccNick) / ABGLEICH_ANZAHL; |
IntegralAccRoll = (EE_Parameter.GyroAccFaktor * IntegralAccRoll) / ABGLEICH_ANZAHL; |
IntegralAccZ = IntegralAccZ / ABGLEICH_ANZAHL; |
#define MAX_I 0//(Poti2/10) |
// Nick ++++++++++++++++++++++++++++++++++++++++++++++++ |
IntegralFehlerNick = (long)(MittelIntegralNick - (long)IntegralAccNick); |
ausgleichNick = IntegralFehlerNick / EE_Parameter.GyroAccAbgleich; |
LageKorrekturNick = ausgleichNick / ABGLEICH_ANZAHL; |
// Roll ++++++++++++++++++++++++++++++++++++++++++++++++ |
IntegralFehlerRoll = (long)(MittelIntegralRoll - (long)IntegralAccRoll); |
ausgleichRoll = IntegralFehlerRoll / EE_Parameter.GyroAccAbgleich; |
LageKorrekturRoll = ausgleichRoll / ABGLEICH_ANZAHL; |
// Mess_IntegralNick -= ausgleichNick; |
// Mess_IntegralRoll -= ausgleichRoll; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gyro-Drift ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
MittelIntegralNick2 /= ABGLEICH_ANZAHL; |
MittelIntegralRoll2 /= ABGLEICH_ANZAHL; |
// tmp_long = (long)(MittelIntegralNick2 - (long)IntegralAccNick); |
// tmp_long2 = (long)(MittelIntegralRoll2 - (long)IntegralAccRoll); |
tmp_long = IntegralNick2 - IntegralNick; |
tmp_long2 = IntegralRoll2 - IntegralRoll; |
//DebugOut.Analog[25] = MittelIntegralRoll2 / 26; |
IntegralFehlerNick = tmp_long; |
IntegralFehlerRoll = tmp_long2; |
Mess_IntegralNick2 -= IntegralFehlerNick; |
Mess_IntegralRoll2 -= IntegralFehlerRoll; |
// IntegralFehlerNick = (IntegralFehlerNick * 1 + tmp_long) / 2; |
// IntegralFehlerRoll = (IntegralFehlerRoll * 1 + tmp_long2) / 2; |
//Salvo Ersatzkompass Ueberlauf korrigieren |
if (GyroKomp_Int >= ((long)360 * GYROKOMP_INC_GRAD_DEFAULT)) GyroKomp_Int = GyroKomp_Int - (GYROKOMP_INC_GRAD_DEFAULT *(long)360); //neu ab 3.11.2007 |
if (GyroKomp_Int < 0) GyroKomp_Int = GyroKomp_Int + (GYROKOMP_INC_GRAD_DEFAULT *(long)360); //neu ab 3.11.2007 |
ROT_OFF; |
// Salvo End |
/*DebugOut.Analog[17] = IntegralAccNick / 26; |
DebugOut.Analog[18] = IntegralAccRoll / 26; |
DebugOut.Analog[19] = IntegralFehlerNick;// / 26; |
DebugOut.Analog[20] = IntegralFehlerRoll;// / 26; |
DebugOut.Analog[21] = MittelIntegralNick / 26; |
DebugOut.Analog[22] = MittelIntegralRoll / 26; |
DebugOut.Analog[28] = ausgleichNick; |
DebugOut.Analog[29] = ausgleichRoll; |
DebugOut.Analog[30] = LageKorrekturRoll * 10; |
*/ |
#define FEHLER_LIMIT (ABGLEICH_ANZAHL * 4) |
#define FEHLER_LIMIT2 (ABGLEICH_ANZAHL * 16) |
#define BEWEGUNGS_LIMIT 20000 |
// Nick +++++++++++++++++++++++++++++++++++++++++++++++++ |
cnt = 1;// + labs(IntegralFehlerNick) / 4096; |
if(labs(MittelIntegralNick_Alt - MittelIntegralNick) < BEWEGUNGS_LIMIT) |
{ |
if(IntegralFehlerNick > FEHLER_LIMIT2) |
{ |
if(last_n_p) |
{ |
cnt += labs(IntegralFehlerNick) / FEHLER_LIMIT2; |
ausgleichNick = IntegralFehlerNick / 8; |
if(ausgleichNick > 5000) ausgleichNick = 5000; |
LageKorrekturNick += ausgleichNick / ABGLEICH_ANZAHL; |
} |
else last_n_p = 1; |
} else last_n_p = 0; |
if(IntegralFehlerNick < -FEHLER_LIMIT2) |
{ |
if(last_n_n) |
{ |
cnt += labs(IntegralFehlerNick) / FEHLER_LIMIT2; |
ausgleichNick = IntegralFehlerNick / 8; |
if(ausgleichNick < -5000) ausgleichNick = -5000; |
LageKorrekturNick += ausgleichNick / ABGLEICH_ANZAHL; |
} |
else last_n_n = 1; |
} else last_n_n = 0; |
} else cnt = 0; |
//Salvo 26.12.2007 |
w = (abs(Mittelwert_AccNick)); |
v = (abs(Mittelwert_AccRoll)); |
if ((w < ACC_WAAGRECHT_LIMIT) && (v < ACC_WAAGRECHT_LIMIT)) // Gyro nur in annaehend waagrechter Lage nachtrimmen |
{ |
if(cnt > EE_Parameter.Driftkomp) cnt = EE_Parameter.Driftkomp; |
if(IntegralFehlerNick > FEHLER_LIMIT) AdNeutralNick += cnt; |
if(IntegralFehlerNick < -FEHLER_LIMIT) AdNeutralNick -= cnt; |
} |
//Salvo End |
// Roll +++++++++++++++++++++++++++++++++++++++++++++++++ |
cnt = 1;// + labs(IntegralFehlerNick) / 4096; |
ausgleichRoll = 0; |
if(labs(MittelIntegralRoll_Alt - MittelIntegralRoll) < BEWEGUNGS_LIMIT) |
{ |
if(IntegralFehlerRoll > FEHLER_LIMIT2) |
{ |
if(last_r_p) |
{ |
cnt += labs(IntegralFehlerRoll) / FEHLER_LIMIT2; |
ausgleichRoll = IntegralFehlerRoll / 8; |
if(ausgleichRoll > 5000) ausgleichRoll = 5000; |
LageKorrekturRoll += ausgleichRoll / ABGLEICH_ANZAHL; |
} |
else last_r_p = 1; |
} else last_r_p = 0; |
if(IntegralFehlerRoll < -FEHLER_LIMIT2) |
{ |
if(last_r_n) |
{ |
cnt += labs(IntegralFehlerRoll) / FEHLER_LIMIT2; |
ausgleichRoll = IntegralFehlerRoll / 8; |
if(ausgleichRoll < -5000) ausgleichRoll = -5000; |
LageKorrekturRoll += ausgleichRoll / ABGLEICH_ANZAHL; |
} |
else last_r_n = 1; |
} else last_r_n = 0; |
} else |
{ |
cnt = 0; |
} |
//Salvo 26.12.2007 |
if ((w < ACC_WAAGRECHT_LIMIT*2) && (v < ACC_WAAGRECHT_LIMIT*2)) // Gyro nur inannaehernd waagrechter Lage nachtrimmen |
{ |
if(cnt > EE_Parameter.Driftkomp) cnt = EE_Parameter.Driftkomp; |
if(IntegralFehlerRoll > FEHLER_LIMIT) AdNeutralRoll += cnt; |
if(IntegralFehlerRoll < -FEHLER_LIMIT) AdNeutralRoll -= cnt; |
} |
//Salvo End |
//DebugOut.Analog[23] = AdNeutralNick;//10*(AdNeutralNick - StartNeutralNick); |
//DebugOut.Analog[24] = 10*(AdNeutralRoll - StartNeutralRoll); |
} |
else |
{ |
LageKorrekturRoll = 0; |
LageKorrekturNick = 0; |
} |
if(!IntegralFaktor) { LageKorrekturRoll = 0; LageKorrekturNick = 0;} // z.B. bei HH |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++ |
MittelIntegralNick_Alt = MittelIntegralNick; |
MittelIntegralRoll_Alt = MittelIntegralRoll; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++ |
IntegralAccNick = 0; |
IntegralAccRoll = 0; |
IntegralAccZ = 0; |
MittelIntegralNick = 0; |
MittelIntegralRoll = 0; |
MittelIntegralNick2 = 0; |
MittelIntegralRoll2 = 0; |
ZaehlMessungen = 0; |
} // Ende Abgleich |
// Salvo Ersatzkompass und Giergyrokompensation 15.12.2007 ********************** |
if ((Kompass_Neuer_Wert > 0)) //nur wenn Kompass einen neuen Wert geliefert hat |
{ |
Kompass_Neuer_Wert = 0; |
w = (abs(Mittelwert_AccNick)); |
v = (abs(Mittelwert_AccRoll)); |
if ((w < ACC_WAAGRECHT_LIMIT) && (v < ACC_WAAGRECHT_LIMIT)) //Ersatzkompass und Giergyro nur mit Magnetkompass aktualisieren wenn alles ok |
{ |
if ((abs(KompassValue - Kompass_Value_Old)) <= 5) // Aufeinanderfolgende Werte duerfen nur minimal abweichen |
{ |
if ((abs(StickGier) < 20)) //Giergyroabgleich mit Kompass |
{ |
if (cnt_stickgier_zero < 255) cnt_stickgier_zero += 1; |
if (cnt_stickgier_zero > 2) // nur Abgleichen wenn keine Stickbewegung da |
{ |
w = (int) (GyroGier_Comp/(long)GYROKOMP_INC_GRAD_DEFAULT); |
v = KompassValue - gyrogier_kompass; // realen Drehwinkel seit letztem Ruecksetzen von GyroGier_Comp bestimmen |
if (v <-180) v +=360; // Uberlaufkorrektur |
if (v > 180) v -=360; // Uberlaufkorrektur |
v = w-v; //Differenz Gyro zu Kompass ist der Driftfehler |
#define GIER_COMP_MAX 8 |
if (v > GIER_COMP_MAX) v= GIER_COMP_MAX; |
if (v < -GIER_COMP_MAX) v= - GIER_COMP_MAX; |
if (abs(w) > 1) |
{ |
GyroGier_Comp = 0; |
gyrogier_kompass = KompassValue; // Kompasswert merken |
AdNeutralGier -= v; |
} |
} |
} |
else |
{ |
gyrogier_kompass = KompassValue; // Kompasswert merken |
cnt_stickgier_zero = 0; |
GyroGier_Comp = 0; |
} |
magkompass_ok = 1; // Flag dass Magnetkompass stabil arbeitet |
GyroKomp_Int = (GyroKomp_Int )/(long)GYROKOMP_INC_GRAD_DEFAULT; |
w = KompassValue - GyroKomp_Int; |
if ((w > 0) && (w < 180)) |
{ |
++GyroKomp_Int; |
} |
else if ((w > 0) && (w >= 180)) |
{ |
--GyroKomp_Int; |
} |
else if ((w < 0) && (w >= -180)) |
{ |
--GyroKomp_Int; |
} |
else if ((w < 0) && (w < -180)) |
{ |
++GyroKomp_Int; |
} |
if (GyroKomp_Int < 0) GyroKomp_Int = GyroKomp_Int + 360L; |
GyroKomp_Int = (GyroKomp_Int%360L) * (long)GYROKOMP_INC_GRAD_DEFAULT; // An Magnetkompasswert annaehern |
} |
} |
else //Kompassfehler |
{ |
magkompass_ok = 0; |
GyroGier_Comp = 0; |
} |
Kompass_Value_Old = KompassValue; |
} |
// Salvo End ************************* |
// Salvo 6.10.2007 |
// GPS Home aktivieren wenn Knueppel in Ruhelage und Hoehenschalter aktiviert ist |
//GPS Hold Aktiveren wenn Knueppel in Ruhelage sind |
if ((EE_Parameter.GlobalConfig & CFG_GPS_AKTIV) && (abs(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]]) < GPS_STICK_HOLDOFF) |
&& (abs(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]) < GPS_STICK_HOLDOFF) && (gps_alive_cnt > 0)) |
{ |
if (Parameter_MaxHoehe > 200) |
{ |
if ( gps_cmd == GPS_CMD_REQ_HOLD) gps_cmd = GPS_CMD_STOP; // erst mal stoppen, denn altes Kommando wurde noch nicht beendet |
else gps_cmd = GPS_CMD_REQ_HOME; |
n = GPS_CRTL(gps_cmd); |
} |
else |
{ |
if ( gps_cmd == GPS_CMD_REQ_HOME) gps_cmd = GPS_CMD_STOP; // erst mal stoppen, denn altes Kommando wurde noch nicht beendet |
else gps_cmd = GPS_CMD_REQ_HOLD; |
n= GPS_CRTL(gps_cmd); |
} |
} |
else |
{ |
if (gps_cmd != GPS_CMD_STOP) |
{ |
gps_cmd = GPS_CMD_STOP; |
n= GPS_CRTL(gps_cmd); //GPS Lageregelung beenden |
} |
} |
if (gps_state != GPS_CRTL_IDLE) if (TimerWerteausgabe == 12) LED_J16_OFF; //led im GPS Mode schnell blinken lassen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(abs(StickGier) > 20) // war 35 |
{ |
if(!(EE_Parameter.GlobalConfig & CFG_KOMPASS_FIX)) NeueKompassRichtungMerken = 1; |
} |
tmp_int = (long) EE_Parameter.Gier_P * ((long)StickGier * abs(StickGier)) / 512L; // expo y = ax + bx² |
tmp_int += (EE_Parameter.Gier_P * StickGier) / 4; |
sollGier = tmp_int; |
Mess_Integral_Gier -= tmp_int; |
if(Mess_Integral_Gier > 50000) Mess_Integral_Gier = 50000; // begrenzen |
if(Mess_Integral_Gier <-50000) Mess_Integral_Gier =-50000; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Kompass |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(KompassValue && (EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) && (Kompass_present > 0)) |
{ |
if(v > w) w = v; // grösste Neigung ermitteln |
// Salvo 13.9.2007 Nur wenn Magnetkompass ordentliche Werte liefert |
if ((magkompass_ok > 0) && NeueKompassRichtungMerken) |
{ |
KompassStartwert = KompassValue; |
NeueKompassRichtungMerken = 0; |
} |
// Salvo 13.9.2007 |
w=0; |
// Salvo End |
w = (w * Parameter_KompassWirkung) / 64; // auf die Wirkung normieren |
w = Parameter_KompassWirkung - w; // Wirkung ggf drosseln |
if(w > 0) |
{ |
// Salvo Kompasssteuerung ********************** |
if (magkompass_ok > 0) Mess_Integral_Gier += (KompassRichtung * w) / 32; // nach Kompass ausrichten |
// Salvo End |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Debugwerte zuordnen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!TimerWerteausgabe--) |
{ |
TimerWerteausgabe = 24; |
// Salvo 13.12.2007 Beleuchtung steuern |
if (!(beeptime & BeepMuster)) LED_J16_FLASH; |
else if (MotorenEin) LED_J16_ON; |
else LED_J16_OFF; |
// Salvo End |
DebugOut.Analog[0] = IntegralNick / EE_Parameter.GyroAccFaktor; |
DebugOut.Analog[1] = IntegralRoll / EE_Parameter.GyroAccFaktor; |
DebugOut.Analog[2] = Mittelwert_AccNick; |
DebugOut.Analog[3] = Mittelwert_AccRoll; |
DebugOut.Analog[4] = MesswertGier; |
DebugOut.Analog[5] = HoehenWert; |
DebugOut.Analog[6] =(Mess_Integral_Hoch / 512); |
DebugOut.Analog[8] = KompassValue; |
DebugOut.Analog[9] = GyroKomp_Int/GYROKOMP_INC_GRAD_DEFAULT; |
// Diverse parameter Debugging |
DebugOut.Analog[16] = dataset_cnt; |
DebugOut.Analog[17] = UBat; |
DebugOut.Analog[18] = MesswertNick; |
DebugOut.Analog[19] = MesswertRoll; |
DebugOut.Analog[20] = MesswertGier; |
DebugOut.Analog[21] = StickNick; |
DebugOut.Analog[22] = StickRoll; |
DebugOut.Analog[23] = StickGier; |
// GPS Debugging |
// DebugOut.Analog[10] = GPS_dist_2trgt/10; |
// DebugOut.Analog[11] = GPS_hdng_rel_2trgt; |
DebugOut.Analog[10] = Parameter_UserParam1; |
DebugOut.Analog[11] = Parameter_UserParam3; |
DebugOut.Analog[24] = GPS_Nick; |
DebugOut.Analog[25] = GPS_Roll; |
DebugOut.Analog[26] = gps_rel_act_position.utm_east; //in 10cm ausgeben |
DebugOut.Analog[27] = gps_rel_act_position.utm_north; |
DebugOut.Analog[28] = gps_rel_act_position.utm_alt; |
DebugOut.Analog[29] = gps_state + (gps_sub_state*10)+(50*gps_cmd); |
DebugOut.Analog[30] = debug_gp_0; |
DebugOut.Analog[31] = debug_gp_1; |
DebugOut.Analog[12] = debug_gp_2; |
DebugOut.Analog[13] = debug_gp_3; |
DebugOut.Analog[14] = debug_gp_4; |
DebugOut.Analog[15] = debug_gp_5; |
// DebugOut.Analog[30] = dist_flown; |
// DebugOut.Analog[31] = (int) dist_2home; |
// DebugOut.Analog[31] = (int) GPS_hdng_abs_2trgt; |
// DebugOut.Analog[31] = (int) GyroGier_Comp; |
/* |
DebugOut.Analog[16] = motor_rx[0]; |
DebugOut.Analog[17] = motor_rx[1]; |
DebugOut.Analog[18] = motor_rx[2]; |
DebugOut.Analog[19] = motor_rx[3]; |
DebugOut.Analog[20] = motor_rx[0] + motor_rx[1] + motor_rx[2] + motor_rx[3]; |
DebugOut.Analog[20] /= 14; |
DebugOut.Analog[21] = motor_rx[4]; |
DebugOut.Analog[22] = motor_rx[5]; |
DebugOut.Analog[23] = motor_rx[6]; |
DebugOut.Analog[24] = motor_rx[7]; |
DebugOut.Analog[25] = motor_rx[4] + motor_rx[5] + motor_rx[6] + motor_rx[7]; |
*/ |
// DebugOut.Analog[9] = MesswertNick; |
// DebugOut.Analog[9] = SollHoehe; |
// DebugOut.Analog[10] = Mess_Integral_Gier / 128; |
// DebugOut.Analog[11] = KompassStartwert; |
// DebugOut.Analog[10] = Parameter_Gyro_I; |
// DebugOut.Analog[10] = EE_Parameter.Gyro_I; |
// DebugOut.Analog[9] = KompassRichtung; |
// DebugOut.Analog[10] = GasMischanteil; |
// DebugOut.Analog[3] = HoeheD * 32; |
// DebugOut.Analog[4] = hoehenregler; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Drehgeschwindigkeit und -winkel zu einem Istwert zusammenfassen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(Looping_Nick) MesswertNick = MesswertNick * GyroFaktor; |
else MesswertNick = IntegralNick * IntegralFaktor + MesswertNick * GyroFaktor; |
if(Looping_Roll) MesswertRoll = MesswertRoll * GyroFaktor; |
else MesswertRoll = IntegralRoll * IntegralFaktor + MesswertRoll * GyroFaktor; |
// MesswertGier = MesswertGier * (GyroFaktor/2) + Integral_Gier * IntegralFaktor; |
MesswertGier = MesswertGier * (GyroFaktor) + Integral_Gier * IntegralFaktor/2; |
//DebugOut.Analog[28] = MesswertRoll; |
//DebugOut.Analog[25] = IntegralRoll * IntegralFaktor; |
//DebugOut.Analog[31] = StickRoll;// / (26*IntegralFaktor); |
// Maximalwerte abfangen |
#define MAX_SENSOR 2048 |
if(MesswertNick > MAX_SENSOR) MesswertNick = MAX_SENSOR; |
if(MesswertNick < -MAX_SENSOR) MesswertNick = -MAX_SENSOR; |
if(MesswertRoll > MAX_SENSOR) MesswertRoll = MAX_SENSOR; |
if(MesswertRoll < -MAX_SENSOR) MesswertRoll = -MAX_SENSOR; |
if(MesswertGier > MAX_SENSOR) MesswertGier = MAX_SENSOR; |
if(MesswertGier < -MAX_SENSOR) MesswertGier = -MAX_SENSOR; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Höhenregelung |
// Die Höhenregelung schwächt lediglich das Gas ab, erhöht es allerdings nicht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//OCR0B = 180 - (Poti1 + 120) / 4; |
//DruckOffsetSetting = OCR0B; |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung |
{ |
int tmp_int; |
if(EE_Parameter.GlobalConfig & CFG_HOEHEN_SCHALTER) // Regler wird über Schalter gesteuert |
{ |
if(Parameter_MaxHoehe < 50) |
{ |
SollHoehe = HoehenWert - 20; // Parameter_MaxHoehe ist der PPM-Wert des Schalters |
HoehenReglerAktiv = 0; |
} |
else |
HoehenReglerAktiv = 1; |
} |
else |
{ |
SollHoehe = ((int) ExternHoehenValue + (int) Parameter_MaxHoehe) * (int)EE_Parameter.Hoehe_Verstaerkung - 20; |
HoehenReglerAktiv = 1; |
} |
if(Notlandung) SollHoehe = 0; |
h = HoehenWert; |
if((h > SollHoehe) && HoehenReglerAktiv) // zu hoch --> drosseln |
{ h = ((h - SollHoehe) * (int) Parameter_Hoehe_P) / 16; // Differenz bestimmen --> P-Anteil |
h = GasMischanteil - h; // vom Gas abziehen |
h -= (HoeheD * Parameter_Luftdruck_D)/8; // D-Anteil |
tmp_int = ((Mess_Integral_Hoch / 512) * (signed long) Parameter_Hoehe_ACC_Wirkung) / 32; |
if(tmp_int > 50) tmp_int = 50; |
else if(tmp_int < -50) tmp_int = -50; |
h -= tmp_int; |
hoehenregler = (hoehenregler*15 + h) / 16; |
if(hoehenregler < EE_Parameter.Hoehe_MinGas) // nicht unter MIN |
{ |
if(GasMischanteil >= EE_Parameter.Hoehe_MinGas) hoehenregler = EE_Parameter.Hoehe_MinGas; |
if(GasMischanteil < EE_Parameter.Hoehe_MinGas) hoehenregler = GasMischanteil; |
} |
if(hoehenregler > GasMischanteil) hoehenregler = GasMischanteil; // nicht mehr als Gas |
GasMischanteil = hoehenregler; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Mischer und PI-Regler |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DebugOut.Analog[7] = GasMischanteil; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gier-Anteil |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define MUL_G 1.0 |
GierMischanteil = MesswertGier - sollGier; // Regler für Gier |
//GierMischanteil = 0; |
if(GierMischanteil > (GasMischanteil / 2)) GierMischanteil = GasMischanteil / 2; |
if(GierMischanteil < -(GasMischanteil / 2)) GierMischanteil = -(GasMischanteil / 2); |
if(GierMischanteil > ((MAX_GAS - GasMischanteil))) GierMischanteil = ((MAX_GAS - GasMischanteil)); |
if(GierMischanteil < -((MAX_GAS - GasMischanteil))) GierMischanteil = -((MAX_GAS - GasMischanteil)); |
if(GasMischanteil < 20) GierMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Nick-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffNick = MesswertNick - (StickNick - GPS_Nick); // Differenz bestimmen |
if(IntegralFaktor) SummeNick += IntegralNick * IntegralFaktor - (StickNick - GPS_Nick); // I-Anteil bei Winkelregelung |
else SummeNick += DiffNick; // I-Anteil bei HH |
if(SummeNick > 0) SummeNick-= 2 ; else SummeNick += 2 ; |
if(SummeNick > 16000) SummeNick = 16000; |
if(SummeNick < -16000) SummeNick = -16000; |
pd_ergebnis = DiffNick + Ki * SummeNick; // PI-Regler für Nick |
// Motor Vorn |
tmp_int = (long)((long)Parameter_DynamicStability * (long)(GasMischanteil + abs(GierMischanteil)/2)) / 64; |
if(pd_ergebnis > tmp_int) pd_ergebnis = tmp_int; |
if(pd_ergebnis < -tmp_int) pd_ergebnis = -tmp_int; |
motorwert = GasMischanteil + pd_ergebnis + GierMischanteil; // Mischer |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Vorne = motorwert; |
// Motor Heck |
motorwert = GasMischanteil - pd_ergebnis + GierMischanteil; |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Hinten = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Roll-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffRoll = MesswertRoll - (StickRoll - GPS_Roll); // Differenz bestimmen |
if(IntegralFaktor) SummeRoll += IntegralRoll * IntegralFaktor - (StickRoll - GPS_Roll);// I-Anteil bei Winkelregelung |
else SummeRoll += DiffRoll; // I-Anteil bei HH |
if(SummeRoll > 0) SummeRoll-= 2 ; else SummeRoll += 2 ; |
if(SummeRoll > 16000) SummeRoll = 16000; |
if(SummeRoll < -16000) SummeRoll = -16000; |
pd_ergebnis = DiffRoll + Ki * SummeRoll; // PI-Regler für Roll |
tmp_int = (long)((long)Parameter_DynamicStability * (long)(GasMischanteil + abs(GierMischanteil)/2)) / 64; |
if(pd_ergebnis > tmp_int) pd_ergebnis = tmp_int; |
if(pd_ergebnis < -tmp_int) pd_ergebnis = -tmp_int; |
// Motor Links |
motorwert = GasMischanteil + pd_ergebnis - GierMischanteil; |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Links = motorwert; |
// Motor Rechts |
motorwert = GasMischanteil - pd_ergebnis - GierMischanteil; |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Rechts = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++ |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/fc.h |
---|
0,0 → 1,167 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
#ifndef _FC_H |
#define _FC_H |
extern volatile unsigned int I2CTimeout; |
//Salvo 9.12.2007 Neutralwerte fuer ACC Sensor nur verwendet wenn ACC_FIXED >0 |
#define ACC_FIXED 0 // wenn > 0werden diese Werte beim ACC Kalbibrieren ins Eeprom geschrieben |
#define ACC_NICK_NEUTRAL 518 // ADC Wandler Wert in Neutrallage (0g): Vom individuellen Sensor abhaengig |
#define ACC_ROLL_NEUTRAL 516 // ADC Wandler wert in Neutrallage (0g) |
#define ACC_Z_NEUTRAL 740 // ADC Wandler wert in Neutrallage (0g) |
#define ACC_WAAGRECHT_LIMIT 100 // Nick und Roll kleiner als dieser Wert gelten als Kriterium fuer waagrechte Lage |
// Salvo End |
//Salvo 2.9.2007 Ersatzkompass: Gyroincrements/Grad als Defaultwert ***** |
// Laut Datenblatt sind di; Werte ueber Zeit und Temperatur sehr stabil. |
#define GYROKOMP_INC_GRAD_DEFAULT 1300 // Gyroincrements/Grad als Defaultwert |
// Salvo End |
extern unsigned char Sekunde,Minute; |
extern volatile long IntegralNick,IntegralNick2; |
extern volatile long IntegralRoll,IntegralRoll2; |
extern volatile long Mess_IntegralNick,Mess_IntegralNick2; |
extern volatile long Mess_IntegralRoll,Mess_IntegralRoll2; |
extern volatile long IntegralAccNick,IntegralAccRoll; |
extern volatile long Mess_Integral_Hoch; |
extern volatile long Integral_Gier,Mess_Integral_Gier,Mess_Integral_Gier2; |
extern volatile int KompassValue; |
extern volatile int KompassStartwert; |
extern volatile int KompassRichtung; |
extern int HoehenWert; |
extern int SollHoehe; |
extern volatile int MesswertNick,MesswertRoll,MesswertGier; |
extern volatile int AdNeutralNick,AdNeutralRoll,AdNeutralGier, Mittelwert_AccNick, Mittelwert_AccRoll; |
extern volatile int NeutralAccX, NeutralAccY,Mittelwert_AccHoch; |
extern volatile float NeutralAccZ; |
extern long Umschlag180Nick, Umschlag180Roll; |
extern signed int ExternStickNick,ExternStickRoll,ExternStickGier; |
extern unsigned char Parameter_UserParam1,Parameter_UserParam2,Parameter_UserParam3,Parameter_UserParam4,Parameter_UserParam5,Parameter_UserParam6,Parameter_UserParam7,Parameter_UserParam8; |
//Salvo 2.1.2008 Debugvariablens |
extern int debug_gp_0,debug_gp_1,debug_gp_2,debug_gp_3,debug_gp_4,debug_gp_5,debug_gp_6,debug_gp_7; //Allgemeine Debugvariablen |
//Salvo End |
//Salvo 2.9.2007 Ersatzkompass |
extern long GyroKomp_Int; |
extern long int GyroGier_Comp; |
extern int GyroKomp_Inc_Grad; |
extern int GyroKomp_Value; // Der ermittelte Kompasswert aus Gyro und Magnetkompass |
// Salvo End |
void MotorRegler(void); |
void SendMotorData(void); |
void CalibrierMittelwert(void); |
void Mittelwert(void); |
void SetNeutral(void); |
void Piep(unsigned char Anzahl); |
extern void DefaultKonstanten(void); |
void DefaultKonstanten1(void); |
void DefaultKonstanten2(void); |
extern unsigned char h,m,s; |
extern volatile unsigned char Timeout ; |
extern unsigned char CosinusNickWinkel, CosinusRollWinkel; |
extern volatile long IntegralNick,IntegralNick2; |
extern volatile long IntegralRoll,IntegralRoll2; |
extern volatile long Integral_Gier; |
extern volatile long Mess_IntegralNick,Mess_IntegralNick2; |
extern volatile long Mess_IntegralRoll,Mess_IntegralRoll2; |
extern volatile long Mess_Integral_Gier; |
extern volatile int DiffNick,DiffRoll; |
extern int Poti1, Poti2, Poti3, Poti4; |
extern volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links, Count; |
extern unsigned char MotorWert[5]; |
extern volatile unsigned char SenderOkay; |
extern int StickNick,StickRoll,StickGier; |
extern char MotorenEin; |
extern void DefaultKonstanten1(void); |
extern void DefaultKonstanten2(void); |
#define STRUCT_PARAM_LAENGE 71 |
struct mk_param_struct |
{ |
unsigned char Kanalbelegung[8]; // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3 |
unsigned char GlobalConfig; // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv |
unsigned char Hoehe_MinGas; // Wert : 0-100 |
unsigned char Luftdruck_D; // Wert : 0-250 |
unsigned char MaxHoehe; // Wert : 0-32 |
unsigned char Hoehe_P; // Wert : 0-32 |
unsigned char Hoehe_Verstaerkung; // Wert : 0-50 |
unsigned char Hoehe_ACC_Wirkung; // Wert : 0-250 |
unsigned char Stick_P; // Wert : 1-6 |
unsigned char Stick_D; // Wert : 0-64 |
unsigned char Gier_P; // Wert : 1-20 |
unsigned char Gas_Min; // Wert : 0-32 |
unsigned char Gas_Max; // Wert : 33-250 |
unsigned char GyroAccFaktor; // Wert : 1-64 |
unsigned char KompassWirkung; // Wert : 0-32 |
unsigned char Gyro_P; // Wert : 10-250 |
unsigned char Gyro_I; // Wert : 0-250 |
unsigned char UnterspannungsWarnung; // Wert : 0-250 |
unsigned char NotGas; // Wert : 0-250 //Gaswert bei Empängsverlust |
unsigned char NotGasZeit; // Wert : 0-250 // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen |
unsigned char UfoAusrichtung; // X oder + Formation |
unsigned char I_Faktor; // Wert : 0-250 |
unsigned char UserParam1; // Wert : 0-250 |
unsigned char UserParam2; // Wert : 0-250 |
unsigned char UserParam3; // Wert : 0-250 |
unsigned char UserParam4; // Wert : 0-250 |
unsigned char ServoNickControl; // Wert : 0-250 // Stellung des Servos |
unsigned char ServoNickComp; // Wert : 0-250 // Einfluss Gyro/Servo |
unsigned char ServoNickMin; // Wert : 0-250 // Anschlag |
unsigned char ServoNickMax; // Wert : 0-250 // Anschlag |
unsigned char ServoNickRefresh; // |
unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
unsigned char LoopHysterese; // Wert: 0-250 Hysterese für Stickausschlag |
unsigned char AchsKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung) |
unsigned char AchsGegenKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick Gegenkoppelt (NickRollGegenkopplung) |
unsigned char WinkelUmschlagNick; // Wert: 0-250 180°-Punkt |
unsigned char WinkelUmschlagRoll; // Wert: 0-250 180°-Punkt |
unsigned char GyroAccAbgleich; // 1/k (Koppel_ACC_Wirkung) |
unsigned char Driftkomp; |
unsigned char DynamicStability; |
unsigned char UserParam5; // Wert : 0-250 |
unsigned char UserParam6; // Wert : 0-250 |
unsigned char UserParam7; // Wert : 0-250 |
unsigned char UserParam8; // Wert : 0-250 |
//------------------------------------------------ |
unsigned char LoopConfig; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
unsigned char ServoNickCompInvert; // Wert : 0-250 0 oder 1 // WICHTIG!!! am Ende lassen |
unsigned char Reserved[4]; |
char Name[12]; |
}; |
/* |
unsigned char ServoNickMax; // Wert : 0-250 |
unsigned char ServoNickRefresh; // |
unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
//------------------------------------------------ |
unsigned char LoopConfig; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
unsigned char ServoNickCompInvert; // Wert : 0-250 0 oder 1 // WICHTIG!!! am Ende lassen |
unsigned char Reserved[4]; |
char Name[12]; |
*/ |
extern struct mk_param_struct EE_Parameter; |
extern unsigned char Parameter_Luftdruck_D; |
extern unsigned char Parameter_MaxHoehe; |
extern unsigned char Parameter_Hoehe_P; |
extern unsigned char Parameter_Hoehe_ACC_Wirkung; |
extern unsigned char Parameter_KompassWirkung; |
extern unsigned char Parameter_Gyro_P; |
extern unsigned char Parameter_Gyro_I; |
extern unsigned char Parameter_Gier_P; |
extern unsigned char Parameter_ServoNickControl; |
extern unsigned char Parameter_AchsKopplung1; |
extern unsigned char Parameter_AchsGegenKopplung1; |
#endif //_FC_H |
/branches/salvo_gps/Basis_v0067g/tags/v0004/flightctrl.aws |
---|
0,0 → 1,0 |
<AVRWorkspace><IOSettings><CurrentRegisters/></IOSettings><part name="ATMEGA644"/><Files><File00000 Name="G:\Mikrokopter\Flight_Crtl\v0067g\timer0.c" Position="266 101 1182 710" LineCol="164 0" State="Maximized"/><File00001 Name="G:\Mikrokopter\Flight_Crtl\v0067g\analog.h" Position="288 130 1218 738" LineCol="0 0" State="Maximized"/><File00002 Name="G:\Mikrokopter\Flight_Crtl\v0067g\makefile" Position="310 159 1240 767" LineCol="6 0" State="Maximized"/><File00003 Name="G:\Mikrokopter\Flight_Crtl\v0067g\main.c" Position="332 188 1262 796" LineCol="155 0" State="Maximized"/><File00004 Name="G:\Mikrokopter\Flight_Crtl\v0067g\fc.c" Position="354 217 1284 825" LineCol="0 0" State="Maximized"/><File00005 Name="G:\Mikrokopter\Flight_Crtl\v0067g\fc.h" Position="376 246 1306 854" LineCol="0 0" State="Maximized"/><File00006 Name="G:\Mikrokopter\Flight_Crtl\v0067g\timer0.h" Position="262 71 1402 978" LineCol="6 1" State="Maximized"/></Files></AVRWorkspace> |
/branches/salvo_gps/Basis_v0067g/tags/v0004/gps.h |
---|
0,0 → 1,132 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Peter Muehlenbrock ("Salvo") |
// Definitionen fuer Modul GPS |
// Stand 3.8.2008 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
extern signed int GPS_Nick; |
extern signed int GPS_Roll; |
extern void GPS_Neutral(void); |
extern void Get_Ublox_Msg(uint8_t rx) ; |
extern short int Get_GPS_data(void); |
extern short int Get_Rel_Position(void); |
extern void GPS_Save_Home(void); |
extern short int GPS_CRTL(short int cmd); |
typedef struct { |
unsigned long utm_itow; // time of week |
long utm_east; // UTM Ost in cm |
long utm_north; // UTM Nord in cm |
long utm_alt; // hoehe in cm |
uint8_t utm_zone; // |
uint8_t utm_hem; // Hemisphere Indicator |
uint8_t status; // 0: kein gueltiges Paket 1: alles ok |
} NAV_POSUTM_t; |
typedef struct { |
unsigned long itow; // time of week |
uint8_t gpsfix_type;// 3=3D Fix |
uint8_t nav_status_flag; |
uint8_t nav_diff_status; |
uint8_t nav_resevd; |
long nav_tff; // Time to First Fix in ms |
long nav_msss; // ms since startup |
uint8_t status; // 0: kein gueltiges Paket 1: alles ok |
} NAV_STATUS_t; |
typedef struct { |
unsigned long itow; |
long speed_n; // in cm/s |
long speed_e; // in cm/s |
long speed_alt; // in cm/s |
unsigned long speed_3d; // in cm/s |
unsigned long speed_gnd; // V ueber Grund in cm/s |
long heading; // Richtung in deg/10000 |
unsigned long sacc; // Speed Genauigkeit in cm/s |
unsigned long cacc; // Richtungsgenauigkeit in deg |
uint8_t status; // 0: kein gueltiges Paket 1: alles ok |
} NAV_VELNED_t; |
typedef struct { |
long utm_east; // UTM Ost in 10 cm |
long utm_north; // UTM Nord in 10 cm |
long utm_alt; // hoehe in 10 cm |
unsigned long speed_gnd; // V ueber Grund in 10cm/s |
unsigned heading; // Richtung in Grad |
uint8_t status; // 0: keine gueltigen Daten 1: alles ok |
} GPS_ABS_POSITION_t; |
typedef struct { // Struktur fuer Relative GPS Daten (bezogen z.B. auf Home Position) |
int utm_east; // UTM Ost in 10 cm |
int utm_north; // UTM Nord in 10 cm |
int utm_alt ; // UTM Altitude in 10 cm |
uint8_t status; // 0: keine gueltigen Daten 1: alles ok |
} GPS_REL_POSITION_t; |
extern GPS_ABS_POSITION_t gps_act_position; |
extern GPS_ABS_POSITION_t gps_home_position; |
extern GPS_REL_POSITION_t gps_rel_act_position; |
extern GPS_REL_POSITION_t gps_rel_hold_position; |
extern short int gps_state,gps_sub_state; |
extern unsigned int gps_alive_cnt; |
#define GPS_USR_PAR_FKT 8 //Faktor durch den die Userparameter geteilt werden |
// Zustaende der zentralen GPS statemachine |
#define GPS_CRTL_IDLE 0 // |
#define GPS_CRTL_HOLD_ACTIVE 1 // Lageregelung aktiv |
#define GPS_CRTL_HOME_ACTIVE 2 // Rueckflug zur Basis Aktiv |
#define GPS_HOME_FAST_IN_TOL 3 // Rueckflug: Aktuelle Position innerhalb der Toleranz |
#define GPS_HOME_FAST_OUTOF_TOL 4 // Rueckflug: Aktuelle Position ausserhalb der Toleranz |
#define GPS_HOME_RMPDWN_IN_TOL 5 // Rueckflug: beim Abbremsen Position innerhalb der Toleranz |
#define GPS_HOME_RMPDWN_OUTOF_TOL 6 // Rueckflug: beim Abbremsen Position ausserhalb der Toleranz |
#define GPS_HOME_IN_TOL 7 // Rueckflug: Nahe am Ziel innerhalb der Toleranz |
#define GPS_HOME_OUTOF_TOL 8 // Rueckflug: Nahe am Ziel ausserhalb der Toleranz |
#define GPS_HOME_FINISHED 9 // Rueckflug zur Basis abgeschlossen |
// Kommandokonstanten fuer die zentrale GPS Statemachine |
#define GPS_CMD_STOP 0 // Lageregelung soll deaktiviert werden |
#define GPS_CMD_REQ_INIT 1 // Initialisierung |
#define GPS_CMD_REQ_HOLD 3 // Lageregelung soll aktiviert werden |
#define GPS_CMD_REQ_HOME 4 // Das Heimfliegen soll aktiviert werden |
// Statusmeldungen der zentralen GPS statemachine |
#define GPS_STST_OK 0 // Kommando erfolgreich und abgeschlossen |
#define GPS_STST_PEND 1 // Kommando noch nicht komplett durchgefuehrt |
#define GPS_STST_ERR 2 // Fehler |
// GPS Lageregler |
#define GPS_NICKROLL_MAX 25 // Maximaler Einfluss des GPS Lagereglers auf Nick und Roll |
#define GPS_DIST_MAX 400 // Maximal zulaessige Distanz bevor Regelung gestoppt wird (in 10cm) |
#define GPS_STICK_HOLDOFF 20 // Wenn der Nick oder Roll Stickwerte groesser sind, wird GPS_HOLD deaktiviert |
#define GPS_V 8 // Teilerfaktor Regelabweichung zu Ausgabewert |
// Differenzierer Kennwerte fuer von Distanz abhaengige Verstaerkung, abhaengig vom Modus. |
#define GPS_DIFF_NRML_MAX_V 20 //maximale Verstaerkung * 10 |
#define GPS_DIFF_NRML_MAX_D 30 //Entfernung bei der maximale Verstaerkung erreicht wird in 10cm |
#define GPS_DIFF_FAST_MAX_V 15 //maximale Verstaerkung * 10 im Fast mode |
#define GPS_DIFF_FAST_MAX_D 50 //Entfernung bei der maximale Verstaerkung erreicht wird in 10cm im Fast mode |
// Konstanten fuer Verstaerkung fuer Differenzierer in Abhaengigkeit vom Diff Wert |
// um eine exponentielle Verstaerkung zu erreichen |
#define DIFF_Y_MAX 1 // Verstaerkung bei Eingangswert = DIFF_X_MAX |
#define DIFF_X_MAX 32 // bei diesem Eingangswert ist die Verstaerkung = DIFF_Y_MAX |
// P-Regler Verstaerkung |
#define GPS_PROP_NRML_V 2 //maximale Verstaerkung * 2 |
#define GPS_PROP_FAST_V 2 //maximale Verstaerkung * 2 im Fast mode |
// GPS G2T /Go to Target Regler |
#define GPS_G2T_DIST_MAX_STOP 50 // Ab dieser Entfernung vom Zielpunkt soll die Geschwindigkeit runtergeregelt werden( in 10 cm) |
#define GPS_G2T_DIST_HOLD 30 // Ab dieser Entfernung vom Zielpunkt wird mit Minimaler Geschwindigkeit eingeregelt |
#define GPS_G2T_V_MAX 12 // Maximale Geschwindigkeit (in 10cm/0.25 Sekunden) mit der der Sollpunkt geaendert wird. |
#define GPS_G2T_V_RAMP_DWN 6 // Geschwindigkeit (in 10cm/0.25ekunden) in der Naehe der Home Position um abzubremsen |
#define GPS_G2T_V_MIN 3 // Minimale (in 10cm/0.25 Sekunden) ganz nahe an Homeposition. |
#define GPS_G2T_FAST_TOL 60 // Bei grosser Entfernung vom Ziel: Der Sollwert wird nur geaendert wenn die aktuelle Position nicht mehr als diesem Wert vom Sollwert abweicht |
#define GPS_G2T_NRML_TOL 40 // Bei kleiner Entfernung vom Ziel: Der Sollwert wird nur geaendert wenn die aktuelle Position nicht mehr als diesem Wert vom Sollwert abweicht |
/branches/salvo_gps/Basis_v0067g/tags/v0004/main.c |
---|
0,0 → 1,251 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten und nicht-kommerziellen Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt und genannt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-commercial use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
// + clearly linked as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
unsigned char EEPromArray[E2END+1] EEMEM; |
unsigned char PlatinenVersion = 10; |
// -- Parametersatz aus EEPROM lesen --- |
// number [0..5] |
void ReadParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if (number > 5) number = 5; |
eeprom_read_block(buffer, &EEPromArray[EEPROM_ADR_PARAM_BEGIN + length * number], length); |
} |
// -- Parametersatz ins EEPROM schreiben --- |
// number [0..5] |
void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if(number > 5) number = 5; |
eeprom_write_block(buffer, &EEPromArray[EEPROM_ADR_PARAM_BEGIN + length * number], length); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], number); // diesen Parametersatz als aktuell merken |
} |
unsigned char GetActiveParamSetNumber(void) |
{ |
unsigned char set; |
set = eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET]); |
if(set > 5) |
{ |
set = 2; |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], set); // diesen Parametersatz als aktuell merken |
} |
return(set); |
} |
//############################################################################ |
//Hauptprogramm |
int main (void) |
//############################################################################ |
{ |
unsigned int timer; |
//unsigned int timer2 = 0; |
DDRB = 0x00; |
PORTB = 0x00; |
for(timer = 0; timer < 1000; timer++); // verzögern |
if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10; |
// Salvo 9.12.2007 PC6 als Ausgang |
// DDRC = 0x81; // SCL |
DDRC = 0xCD; // SCL und PC2,PC3, PC6 als Ausgang |
PORTC = 0xff; // Pullup SDA |
DDRB = 0x1B; // LEDs und Druckoffset |
PORTB = 0x01; // LED_Rot |
DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
DDRD |=0x80; // J7 |
PORTD = 0xF7; // LED |
MCUSR &=~(1<<WDRF); |
WDTCSR |= (1<<WDCE)|(1<<WDE); |
WDTCSR = 0; |
beeptime = 2000; |
StickGier = 0; PPM_in[K_GAS] = 0;StickRoll = 0; StickNick = 0; |
ROT_OFF; |
Timer_Init(); |
UART_Init(); |
rc_sum_init(); |
ADC_Init(); |
i2c_init(); |
// SPI_MasterInit(); |
sei(); |
VersionInfo.Hauptversion = VERSION_HAUPTVERSION; |
VersionInfo.Nebenversion = VERSION_NEBENVERSION; |
VersionInfo.PCKompatibel = VERSION_KOMPATIBEL; |
printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",PlatinenVersion/10,PlatinenVersion%10, VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX + 'a'); |
printf("\n\r=============================="); |
GRN_ON; |
#define EE_DATENREVISION 68 // wird angepasst, wenn sich die EEPROM-Daten geändert haben |
if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_VALID]) != EE_DATENREVISION) |
{ |
printf("\n\rInit. EEPROM: Generiere Default-Parameter..."); |
DefaultKonstanten1(); |
for (unsigned char i=0;i<6;i++) |
{ |
if(i==2) DefaultKonstanten2(); // Kamera |
if(i==3) DefaultKonstanten3(); // Beginner |
if(i>3) DefaultKonstanten2(); // Kamera |
WriteParameterSet(i, (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], 3); // default-Setting |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], EE_DATENREVISION); |
} |
if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_NICK]) > 4) |
{ |
printf("\n\rACC nicht abgeglichen!"); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
printf("\n\rBenutze Parametersatz %d", GetActiveParamSetNumber()); |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
printf("\n\rAbgleich Luftdrucksensor.."); |
timer = SetDelay(1000); |
SucheLuftruckOffset(); |
while (!CheckDelay(timer)); |
printf("OK\n\r"); |
} |
SetNeutral(); |
ROT_OFF; |
// Salvo 9.12.2007 Defaultwert fuer Umschaltsignal fuer RX: Bluettooth Modul aktiv |
RX_SWTCH_OFF; |
// Salvo End |
beeptime = 2000; |
DebugIn.Analog[1] = 1000; |
DebugIn.Digital[0] = 0x55; |
printf("\n\rSteuerung: "); |
if (EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) printf("HeadingHold"); |
else printf("Neutral"); |
printf("\n\n\r"); |
LcdClear(); |
I2CTimeout = 5000; |
while (1) |
{ |
if (UpdateMotor) // ReglerIntervall |
{ |
// SPI_TransmitByte(); |
UpdateMotor=0; |
//PORTD |= 0x08; |
MotorRegler(); |
//PORTD &= ~0x08; |
SendMotorData(); |
ROT_OFF; |
if(PcZugriff) PcZugriff--; |
else |
{ |
DubWiseKeys[0] = 0; |
DubWiseKeys[1] = 0; |
ExternStickNick = 0; |
ExternStickRoll = 0; |
ExternStickGier = 0; |
} |
if(SenderOkay) SenderOkay--; |
if(!I2CTimeout) |
{ |
I2CTimeout = 5; |
i2c_reset(); |
if((BeepMuster == 0xffff) && MotorenEin) |
{ |
beeptime = 10000; |
BeepMuster = 0x0080; |
} |
} |
else |
{ |
I2CTimeout--; |
ROT_OFF; |
} |
} |
if(SIO_DEBUG) |
{ |
DatenUebertragung(); |
BearbeiteRxDaten(); |
} |
else BearbeiteRxDaten(); |
if(CheckDelay(timer)) |
{ |
if(UBat < EE_Parameter.UnterspannungsWarnung) |
{ |
if(BeepMuster == 0xffff) |
{ |
beeptime = 6000; |
BeepMuster = 0x0300; |
} |
} |
// SPI_StartTransmitPacket(); |
timer = SetDelay(100); |
} |
} |
return (1); |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/main.h |
---|
0,0 → 1,112 |
#ifndef _MAIN_H |
#define _MAIN_H |
//Hier die Quarz Frequenz einstellen |
#if defined (__AVR_ATmega32__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
#endif |
#if defined (__AVR_ATmega644__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
//#define SYSCLK 16000000L //Quarz Frequenz in Hz |
#endif |
// neue Hardware |
#define ROT_OFF {if(PlatinenVersion == 10) PORTB &=~0x01; else PORTB |= 0x01;} |
#define ROT_ON {if(PlatinenVersion == 10) PORTB |= 0x01; else PORTB &=~0x01;} |
#define ROT_FLASH PORTB ^= 0x01 |
#define GRN_OFF PORTB &=~0x02 |
#define GRN_ON PORTB |= 0x02 |
#define GRN_FLASH PORTB ^= 0x02 |
//Salvo 9.12.2007 Umschaltsignal fuer Bluetooth bzw. GPS Daten auf PC7 |
#define RX_SWTCH_ON PORTC |= 0x40 |
#define RX_SWTCH_OFF PORTC &= ~0x40 |
#define LED_J16_ON PORTC |= 0x04 |
#define LED_J16_OFF PORTC &= ~0x04 |
#define LED_J16_FLASH PORTC ^= 0x04 |
//Salvo End |
#define F_CPU SYSCLK |
//#ifndef F_CPU |
//#error ################## F_CPU nicht definiert oder ungültig ############# |
//#endif |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define EEPROM_ADR_VALID 1 |
#define EEPROM_ADR_ACTIVE_SET 2 |
#define EEPROM_ADR_LAST_OFFSET 3 |
#define EEPROM_ADR_ACC_NICK 4 |
#define EEPROM_ADR_ACC_ROLL 6 |
#define EEPROM_ADR_ACC_Z 8 |
#define EEPROM_ADR_PARAM_BEGIN 100 |
#define CFG_HOEHENREGELUNG 0x01 |
#define CFG_HOEHEN_SCHALTER 0x02 |
#define CFG_HEADING_HOLD 0x04 |
#define CFG_KOMPASS_AKTIV 0x08 |
#define CFG_KOMPASS_FIX 0x10 |
#define CFG_GPS_AKTIV 0x20 |
#define CFG_ACHSENKOPPLUNG_AKTIV 0x40 |
#define CFG_DREHRATEN_BEGRENZER 0x80 |
#define CFG_LOOP_OBEN 0x01 |
#define CFG_LOOP_UNTEN 0x02 |
#define CFG_LOOP_LINKS 0x04 |
#define CFG_LOOP_RECHTS 0x08 |
//#define SYSCLK |
//extern unsigned long SYSCLK; |
extern volatile int i_Nick[20],i_Roll[20],DiffNick,DiffRoll; |
extern volatile unsigned char SenderOkay; |
extern unsigned char CosinusNickWinkel, CosinusRollWinkel; |
extern unsigned char PlatinenVersion; |
void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length); |
void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length); |
extern unsigned char GetActiveParamSetNumber(void); |
extern unsigned char EEPromArray[]; |
#include <stdlib.h> |
#include <string.h> |
#include <avr/io.h> |
#include <avr/pgmspace.h> |
#include <avr/interrupt.h> |
#include <avr/eeprom.h> |
#include <avr/boot.h> |
#include <avr/wdt.h> |
#include "old_macros.h" |
#include "_Settings.h" |
#include "printf_P.h" |
#include "timer0.h" |
#include "uart.h" |
#include "analog.h" |
#include "twimaster.h" |
#include "menu.h" |
#include "rc.h" |
#include "fc.h" |
#include "gps.h" |
#include "spi.h" |
#ifndef EEMEM |
#define EEMEM __attribute__ ((section (".eeprom"))) |
#endif |
#define DEBUG_DISPLAY_INTERVALL 123 // in ms |
#define DELAY_US(x) ((unsigned int)( (x) * 1e-6 * F_CPU )) |
#endif //_MAIN_H |
/branches/salvo_gps/Basis_v0067g/tags/v0004/makefile |
---|
0,0 → 1,411 |
#-------------------------------------------------------------------- |
# MCU name |
MCU = atmega644 |
F_CPU = 20000000 |
#------------------------------------------------------------------- |
HAUPT_VERSION = 0 |
NEBEN_VERSION = 04 |
VERSION_INDEX = 0 |
VERSION_KOMPATIBEL = 7 # PC-Kompatibilität |
#------------------------------------------------------------------- |
ifeq ($(MCU), atmega32) |
# FUSE_SETTINGS= -u -U lfuse:w:0xff:m -U hfuse:w:0xcf:m |
HEX_NAME = MEGA32 |
endif |
ifeq ($(MCU), atmega644) |
FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
#FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
# -u bei neuen Controllern wieder einspielen |
HEX_NAME = MEGA644 |
endif |
ifeq ($(F_CPU), 16000000) |
QUARZ = 16MHZ |
endif |
ifeq ($(F_CPU), 20000000) |
QUARZ = 20MHZ |
endif |
# Output format. (can be srec, ihex, binary) |
FORMAT = ihex |
# Target file name (without extension). |
ifeq ($(VERSION_INDEX), 0) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)a |
endif |
ifeq ($(VERSION_INDEX), 1) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)b |
endif |
ifeq ($(VERSION_INDEX), 2) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)c |
endif |
ifeq ($(VERSION_INDEX), 3) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)d |
endif |
ifeq ($(VERSION_INDEX), 4) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)e |
endif |
ifeq ($(VERSION_INDEX), 5) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)f |
endif |
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization. |
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
OPT = s |
########################################################################################################## |
# List C source files here. (C dependencies are automatically generated.) |
SRC = main.c uart.c printf_P.c timer0.c analog.c menu.c |
SRC += twimaster.c rc.c fc.c GPS.c math.c |
#spi.c |
########################################################################################################## |
# List Assembler source files here. |
# Make them always end in a capital .S. Files ending in a lowercase .s |
# will not be considered source files but generated files (assembler |
# output from the compiler), and will be deleted upon "make clean"! |
# Even though the DOS/Win* filesystem matches both .s and .S the same, |
# it will preserve the spelling of the filenames, and gcc itself does |
# care about how the name is spelled on its command-line. |
ASRC = |
# List any extra directories to look for include files here. |
# Each directory must be seperated by a space. |
EXTRAINCDIRS = |
# Optional compiler flags. |
# -g: generate debugging information (for GDB, or for COFF conversion) |
# -O*: optimization level |
# -f...: tuning, see gcc manual and avr-libc documentation |
# -Wall...: warning level |
# -Wa,...: tell GCC to pass this to the assembler. |
# -ahlms: create assembler listing |
CFLAGS = -O$(OPT) \ |
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \ |
-Wall -Wstrict-prototypes \ |
-Wa,-adhlns=$(<:.c=.lst) \ |
$(patsubst %,-I%,$(EXTRAINCDIRS)) |
# Set a "language standard" compiler flag. |
# Unremark just one line below to set the language standard to use. |
# gnu99 = C99 + GNU extensions. See GCC manual for more information. |
#CFLAGS += -std=c89 |
#CFLAGS += -std=gnu89 |
#CFLAGS += -std=c99 |
CFLAGS += -std=gnu99 |
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) -DVERSION_KOMPATIBEL=$(VERSION_KOMPATIBEL) -DVERSION_INDEX=$(VERSION_INDEX) |
# Optional assembler flags. |
# -Wa,...: tell GCC to pass this to the assembler. |
# -ahlms: create listing |
# -gstabs: have the assembler create line number information; note that |
# for use in COFF files, additional information about filenames |
# and function names needs to be present in the assembler source |
# files -- see avr-libc docs [FIXME: not yet described there] |
ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs |
# Optional linker flags. |
# -Wl,...: tell GCC to pass this to linker. |
# -Map: create map file |
# --cref: add cross reference to map file |
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref |
# Additional libraries |
# Minimalistic printf version |
#LDFLAGS += -Wl,-u,vfprintf -lprintf_min |
# Floating point printf version (requires -lm below) |
#LDFLAGS += -Wl,-u,vfprintf -lprintf_flt |
# -lm = math library |
LDFLAGS += -lm |
##LDFLAGS += -T./linkerfile/avr5.x |
# Programming support using avrdude. Settings and variables. |
# Programming hardware: alf avr910 avrisp bascom bsd |
# dt006 pavr picoweb pony-stk200 sp12 stk200 stk500 |
# |
# Type: avrdude -c ? |
# to get a full listing. |
# |
#AVRDUDE_PROGRAMMER = stk200 |
AVRDUDE_PROGRAMMER = dt006 |
#AVRDUDE_PROGRAMMER = ponyser |
#falls Ponyser ausgewählt wird, muss sich unsere avrdude-Configdatei im Bin-Verzeichnis des Compilers befinden |
#AVRDUDE_PORT = com1 # programmer connected to serial device |
AVRDUDE_PORT = lpt1 # programmer connected to parallel port |
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS) |
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) |
# Uncomment the following if you want avrdude's erase cycle counter. |
# Note that this counter needs to be initialized first using -Yn, |
# see avrdude manual. |
#AVRDUDE_ERASE += -y |
# Uncomment the following if you do /not/ wish a verification to be |
# performed after programming the device. |
AVRDUDE_FLAGS += -V |
# Increase verbosity level. Please use this when submitting bug |
# reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> |
# to submit bug reports. |
#AVRDUDE_FLAGS += -v -v |
# --------------------------------------------------------------------------- |
# Define directories, if needed. |
DIRAVR = c:/winavr |
DIRAVRBIN = $(DIRAVR)/bin |
DIRAVRUTILS = $(DIRAVR)/utils/bin |
DIRINC = . |
DIRLIB = $(DIRAVR)/avr/lib |
# Define programs and commands. |
SHELL = sh |
CC = avr-gcc |
OBJCOPY = avr-objcopy |
OBJDUMP = avr-objdump |
SIZE = avr-size |
# Programming support using avrdude. |
AVRDUDE = avrdude |
REMOVE = rm -f |
COPY = cp |
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex |
ELFSIZE = $(SIZE) -A $(TARGET).elf |
# Define Messages |
# English |
MSG_ERRORS_NONE = Errors: none |
MSG_BEGIN = -------- begin -------- |
MSG_END = -------- end -------- |
MSG_SIZE_BEFORE = Size before: |
MSG_SIZE_AFTER = Size after: |
MSG_COFF = Converting to AVR COFF: |
MSG_EXTENDED_COFF = Converting to AVR Extended COFF: |
MSG_FLASH = Creating load file for Flash: |
MSG_EEPROM = Creating load file for EEPROM: |
MSG_EXTENDED_LISTING = Creating Extended Listing: |
MSG_SYMBOL_TABLE = Creating Symbol Table: |
MSG_LINKING = Linking: |
MSG_COMPILING = Compiling: |
MSG_ASSEMBLING = Assembling: |
MSG_CLEANING = Cleaning project: |
# Define all object files. |
OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) |
# Define all listing files. |
LST = $(ASRC:.S=.lst) $(SRC:.c=.lst) |
# Combine all necessary flags and optional flags. |
# Add target processor to flags. |
#ALL_CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I. $(CFLAGS) |
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) |
ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS) |
# Default target. |
all: begin gccversion sizebefore $(TARGET).elf $(TARGET).hex $(TARGET).eep \ |
$(TARGET).lss $(TARGET).sym sizeafter finished end |
# Eye candy. |
# AVR Studio 3.x does not check make's exit code but relies on |
# the following magic strings to be generated by the compile job. |
begin: |
@echo |
@echo $(MSG_BEGIN) |
finished: |
@echo $(MSG_ERRORS_NONE) |
end: |
@echo $(MSG_END) |
@echo |
# Display size of file. |
sizebefore: |
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi |
sizeafter: |
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi |
# Display compiler version information. |
gccversion : |
@$(CC) --version |
# Convert ELF to COFF for use in debugging / simulating in |
# AVR Studio or VMLAB. |
COFFCONVERT=$(OBJCOPY) --debugging \ |
--change-section-address .data-0x800000 \ |
--change-section-address .bss-0x800000 \ |
--change-section-address .noinit-0x800000 \ |
--change-section-address .eeprom-0x810000 |
coff: $(TARGET).elf |
@echo |
@echo $(MSG_COFF) $(TARGET).cof |
$(COFFCONVERT) -O coff-avr $< $(TARGET).cof |
extcoff: $(TARGET).elf |
@echo |
@echo $(MSG_EXTENDED_COFF) $(TARGET).cof |
$(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof |
# Program the device. |
program: $(TARGET).hex $(TARGET).eep |
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) |
# Create final output files (.hex, .eep) from ELF output file. |
%.hex: %.elf |
@echo |
@echo $(MSG_FLASH) $@ |
$(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@ |
%.eep: %.elf |
@echo |
@echo $(MSG_EEPROM) $@ |
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \ |
--change-section-lma .eeprom=0 -O $(FORMAT) $< $@ |
# Create extended listing file from ELF output file. |
%.lss: %.elf |
@echo |
@echo $(MSG_EXTENDED_LISTING) $@ |
$(OBJDUMP) -h -S $< > $@ |
# Create a symbol table from ELF output file. |
%.sym: %.elf |
@echo |
@echo $(MSG_SYMBOL_TABLE) $@ |
avr-nm -n $< > $@ |
# Link: create ELF output file from object files. |
.SECONDARY : $(TARGET).elf |
.PRECIOUS : $(OBJ) |
%.elf: $(OBJ) |
@echo |
@echo $(MSG_LINKING) $@ |
$(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS) |
# Compile: create object files from C source files. |
%.o : %.c |
@echo |
@echo $(MSG_COMPILING) $< |
$(CC) -c $(ALL_CFLAGS) $< -o $@ |
# Compile: create assembler files from C source files. |
%.s : %.c |
$(CC) -S $(ALL_CFLAGS) $< -o $@ |
# Assemble: create object files from assembler source files. |
%.o : %.S |
@echo |
@echo $(MSG_ASSEMBLING) $< |
$(CC) -c $(ALL_ASFLAGS) $< -o $@ |
# Target: clean project. |
clean: begin clean_list finished end |
clean_list : |
@echo |
@echo $(MSG_CLEANING) |
# $(REMOVE) $(TARGET).hex |
$(REMOVE) $(TARGET).eep |
$(REMOVE) $(TARGET).obj |
$(REMOVE) $(TARGET).cof |
$(REMOVE) $(TARGET).elf |
$(REMOVE) $(TARGET).map |
$(REMOVE) $(TARGET).obj |
$(REMOVE) $(TARGET).a90 |
$(REMOVE) $(TARGET).sym |
$(REMOVE) $(TARGET).lnk |
$(REMOVE) $(TARGET).lss |
$(REMOVE) $(OBJ) |
$(REMOVE) $(LST) |
$(REMOVE) $(SRC:.c=.s) |
$(REMOVE) $(SRC:.c=.d) |
# Automatically generate C source code dependencies. |
# (Code originally taken from the GNU make user manual and modified |
# (See README.txt Credits).) |
# |
# Note that this will work with sh (bash) and sed that is shipped with WinAVR |
# (see the SHELL variable defined above). |
# This may not work with other shells or other seds. |
# |
%.d: %.c |
set -e; $(CC) -MM $(ALL_CFLAGS) $< \ |
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > $@; \ |
[ -s $@ ] || rm -f $@ |
# Remove the '-' if you want to see the dependency files generated. |
-include $(SRC:.c=.d) |
# Listing of phony targets. |
.PHONY : all begin finish end sizebefore sizeafter gccversion coff extcoff \ |
clean clean_list program |
/branches/salvo_gps/Basis_v0067g/tags/v0004/math.c |
---|
0,0 → 1,127 |
/* |
This program (files math.c and math.h) is free software; you can redistribute it and/or modify |
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; |
either version 3 of the License, or (at your option) any later version. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License and GNU Lesser General Public License for more details. |
You should have received a copy of GNU General Public License (License_GPL.txt) and |
GNU Lesser General Public License (License_LGPL.txt) along with this program. |
If not, see <http://www.gnu.org/licenses/>. |
Please note: All the other files for the project "Mikrokopter" by H.Buss are under the license (license_buss.txt) published by www.mikrokopter.de |
*/ |
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
Peter Muehlenbrock |
Winkelfunktionen sin, cos und arctan in |
brute-force Art: Sehr Schnell, nicht sonderlich genau, aber ausreichend |
get_dist Funktion fuer Entfernungsermittlung |
Stand 12.10.2007 |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
*/ |
#include "main.h" |
#include "math.h" |
// arctan Funktion: Eingabewert x,y Rueckgabe =arctan(x,y) in grad |
int arctan_i( signed int x, signed int y) |
{ |
short int change_xy = 0; |
signed int i; |
long signed int wert; |
int return_value; |
if ((abs(x)) > (abs(y))) // x,y Werte vertauschen damit arctan <45 grad bleibt |
{ |
change_xy = 1; |
i = x; |
x = y; |
y = i; |
} |
// Quadranten ermitteln |
// Wert durch lineare Interpolation ermitteln |
if ((y == 0) && (x == 0)) wert =1; // Division durch 0 nicht erlaubt |
else wert= abs(((long)x*1000)/((long)y)); |
if (wert <=268) //0...0.0,268 entsprechend 0..15 Grad |
{ |
return_value = (signed int)((wert*100)/(268-0)*(15-0)/100) +0; |
} |
else if (wert <=578) //0,268...0.0,568 entsprechend 15..30 Grad |
{ |
return_value = (signed int)((((wert-268)*100)/(578-268)*(30-15))/100) +15; |
} |
else //0,568...1 entsprechend 30..45 Grad |
{ |
return_value = (signed int)((((wert-578)*50)/(1000-578)*(45-30))/50) +30; |
} |
if (change_xy == 0) return_value = 90-return_value; //Quadrant 45..90 Grad |
if ((x >= 0) && (y <0)) return_value = - return_value; |
else if ((x < 0) && (y >= 0)) return_value = - return_value; |
return return_value; |
} |
// cosinus Funktion: Eingabewert Winkel in Grad, Rueckgabe =cos(winkel)*1000 |
signed int cos_i(signed int winkel) |
{ |
winkel = sin_i(90-winkel); |
return winkel; |
} |
const unsigned int pgm_sinus[91] PROGMEM = {0,17,35,52,70,87,105,122,139,156,174,191,208,225,242,259,276,292,309,326,342,358,375,391,407,423,438,454,469,485,500,515,530,545,559,574,588,602,616,629,643,656,669,682,695,707,719,731,743,755,766,777,788,799,809,819,829,839,848,857,866,875,883,891,899,906,914,921,927,934,940,946,951,956,961,966,970,974,978,982,985,988,990,993,995,996,998,999,999,1000,1000}; |
//von Nick666, Stand 28.9.2007 |
// sinus Funktion: Eingabewert Winkel in Grad, Rueckgabe =sin(winkel)*1000 |
signed int sin_i(signed int winkel) |
{ |
short int m,n; |
if (abs(winkel) >=360) winkel = winkel % 360; |
if (winkel < 0) |
{ |
m = -1; |
winkel = abs(winkel); |
} |
else m = +1; |
n =1; |
// Quadranten auswerten |
if ((winkel > 90 ) && (winkel <= 180)) winkel = 180 - winkel; |
else if ((winkel > 180 ) && (winkel <= 270)) |
{ |
winkel = winkel -180; |
n = -1; |
} |
else if ((winkel > 270) && (winkel <= 360)) |
{ |
winkel = 360 - winkel; |
n = -1; |
} |
// else //0 - 90 Grad |
winkel = pgm_read_word(&pgm_sinus[winkel]); |
return (winkel*m*n); |
} |
// Aus x,y und Winkel Distanz ermitteln |
long get_dist(signed int x, signed int y, signed int phi) |
{ |
long dist; |
if (abs(x) > abs(y) ) |
{ |
dist = (long) x; //Groesseren Wert wegen besserer Genauigkeit nehmen |
dist = abs((dist *1000) / (long) sin_i(phi)); |
} |
else |
{ |
dist = (long) y; |
dist = abs((dist *1000) / (long) cos_i(phi)); |
} |
return dist; |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/math.h |
---|
0,0 → 1,11 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Peter Muehlenbrock |
// Definitionen fuer Modul math |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
extern signed int sin_i(signed int winkel); |
extern signed int cos_i(signed int winkel); |
extern signed int arctan_i(signed int x, signed int y); |
extern long get_dist(signed int x, signed int y, signed int phi); |
/branches/salvo_gps/Basis_v0067g/tags/v0004/menu.c |
---|
0,0 → 1,127 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
unsigned int TestInt = 0; |
#define ARRAYGROESSE 10 |
unsigned char Array[ARRAYGROESSE] = {1,2,3,4,5,6,7,8,9,10}; |
char DisplayBuff[80] = "Hallo Welt"; |
unsigned char DispPtr = 0; |
unsigned char RemoteTasten = 0; |
#define KEY1 0x01 |
#define KEY2 0x02 |
#define KEY3 0x04 |
#define KEY4 0x08 |
#define KEY5 0x10 |
void LcdClear(void) |
{ |
unsigned char i; |
for(i=0;i<80;i++) DisplayBuff[i] = ' '; |
} |
void Menu(void) |
{ |
static unsigned char MaxMenue = 10,MenuePunkt=0; |
if(RemoteTasten & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue; LcdClear(); RemotePollDisplayLine = -1; } |
if(RemoteTasten & KEY2) { MenuePunkt++; LcdClear(); RemotePollDisplayLine = -1;} |
if((RemoteTasten & KEY1) && (RemoteTasten & KEY2)) MenuePunkt = 0; |
LCD_printfxy(17,0,"[%i]",MenuePunkt); |
switch(MenuePunkt) |
{ |
case 0: |
LCD_printfxy(0,0,"++ MikroKopter ++"); |
LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10,VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX+'a'); |
LCD_printfxy(0,2,"Setting: %d ",GetActiveParamSetNumber()); |
LCD_printfxy(0,3,"(c) Holger Buss"); |
// if(RemoteTasten & KEY3) TestInt--; |
// if(RemoteTasten & KEY4) TestInt++; |
break; |
case 1: |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
LCD_printfxy(0,0,"Hoehe: %5i",HoehenWert); |
LCD_printfxy(0,1,"SollHoehe: %5i",SollHoehe); |
LCD_printfxy(0,2,"Luftdruck: %5i",MessLuftdruck); |
LCD_printfxy(0,3,"Off : %5i",DruckOffsetSetting); |
} |
else |
{ |
LCD_printfxy(0,1,"Keine "); |
LCD_printfxy(0,2,"Höhenregelung"); |
} |
break; |
case 2: |
LCD_printfxy(0,0,"akt. Lage"); |
LCD_printfxy(0,1,"Nick: %5i",IntegralNick/1024); |
LCD_printfxy(0,2,"Roll: %5i",IntegralRoll/1024); |
LCD_printfxy(0,3,"Kompass: %5i",KompassValue); |
break; |
case 3: |
LCD_printfxy(0,0,"K1:%4i K2:%4i ",PPM_in[1],PPM_in[2]); |
LCD_printfxy(0,1,"K3:%4i K4:%4i ",PPM_in[3],PPM_in[4]); |
LCD_printfxy(0,2,"K5:%4i K6:%4i ",PPM_in[5],PPM_in[6]); |
LCD_printfxy(0,3,"K7:%4i K8:%4i ",PPM_in[7],PPM_in[8]); |
break; |
case 4: |
LCD_printfxy(0,0,"Ni:%4i Ro:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_NICK]],PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]); |
LCD_printfxy(0,1,"Gs:%4i Gi:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_GAS]],PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]); |
LCD_printfxy(0,2,"P1:%4i P2:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]],PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]]); |
LCD_printfxy(0,3,"P3:%4i P4:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]],PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]]); |
break; |
case 5: |
LCD_printfxy(0,0,"Gyro - Sensor"); |
if(PlatinenVersion == 10) |
{ |
LCD_printfxy(0,1,"Nick %4i (%3i)",AdWertNick - AdNeutralNick, AdNeutralNick); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AdWertRoll - AdNeutralRoll, AdNeutralRoll); |
LCD_printfxy(0,3,"Gier %4i (%3i)",MesswertGier, AdNeutralGier); |
} |
else |
{ |
LCD_printfxy(0,1,"Nick %4i (%3i)",AdWertNick - AdNeutralNick, AdNeutralNick/2); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AdWertRoll - AdNeutralRoll, AdNeutralRoll/2); |
LCD_printfxy(0,3,"Gier %4i (%3i)",MesswertGier, AdNeutralGier/2); |
} |
break; |
case 6: |
LCD_printfxy(0,0,"ACC - Sensor"); |
LCD_printfxy(0,1,"Nick %4i (%3i)",AdWertAccNick,NeutralAccX); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AdWertAccRoll,NeutralAccY); |
LCD_printfxy(0,3,"Hoch %4i (%3i)",Mittelwert_AccHoch/*accumulate_AccHoch / messanzahl_AccHoch*/,(int)NeutralAccZ); |
break; |
case 7: |
LCD_printfxy(0,1,"Spannung: %5i",UBat); |
LCD_printfxy(0,2,"Empf.Pegel:%5i",SenderOkay); |
break; |
case 8: |
LCD_printfxy(0,0,"Kompass "); |
LCD_printfxy(0,1,"Richtung: %5i",KompassRichtung); |
LCD_printfxy(0,2,"Messwert: %5i",KompassValue); |
LCD_printfxy(0,3,"Start: %5i",KompassStartwert); |
break; |
case 9: |
LCD_printfxy(0,0,"Poti1: %3i",Poti1); |
LCD_printfxy(0,1,"Poti2: %3i",Poti2); |
LCD_printfxy(0,2,"Poti3: %3i",Poti3); |
LCD_printfxy(0,3,"Poti4: %3i",Poti4); |
break; |
case 10: |
LCD_printfxy(0,0,"Servo " ); |
LCD_printfxy(0,1,"Setpoint %3i",Parameter_ServoNickControl); |
LCD_printfxy(0,2,"Stellung: %3i",ServoValue); |
LCD_printfxy(0,3,"Range:%3i-%3i",EE_Parameter.ServoNickMin,EE_Parameter.ServoNickMax); |
break; |
default: MaxMenue = MenuePunkt - 1; |
MenuePunkt = 0; |
break; |
} |
RemoteTasten = 0; |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/menu.h |
---|
0,0 → 1,6 |
extern void Menu(void); |
extern void LcdClear(void); |
extern char DisplayBuff[80]; |
extern unsigned char DispPtr; |
extern unsigned char RemoteTasten; |
/branches/salvo_gps/Basis_v0067g/tags/v0004/old_macros.h |
---|
0,0 → 1,47 |
/* |
For backwards compatibility only. |
Ingo Busker ingo@mikrocontroller.com |
*/ |
#ifndef cbi |
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) |
#endif |
#ifndef sbi |
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) |
#endif |
#ifndef inb |
#define inb(sfr) _SFR_BYTE(sfr) |
#endif |
#ifndef outb |
#define outb(sfr, val) (_SFR_BYTE(sfr) = (val)) |
#endif |
#ifndef inw |
#define inw(sfr) _SFR_WORD(sfr) |
#endif |
#ifndef outw |
#define outw(sfr, val) (_SFR_WORD(sfr) = (val)) |
#endif |
#ifndef outp |
#define outp(val, sfr) outb(sfr, val) |
#endif |
#ifndef inp |
#define inp(sfr) inb(sfr) |
#endif |
#ifndef BV |
#define BV(bit) _BV(bit) |
#endif |
#ifndef PRG_RDB |
#define PRG_RDB pgm_read_byte |
#endif |
/branches/salvo_gps/Basis_v0067g/tags/v0004/printf_P.c |
---|
0,0 → 1,480 |
// Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist nicht von der Lizenz für den MikroKopter-Teil unterstellt |
/* |
Copyright (C) 1993 Free Software Foundation |
This file is part of the GNU IO Library. This library is free |
software; you can redistribute it and/or modify it under the |
terms of the GNU General Public License as published by the |
Free Software Foundation; either version 2, or (at your option) |
any later version. |
This library is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this library; see the file COPYING. If not, write to the Free |
Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
As a special exception, if you link this library with files |
compiled with a GNU compiler to produce an executable, this does not cause |
the resulting executable to be covered by the GNU General Public License. |
This exception does not however invalidate any other reasons why |
the executable file might be covered by the GNU General Public License. */ |
/* |
* Copyright (c) 1990 Regents of the University of California. |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* are met: |
* 1. Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* 2. Redistributions in binary form must reproduce the above copyright |
* notice, this list of conditions and the following disclaimer in the |
* documentation and/or other materials provided with the distribution. |
* 3. [rescinded 22 July 1999] |
* 4. Neither the name of the University nor the names of its contributors |
* may be used to endorse or promote products derived from this software |
* without specific prior written permission. |
* |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* SUCH DAMAGE. |
*/ |
/****************************************************************************** |
This file is a patched version of printf called _printf_P |
It is made to work with avr-gcc for Atmel AVR MCUs. |
There are some differences from standard printf: |
1. There is no floating point support (with fp the code is about 8K!) |
2. Return type is void |
3. Format string must be in program memory (by using macro printf this is |
done automaticaly) |
4. %n is not implemented (just remove the comment around it if you need it) |
5. If LIGHTPRINTF is defined, the code is about 550 bytes smaller and the |
folowing specifiers are disabled : |
space # * . - + p s o O |
6. A function void uart_sendchar(char c) is used for output. The UART must |
be initialized before using printf. |
Alexander Popov |
sasho@vip.orbitel.bg |
******************************************************************************/ |
/* |
* Actual printf innards. |
* |
* This code is large and complicated... |
*/ |
#include <string.h> |
#ifdef __STDC__ |
#include <stdarg.h> |
#else |
#include <varargs.h> |
#endif |
#include "main.h" |
//#define LIGHTPRINTF |
char PrintZiel; |
char Putchar(char zeichen) |
{ |
if(PrintZiel == OUT_LCD) { DisplayBuff[DispPtr++] = zeichen; return(1);} |
else return(uart_putchar(zeichen)); |
} |
void PRINT(const char * ptr, unsigned int len) |
{ |
for(;len;len--) Putchar(*ptr++); |
} |
void PRINTP(const char * ptr, unsigned int len) |
{ |
for(;len;len--) Putchar(pgm_read_byte(ptr++)); |
} |
void PAD_SP(signed char howmany) |
{ |
for(;howmany>0;howmany--) Putchar(' '); |
} |
void PAD_0(signed char howmany) |
{ |
for(;howmany>0;howmany--) Putchar('0'); |
} |
#define BUF 40 |
/* |
* Macros for converting digits to letters and vice versa |
*/ |
#define to_digit(c) ((c) - '0') |
#define is_digit(c) ((c)<='9' && (c)>='0') |
#define to_char(n) ((n) + '0') |
/* |
* Flags used during conversion. |
*/ |
#define LONGINT 0x01 /* long integer */ |
#define LONGDBL 0x02 /* long double; unimplemented */ |
#define SHORTINT 0x04 /* short integer */ |
#define ALT 0x08 /* alternate form */ |
#define LADJUST 0x10 /* left adjustment */ |
#define ZEROPAD 0x20 /* zero (as opposed to blank) pad */ |
#define HEXPREFIX 0x40 /* add 0x or 0X prefix */ |
void _printf_P (char ziel,char const *fmt0, ...) /* Works with string from FLASH */ |
{ |
va_list ap; |
register const char *fmt; /* format string */ |
register char ch; /* character from fmt */ |
register int n; /* handy integer (short term usage) */ |
register char *cp; /* handy char pointer (short term usage) */ |
const char *fmark; /* for remembering a place in fmt */ |
register unsigned char flags; /* flags as above */ |
signed char width; /* width from format (%8d), or 0 */ |
signed char prec; /* precision from format (%.3d), or -1 */ |
char sign; /* sign prefix (' ', '+', '-', or \0) */ |
unsigned long _ulong=0; /* integer arguments %[diouxX] */ |
#define OCT 8 |
#define DEC 10 |
#define HEX 16 |
unsigned char base; /* base for [diouxX] conversion */ |
signed char dprec; /* a copy of prec if [diouxX], 0 otherwise */ |
signed char dpad; /* extra 0 padding needed for integers */ |
signed char fieldsz; /* field size expanded by sign, dpad etc */ |
/* The initialization of 'size' is to suppress a warning that |
'size' might be used unitialized. It seems gcc can't |
quite grok this spaghetti code ... */ |
signed char size = 0; /* size of converted field or string */ |
char buf[BUF]; /* space for %c, %[diouxX], %[eEfgG] */ |
char ox[2]; /* space for 0x hex-prefix */ |
PrintZiel = ziel; // bestimmt, LCD oder UART |
va_start(ap, fmt0); |
fmt = fmt0; |
/* |
* Scan the format for conversions (`%' character). |
*/ |
for (;;) { |
for (fmark = fmt; (ch = pgm_read_byte(fmt)) != '\0' && ch != '%'; fmt++) |
/* void */; |
if ((n = fmt - fmark) != 0) { |
PRINTP(fmark, n); |
} |
if (ch == '\0') |
goto done; |
fmt++; /* skip over '%' */ |
flags = 0; |
dprec = 0; |
width = 0; |
prec = -1; |
sign = '\0'; |
rflag: ch = PRG_RDB(fmt++); |
reswitch: |
#ifdef LIGHTPRINTF |
if (ch=='o' || ch=='u' || (ch|0x20)=='x') { |
#else |
if (ch=='u' || (ch|0x20)=='x') { |
#endif |
if (flags&LONGINT) { |
_ulong=va_arg(ap, unsigned long); |
} else { |
register unsigned int _d; |
_d=va_arg(ap, unsigned int); |
_ulong = flags&SHORTINT ? (unsigned long)(unsigned short)_d : (unsigned long)_d; |
} |
} |
#ifndef LIGHTPRINTF |
if(ch==' ') { |
/* |
* ``If the space and + flags both appear, the space |
* flag will be ignored.'' |
* -- ANSI X3J11 |
*/ |
if (!sign) |
sign = ' '; |
goto rflag; |
} else if (ch=='#') { |
flags |= ALT; |
goto rflag; |
} else if (ch=='*'||ch=='-') { |
if (ch=='*') { |
/* |
* ``A negative field width argument is taken as a |
* - flag followed by a positive field width.'' |
* -- ANSI X3J11 |
* They don't exclude field widths read from args. |
*/ |
if ((width = va_arg(ap, int)) >= 0) |
goto rflag; |
width = -width; |
} |
flags |= LADJUST; |
flags &= ~ZEROPAD; /* '-' disables '0' */ |
goto rflag; |
} else if (ch=='+') { |
sign = '+'; |
goto rflag; |
} else if (ch=='.') { |
if ((ch = PRG_RDB(fmt++)) == '*') { |
n = va_arg(ap, int); |
prec = n < 0 ? -1 : n; |
goto rflag; |
} |
n = 0; |
while (is_digit(ch)) { |
n = n*10 + to_digit(ch); |
ch = PRG_RDB(fmt++); |
} |
prec = n < 0 ? -1 : n; |
goto reswitch; |
} else |
#endif /* LIGHTPRINTF */ |
if (ch=='0') { |
/* |
* ``Note that 0 is taken as a flag, not as the |
* beginning of a field width.'' |
* -- ANSI X3J11 |
*/ |
if (!(flags & LADJUST)) |
flags |= ZEROPAD; /* '-' disables '0' */ |
goto rflag; |
} else if (ch>='1' && ch<='9') { |
n = 0; |
do { |
n = 10 * n + to_digit(ch); |
ch = PRG_RDB(fmt++); |
} while (is_digit(ch)); |
width = n; |
goto reswitch; |
} else if (ch=='h') { |
flags |= SHORTINT; |
goto rflag; |
} else if (ch=='l') { |
flags |= LONGINT; |
goto rflag; |
} else if (ch=='c') { |
*(cp = buf) = va_arg(ap, int); |
size = 1; |
sign = '\0'; |
} else if (ch=='D'||ch=='d'||ch=='i') { |
if(ch=='D') |
flags |= LONGINT; |
if (flags&LONGINT) { |
_ulong=va_arg(ap, long); |
} else { |
register int _d; |
_d=va_arg(ap, int); |
_ulong = flags&SHORTINT ? (long)(short)_d : (long)_d; |
} |
if ((long)_ulong < 0) { |
_ulong = -_ulong; |
sign = '-'; |
} |
base = DEC; |
goto number; |
} else |
/* |
if (ch=='n') { |
if (flags & LONGINT) |
*va_arg(ap, long *) = ret; |
else if (flags & SHORTINT) |
*va_arg(ap, short *) = ret; |
else |
*va_arg(ap, int *) = ret; |
continue; // no output |
} else |
*/ |
#ifndef LIGHTPRINTF |
if (ch=='O'||ch=='o') { |
if (ch=='O') |
flags |= LONGINT; |
base = OCT; |
goto nosign; |
} else if (ch=='p') { |
/* |
* ``The argument shall be a pointer to void. The |
* value of the pointer is converted to a sequence |
* of printable characters, in an implementation- |
* defined manner.'' |
* -- ANSI X3J11 |
*/ |
/* NOSTRICT */ |
_ulong = (unsigned int)va_arg(ap, void *); |
base = HEX; |
flags |= HEXPREFIX; |
ch = 'x'; |
goto nosign; |
} else if (ch=='s') { // print a string from RAM |
if ((cp = va_arg(ap, char *)) == NULL) { |
cp=buf; |
cp[0] = '('; |
cp[1] = 'n'; |
cp[2] = 'u'; |
cp[4] = cp[3] = 'l'; |
cp[5] = ')'; |
cp[6] = '\0'; |
} |
if (prec >= 0) { |
/* |
* can't use strlen; can only look for the |
* NUL in the first `prec' characters, and |
* strlen() will go further. |
*/ |
char *p = (char*)memchr(cp, 0, prec); |
if (p != NULL) { |
size = p - cp; |
if (size > prec) |
size = prec; |
} else |
size = prec; |
} else |
size = strlen(cp); |
sign = '\0'; |
} else |
#endif /* LIGHTPRINTF */ |
if(ch=='U'||ch=='u') { |
if (ch=='U') |
flags |= LONGINT; |
base = DEC; |
goto nosign; |
} else if (ch=='X'||ch=='x') { |
base = HEX; |
/* leading 0x/X only if non-zero */ |
if (flags & ALT && _ulong != 0) |
flags |= HEXPREFIX; |
/* unsigned conversions */ |
nosign: sign = '\0'; |
/* |
* ``... diouXx conversions ... if a precision is |
* specified, the 0 flag will be ignored.'' |
* -- ANSI X3J11 |
*/ |
number: if ((dprec = prec) >= 0) |
flags &= ~ZEROPAD; |
/* |
* ``The result of converting a zero value with an |
* explicit precision of zero is no characters.'' |
* -- ANSI X3J11 |
*/ |
cp = buf + BUF; |
if (_ulong != 0 || prec != 0) { |
register unsigned char _d,notlastdigit; |
do { |
notlastdigit=(_ulong>=base); |
_d = _ulong % base; |
if (_d<10) { |
_d+='0'; |
} else { |
_d+='a'-10; |
if (ch=='X') _d&=~0x20; |
} |
*--cp=_d; |
_ulong /= base; |
} while (notlastdigit); |
#ifndef LIGHTPRINTF |
// handle octal leading 0 |
if (base==OCT && flags & ALT && *cp != '0') |
*--cp = '0'; |
#endif |
} |
size = buf + BUF - cp; |
} else { //default |
/* "%?" prints ?, unless ? is NUL */ |
if (ch == '\0') |
goto done; |
/* pretend it was %c with argument ch */ |
cp = buf; |
*cp = ch; |
size = 1; |
sign = '\0'; |
} |
/* |
* All reasonable formats wind up here. At this point, |
* `cp' points to a string which (if not flags&LADJUST) |
* should be padded out to `width' places. If |
* flags&ZEROPAD, it should first be prefixed by any |
* sign or other prefix; otherwise, it should be blank |
* padded before the prefix is emitted. After any |
* left-hand padding and prefixing, emit zeroes |
* required by a decimal [diouxX] precision, then print |
* the string proper, then emit zeroes required by any |
* leftover floating precision; finally, if LADJUST, |
* pad with blanks. |
*/ |
/* |
* compute actual size, so we know how much to pad. |
*/ |
fieldsz = size; |
dpad = dprec - size; |
if (dpad < 0) |
dpad = 0; |
if (sign) |
fieldsz++; |
else if (flags & HEXPREFIX) |
fieldsz += 2; |
fieldsz += dpad; |
/* right-adjusting blank padding */ |
if ((flags & (LADJUST|ZEROPAD)) == 0) |
PAD_SP(width - fieldsz); |
/* prefix */ |
if (sign) { |
PRINT(&sign, 1); |
} else if (flags & HEXPREFIX) { |
ox[0] = '0'; |
ox[1] = ch; |
PRINT(ox, 2); |
} |
/* right-adjusting zero padding */ |
if ((flags & (LADJUST|ZEROPAD)) == ZEROPAD) |
PAD_0(width - fieldsz); |
/* leading zeroes from decimal precision */ |
PAD_0(dpad); |
/* the string or number proper */ |
PRINT(cp, size); |
/* left-adjusting padding (always blank) */ |
if (flags & LADJUST) |
PAD_SP(width - fieldsz); |
} |
done: |
va_end(ap); |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/printf_P.h |
---|
0,0 → 1,19 |
#ifndef _PRINTF_P_H_ |
#define _PRINTF_P_H_ |
#include <avr/pgmspace.h> |
#define OUT_V24 0 |
#define OUT_LCD 1 |
void _printf_P (char, char const *fmt0, ...); |
extern char PrintZiel; |
#define printf_P(format, args...) _printf_P(OUT_V24,format , ## args) |
#define printf(format, args...) _printf_P(OUT_V24,PSTR(format) , ## args) |
#define LCD_printfxy(x,y,format, args...) { DispPtr = y * 20 + x; _printf_P(OUT_LCD,PSTR(format) , ## args);} |
#define LCD_printf(format, args...) { _printf_P(OUT_LCD,PSTR(format) , ## args);} |
#endif |
/branches/salvo_gps/Basis_v0067g/tags/v0004/rc.c |
---|
0,0 → 1,84 |
/*####################################################################################### |
Decodieren eines RC Summen Signals |
#######################################################################################*/ |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "rc.h" |
#include "main.h" |
volatile int PPM_in[11]; |
volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
volatile unsigned char NewPpmData = 1; |
//############################################################################ |
//zum decodieren des PPM-Signals wird Timer1 mit seiner Input |
//Capture Funktion benutzt: |
void rc_sum_init (void) |
//############################################################################ |
{ |
TCCR1B=(1<<CS11)|(1<<CS10)|(1<<ICES1)|(1<<ICNC1);//|(1 << WGM12); //timer1 prescale 64 |
// PWM |
//TCCR1A = (1 << COM1B1) | (1 << WGM11) | (1 << WGM10); |
//TCCR1B |= (1 << WGM12); |
//OCR1B = 55; |
TIMSK1 |= _BV(ICIE1); |
AdNeutralGier = 0; |
AdNeutralRoll = 0; |
AdNeutralNick = 0; |
return; |
} |
//############################################################################ |
//Diese Routine startet und inizialisiert den Timer für RC |
SIGNAL(SIG_INPUT_CAPTURE1) |
//############################################################################ |
{ |
static unsigned int AltICR=0; |
signed int signal = 0,tmp; |
static int index; |
signal = (unsigned int) ICR1 - AltICR; |
AltICR = ICR1; |
//Syncronisationspause? |
// if((signal > (int) Parameter_UserParam2 * 10) && (signal < 8000)) |
if((signal > 1100) && (signal < 8000)) |
{ |
if(index >= 4) NewPpmData = 0; // Null bedeutet: Neue Daten |
index = 1; |
} |
else |
{ |
if(index < 10) |
{ |
if((signal > 250) && (signal < 687)) |
{ |
signal -= 466; |
// Stabiles Signal |
if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
tmp = (3 * (PPM_in[index]) + signal) / 4; |
// if(tmp > signal+1) tmp--; else |
// if(tmp < signal-1) tmp++; |
PPM_diff[index] = tmp - PPM_in[index]; |
PPM_in[index] = tmp; |
} |
index++; |
if(index == 5) PORTD |= 0x20; else PORTD &= ~0x20; // Servosignal an J3 anlegen |
if(index == 6) PORTD |= 0x10; else PORTD &= ~0x10; // Servosignal an J4 anlegen |
if(index == 7) PORTD |= 0x08; else PORTD &= ~0x08; // Servosignal an J5 anlegen |
} |
} |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/rc.h |
---|
0,0 → 1,29 |
/*####################################################################################### |
Derkodieren eines RC Summen Signals |
#######################################################################################*/ |
#ifndef _RC_H |
#define _RC_H |
#if defined (__AVR_ATmega32__) |
#define TIMER_TEILER CK64 |
#define TIMER_RELOAD_VALUE 250 |
#endif |
#if defined (__AVR_ATmega644__) |
//#define TIMER_TEILER CK64 |
#define TIMER_RELOAD_VALUE 250 |
//#define TIMER_TEILER CK256 // bei 20MHz |
//#define TIMER_RELOAD_VALUE -78 // bei 20MHz |
#endif |
#define GAS PPM_in[2] |
extern void rc_sum_init (void); |
extern volatile int PPM_in[11]; |
extern volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
extern volatile unsigned char NewPpmData; |
#endif //_RC_H |
/branches/salvo_gps/Basis_v0067g/tags/v0004/spi.c |
---|
0,0 → 1,86 |
// ######################## SPI - FlightCtrl ################### |
#include "main.h" |
struct str_ToNaviCtrl ToNaviCtrl; |
struct str_FromNaviCtrl FromNaviCtrl; |
unsigned char SPI_BufferIndex; |
volatile unsigned char SPI_Buffer[sizeof(FromNaviCtrl)]; |
unsigned char *Ptr_buffer = (unsigned char *) &ToNaviCtrl; |
//------------------------------------------------------ |
void SPI_MasterInit(void) |
{ |
DDR_SPI |= (1<<DD_MOSI)|(1<<DD_SCK); // Set MOSI and SCK output, all others input |
SLAVE_SELECT_DDR_PORT |= (1 << SPI_SLAVE_SELECT); |
SPCR = (1<<SPE)|(1<<MSTR)|(1<<SPR1)|(0<<SPIE); // Enable SPI, Master, set clock rate fck/64 |
SLAVE_SELECT_PORT |= (1 << SPI_SLAVE_SELECT); |
} |
//------------------------------------------------------ |
void SPI_StartTransmitPacket(void) |
{ |
if ((SLAVE_SELECT_PORT & (1 << SPI_SLAVE_SELECT)) == 0) return; // transfer of prev. packet not completed |
SLAVE_SELECT_PORT &= ~(1 << SPI_SLAVE_SELECT); // SelectSlave |
UpdateSPI_Buffer(); // update buffer |
SPI_BufferIndex = 1; |
DebugOut.Analog[16]++; |
// -- Debug-Output --- |
cli(); |
DebugOut.Analog[20] = FromNaviCtrl.Comp; |
DebugOut.Analog[21] = FromNaviCtrl.GPS_Nick; |
DebugOut.Analog[22] = FromNaviCtrl.GPS_Roll; |
DebugOut.Analog[23] = FromNaviCtrl.CompassValue; |
sei(); |
//---- |
SPDR = ToNaviCtrl.Comp; // Start transmission |
} |
//------------------------------------------------------ |
//SIGNAL(SIG_SPI) |
void SPI_TransmitByte(void) |
{ |
if (!(SPSR & (1 << SPIF))) return; |
if (SPI_BufferIndex < sizeof(FromNaviCtrl)) |
{ SPI_Buffer[SPI_BufferIndex]= SPDR; // get data |
//if(SPDR!= 0x00) DebugOut.Analog[19]++; ; |
} |
if (SPI_BufferIndex < sizeof(ToNaviCtrl)) |
{ SPDR = Ptr_buffer[SPI_BufferIndex]; |
} |
else |
{ |
unsigned char *ptr = (unsigned char *)&FromNaviCtrl; |
unsigned char i; |
SLAVE_SELECT_PORT |= (1 << SPI_SLAVE_SELECT); // DeselectSlave |
memcpy(ptr, (unsigned char *) SPI_Buffer, sizeof(SPI_Buffer)); |
} |
SPI_BufferIndex++; |
} |
//------------------------------------------------------ |
void UpdateSPI_Buffer(void) |
{ |
cli(); |
ToNaviCtrl.Comp = SPI_PROTOCOL_COMP; |
ToNaviCtrl.IntegralNick = (int) (IntegralNick >> 4); |
ToNaviCtrl.IntegralRoll = (int) (IntegralRoll >> 4); |
ToNaviCtrl.StickNick = (char) StickNick; |
ToNaviCtrl.StickRoll = (char) StickRoll; |
ToNaviCtrl.StickGier = (char) StickGier; |
sei(); |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/spi.h |
---|
0,0 → 1,46 |
// ######################## SPI - FlightCtrl ################### |
#ifndef _SPI_H |
#define _SPI_H |
#define SPI_PROTOCOL_COMP 1 |
//----------------------------------------- |
#define DDR_SPI DDRB |
#define DD_SS PB4 |
#define DD_SCK PB7 |
#define DD_MOSI PB5 |
#define DD_MISO PB6 |
#define SLAVE_SELECT_DDR_PORT DDRC |
#define SLAVE_SELECT_PORT PORTC |
#define SPI_SLAVE_SELECT PC5 |
struct str_ToNaviCtrl |
{ |
unsigned char Comp; |
int IntegralNick; |
int IntegralRoll; |
char StickNick,StickRoll,StickGier; |
}; |
struct str_FromNaviCtrl |
{ |
unsigned char Comp; |
int GPS_Nick; |
int GPS_Roll; |
int CompassValue; |
}; |
extern struct str_ToNaviCtrl ToNaviCtrl; |
extern struct str_FromNaviCtrl FromNaviCtrl; |
extern void SPI_MasterInit(void); |
extern void SPI_StartTransmitPacket(void); |
extern void UpdateSPI_Buffer(void); |
extern void SPI_TransmitByte(void); |
#endif |
/branches/salvo_gps/Basis_v0067g/tags/v0004/timer0.c |
---|
0,0 → 1,192 |
#include "main.h" |
volatile unsigned int CountMilliseconds = 0; |
volatile static unsigned int tim_main; |
volatile unsigned char UpdateMotor = 0; |
volatile unsigned int cntKompass = 0; |
volatile unsigned int beeptime = 0; |
unsigned int BeepMuster = 0xffff; |
int ServoValue = 0; |
//Salvo 8.9.2007 |
volatile uint8_t Kompass_Neuer_Wert= 0; |
volatile unsigned int Kompass_Value_Old = 0; |
// Salvo End |
//Salvo 21.9.2007 |
short unsigned int Kompass_present= 0; //>0 bedeutet dass der Kompass vorhanden ist |
// Salvo End |
enum { |
STOP = 0, |
CK = 1, |
CK8 = 2, |
CK64 = 3, |
CK256 = 4, |
CK1024 = 5, |
T0_FALLING_EDGE = 6, |
T0_RISING_EDGE = 7 |
}; |
// Aenderungen von Peter Muehlenbrock ("Salvo") Stand 24.12.2007 |
/* |
Ersatzkompass abgeleitet aus Magnetkompass und Giergyro fuer nahezu neigungsubhaengige Kompassfunktion |
*/ |
SIGNAL (SIG_OVERFLOW0) // 8kHz |
{ |
static unsigned char cnt_1ms = 1,cnt = 0; |
unsigned char pieper_ein = 0; |
// TCNT0 -= 250;//TIMER_RELOAD_VALUE; |
if(!cnt--) |
{ |
if (Kompass_present > 0) Kompass_present--; //Runterzaehlen. Wenn 0 ist der Kompass nicht vorhanden |
cnt = 9; |
cnt_1ms++; |
cnt_1ms %= 2; |
if(!cnt_1ms) UpdateMotor = 1; |
CountMilliseconds++; |
} |
if(beeptime > 1) |
{ |
beeptime--; |
if(beeptime & BeepMuster) |
{ |
pieper_ein = 1; |
} |
else pieper_ein = 0; |
} |
else |
{ |
pieper_ein = 0; |
BeepMuster = 0xffff; |
} |
if(pieper_ein) |
{ |
if(PlatinenVersion == 10) PORTD |= (1<<2); // Speaker an PORTD.2 |
else PORTC |= (1<<7); // Speaker an PORTC.7 |
} |
else |
{ |
if(PlatinenVersion == 10) PORTD &= ~(1<<2); |
else PORTC &= ~(1<<7); |
} |
// if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
{ |
if(PINC & 0x10) |
{ |
cntKompass++; |
} |
else |
{ |
if((cntKompass) && (cntKompass < 4000)) |
{ |
// Salvo Kompassoffset 23.12.2007 *********** |
Kompass_present = 255; |
// Kompass_Value_Old = KompassValue; |
if (KOMPASS_OFFSET > 0) KompassValue = cntKompass -KOMPASS_OFFSET; |
else KompassValue = cntKompass - ((int) (Parameter_UserParam4*2)); |
if (KompassValue < 0) |
{ |
KompassValue += 360; |
} |
if (KompassValue >= 360) |
{ |
KompassValue -= 360; |
} |
// Salvo End |
} |
// if(cntKompass < 10) cntKompass = 10; |
// KompassValue = (unsigned long)((unsigned long)(cntKompass-10)*720L + 1L) / 703L; |
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
//Salvo 13.9.2007 Ok Erkennung des Magnetkompasses |
Kompass_Neuer_Wert = 1; |
// Salvo End |
cntKompass = 0; |
} |
} |
} |
void Timer_Init(void) |
{ |
tim_main = SetDelay(10); |
TCCR0B = CK8; |
TCCR0A = (1<<COM0A1)|(1<<COM0B1)|3;//fast PWM |
OCR0A = 0; |
OCR0B = 120; |
TCNT0 = (unsigned char)-TIMER_RELOAD_VALUE; // reload |
//OCR1 = 0x00; |
TCCR2A=(1<<COM2A1)|(1<<COM2A0)|3; |
TCCR2B=(0<<CS20)|(1<<CS21)|(1<<CS22); |
// TIMSK2 |= _BV(TOIE2); |
TIMSK2 |= _BV(OCIE2A); |
TIMSK0 |= _BV(TOIE0); |
OCR2A = 10; |
TCNT2 = 0; |
} |
// ----------------------------------------------------------------------- |
unsigned int SetDelay (unsigned int t) |
{ |
// TIMSK0 &= ~_BV(TOIE0); |
return(CountMilliseconds + t + 1); |
// TIMSK0 |= _BV(TOIE0); |
} |
// ----------------------------------------------------------------------- |
char CheckDelay(unsigned int t) |
{ |
// TIMSK0 &= ~_BV(TOIE0); |
return(((t - CountMilliseconds) & 0x8000) >> 9); |
// TIMSK0 |= _BV(TOIE0); |
} |
// ----------------------------------------------------------------------- |
void Delay_ms(unsigned int w) |
{ |
unsigned int akt; |
akt = SetDelay(w); |
while (!CheckDelay(akt)); |
} |
void Delay_ms_Mess(unsigned int w) |
{ |
unsigned int akt; |
akt = SetDelay(w); |
while (!CheckDelay(akt)) ANALOG_ON; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Servo ansteuern |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(SIG_OUTPUT_COMPARE2A) |
{ |
static unsigned char timer = 10; |
if(!timer--) |
{ |
TCCR2A=(1<<COM2A1)|(0<<COM2A0)|3; |
ServoValue = Parameter_ServoNickControl; |
if(EE_Parameter.ServoNickCompInvert & 0x01) ServoValue += ((long) EE_Parameter.ServoNickComp * (IntegralNick / 128)) / 512; |
else ServoValue -= ((long) EE_Parameter.ServoNickComp * (IntegralNick / 128)) / 512; |
if(ServoValue < EE_Parameter.ServoNickMin) ServoValue = EE_Parameter.ServoNickMin; |
else if(ServoValue > EE_Parameter.ServoNickMax) ServoValue = EE_Parameter.ServoNickMax; |
OCR2A = ServoValue;// + 75; |
timer = EE_Parameter.ServoNickRefresh; |
} |
else |
{ |
TCCR2A =3; |
PORTD&=~0x80; |
} |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/timer0.h |
---|
0,0 → 1,28 |
#define TIMER_TEILER CK8 |
#define TIMER_RELOAD_VALUE 250 |
// Salvo Kompassoffset 24.12.2007 *********** |
//#define KOMPASS_OFFSET 135// Winkel zwischen Nordachse Kopter und Nordachse Kompass |
#define KOMPASS_OFFSET 0 // Winkel zwischen Nordachse Kopter und Nordachse Kompass |
// Wenn 0 wird der UserParameter4 fuer den Offset verwendet (0..360 Grad entspricht 0 ..180) |
// Salvo End |
void Timer_Init(void); |
void Delay_ms(unsigned int); |
void Delay_ms_Mess(unsigned int); |
unsigned int SetDelay (unsigned int t); |
char CheckDelay (unsigned int t); |
extern volatile unsigned int CountMilliseconds; |
extern volatile unsigned char UpdateMotor; |
extern volatile unsigned int beeptime; |
extern volatile unsigned int cntKompass; |
extern int ServoValue; |
extern unsigned int BeepMuster; |
//Salvo 21.9.2007 |
extern volatile uint8_t Kompass_Neuer_Wert; |
extern volatile unsigned int Kompass_Value_Old; |
extern unsigned short int Kompass_present; |
// Salvo End |
/branches/salvo_gps/Basis_v0067g/tags/v0004/twimaster.c |
---|
0,0 → 1,152 |
/*############################################################################ |
############################################################################*/ |
#include "main.h" |
unsigned char twi_state = 0; |
unsigned char motor = 0; |
unsigned char motorread = 0; |
unsigned char motor_rx[8]; |
//############################################################################ |
//Initzialisieren der I2C (TWI) Schnittstelle |
void i2c_init(void) |
//############################################################################ |
{ |
TWSR = 0; |
TWBR = ((SYSCLK/SCL_CLOCK)-16)/2; |
} |
//############################################################################ |
//Start I2C |
char i2c_start(void) |
//############################################################################ |
{ |
TWCR = (1<<TWSTA) | (1<<TWEN) | (1<<TWINT) | (1<<TWIE); |
return(0); |
} |
//############################################################################ |
//Start I2C |
void i2c_stop(void) |
//############################################################################ |
{ |
TWCR = (1<<TWEN) | (1<<TWSTO) | (1<<TWINT); |
} |
void i2c_reset(void) |
//############################################################################ |
{ |
i2c_stop(); |
twi_state = 0; |
motor = TWDR; |
motor = 0; |
TWCR = 0x80; |
TWAMR = 0; |
TWAR = 0; |
TWDR = 0; |
TWSR = 0; |
TWBR = 0; |
i2c_init(); |
i2c_start(); |
i2c_write_byte(0); |
} |
//############################################################################ |
//Start I2C |
char i2c_write_byte(char byte) |
//############################################################################ |
{ |
TWSR = 0x00; |
TWDR = byte; |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
return(0); |
} |
//############################################################################ |
//Start I2C |
SIGNAL (TWI_vect) |
//############################################################################ |
{ |
switch (twi_state++) |
{ |
case 0: |
i2c_write_byte(0x52+(motor*2)); |
break; |
case 1: |
switch(motor++) |
{ |
case 0: |
i2c_write_byte(Motor_Vorne); |
break; |
case 1: |
i2c_write_byte(Motor_Hinten); |
break; |
case 2: |
i2c_write_byte(Motor_Rechts); |
break; |
case 3: |
i2c_write_byte(Motor_Links); |
break; |
} |
break; |
case 2: |
i2c_stop(); |
if (motor<4) twi_state = 0; |
else motor = 0; |
i2c_start(); |
break; |
//Liest Daten von Motor |
case 3: |
i2c_write_byte(0x53+(motorread*2)); |
break; |
case 4: |
switch(motorread) |
{ |
case 0: |
i2c_write_byte(Motor_Vorne); |
break; |
case 1: |
i2c_write_byte(Motor_Hinten); |
break; |
case 2: |
i2c_write_byte(Motor_Rechts); |
break; |
case 3: |
i2c_write_byte(Motor_Links); |
break; |
} |
break; |
case 5: //1 Byte vom Motor lesen |
motor_rx[motorread] = TWDR; |
case 6: |
switch(motorread) |
{ |
case 0: |
i2c_write_byte(Motor_Vorne); |
break; |
case 1: |
i2c_write_byte(Motor_Hinten); |
break; |
case 2: |
i2c_write_byte(Motor_Rechts); |
break; |
case 3: |
i2c_write_byte(Motor_Links); |
break; |
} |
break; |
case 7: //2 Byte vom Motor lesen |
motor_rx[motorread+4] = TWDR; |
motorread++; |
if (motorread>3) motorread=0; |
i2c_stop(); |
I2CTimeout = 10; |
twi_state = 0; |
} |
TWCR |= 0x80; |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/twimaster.h |
---|
0,0 → 1,33 |
/*############################################################################ |
############################################################################*/ |
#ifndef _I2C_MASTER_H |
#define _I2C_MASTER_H |
//############################################################################ |
// I2C Konstanten |
#define SCL_CLOCK 200000L |
#define I2C_TIMEOUT 30000 |
#define I2C_START 0x08 |
#define I2C_REPEATED_START 0x10 |
#define I2C_TX_SLA_ACK 0x18 |
#define I2C_TX_DATA_ACK 0x28 |
#define I2C_RX_SLA_ACK 0x40 |
#define I2C_RX_DATA_ACK 0x50 |
//############################################################################ |
extern unsigned char twi_state; |
extern unsigned char motor; |
extern unsigned char motorread; |
extern unsigned char motor_rx[8]; |
void i2c_reset(void); |
extern void i2c_init (void); // I2C initialisieren |
extern char i2c_start (void); // Start I2C |
extern void i2c_stop (void); // Stop I2C |
extern char i2c_write_byte (char byte); // 1 Byte schreiben |
extern void i2c_reset(void); |
#endif |
/branches/salvo_gps/Basis_v0067g/tags/v0004/uart.c |
---|
0,0 → 1,406 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
#include "uart.h" |
unsigned char DebugGetAnforderung = 0,DebugDisplayAnforderung = 0,DebugDataAnforderung = 0,GetVersionAnforderung = 0; |
unsigned volatile char SioTmp = 0; |
unsigned volatile char SendeBuffer[MAX_SENDE_BUFF]; |
unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF]; |
unsigned volatile char NMEABuffer[MAX_EMPFANGS_BUFF]; |
unsigned volatile char NeuerDatensatzEmpfangen = 0; |
unsigned volatile char NeueKoordinateEmpfangen = 0; |
unsigned volatile char UebertragungAbgeschlossen = 1; |
unsigned volatile char CntCrcError = 0; |
unsigned volatile char AnzahlEmpfangsBytes = 0; |
unsigned volatile char PC_DebugTimeout = 0; |
unsigned char RemotePollDisplayLine = 0; |
unsigned char NurKanalAnforderung = 0; |
unsigned char DebugTextAnforderung = 255; |
unsigned char PcZugriff = 100; |
unsigned char MotorTest[4] = {0,0,0,0}; |
unsigned char DubWiseKeys[3] = {0,0,0}; |
unsigned char MeineSlaveAdresse; |
struct str_DebugOut DebugOut; |
struct str_Debug DebugIn; |
struct str_VersionInfo VersionInfo; |
int Debug_Timer; |
//Salvo 26.10.2007 |
int dataset_cnt=0; //Zaehlt die uebertragenen Debugdaten |
//Salvo End |
const unsigned char ANALOG_TEXT[32][16] = |
{ |
//1234567890123456 |
"IntegralNick ", //0 |
"IntegralRoll ", |
"AccNick ", |
"AccRoll ", |
"GyroGier ", |
"HoehenWert ", //5 |
"AccZ ", |
"Gas ", |
"KompassValue ", |
"Ersatzkompass ", |
"Usr_Par1 ", //10 |
"Usr_par3 ", |
/* "Motor_Vorne ", |
"Motor_Hinten ", |
"Motor_Links ", |
"Motor_Rechts ", //15 |
*/ |
"speed_e ", |
"speed_n ", |
"diff_east_f ", |
"diff_north_f ", //15 |
"Index ", |
"UBat ", |
"Messwert_Nick ", |
"Messwert_Roll ", |
"Messwert_Gier ", //20 |
"Stick_Nick ", |
"Stick_Roll ", |
"Stick_Gier ", |
"GPS_Nick ", |
"GPS_Roll ", //25 |
"utm_east ", |
"utm_north ", |
"utm_alt ", |
"gps_state ", |
// "dist_flown ", //30 |
// "dist_2home " |
"gp_reg_x ", //30 |
"gp_reg_y " |
}; |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ Sende-Part der Datenübertragung |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(INT_VEC_TX) |
{ |
static unsigned int ptr = 0; |
unsigned char tmp_tx; |
if(!UebertragungAbgeschlossen) |
{ |
ptr++; // die [0] wurde schon gesendet |
tmp_tx = SendeBuffer[ptr]; |
if((tmp_tx == '\r') || (ptr == MAX_SENDE_BUFF)) |
{ |
ptr = 0; |
UebertragungAbgeschlossen = 1; |
} |
UDR = tmp_tx; |
} |
else ptr = 0; |
} |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ Empfangs-Part der Datenübertragung, incl. CRC-Auswertung |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(INT_VEC_RX) |
{ |
static unsigned int crc; |
static unsigned char crc1,crc2,buf_ptr; |
static unsigned char UartState = 0; |
unsigned char CrcOkay = 0; |
SioTmp = UDR; |
//Salvo 11.9.2007 GPS Daten holen |
Get_Ublox_Msg(SioTmp); // Daten vom GPS Modul holen |
// Salvo End |
if(buf_ptr >= MAX_EMPFANGS_BUFF) UartState = 0; |
if(SioTmp == '\r' && UartState == 2) |
{ |
UartState = 0; |
crc -= RxdBuffer[buf_ptr-2]; |
crc -= RxdBuffer[buf_ptr-1]; |
crc %= 4096; |
crc1 = '=' + crc / 64; |
crc2 = '=' + crc % 64; |
CrcOkay = 0; |
if((crc1 == RxdBuffer[buf_ptr-2]) && (crc2 == RxdBuffer[buf_ptr-1])) CrcOkay = 1; else { CrcOkay = 0; CntCrcError++;}; |
if(!NeuerDatensatzEmpfangen && CrcOkay) // Datensatz schon verarbeitet |
{ |
NeuerDatensatzEmpfangen = 1; |
AnzahlEmpfangsBytes = buf_ptr; |
RxdBuffer[buf_ptr] = '\r'; |
if(RxdBuffer[2] == 'R') wdt_enable(WDTO_250MS); // Reset-Commando |
} |
} |
else |
switch(UartState) |
{ |
case 0: |
if(SioTmp == '#' && !NeuerDatensatzEmpfangen) UartState = 1; // Startzeichen und Daten schon verarbeitet |
buf_ptr = 0; |
RxdBuffer[buf_ptr++] = SioTmp; |
crc = SioTmp; |
break; |
case 1: // Adresse auswerten |
UartState++; |
RxdBuffer[buf_ptr++] = SioTmp; |
crc += SioTmp; |
break; |
case 2: // Eingangsdaten sammeln |
RxdBuffer[buf_ptr] = SioTmp; |
if(buf_ptr < MAX_EMPFANGS_BUFF) buf_ptr++; |
else UartState = 0; |
crc += SioTmp; |
break; |
default: |
UartState = 0; |
break; |
} |
} |
// -------------------------------------------------------------------------- |
void AddCRC(unsigned int wieviele) |
{ |
unsigned int tmpCRC = 0,i; |
for(i = 0; i < wieviele;i++) |
{ |
tmpCRC += SendeBuffer[i]; |
} |
tmpCRC %= 4096; |
SendeBuffer[i++] = '=' + tmpCRC / 64; |
SendeBuffer[i++] = '=' + tmpCRC % 64; |
SendeBuffer[i++] = '\r'; |
UebertragungAbgeschlossen = 0; |
UDR = SendeBuffer[0]; |
} |
// -------------------------------------------------------------------------- |
void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len) |
{ |
unsigned int pt = 0; |
unsigned char a,b,c; |
unsigned char ptr = 0; |
SendeBuffer[pt++] = '#'; // Startzeichen |
SendeBuffer[pt++] = modul; // Adresse (a=0; b=1,...) |
SendeBuffer[pt++] = cmd; // Commando |
while(len) |
{ |
if(len) { a = snd[ptr++]; len--;} else a = 0; |
if(len) { b = snd[ptr++]; len--;} else b = 0; |
if(len) { c = snd[ptr++]; len--;} else c = 0; |
SendeBuffer[pt++] = '=' + (a >> 2); |
SendeBuffer[pt++] = '=' + (((a & 0x03) << 4) | ((b & 0xf0) >> 4)); |
SendeBuffer[pt++] = '=' + (((b & 0x0f) << 2) | ((c & 0xc0) >> 6)); |
SendeBuffer[pt++] = '=' + ( c & 0x3f); |
} |
AddCRC(pt); |
} |
// -------------------------------------------------------------------------- |
void Decode64(unsigned char *ptrOut, unsigned char len, unsigned char ptrIn,unsigned char max) // Wohin mit den Daten; Wie lang; Wo im RxdBuffer |
{ |
unsigned char a,b,c,d; |
unsigned char ptr = 0; |
unsigned char x,y,z; |
while(len) |
{ |
a = RxdBuffer[ptrIn++] - '='; |
b = RxdBuffer[ptrIn++] - '='; |
c = RxdBuffer[ptrIn++] - '='; |
d = RxdBuffer[ptrIn++] - '='; |
if(ptrIn > max - 2) break; // nicht mehr Daten verarbeiten, als empfangen wurden |
x = (a << 2) | (b >> 4); |
y = ((b & 0x0f) << 4) | (c >> 2); |
z = ((c & 0x03) << 6) | d; |
if(len--) ptrOut[ptr++] = x; else break; |
if(len--) ptrOut[ptr++] = y; else break; |
if(len--) ptrOut[ptr++] = z; else break; |
} |
} |
// -------------------------------------------------------------------------- |
void BearbeiteRxDaten(void) |
{ |
if(!NeuerDatensatzEmpfangen) return; |
// unsigned int tmp_int_arr1[1]; |
// unsigned int tmp_int_arr2[2]; |
// unsigned int tmp_int_arr3[3]; |
unsigned char tmp_char_arr2[2]; |
// unsigned char tmp_char_arr3[3]; |
// unsigned char tmp_char_arr4[4]; |
//if(!MotorenEin) |
PcZugriff = 255; |
switch(RxdBuffer[2]) |
{ |
case 'a':// Texte der Analogwerte |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
DebugTextAnforderung = tmp_char_arr2[0]; |
break; |
case 'c':// Debugdaten incl. Externe IOs usw |
Decode64((unsigned char *) &DebugIn,sizeof(DebugIn),3,AnzahlEmpfangsBytes); |
/* for(unsigned char i=0; i<4;i++) |
{ |
EE_CheckAndWrite(&EE_Buffer[EE_DEBUGWERTE + i*2], DebugIn.Analog[i]); |
EE_CheckAndWrite(&EE_Buffer[EE_DEBUGWERTE + i*2 + 1], DebugIn.Analog[i] >> 8); |
}*/ |
RemoteTasten |= DebugIn.RemoteTasten; |
DebugDataAnforderung = 1; |
break; |
case 'h':// x-1 Displayzeilen |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
RemoteTasten |= tmp_char_arr2[0]; |
if(tmp_char_arr2[1] == 255) NurKanalAnforderung = 1; else NurKanalAnforderung = 0; // keine Displaydaten |
DebugDisplayAnforderung = 1; |
break; |
case 't':// Motortest |
Decode64((unsigned char *) &MotorTest[0],sizeof(MotorTest),3,AnzahlEmpfangsBytes); |
break; |
case 'k':// Keys von DubWise |
Decode64((unsigned char *) &DubWiseKeys[0],sizeof(DubWiseKeys),3,AnzahlEmpfangsBytes); |
break; |
case 'v': // Version-Anforderung und Ausbaustufe |
GetVersionAnforderung = 1; |
break; |
case 'g':// "Get"-Anforderung für Debug-Daten |
// Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
DebugGetAnforderung = 1; |
break; |
case 'q':// "Get"-Anforderung für Settings |
// Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
if(tmp_char_arr2[0] != 0xff) |
{ |
if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE); |
} |
else |
SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE); |
break; |
case 'l': |
case 'm': |
case 'n': |
case 'o': |
case 'p': // Parametersatz speichern |
Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE,3,AnzahlEmpfangsBytes); |
WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], RxdBuffer[2] - 'l' + 1); // aktiven Datensatz merken |
Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagRoll * 2500L; |
Piep(GetActiveParamSetNumber()); |
break; |
} |
// DebugOut.AnzahlZyklen = Debug_Timer_Intervall; |
NeuerDatensatzEmpfangen = 0; |
} |
//############################################################################ |
//Routine für die Serielle Ausgabe |
int uart_putchar (char c) |
//############################################################################ |
{ |
if (c == '\n') |
uart_putchar('\r'); |
//Warten solange bis Zeichen gesendet wurde |
loop_until_bit_is_set(USR, UDRE); |
//Ausgabe des Zeichens |
UDR = c; |
return (0); |
} |
// -------------------------------------------------------------------------- |
void WriteProgramData(unsigned int pos, unsigned char wert) |
{ |
//if (ProgramLocation == IN_RAM) Buffer[pos] = wert; |
// else eeprom_write_byte(&EE_Buffer[pos], wert); |
// Buffer[pos] = wert; |
} |
//############################################################################ |
//INstallation der Seriellen Schnittstelle |
void UART_Init (void) |
//############################################################################ |
{ |
//Enable TXEN im Register UCR TX-Data Enable & RX Enable |
UCR=(1 << TXEN) | (1 << RXEN); |
// UART Double Speed (U2X) |
USR |= (1<<U2X); |
// RX-Interrupt Freigabe |
UCSRB |= (1<<RXCIE); |
// TX-Interrupt Freigabe |
UCSRB |= (1<<TXCIE); |
//Teiler wird gesetzt |
UBRR=(SYSCLK / (BAUD_RATE * 8L) - 1); |
//UBRR = 33; |
//öffnet einen Kanal für printf (STDOUT) |
//fdevopen (uart_putchar, 0); |
//sbi(PORTD,4); |
Debug_Timer = SetDelay(200); |
} |
//--------------------------------------------------------------------------------------------- |
void DatenUebertragung(void) |
{ |
static char dis_zeile = 0; |
if(!UebertragungAbgeschlossen) return; |
if(DebugGetAnforderung && UebertragungAbgeschlossen) // Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
{ |
SendOutData('G',MeineSlaveAdresse,(unsigned char *) &DebugIn,sizeof(DebugIn)); |
DebugGetAnforderung = 0; |
} |
if((CheckDelay(Debug_Timer) || DebugDataAnforderung) && UebertragungAbgeschlossen) |
{ |
SendOutData('D',MeineSlaveAdresse,(unsigned char *) &DebugOut,sizeof(DebugOut)); |
DebugDataAnforderung = 0; |
//Salvo 26.10.2007 Counter fuer Erkennung von fehlenden Daten per Bluetoothuebertragung |
dataset_cnt++; |
// Salvo End |
Debug_Timer = SetDelay(MIN_DEBUG_INTERVALL); |
} |
if(DebugTextAnforderung != 255) // Texte für die Analogdaten |
{ |
SendOutData('A',DebugTextAnforderung + '0',(unsigned char *) ANALOG_TEXT[DebugTextAnforderung],16); |
DebugTextAnforderung = 255; |
} |
if(DebugDisplayAnforderung && UebertragungAbgeschlossen) |
{ |
Menu(); |
DebugDisplayAnforderung = 0; |
if(++RemotePollDisplayLine == 4 || NurKanalAnforderung) |
{ |
SendOutData('4',0,(unsigned char *)&PPM_in,sizeof(PPM_in)); // DisplayZeile übertragen |
RemotePollDisplayLine = -1; |
} |
else SendOutData('0' + RemotePollDisplayLine,0,(unsigned char *)&DisplayBuff[20 * RemotePollDisplayLine],20); // DisplayZeile übertragen |
} |
if(GetVersionAnforderung && UebertragungAbgeschlossen) |
{ |
SendOutData('V',MeineSlaveAdresse,(unsigned char *) &VersionInfo,sizeof(VersionInfo)); |
GetVersionAnforderung = 0; |
} |
} |
/branches/salvo_gps/Basis_v0067g/tags/v0004/uart.h |
---|
0,0 → 1,106 |
#ifndef _UART_H |
#define _UART_H |
#define MAX_SENDE_BUFF 150 |
#define MAX_EMPFANGS_BUFF 150 |
#define DUB_KEY_UP 4 |
#define DUB_KEY_DOWN 8 |
#define DUB_KEY_RIGHT 32 |
#define DUB_KEY_LEFT 16 |
#define DUB_KEY_FIRE 64 |
//Salvo 26.10.2007 |
extern int dataset_cnt; |
// salvo End |
void BearbeiteRxDaten(void); |
extern unsigned char DebugGetAnforderung; |
extern unsigned volatile char SendeBuffer[MAX_SENDE_BUFF]; |
extern unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF]; |
extern unsigned volatile char UebertragungAbgeschlossen; |
extern unsigned volatile char PC_DebugTimeout; |
extern unsigned volatile char NeueKoordinateEmpfangen; |
extern unsigned char MeineSlaveAdresse; |
extern unsigned char PcZugriff; |
extern unsigned char RemotePollDisplayLine; |
extern int Debug_Timer; |
extern void UART_Init (void); |
extern int uart_putchar (char c); |
extern void boot_program_page (uint32_t page, uint8_t *buf); |
extern void DatenUebertragung(void); |
extern void DecodeNMEA(void); |
extern void BearbeiteRxDaten(void); |
extern unsigned char MotorTest[4]; |
extern unsigned char DubWiseKeys[3]; |
struct str_DebugOut |
{ |
unsigned char Digital[2]; |
unsigned int Analog[32]; // Debugwerte |
}; |
extern struct str_DebugOut DebugOut; |
struct str_Debug |
{ |
unsigned char Digital[2]; |
unsigned char RemoteTasten; |
unsigned int Analog[4]; |
}; |
extern struct str_Debug DebugIn; |
struct str_VersionInfo |
{ |
unsigned char Hauptversion; |
unsigned char Nebenversion; |
unsigned char PCKompatibel; |
unsigned char Rserved[7]; |
}; |
extern struct str_VersionInfo VersionInfo; |
//Die Baud_Rate der Seriellen Schnittstelle ist 9600 Baud |
//#define BAUD_RATE 9600 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 14400 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 28800 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 38400 //Baud Rate für die Serielle Schnittstelle |
#define BAUD_RATE 57600 //Baud Rate für die Serielle Schnittstelle |
//Anpassen der seriellen Schnittstellen Register wenn ein ATMega128 benutzt wird |
#if defined (__AVR_ATmega128__) |
# define USR UCSR0A |
# define UCR UCSR0B |
# define UDR UDR0 |
# define UBRR UBRR0L |
# define EICR EICRB |
#endif |
#if defined (__AVR_ATmega32__) |
# define USR UCSRA |
# define UCR UCSRB |
# define UBRR UBRRL |
# define EICR EICRB |
# define INT_VEC_RX SIG_UART_RECV |
# define INT_VEC_TX SIG_UART_TRANS |
#endif |
#if defined (__AVR_ATmega644__) |
# define USR UCSR0A |
# define UCR UCSR0B |
# define UDR UDR0 |
# define UBRR UBRR0L |
# define EICR EICR0B |
# define TXEN TXEN0 |
# define RXEN RXEN0 |
# define RXCIE RXCIE0 |
# define TXCIE TXCIE0 |
# define U2X U2X0 |
# define UCSRB UCSR0B |
# define UDRE UDRE0 |
# define INT_VEC_RX SIG_USART_RECV |
# define INT_VEC_TX SIG_USART_TRANS |
#endif |
#endif //_UART_H |
/branches/salvo_gps/Basis_v0067g/tags/v0004 |
---|
Property changes: |
Added: svn:ignore |
+*.bak |
+*.aps |
+*.elf |
+*.sym |
+*.map |
+*.lss |
+*.eep |
+*.txt |