/branches/salvo_gps/Basis_v0067g/tags/v0005/Flight-Ctrl_MEGA644_V0_05a.hex |
---|
0,0 → 1,2405 |
: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 |
:1004E000DEBFCDBF14E0A0E0B1E0E8E8F2E902C071 |
:1004F00005900D92A23AB107D9F719E0A2EAB4E04B |
:1005000001C01D92A339B107E1F70E94C4020C9407 |
:1005100043490C94000022E030E0D9010E942F49A9 |
:10052000802D863028F082E0D901082E0E943749BC |
:1005300090E00895FB01282F863008F025E0429FC7 |
:10054000D0011124AC59BF4F842F90E0019724F0C3 |
:1005500001900E943749FACFA2E0B0E0022E0E943B |
:1005600037490895FB01863008F085E0489FD001A7 |
:100570001124AC59BF4F842F90E0019724F00E94C2 |
:100580002F490192FACF0895EF92FF921F93CF93D4 |
:10059000DF9314B815B8189B02C08BE001C08AE045 |
:1005A000809300018DEC87B98FEF88B98BE184B916 |
:1005B00081E085B98EE38AB9579A87EF8BB984B702 |
:1005C000877F84BF80916000886180936000109273 |
:1005D000600080ED97E09093C5048093C40410926E |
:1005E000640510926305109243081092420810921D |
:1005F0006205109261051092600510925F0580916E |
:1006000000018A3011F4289801C0289A0E94250D13 |
:100610000E94FD050E9488150E94820D0E94B71459 |
:1006200078941092410785E08093420787E0809399 |
:10063000430720910001822F6AE00E948848492FD9 |
:1006400050E0822F0E94884890E021E630E03F93FE |
:100650002F9325E030E03F932F931F921F925F93DB |
:100660004F939F938F938CE391E09F938F931F926F |
:100670000E94E1088BE191E09F938F931F920E946B |
:10068000E108299AA1E0B0E00E942F49802D2DB702 |
:100690003EB7205F3F4F0FB6F8943EBF0FBE2DBF51 |
:1006A0008434A9F18CEE90E09F938F931F920E9467 |
:1006B000E1080E94CB23C0E0D0E00F900F900F9094 |
:1006C0008CE6E82E88E0F82E1C2FC23039F0C330BB |
:1006D00019F40E94AA2204C0C43010F00E943A23E8 |
:1006E00047E4B701812F0E949A022196C630D105B6 |
:1006F00059F783E022E030E0D901082E0E94374903 |
:1007000084E421503040D901082E0E943749C4E0CA |
:10071000D0E0DE010E942F49802D853050F083ED1E |
:1007200090E09F938F931F920E94E1080F900F908B |
:100730000F902297DE010E942F49802D863028F0ED |
:1007400082E0DE01082E0E94374947E46CE678E03B |
:100750000E94B202DE010E942F49802D863028F0CF |
:1007600082E0DE01082E0E94374990E09F938F932C |
:1007700088EB90E09F938F931F920E94E1088091F5 |
:1007800074080F900F900F900F900F9080FD03C092 |
:10079000C8EED3E020C08BE990E09F938F931F9227 |
:1007A0000E94E10888EE93E00E946D0CEC010E942B |
:1007B00020100F900F900F90CE010E94760C88238E |
:1007C000D9F386E990E09F938F931F920E94E108EE |
:1007D0000F900F900F900E941C21809100018A3091 |
:1007E00011F4289801C0289A469880ED97E09093DC |
:1007F000C5048093C40488EE93E090933C078093F3 |
:100800003B0785E58093360788E890E09F938F93B8 |
:100810001F920E94E108809174080F900F900F9032 |
:1008200082FF03C08CE790E002C084E790E09F93D2 |
:100830008F931F920E94E1080F900F900F9080E716 |
:1008400090E09F938F931F920E94E1080E9469108D |
:1008500088E893E190938603809385030F900F902F |
:100860000F908091C104882309F462C01092C104E2 |
:100870000E945D240E94D520209100012A3011F4AD |
:10088000289801C0289A80910301882321F0815083 |
:100890008093030110C01092B2041092B30410921E |
:1008A0007F0510927E0510928105109280051092AE |
:1008B00083051092820580915E05882329F080913E |
:1008C0005E05815080935E0580918503909186033B |
:1008D000892B01F585E090E0909386038093850352 |
:1008E0000E94621580910403909105038F5F9F4FD2 |
:1008F000F9F4809165058823D9F080E197E290931F |
:10090000C5048093C40480E890E09093050380932D |
:1009100004030EC080918503909186030197909304 |
:100920008603809385032A3011F4289801C0289A01 |
:100930000E9418060E94B106CE010E94760C882300 |
:1009400009F48FCF20910803309109038091840826 |
:1009500090E0281739079CF48091040390910503D7 |
:100960008F5F9F4F61F480E797E19093C504809378 |
:10097000C40480E093E0909305038093040384E62D |
:1009800090E00E946D0CEC016CCF1F920F920FB69D |
:100990000F9211248F939F93EF93FF938091010106 |
:1009A0008823E1F48091BD049091BE040196909358 |
:1009B000BE048093BD04FC01E85FF94FE081ED3097 |
:1009C00019F08639910539F41092BE041092BD04D5 |
:1009D00081E080930101E093C60004C01092BE0440 |
:1009E0001092BD04FF91EF919F918F910F900FBED8 |
:1009F0000F901F901895DC0120E030E040E050E0BF |
:100A000008C0FA01E85FF94F8081280F311D4F5F60 |
:100A10005F4F4A175B07A9F73F70C90136E096950B |
:100A200087953A95E1F7835CFD01E85FF94F808394 |
:100A300011962F73235CFD01E85FF94F2083A75FB8 |
:100A4000B94F8DE08C93109201018091080680933C |
:100A5000C60008951F93CF93DF93EA01722F93E2AC |
:100A6000909308066093090680930A06A3E0B0E01D |
:100A700060E04FC0FE01E60FF11D90816F5F715085 |
:100A800019F410E040E00FC0FE01E60FF11D4081B7 |
:100A90006F5F715011F410E006C0FE01E60FF11D0A |
:100AA00010816F5F7150892F86958695835CFD015B |
:100AB000E85FF94F808350E09A0184E036952795EE |
:100AC0008A95E1F7892F90E083709070F4E0880FA9 |
:100AD000991FFA95E1F7282B235CFD01E75FF94F99 |
:100AE0002083812F82958695869583704F705070F4 |
:100AF000440F551F440F551F842B835CFD01E65F97 |
:100B0000F94F80831F73135CFD01E55FF94F10837C |
:100B10001496772309F0AECFCD010E94FB04DF913C |
:100B2000CF911F9108951F93CF93DF93EC0170E055 |
:100B3000A22FB0E0129748C0E42FF0E0E55BF84F39 |
:100B400030814F5FE42FF0E0E55BF84F50814F5F5D |
:100B5000E42FF0E0E55BF84F10814F5FE42FF0E009 |
:100B6000E55BF84F20814F5F842F90E0A817B9070D |
:100B700074F15D53FE01E70FF11D852F82958F7093 |
:100B80003D53330F330F382B3083613001F1912FF8 |
:100B90009D537F5FFE01E70FF11D71505295507F0D |
:100BA000892F86958695582B508363506F3F79F037 |
:100BB0007E5FFE01E70FF11D9295990F990F907CD2 |
:100BC0002D53922B90837F5F662309F0B5CFDF9181 |
:100BD000CF911F9108951F93182F8A3019F48DE03B |
:100BE0000E94EB058091C00085FFFCCF1093C600EA |
:100BF00080E090E01F9108950895E1ECF0E088E135 |
:100C00008083A0ECB0E08C9182608C9380818068BE |
:100C100080838081806480838AE28093C40088EC32 |
:100C200090E00E946D0C90933507809334070895EF |
:100C300080910101882309F493C08091A204882344 |
:100C400071F080910101882351F0609107062BE03B |
:100C500046E357E087E40E942A051092A20480919F |
:100C60003407909135070E94760C882321F48091F7 |
:100C7000A4048823F9F0809101018823D9F06091C0 |
:100C8000070622E441EE57E084E40E942A05109210 |
:100C9000A4048091B5049091B60401969093B60493 |
:100CA0008093B5048AEF90E00E946D0C9093350715 |
:100CB00080933407609102016F3F89F0462F50E026 |
:100CC00094E0440F551F9A95E1F74C5F5E4F605DCD |
:100CD00020E181E40E942A058FEF80930201809138 |
:100CE000A304882359F180910101882339F10E94DE |
:100CF00072101092A3043091AC04932F9F5F9093D5 |
:100D0000AC04943021F08091AD04882359F026E1A1 |
:100D10004EE358E060E084E30E942A058FEF809361 |
:100D2000AC040CC044E1949FA0011124465E5C4FCA |
:100D300024E160E0832F8F5C0E942A058091A50446 |
:100D4000882371F080910101882351F0609107069A |
:100D50002AE041E457E086E50E942A051092A504A6 |
:100D600008951F93CF93DF93CDB7DEB722970FB6C9 |
:100D7000F894DEBF0FBECDBF8091A704882309F48D |
:100D8000DFC08FEF8093030180914D078B3609F40C |
:100D90005EC08C3678F4833629F1843620F48136AF |
:100DA00009F0CCC013C0873609F45EC0883609F05C |
:100DB000C5C02BC0813709F45BC0813708F480C0FF |
:100DC0008437F1F1863709F0B9C04AC02091AA04EE |
:100DD00043E062E0CE0101960E94930589818093F1 |
:100DE0000201ACC02091AA0443E06BE086E397E0E7 |
:100DF0000E9493058091F10490913807892B80938C |
:100E0000F10481E08093A40499C02091AA0443E0F6 |
:100E100062E0CE0101960E9493058091F1049981D0 |
:100E2000892B8093F1048A818F3F21F481E08093A4 |
:100E3000AD0402C01092AD0481E08093A3047EC093 |
:100E40002091AA0443E064E08EEA94E006C0209179 |
:100E5000AA0443E063E082EB94E00E9493056EC035 |
:100E600081E08093A5046AC081E08093A20466C0FB |
:100E70002091AA0443E062E0CE0101960E9493050E |
:100E800089818F3F89F0863010F085E0898347E4BF |
:100E90006CE678E089810E94B20260910706898140 |
:100EA00027E44CE658E008C0109107060E948B0228 |
:100EB00027E44CE658E0612F855B0E942A053EC07E |
:100EC0002091AA0443E067E48CE698E00E94930531 |
:100ED00080914D0747E46CE678E08B560E949A02B9 |
:100EE00080914D078B56A2E0B0E0082E0E94374952 |
:100EF0006091970870E080E090E024EC39E040E0F9 |
:100F000050E00E9469486093870370938803809340 |
:100F1000890390938A036091980870E080E090E0E4 |
:100F20000E94694860938B0370938C0380938D03B8 |
:100F300090938E030E948B020E94C0201092A704FF |
:100F400022960FB6F894DEBF0FBECDBFDF91CF91D2 |
:100F50001F9108951F920F920FB60F9211242F9395 |
:100F60003F934F935F936F937F938F939F93AF9331 |
:100F7000BF93CF93DF93EF93FF938091C60080934D |
:100F8000A6048091A6040E94EC3B4091B804463927 |
:100F900010F01092B7048091A6048D3009F05DC066 |
:100FA0008091B704823009F058C01092B704A42F82 |
:100FB000B0E0FD01E75BF84F3081ED01C65BD84F33 |
:100FC00028818091BB049091BC04831B9109821BF2 |
:100FD00091099F709093BC048093BB049C0168941A |
:100FE00015F8369527951694E1F7235C2093BA04FB |
:100FF000982F9F73935C9093B9048081281729F4EC |
:101000008881981711F491E006C08091A9048F5F40 |
:101010008093A90490E08091A704882309F065C01B |
:10102000992309F462C081E08093A7044093AA0445 |
:10103000A55BB84F8DE08C9380914D07823509F008 |
:1010400054C088E190E02CE00FB6F894A895809306 |
:1010500060000FBE2093600048C08091B7048130CB |
:10106000D9F0813018F08230F1F521C08091A604CA |
:10107000833239F48091A704882319F481E08093A6 |
:10108000B7048091A60480934B0781E08093B80455 |
:101090008091A60490E022C082E08093B704E42F00 |
:1010A000F0E08091A604E55BF84F808309C0E42F4F |
:1010B000F0E08091A604E55BF84F8083463920F488 |
:1010C0004F5F4093B80402C01092B7042091A60469 |
:1010D0008091BB049091BC04820F911D9093BC043D |
:1010E0008093BB0402C01092B704FF91EF91DF918F |
:1010F000CF91BF91AF919F918F917F916F915F91B0 |
:101100004F913F912F910F900FBE0F901F90189508 |
:10111000982F80912308813069F48091F004E82FA2 |
:10112000F0E0E65EFC4F90838F5F8093F00421E057 |
:1011300030E005C0892F0E94EB05282F30E0C9015F |
:1011400008951F93182F04C080E30E94880811504F |
:101150001116D4F31F9108951F93182F04C080E235 |
:101160000E94880811501116D4F31F9108950F930F |
:101170001F93CF93DF938C01EB0108C0F8010F5F41 |
:101180001F4FE4918E2F0E94880821972097B1F776 |
:10119000DF91CF911F910F9108950F931F93CF93DC |
:1011A000DF938C01EB0106C0F80181918F010E9451 |
:1011B000880821972097C1F7DF91CF911F910F9158 |
:1011C00008952F923F924F925F926F927F928F92EB |
:1011D0009F92AF92BF92CF92DF92EF92FF920F93C6 |
:1011E0001F93CF93DF93CDB7DEB7E5970FB6F89493 |
:1011F000DEBF0FBECDBF2B968FAD2B9780932308FC |
: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 |
:1014F000C6010E944146009711F4FAA80EC0F82ECA |
:10150000FC188AA98F154CF4F82E07C0F60101903B |
:101510000020E9F73197FE2EFC18198240E090C0B8 |
:1015200095E5B91621F0A5E7BA1631F402C0B1E08D |
:101530003B2A7AE0272E16C0E8E5BE1621F0F8E730 |
:10154000BF1609F070C033FE0BC02EA53FA548A9F9 |
:1015500059A9211531054105510511F030E4332A0F |
:1015600060E1262E19824AA947FD02C05FED3522AF |
:101570008EA59FA5A8A9B9A90097A105B10549F411 |
:101580009AA9992331F45EE2C52ED12CCC0EDD1E32 |
:1015900046C06EA47FA488A899A84EE2C42ED12C80 |
:1015A000CC0EDD1EE22CFF2400E010E06EA57FA52E |
:1015B00088A999A9A80197010E94BB486A3020F424 |
:1015C00030E3A32EA60E08C027E5A22EA60EA8E59E |
:1015D000BA1611F4BFEDAB22F601A2926F016EA50F |
:1015E0007FA588A999A9A80197010E94BB482EA7A9 |
: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 |
:1018900071E00E94A848845B904090934F0580932C |
:1018A0004E0581E08093C8041092C3041092C204D4 |
:1018B00006C0809100018A3009F088CF85CFBF91A2 |
:1018C000AF919F918F917F916F915F913F912F91F8 |
:1018D0000F900FBE0F901F9018952091BF0430916C |
:1018E000C0042F5F3F4F820F931F08952091BF04C4 |
:1018F0003091C004821B930B892F992786958074A1 |
:1019000090E008951F920F920FB60F9211241F932B |
:101910002F933F934F935F936F937F938F939F93F7 |
:10192000AF93BF93CF93DF93EF93FF938091060321 |
:101930008150809306038F3F09F06FC083E8809346 |
:10194000B00080919C03C82FD0E0D093C704C0930F |
:10195000C6048091A10810918E0880FF1FC060917D |
:101960000E0570910F05809110059091110520E8EA |
:1019700030E040E050E00E94DD48CA01B901212F6B |
:1019800030E040E050E00E94694820E032E040E072 |
:1019900050E00E94DD48C20FD31F1EC060910E05AB |
:1019A00070910F05809110059091110520E830E0AD |
:1019B00040E050E00E94DD48CA01B901212F30E02B |
:1019C00040E050E00E94694820E032E040E050E012 |
:1019D0000E94DD48C21BD30BD093C704C093C6043A |
:1019E0002091C6043091C70480918F0890E0281799 |
:1019F000390734F08091900890E08217930724F41F |
:101A00009093C7048093C6048091C6048093B3006A |
:101A1000809191088093060304C083E08093B00016 |
: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 |
:101C100063E070E00E949448260F371F36952795A1 |
:101C200036952795309309032093080386E0E0CF8B |
:101C300080910605909107052091780030917900F8 |
:101C4000821B930B9093250880932408809124088D |
:101C5000909125089093D7048093D60487E0C8CF4D |
:101C600080917800909179002091040530910505CC |
:101C7000821B930B9093300880932F0880912F083C |
:101C8000909130089093D9048093D8041092ED0479 |
:101C9000B5C1809100012091EA043091EB048A30B3 |
:101CA00049F48091780090917900820F931F969566 |
:101CB000879506C08091780090917900820F931FDC |
:101CC0009093D5048093D40481E092CF8091000159 |
:101CD0002091E8043091E9048A3049F48091780039 |
:101CE00090917900820F931F9695879506C08091F9 |
:101CF000780090917900820F931F9093D304809382 |
:101D0000D20482E075CF809100012091E6043091E9 |
:101D1000E7048A3049F48091780090917900820F2D |
:101D2000931F9695879506C08091780090917900D1 |
:101D3000820F931F9093D1048093D00485E058CFF5 |
:101D40006091780070917900E0900805F0900905A5 |
:101D500000910A0510910B05882777FD8095982F33 |
:101D60000E944E47A80197010E944E460E941B47C1 |
:101D70007093DB046093DA04E091DA04F091DB0401 |
:101D80008091240890912508C0912F08D0913008A7 |
:101D900097FF03C0909581959F4F64E070E00E948B |
:101DA000A8489B01CE01D7FF03C0909581959F4F16 |
:101DB00064E070E00E94A848260F371FE20FF31F6F |
:101DC000F093DB04E093DA048091DA049091DB0471 |
:101DD000029704F1609108057091090580910A0548 |
:101DE00090910B0520E030E048E454E40E948947DC |
:101DF00088230CF03CC06091080570910905809122 |
:101E00000A0590910B052AE037ED43EA5CE30E9456 |
:101E10004F4625C08091DA049091DB048F5F9F4F7D |
:101E200034F5609108057091090580910A0590913B |
:101E30000B0520E030E046E154E40E948D4718167F |
:101E4000B4F4609108057091090580910A0590919C |
:101E50000B052AE037ED43EA5CE30E944E466093AF |
:101E600008057093090580930A0590930B0581E09E |
:101E70008093E104809178009091790090932708F5 |
:101E800080932608209146053091470540914805EA |
:101E9000509149058091DA049091DB04AA2797FDBF |
:101EA000A095BA2F820F931FA41FB51F80934605DC |
:101EB00090934705A0934805B0934905E0904605E7 |
:101EC000F09047050091480510914905609146053D |
:101ED00070914705809148059091490520E034E0D4 |
:101EE00040E050E00E94DD48E21AF30A040B150BB3 |
:101EF000E0924605F0924705009348051093490586 |
:101F000083E076CE80913408909135082091780056 |
:101F100030917900820F931F909335088093340895 |
:101F200080912C088F5F80932C0880912C0885303D |
:101F300008F460C0809178009091790090930F032D |
:101F400080930E0310922C08809128089091290804 |
:101F50002091340830913508821B930B209166053F |
:101F600030916705821B930B9093E3048093E20406 |
:101F70002091340830913508E0900A03F0900B036B |
:101F800000910C0310910D03C801B701660F771F74 |
:101F9000881F991F6E0D7F1D801F911F442737FDDD |
:101FA0004095542F620F731F841F951F24E030E06B |
:101FB00040E050E00E94DD4820930A0330930B0379 |
:101FC00040930C0350930D03209128083091290869 |
:101FD00080910A0390910B03A0910C03B0910D0323 |
:101FE000281B390B3093670520936605109235083E |
:101FF000109234081092ED041092EC048091ED04DC |
:1020000080937C008091EC04882319F08FEE8093FC |
:102010007A00FF91EF91DF91CF91BF91AF919F91A6 |
:102020008F917F916F915F914F913F912F911F9170 |
:102030000F91FF90EF900F900FBE0F901F9018958B |
:102040000F931F93CF93DF93A3E0B0E00E942F493B |
:10205000802DC82FD0E0C531D10508F02A97C7BD23 |
:1020600084E690E00E944C0D80910E0390910F0346 |
:1020700082559340C8F4C0E0D0E016C0C7BD82E3EB |
:1020800090E00E944C0D1F930F931F920E94E10855 |
:1020900080910E0390910F030F900F900F90845832 |
:1020A000934038F0219602C000E711E0CA3FD10505 |
:1020B00028F3A3E0B0E00C2E0E943749C09331080A |
:1020C0008CE291E00E944C0DDF91CF911F910F9116 |
:1020D0000895EAE1F3E080E2819383E0EA36F807CD |
:1020E000D1F708950F931F938091F104282F30E0CA |
:1020F000C90181709070682F8823A9F08091F20443 |
:10210000882311F0815002C080916A038093F20409 |
:10211000EAE1F3E080E2819383E0EA36F807D1F761 |
:102120008FEF8093AC04A9014270507021FF10C062 |
:102130008091F2048F5F8093F204EAE1F3E080E2A1 |
:10214000819393E0EA36F907D1F78FEF8093AC04DF |
:10215000662321F0452B11F01092F20481E1809367 |
:10216000F0048091F20490E09F938F938CE194E0CF |
:102170009F938F9301E00F930E94E1081091F20466 |
:102180000F900F900F900F900F90153009F4FCC135 |
:10219000163090F4123009F4CCC0133030F411230F |
:1021A000F1F0113009F0D9C361C0133009F416C140 |
:1021B000143009F0D2C365C1183009F416C31930C0 |
:1021C00038F4163009F499C2173009F0C6C3EAC2D0 |
:1021D000193009F447C31A3009F0BFC381C3109204 |
:1021E000F0048AE094E09F938F930F930E94E1089C |
:1021F00084E18093F00420910001822F6AE00E9424 |
:102200008848492F50E0822F0E94884890E021E6BC |
:1022100030E03F932F9325E030E03F932F931F92C0 |
:102220001F925F934F939F938F9385EF93E09F93BC |
:102230008F930F930E94E10888E28093F0040E943C |
:102240008B0290E09F938F9388EE93E09F938F9300 |
:102250000F930E94E1088CE38093F00488ED93E0F3 |
:102260009F938F930F930E94E10898C28091740806 |
:1022700080FF47C01092F004809166059091670539 |
:102280009F938F9389EC93E09F938F931F930E946A |
:10229000E10884E18093F0048091680590916905DC |
:1022A0009F938F938AEB93E09F938F931F930E944A |
:1022B000E10888E28093F00480910E0390910F036F |
:1022C0009F938F938BEA93E09F938F931F930E942A |
:1022D000E1088CE38093F0048091310890E09F93B3 |
:1022E0008F938CE993E09F938F931F930E94E10853 |
:1022F0008DB79EB744960FB6F8949EBF0FBE8DBFA4 |
:1023000031C384E18093F00485E993E09F938F9338 |
:102310001F930E94E10888E28093F00487E893E02D |
:102320009F938F931F930E94E1088DB79EB70696E7 |
:10233000E2CF1092F0048DE793E09F938F930F9379 |
:102340000E94E10884E18093F00460910E05709191 |
:102350000F05809110059091110520E034E040E0D8 |
:1023600050E00E94DD485F934F933F932F938EE69A |
:1023700093E09F938F930F930E94E10888E28093EC |
:10238000F0046091160570911705809118059091E1 |
:10239000190520E034E040E050E00E94DD485F9302 |
:1023A0004F933F932F938FE593E09F938F930F93DA |
:1023B0000E94E1088CE38093F00480914A0590919B |
:1023C0004B059F938F9380E593E09F938F930F939B |
:1023D0000E94E1088DB79EB746968DCF1092F0040B |
:1023E0008091420890914308209140083091410823 |
:1023F0009F938F933F932F9380E493E09F938F93CA |
:102400000F930E94E10884E18093F00480914608D4 |
:102410009091470820914408309145089F938F93ED |
:102420003F932F9380E393E09F938F930F930E94AA |
:10243000E10888E28093F00480914A0890914B086B |
:1024400020914808309149089F938F933F932F9391 |
:1024500080E293E09F938F930F930E94E1088CE3B7 |
:102460008093F00480914E0890914F0820914C0881 |
:1024700030914D089F938F933F932F9380E193E08A |
:102480007AC01092F004E0916D08F0E0EE0FFF1FAB |
:10249000E25CF74F20813181E0916C08F0E0EE0FB3 |
:1024A000FF1FE25CF74F808191813F932F939F93B1 |
:1024B0008F9380E093E09F938F930F930E94E108A6 |
:1024C00084E18093F004E0916F08F0E0EE0FFF1FCD |
:1024D000E25CF74F20813181E0916E08F0E0EE0F71 |
:1024E000FF1FE25CF74F808191813F932F939F9371 |
:1024F0008F9380EF92E09F938F930F930E94E10858 |
:1025000088E28093F004E0917108F0E0EE0FFF1F85 |
:10251000E25CF74F20813181E0917008F0E0EE0F2E |
:10252000FF1FE25CF74F808191813F932F939F9330 |
:102530008F9380EE92E09F938F930F930E94E10818 |
:102540008CE38093F004E0917308F0E0EE0FFF1F3E |
:10255000E25CF74F20813181E0917208F0E0EE0FEC |
:10256000FF1FE25CF74F808191813F932F939F93F0 |
:102570008F9380ED92E09F938F930F930E94E108D9 |
:102580008DB79EB74C96B7CE1092F00482EC92E0D5 |
:102590009F938F930F930E94E1080F900F900F90DD |
:1025A000809100018A3009F04AC084E18093F004F0 |
:1025B0004091FA045091FB048091D0049091D10491 |
:1025C0002091FA043091FB04821B930B5F934F938D |
:1025D0009F938F9383EB92E09F938F930F930E942F |
:1025E000E10888E28093F0044091FC045091FD04DE |
:1025F0008091D2049091D3042091FC043091FD0489 |
:10260000821B930B5F934F939F938F9384EA92E087 |
:102610009F938F930F930E94E1088CE38093F004C3 |
:102620008091FE049091FF042091F3083091F4080A |
:102630009F938F933F932F9385E992E055C084E158 |
:102640008093F0048091FA049091FB0462E070E0C2 |
:102650000E94A8488091D0049091D1042091FA045E |
:102660003091FB04821B930B7F936F939F938F9307 |
:1026700086E892E09F938F930F930E94E10888E28F |
:102680008093F0048091FC049091FD0462E070E07E |
:102690000E94A8488091D2049091D3042091FC0418 |
:1026A0003091FD04821B930B7F936F939F938F93C5 |
:1026B00087E792E09F938F930F930E94E1088CE34A |
:1026C0008093F0048091FE049091FF0462E070E03A |
:1026D0000E94A8488091F3089091F4087F936F932B |
:1026E0009F938F9388E692E09F938F930F930E941E |
:1026F000E1088DB79EB74596FECD1092F0048BE5AC |
:1027000092E09F938F930F930E94E10884E180935E |
:10271000F00480910405909105052091D804309132 |
:10272000D9049F938F933F932F938CE492E09F93D0 |
:102730008F930F930E94E10888E28093F0048091C8 |
:102740000605909107052091D6043091D7049F93F8 |
:102750008F933F932F938DE392E09F938F930F93EB |
:102760000E94E1088CE38093F00460910805709169 |
:10277000090580910A0590910B050E941B47209145 |
:10278000C7083091C8087F936F933F932F938EE2D1 |
: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 |
:102930008CE38093F0042091900830E080918F0820 |
:1029400090E03F932F939F938F9382E791E09F9323 |
:102950008F930F930E94E108CBCC115010936A0320 |
:102960001092F2041092F1041F910F9108951092A9 |
:10297000B9008AE28093B800089585EA8093BC008C |
:1029800080E090E0089584E98093BC00089510925F |
:10299000B9008093BB0085E88093BC0080E090E0A4 |
:1029A00008951F920F920FB60F9211248F939F9349 |
:1029B000EF93FF938091F3048F5F8093F304815032 |
:1029C0008330C1F1843028F4813091F0823020F5D9 |
:1029D0000AC08530B9F18530E8F18630D9F1873009 |
:1029E00009F062C046C08091F404880F8E5A0CC072 |
:1029F0008091F4048F5F8093F40481502DC0833064 |
:102A000009F052C08091EB081092B9008093BB008E |
:102A100085E88093BC0048C084E98093BC00809125 |
:102A2000F404843018F41092F30402C01092F404F9 |
:102A300085EAEFCF8091F504880F8D5AE5CF82307B |
:102A4000A9F0DDCF8091BB00E091F504F0E0EA5CF5 |
:102A5000F74F80838091F504813029F0813078F739 |
:102A60008091B608D1CF8091BB08CECF8091DF088E |
:102A7000CBCF8091F5049091BB00E82FF0E0EA5CA9 |
:102A8000F74F94838F5F8093F504843010F0109299 |
:102A9000F50484E98093BC008AE090E0909386037B |
:102AA000809385031092F3048091BC00806880932A |
:102AB000BC00FF91EF919F918F910F900FBE0F90EF |
:102AC0001F9018954CEB50E084E9DA018C9310923A |
:102AD000F3042BEB30E0F90180811092F40480E8DC |
:102AE0008C931092BD001092BA001082E9EBF0E0D6 |
:102AF0001082A8EBB0E01C9210828AE28C9385EAE7 |
:102B0000DA018C931082F901108285E88C93089584 |
:102B100083EC80938100EFE6F0E080818062808327 |
:102B20001092FF041092FE041092FD041092FC0417 |
:102B30001092FB041092FA0408951F920F920FB6A0 |
:102B40000F9211240F931F932F933F934F935F93F3 |
:102B50006F937F938F939F93AF93BF93CF93DF93A5 |
:102B6000EF93FF9320918600309187008091F804C5 |
:102B70009091F904281B390B809186009091870071 |
:102B80009093F9048093F804C9018D549440C09146 |
:102B9000F604D091F704835F9A4158F4249714F017 |
:102BA00010926B0381E090E09093F7048093F60419 |
:102BB00062C0CA30D1050CF05EC0C9018B5F904085 |
:102BC000845B914008F040C0A901425D5140FE0184 |
:102BD000EE0FFF1FE25CF74F80819181FA01E81B45 |
:102BE000F90BCF01F7FF03C0909581959F4F069792 |
:102BF0004CF480915E05883C28F480915E05865FE8 |
:102C000080935E05FE01EE0FFF1F8F01025C174FE0 |
:102C1000D8012D913C91C901880F991F820F931FF4 |
:102C2000840F951F64E070E00E94A848D8018D9140 |
:102C30009C9111979B01281B390BEC5AF74F31835C |
:102C4000208311967C936E93FE013196F093F704E6 |
:102C5000E093F604E530F10511F45D9A06C05D9845 |
:102C6000E630F10511F45C9A05C05C98379711F4D1 |
:102C70005B9A01C05B98FF91EF91DF91CF91BF917B |
:102C8000AF919F918F917F916F915F914F913F9104 |
:102C90002F911F910F910F900FBE0F901F901895BD |
:102CA0002F923F924F925F926F927F928F929F925C |
:102CB000AF92BF92CF92DF92EF92FF920F931F934A |
:102CC000CF93DF93CDB7DEB722970FB6F894DEBF70 |
:102CD0000FBECDBF8091FE049091FF042091D404DB |
:102CE0003091D504821B930B9093F4088093F308E2 |
:102CF0008091D2049091D3042091FC043091FD0482 |
:102D0000821B930B9093B5088093B4088091D004F4 |
:102D10009091D1042091FA043091FB04821B930B13 |
:102D20009093BD088093BC082091EE083091EF0885 |
:102D30006091D8047091D904882777FD8095982FE9 |
:102D4000B4E0660F771F881F991FBA95D1F7442703 |
:102D500037FD4095542F620F731F841F951F22E08B |
:102D600030E040E050E00E94DD483093EF082093CF |
:102D7000EE082091FA083091FB086091D60470911A |
:102D8000D704882777FD8095982FA4E0660F771FDA |
:102D9000881F991FAA95D1F7442737FD4095542FD6 |
:102DA000620F731F841F951F22E030E040E050E067 |
:102DB0000E94DD483093FB082093FA082091C70851 |
:102DC0003091C8086091DA047091DB04882777FDA0 |
:102DD0008095982F442737FD4095542F620F731F1D |
:102DE000841F951F22E030E040E050E00E94DD4863 |
:102DF0003093C8082093C70820911E0530911F0505 |
:102E000040912005509121058091D8049091D904DA |
:102E1000F4E0880F991FFA95E1F7AA2797FDA0958E |
:102E2000BA2F820F931FA41FB51F80931E05909386 |
:102E30001F05A0932005B093210520912205309114 |
:102E4000230540912405509125058091D604909149 |
:102E5000D704E4E0880F991FEA95E1F7AA2797FDC8 |
:102E6000A095BA2F820F931FA41FB51F8093220530 |
:102E700090932305A0932405B09325056091260522 |
:102E8000709127058091280590912905E0902608EA |
:102E9000F0902708A0900805B0900905C0900A0599 |
:102EA000D0900B050E944E473B014C010027F7FCD8 |
:102EB0000095102FC801B7010E944E47A601950149 |
:102EC0000E944E469B01AC01C401B3010E944F46D3 |
:102ED0000E941B4760932605709327058093280561 |
:102EE000909329052091F3083091F408442737FD89 |
:102EF0004095542F8091030990910409A0910509F0 |
:102F0000B0910609820F931FA41FB51F8093030978 |
:102F100090930409A0930509B09306092091F30842 |
:102F20003091F408442737FD4095542F8091CB0809 |
:102F30009091CC08A091CD08B091CE08820F931F3C |
:102F4000A41FB51F8093CB089093CC08A093CD0805 |
:102F5000B093CE0820913E0530913F054091400549 |
:102F6000509141058091F3089091F408AA2797FDAC |
:102F7000A095BA2F820F931FA41FB51F80933E0503 |
:102F800090933F05A0934005B093410520914205E1 |
:102F90003091430540914405509145058091F308D7 |
:102FA0009091F408AA2797FDA095BA2F820F931F3E |
:102FB000A41FB51F8093420590934305A093440539 |
:102FC000B093450520916E052A83222309F069C03C |
:102FD00080916F05882309F064C08091740886FF92 |
:102FE00060C060912E0570912F0580913005909101 |
:102FF0003105E090F308F090F408A0907C05BB2424 |
:10300000CC24DD240027F7FC0095102F20E030E1D0 |
:1030100040E050E00E94DD48C801B7010E946948C5 |
:10302000A60195010E94694820E038E040E050E0A8 |
:103030000E94DD482093C7053093C8054093C90519 |
:103040005093CA0560913605709137058091380517 |
:1030500090913905E090F308F090F40820E030E119 |
:1030600040E050E00E94DD48CA01B901A601950187 |
:103070000E9469480027F7FC0095102FA8019701CE |
:103080000E94694820E038E040E050E00E94DD48BE |
:103090002093C3053093C4054093C5055093C605DE |
:1030A00010C01092C3051092C4051092C50510926D |
:1030B000C6051092C7051092C8051092C905109256 |
:1030C000CA058091B4089091B5082090C70530904A |
:1030D000C8054090C9055090CA05820D931D909374 |
:1030E000B5088093B4080091B4081091B508A09079 |
:1030F000C305B090C405C090C505D090C6058091A9 |
:103100007D05682E772488249924C401B301A60183 |
:1031100095010E94694820E032E040E050E00E94C2 |
:10312000DD48020F131F1093B5080093B4082091D7 |
:103130003A0530913B0540913C0550913D05809109 |
:10314000B4089091B508AA2797FDA095BA2F820FD1 |
:10315000931FA41FB51F80933A0590933B05A0933E |
:103160003C05B0933D05409136055091370560917F |
:103170003805709139058091B4089091B508209177 |
:103180006A0530916B05821B930BAA2797FDA095CA |
:10319000BA2F840F951FA61FB71F809336059093F3 |
:1031A0003705A0933805B093390580913605909185 |
:1031B0003705A0913805B0913905E0908B03F09068 |
:1031C0008C0300918D0310918E03E816F9060A070F |
:1031D0001B0704F580E197E2A0E0B0E08E199F099B |
:1031E000A00BB10B8093360590933705A09338055B |
:1031F000B09339058091360590913705A091380537 |
:10320000B091390580933A0590933B05A0933C0516 |
:10321000B0933D0520913605309137054091380532 |
:103220005091390588279927DC018E199F09A00B39 |
:10323000B10B281739074A075B0704F580EF98EDB3 |
:10324000AFEFBFEFE80EF91E0A1F1B1FE092360515 |
:10325000F0923705009338051093390580913605B3 |
:1032600090913705A0913805B091390580933A05C2 |
:1032700090933B05A0933C05B0933D058091D2040B |
:103280009091D3040F9734F488E19CEF9093B508A4 |
:103290008093B4088091D2049091D304079734F4BA |
:1032A00080E398EF9093B5088093B4089091000163 |
:1032B00099839A30A9F48091D2049091D304835FCA |
:1032C000934034F088EE93E09093B5088093B4086F |
:1032D0008091D2049091D3048A5F9340DCF014C0B3 |
:1032E0008091D2049091D304855E974034F088EEAB |
:1032F00093E09093B5088093B4088091D2049091A4 |
:10330000D304835F974034F080ED97E09093B50845 |
:103310008093B4088091BC089091BD088A199B09DC |
:103320009093BD088093BC080091BC081091BD0823 |
:10333000C401B301A20191010E94694820E032E07A |
:1033400040E050E00E94DD48021B130B1093BD08C3 |
:103350000093BC082091320530913305409134052B |
:10336000509135058091BC089091BD08AA2797FD22 |
:10337000A095BA2F820F931FA41FB51F809332050B |
:1033800090933305A0933405B093350540912E05F5 |
:1033900050912F0560913005709131058091BC08E6 |
:1033A0009091BD0820916C0530916D05821B930BA7 |
:1033B000AA2797FDA095BA2F840F951FA61FB71FA8 |
:1033C00080932E0590932F05A0933005B09331057F |
:1033D00080912E0590912F05A0913005B091310577 |
:1033E000E0908703F09088030091890310918A038D |
:1033F000E816F9060A071B0704F580E197E2A0E04A |
:10340000B0E08E199F09A00BB10B80932E0590930D |
:103410002F05A0933005B093310580912E05909132 |
:103420002F05A0913005B09131058093320590931E |
:103430003305A0933405B093350520912E053091C6 |
:103440002F05409130055091310588279927DC01DF |
:103450008E199F09A00BB10B281739074A075B0784 |
:1034600004F580EF98EDAFEFBFEFE80EF91E0A1FED |
:103470001B1FE0922E05F0922F050093300510934C |
:10348000310580912E0590912F05A0913005B091C6 |
:1034900031058093320590933305A0933405B093A2 |
:1034A00035058091D0049091D1040F9734F488E1D0 |
:1034B0009CEF9093BD088093BC088091D0049091BC |
:1034C000D104079734F480E398EF9093BD0880937C |
:1034D000BC0899819A30A9F48091D0049091D104CC |
:1034E000835F934034F088EE93E09093BD0880931F |
:1034F000BC088091D0049091D1048A5F9340DCF0A5 |
:1035000014C08091D0049091D104855E974034F02E |
:1035100088EE93E09093BD088093BC088091D0041E |
:103520009091D104835F974034F080ED97E09093C1 |
:10353000BD088093BC088FEE80937A0080913E0591 |
:1035400090913F05A0914005B091410580932A05D7 |
:1035500090932B05A0932C05B0932D0580912E05FB |
:1035600090912F05A0913005B091310580930E0503 |
:1035700090930F05A0931005B09311058091360527 |
:1035800090913705A0913805B091390580931605C3 |
:1035900090931705A0931805B093190580913205F3 |
:1035A00090913305A0913405B091350580931205B3 |
:1035B00090931305A0931405B093150580913A05D7 |
:1035C00090913B05A0913C05B0913D0580931A0573 |
:1035D00090931B05A0931C05B0931D058091740862 |
:1035E00087FF63C02A81222309F05FC080916F05A5 |
:1035F000882309F05AC08091BC089091BD08893C8D |
:1036000091055CF02091BC083091BD088091BC0808 |
:103610009091BD082052334011C08091BC08909118 |
:10362000BD0888539F4FA4F42091BC083091BD0879 |
:103630008091BC089091BD08205E3C4F880F991F77 |
:10364000880F991F280F391F3093BD082093BC089D |
:103650008091B4089091B508893C91055CF0209167 |
:10366000B4083091B5088091B4089091B508205203 |
:10367000334011C08091B4089091B50888539F4F92 |
:10368000A4F42091B4083091B5088091B4089091C9 |
:10369000B508205E3C4F880F991F880F991F280F8F |
:1036A000391F3093B5082093B40820915605309106 |
:1036B000570580917008E82FF0E0EE0FFF1FE25CE5 |
:1036C000F74F8081918182599F4F281739071CF449 |
:1036D0002F5F3F4F0CC08081918182599F4F82178D |
:1036E00093074CF42115310531F0215030403093CF |
:1036F0005705209356052091580530915905809122 |
:103700007108E82FF0E0EE0FFF1FE25CF74F8081B9 |
:10371000918182599F4F281739071CF42F5F3F4F23 |
:103720000CC08081918182599F4F821793074CF47E |
:103730002115310531F02150304030935905209347 |
:10374000580520915A0530915B0580917208E82F49 |
:10375000F0E0EE0FFF1FE25CF74F8081918182590C |
:103760009F4F281739071CF42F5F3F4F0CC08081F3 |
:10377000918182599F4F821793074CF4211531058F |
:1037800031F02150304030935B0520935A05209151 |
:103790005C0530915D0580917308E82FF0E0EE0F35 |
:1037A000FF1FE25CF74F8081918182599F4F28175C |
:1037B00039071CF42F5F3F4F0CC0808191818259E3 |
:1037C0009F4F821793074CF42115310531F021509A |
:1037D000304030935D0520935C05809156059091B3 |
:1037E000570597FF05C010925705109256050AC05D |
:1037F0008F3F910539F034F08FEF90E090935705AB |
:1038000080935605809158059091590597FF05C002 |
:1038100010925905109258050AC08F3F910539F052 |
:1038200034F08FEF90E09093590580935805809184 |
:103830005A0590915B0597FF05C010925B051092A9 |
:103840005A050AC08F3F910539F034F08FEF90E0B0 |
:1038500090935B0580935A0580915C0590915D057E |
:1038600097FF05C010925D0510925C050AC08F3F5E |
:10387000910539F034F08FEF90E090935D058093DF |
:103880005C0522960FB6F894DEBF0FBECDBFDF9168 |
:10389000CF911F910F91FF90EF90DF90CF90BF904D |
:1038A000AF909F908F907F906F905F904F903F90E0 |
:1038B0002F90089510927A008091D0049091D104B5 |
:1038C0009093BD088093BC088091D2049091D3045A |
:1038D0009093B5088093B4088091D4049091D50456 |
:1038E0009093F4088093F3088091D8049091D904C0 |
:1038F000AA2797FDA095BA2F74E0880F991FAA1FD9 |
:10390000BB1F7A95D1F79093EF088093EE088091D2 |
:10391000D6049091D704AA2797FDA095BA2F64E00A |
:10392000880F991FAA1FBB1F6A95D1F79093FB08B8 |
:103930008093FA088091DA049091DB049093C80890 |
:103940008093C7088FEE80937A00209156053091BE |
:10395000570580917008E82FF0E0EE0FFF1FE25C42 |
:10396000F74F8081918182599F4F281739071CF4A6 |
:103970002F5F3F4F0CC08081918182599F4F8217EA |
:1039800093074CF42115310531F02150304030932C |
:10399000570520935605209158053091590580917F |
:1039A0007108E82FF0E0EE0FFF1FE25CF74F808117 |
:1039B000918182599F4F281739071CF42F5F3F4F81 |
:1039C0000CC08081918182599F4F821793074CF4DC |
:1039D0002115310531F021503040309359052093A5 |
:1039E000580520915A0530915B0580917208E82FA7 |
:1039F000F0E0EE0FFF1FE25CF74F8081918182596A |
:103A00009F4F281739071CF42F5F3F4F0CC0808150 |
:103A1000918182599F4F821793074CF421153105EC |
:103A200031F02150304030935B0520935A052091AE |
:103A30005C0530915D0580917308E82FF0E0EE0F92 |
:103A4000FF1FE25CF74F8081918182599F4F2817B9 |
:103A500039071CF42F5F3F4F0CC080819181825940 |
:103A60009F4F821793074CF42115310531F02150F7 |
:103A7000304030935D0520935C0580915605909110 |
:103A8000570597FF05C010925705109256050AC0BA |
:103A90008F3F910539F034F08FEF90E09093570508 |
:103AA00080935605809158059091590597FF05C060 |
:103AB00010925905109258050AC08F3F910539F0B0 |
:103AC00034F08FEF90E090935905809358058091E2 |
:103AD0005A0590915B0597FF05C010925B05109207 |
:103AE0005A050AC08F3F910539F034F08FEF90E00E |
:103AF00090935B0580935A0580915C0590915D05DC |
:103B000097FF05C010925D0510925C050AC08F3FBB |
:103B1000910539F034F08FEF90E090935D0580933C |
:103B20005C056091970870E080E090E024EC39E05B |
:103B300040E050E00E9469486093870370938803D7 |
:103B40008093890390938A0360938B0370938C0313 |
:103B500080938D0390938E030895809177088B3F17 |
:103B600098F08B3F19F4809156050EC08C3F19F4E4 |
:103B70008091580509C08D3F19F480915A0504C001 |
:103B80008E3F21F480915C0580939403809194038F |
:103B9000882319F41092940304C08F3F11F480938A |
:103BA0009403809176088B3F98F08B3F19F48091B5 |
:103BB00056050EC08C3F19F48091580509C08D3F01 |
:103BC00019F480915A0504C08E3F21F480915C0560 |
:103BD0008093930380919303882319F410929303A5 |
:103BE00005C0843618F084E68093930380917808AA |
:103BF0008B3F98F08B3F19F4809156050EC08C3F97 |
:103C000019F48091580509C08D3F19F480915A0527 |
:103C100004C08E3F21F480915C05809395038091D0 |
:103C20009503882319F41092950305C0843618F083 |
:103C300084E68093950380917A088B3F98F08B3FC0 |
:103C400019F4809156050EC08C3F19F480915805E7 |
:103C500009C08D3F19F480915A0504C08E3F21F4AC |
:103C600080915C058093960380919603882319F4D4 |
:103C70001092960304C08F3F11F4809396038091B5 |
:103C800081088B3F98F08B3F19F4809156050EC048 |
:103C90008C3F19F48091580509C08D3F19F480912B |
:103CA0005A0504C08E3F21F480915C0580939703F0 |
:103CB00080919703882319F41092970304C08F3FD3 |
:103CC00011F480939703809182088B3F98F08B3F8B |
:103CD00019F4809156050EC08C3F19F48091580557 |
:103CE00009C08D3F19F480915A0504C08E3F21F41C |
:103CF00080915C0580939803809198038B3010F439 |
:103D00008AE002C08F3F11F480939803809183086A |
:103D10008B3F98F08B3F19F4809156050EC08C3F75 |
:103D200019F48091580509C08D3F19F480915A0506 |
:103D300004C08E3F21F480915C05809399038091AB |
:103D40009903882319F41092990304C08F3F11F44A |
:103D500080939903809188088B3F98F08B3F19F4EA |
:103D6000809156050EC08C3F19F48091580509C00A |
:103D70008D3F19F480915A0504C08E3F21F4809143 |
:103D80005C0580939B0380919B03882319F4109218 |
:103D90009B0304C08F3F11F480939B03809189089B |
:103DA0008B3F98F08B3F19F4809156050EC08C3FE5 |
:103DB00019F48091580509C08D3F19F480915A0576 |
:103DC00004C08E3F21F480915C058093740580913E |
:103DD0007405882319F41092740504C08F3F11F400 |
:103DE0008093740580918A088B3F98F08B3F19F47B |
:103DF000809156050EC08C3F19F48091580509C07A |
:103E00008D3F19F480915A0504C08E3F21F48091B2 |
:103E10005C058093750580917505882319F41092CF |
:103E2000750504C08F3F11F48093750580918B0850 |
:103E30008B3F98F08B3F19F4809156050EC08C3F54 |
:103E400019F48091580509C08D3F19F480915A05E5 |
:103E500004C08E3F21F480915C05809376058091AB |
:103E60007605882319F41092760504C08F3F11F46B |
:103E70008093760580918C088B3F98F08B3F19F4E6 |
:103E8000809156050EC08C3F19F48091580509C0E9 |
:103E90008D3F19F480915A0504C08E3F21F4809122 |
:103EA0005C058093770580917705882319F410923B |
:103EB000770504C08F3F11F48093770580919C08AB |
:103EC0008B3F98F08B3F19F4809156050EC08C3FC4 |
:103ED00019F48091580509C08D3F19F480915A0555 |
:103EE00004C08E3F21F480915C0580937805809119 |
:103EF0007805882319F41092780504C08F3F11F4D7 |
:103F00008093780580919D088B3F98F08B3F19F442 |
:103F1000809156050EC08C3F19F48091580509C058 |
:103F20008D3F19F480915A0504C08E3F21F4809191 |
:103F30005C058093790580917905882319F41092A6 |
:103F4000790504C08F3F11F48093790580919E0814 |
:103F50008B3F98F08B3F19F4809156050EC08C3F33 |
:103F600019F48091580509C08D3F19F480915A05C4 |
:103F700004C08E3F21F480915C0580937A05809186 |
:103F80007A05882319F410927A0504C08F3F11F442 |
:103F900080937A0580919F088B3F98F08B3F19F4AE |
:103FA000809156050EC08C3F19F48091580509C0C8 |
:103FB0008D3F19F480915A0504C08E3F21F4809101 |
:103FC0005C0580937B0580917B05882319F4109212 |
:103FD0007B0504C08F3F11F480937B0580918D0891 |
:103FE0008B3F98F08B3F19F4809156050EC08C3FA3 |
:103FF00019F48091580509C08D3F19F480915A0534 |
:1040000004C08E3F21F480915C0580939C038091D5 |
:104010009C03882319F410929C0304C08F3F11F471 |
:1040200080939C03809192088B3F98F08B3F19F40A |
:10403000809156050EC08C3F19F48091580509C037 |
:104040008D3F19F480915A0504C08E3F21F4809170 |
:104050005C0580939D0380919D03882319F4109241 |
:104060009D0304C08F3F11F480939D0380919508B8 |
:104070008B3F98F08B3F19F4809156050EC08C3F12 |
:1040800019F48091580509C08D3F19F480915A05A3 |
:1040900004C08E3F21F480915C0580937C05809163 |
:1040A0007C05882319F410927C0504C08F3F11F41D |
:1040B00080937C05809196088B3F98F08B3F19F494 |
:1040C000809156050EC08C3F19F48091580509C0A7 |
:1040D0008D3F19F480915A0504C08E3F21F48091E0 |
:1040E0005C0580937D0580917D05882319F41092ED |
:1040F0007D0504C08F3F11F480937D0580919B085E |
:104100008B3F98F08B3F19F4809156050EC08C3F81 |
:1041100019F48091580509C08D3F19F480915A0512 |
:1041200004C08E3F21F480915C0580939E038091B2 |
:104130009E03882319F410929E0304C08F3F11F44C |
:1041400080939E0360919B0370E080E090E00E946A |
:10415000A14427E137EB41ED58E30E940648609304 |
:104160008F037093900380939103909392038091B7 |
:104170007F088093F20880917E088093BE0808959E |
:104180001F93182F0EC080916505882361F484E683 |
:1041900090E09093C5048093C4048AEF90E00E945D |
:1041A000690D115080F71F9108958091650588234E |
:1041B00001F51092BB081092B6081092DF08109219 |
:1041C000EB088091AE04882311F08093B6088091AB |
:1041D000AF04882311F08093BB088091B00488233A |
:1041E00011F08093EB088091B104882311F0809343 |
:1041F000DF088091B60890E09093FC078093FB075E |
:104200008091BB0890E09093FE078093FD0780911A |
:10421000EB0890E0909300088093FF078091DF08FF |
:1042200090E090930208809301081092F30410929A |
:10423000F4040E94BD140895469A10920505109248 |
:104240000405109207051092060580E090E0A0E0BA |
:10425000B0E08093080590930905A0930A05B093F8 |
:104260000B051092FB041092FA041092FD041092B8 |
:10427000FC041092FF041092FE0410927C05109230 |
:104280007D050E945A1C84E690E00E944C0D0E941D |
:104290005A1C8091740880FF10C080910E03909189 |
:1042A0000F03875B934038F480910E0390910F03C6 |
:1042B0008E5E924010F40E9420108091D004909164 |
:1042C000D1049093FB048093FA048091D2049091DE |
:1042D000D3049093FD048093FC048091D4049091C6 |
:1042E000D5049093FF048093FE048091FC04909188 |
:1042F000FD0490930105809300058091FA0490914C |
:10430000FB04909303058093020544E050E0DA013A |
:104310000E942F49802D853038F18091FA089091C4 |
:10432000FB0897FF03C0909581959F4F60E170E077 |
:104330000E94A84870930705609306058091EE08D7 |
:104340009091EF0897FF03C0909581959F4F60E192 |
:1043500070E00E94A8487093050560930405609181 |
:1043600026087091270839C0DA010E942F49802D54 |
:104370004F5F5F4FDA010E942F49202D90E0982F68 |
:104380008827820F911D90930505809304054F5F48 |
:104390005F4FDA010E942F49802D4F5F5F4FDA0196 |
:1043A0000E942F49202D90E0982F8827820F911D81 |
:1043B00090930705809306054F5F5F4FDA010E94D7 |
:1043C0002F49602D4F5F5F4FDA010E942F49202D4A |
:1043D00070E0762F6627620F711D882777FD809524 |
:1043E000982F0E944E4760930805709309058093AB |
:1043F0000A0590930B0510922E0510922F0510922E |
:10440000300510923105109232051092330510924A |
:10441000340510923505109236051092370510922A |
:1044200038051092390510923A0510923B0510920A |
:104430003C0510923D0510923E0510923F051092EA |
:104440004005109241051092BD081092BC081092D0 |
:10445000B5081092B4081092F4081092F308109264 |
:10446000CB081092CC081092CD081092CE08809103 |
:104470000A0390910B03A0910C03B0910D0390934C |
:104480002908809328081092E3041092E204109205 |
:1044900046051092470510924805109249058091F3 |
:1044A0004A0590914B0590934D0580934C050E94D1 |
:1044B000953A82E390E09093C5048093C4046091A0 |
:1044C000970870E080E090E024EC39E040E050E0B4 |
:1044D0000E946948609387037093880380938903DF |
:1044E00090938A036091980870E080E090E00E94C9 |
:1044F000694860938B0370938C0380938D03909332 |
:104500008E031092A00310929F0320914A053091D0 |
:104510004B0584E195E0AC01249FC001259F900DDF |
:10452000349F900D1124AA2797FDA095BA2F809350 |
:10453000030990930409A0930509B09306098EE13D |
:1045400090E09093CE058093CD059093CC05809319 |
:10455000CB05089581E080936C0852E050936D087C |
:1045600043E040936E0874E070936F0865E06093D9 |
:10457000700886E08093710887E08093720898E065 |
:104580009093730880EC809374088EE18093750893 |
:104590008BEF809377083AE03093780822E32093FA |
:1045A000760820937A085093790840937B081092FC |
:1045B0007C0890937D088FE080937E088AEF80933B |
:1045C0007F088AE18093800880E88093810888ECE6 |
:1045D000809382088FEA8093830894E690938408FE |
:1045E0008FE5809385088CE3809386081092870876 |
:1045F0003093880880E58093890810928A08109289 |
:104600008B0810928C0810929C0810929D081092B2 |
:104610009E0810929F0890938D0888E280938E08E0 |
:104620001092A10820938F0886E9809390086093E8 |
:104630009108209392088AE5809393082093940828 |
:104640001092A0089093950830939608909397083D |
:10465000909398089093990870939A0820939B08D8 |
:10466000A6EAB8E0ECE6F3E08CE001900D92815010 |
:10467000E1F7089581E080936C0892E090936D08D3 |
:1046800083E080936E0844E040936F0855E05093B8 |
:10469000700886E08093710887E08093720888E054 |
:1046A0008093730880E4809374088EE1809375088A |
:1046B0008BEF809377083AE03093780822E32093D9 |
:1046C000760820937A089093790840937B0810929B |
:1046D0007C0830937D088FE080937E088AEF80937A |
:1046E0007F088AE18093800880E8809381088FEAC0 |
:1046F000809382088093830894E6909384088FE5E2 |
:10470000809385088CE3809386081092870880E266 |
:104710008093880880E58093890810928A08109217 |
:104720008B0810928C0810929C0810929D08109291 |
:104730009E0810929F0890938D0888E280938E08BF |
:104740001092A10820938F0886E9809390085093D7 |
:104750009108209392088AE5809393082093940807 |
:104760001092A0089093950830939608909397081C |
:10477000909398089093990840939A088BE48093BB |
:104780009B08A6EAB8E0E6E7F3E08CE001900D9222 |
:104790008150E1F7089581E080936C0882E0809376 |
:1047A0006D0893E090936E0844E040936F0875E0C5 |
:1047B0007093700886E08093710887E08093720898 |
:1047C00088E08093730880E4809374088EE180937E |
:1047D00075088BEF809377086AE06093780822E38E |
:1047E0002093760820937A084093790890937B0869 |
:1047F00040937C088EE080937D088FE080937E0854 |
:104800008AEF80937F088AE18093800880E8809314 |
:10481000810888E78093820856E95093830894E6DC |
:10482000909384088FE5809385088CE380938608B5 |
:104830001092870880E2809388083AE530938908CF |
:1048400088E180938A0882E880938B0810928C0814 |
:1048500010929C0810929D0810929E0810929F083A |
:1048600090938D0888E280938E081092A10820937F |
:104870008F0850939008709391082093920830937A |
:104880009308209394081092A00890939508609341 |
:1048900096089093970890939808209399084093CE |
:1048A0009A0890939B08A6EAB8E0EEE7F3E08CE064 |
:1048B00001900D928150E1F708952F923F924F920F |
:1048C0005F926F927F928F929F92AF92BF92CF92A0 |
:1048D000DF92EF92FF920F931F93CF93DF93CDB7A9 |
:1048E000DEB766970FB6F894DEBF0FBECDBF0E944D |
:1048F000501680916E0990916F09009729F00197E9 |
:1049000090936F0980936E090E94613B892B39F463 |
:10491000809100018A3011F4289A01C02898299AC0 |
:10492000E0916E08F0E0EE0FFF1FE25CF74F0081B0 |
:1049300011818091F20890E0449708581F4F80172A |
:1049400091070CF48C0120910803309109038091A8 |
:10495000840890E004974091840550918505821762 |
:104960009307C4F123E0493E520724F110928505D4 |
:10497000109284058090CB059090CC052091CD05B8 |
:104980003091CE05C901880F991F820F931F880FA0 |
:10499000991F880F991F6FE070E00E94A848681562 |
:1049A000790574F40894810891089092CC0580925E |
:1049B000CB0506C04F5F5F4F50938505409384053C |
:1049C0008091CB059091CC05801791070CF03FC0EA |
:1049D0008C013DC033E0493E5307C4F08091CD05C2 |
:1049E0009091CE059C0143E0220F331F4A95E1F7D9 |
:1049F000280F391FC801820F931F6AE070E00E94E0 |
:104A0000A8487093CE056093CD0519C0CA010196E0 |
:104A100090938505809384056AE070E00E94A84821 |
:104A2000892B89F48091CB059091CC058017910753 |
:104A300034F401969093CC058093CB0504C0109379 |
:104A4000CC050093CB050091CB051091CC051A83C2 |
:104A5000098317FF02C01A82198280915E0584368D |
:104A600008F05DC080910301882399F480910403CC |
:104A7000909105038F5F9F4F61F488E99AE39093CB |
:104A8000C5048093C40480E09CE090930503809368 |
:104A900004038091A5059091A605009731F0019738 |
:104AA0009093A6058093A50504C010926505109209 |
:104AB0005005809100018A3011F4289A01C028988D |
:104AC0008091A0059091A105815D974028F180918A |
:104AD0008508682F70E07A83698381E080935005B0 |
:104AE000E0916C08F0E0EE0FFF1FE25CF74F1182DF |
:104AF0001082E0916D08F0E0EE0FFF1FE25CF74FCF |
:104B000011821082E0916F08F0E0EE0FFF1FE25C6F |
:104B1000F74F118210826EC2109265056BC28091B0 |
:104B20005E058D3808F466C21092500580918608A3 |
:104B300022E3829FC00111249093A6058093A505CE |
:104B400089819A8189976CF08091A0059091A10547 |
:104B5000AFEF8F3F9A0729F001969093A1058093BC |
:104B6000A0058091A0059091A105883C910520F0B9 |
:104B7000E981FA81B89704F51092BF051092C0053B |
:104B80001092C1051092C2051092BB051092BC058F |
:104B90001092BD051092BE0510923E0510923F0581 |
:104BA0001092400510924105109242051092430563 |
:104BB000109244051092450529813A81293C31051E |
:104BC0000CF472C180916505882309F013C28091AD |
:104BD0006F08E82FF0E0EE0FFF1FE25CF74F8081D7 |
:104BE00091818C3491050CF4D5C08091A4058F5F20 |
:104BF0008093A405893C08F4FDC129980E941C21DA |
:104C0000109265051092A4051092A1051092A005BE |
:104C100080916C08282F30E0F901EE0FFF1FE25C55 |
:104C2000F74F80819181873491059CF4E0916D0864 |
:104C3000F0E0EE0FFF1FE25CF74F0190F081E02DF6 |
:104C4000F7FF03C0F095E195FF4FE734F1050CF451 |
:104C50006CC080916D08682F70E0DB01AA0FBB1F4C |
:104C6000A25CB74F8D919C911197873491053CF0D0 |
:104C7000F901EE0FFF1FE25CF74F808191818D916A |
:104C80009C918734910564F0F901EE0FFF1FE25CFF |
:104C9000F74F808191818734910514F042E001C083 |
:104CA00041E0FB01EE0FFF1FE25CF74F8081918135 |
:104CB000863491055CF4F901EE0FFF1FE25CF74FBB |
:104CC00080819181873491050CF043E0FB01EE0F68 |
:104CD000FF1FE25CF74F808191818A5B9F4F5CF4FC |
:104CE000F901EE0FFF1FE25CF74F8081918187345D |
:104CF00091050CF044E0660F771F625C774FDB0193 |
:104D00008D919C918A5B9F4F5CF4220F331F225C34 |
:104D1000374FF90180819181863491050CF445E08B |
:104D2000A2E0B0E0042E0E9437490E948B0247E4C3 |
:104D30006CE678E00E94B2020E948B020E94C020C2 |
:104D40008091740880FF10C080910E0390910F0332 |
:104D5000875B934038F480910E0390910F038E5E31 |
:104D6000924010F40E9420100E94B43B8091580998 |
:104D7000882309F43FC188EE93E00E94690D88EE14 |
:104D800093E09093C5048093C40484EF91E00E9463 |
:104D9000690D30C180819181855B9F4F0CF081C08E |
:104DA0008091A4058F5F8093A405893C08F422C1FB |
:104DB00029988FEF04E010E0D801082E0E943749AF |
:104DC000109265051092A4051092A1051092A005FD |
:104DD0000E941C21809104059091050560E071E01E |
:104DE0000E94A848D801062E0E94374980910405E8 |
:104DF0009091050560E071E00E94A8480F5F1F4F89 |
:104E0000D801082E0E943749809106059091070528 |
:104E100060E071E00E94A8480F5F1F4FD801062E86 |
:104E20000E943749809106059091070560E071E086 |
:104E30000E94A8480F5F1F4FD801082E0E943749D3 |
:104E4000609108057091090580910A0590910B0504 |
:104E50000E941B47DC01CB0160E071E00E94A84882 |
:104E60000F5F1F4FD801062E0E9437496091080539 |
:104E70007091090580910A0590910B050E941B47CE |
:104E8000DC01CB0160E071E00E94A8480F5F1F4F7A |
:104E9000D801082E0E9437490E948B020E94C02030 |
:104EA000A9C01092A405A6C0E981FA81B3970CF0BD |
:104EB000A1C0E0916F08F0E0EE0FFF1FE25CF74F3A |
:104EC00080819181855B9F4F0CF072C08091A3051A |
:104ED0008F5F8093A305893C08F46CC0469A88ECE8 |
:104EE0008093A30581E090E09093A1058093A005B5 |
:104EF00081E0809365051092B7051092B805109275 |
:104F0000B9051092BA0510923E0510923F05109215 |
:104F100040051092410510924205109243051092EF |
:104F200044051092450510922E0510922F051092FF |
:104F30003005109231051092360510923705109207 |
:104F400038051092390580910E0590910F05A091BA |
:104F50001005B09111058093320590933305A0930D |
:104F60003405B09335058091160590911705A091F1 |
:104F70001805B091190580933A0590933B05A093CD |
:104F80003C05B0933D051092BF051092C0051092EC |
:104F9000C1051092C2051092BB051092BC0510927B |
:104FA000BD051092BE0580E090E00E94093D02C060 |
:104FB0001092A305E0916F08F0E0EE0FFF1FE25C96 |
:104FC000F74F808191818C34910594F08091A205F6 |
:104FD0008F5F8093A205893C68F046981092650522 |
:104FE00088EC8093A2051092A1051092A00502C042 |
:104FF0001092A20580916B03815080936B03809186 |
:105000006B038F3F29F080915005882309F429C351 |
:105010000E94AD1D80916C08882E9924D401AA0F9E |
:10502000BB1FCD01825C974FFC01808191819A8BDF |
:10503000898B80917B08E82EFF24AC5AB74F0D90E6 |
:10504000BC91A02DBC8BAB8B80917C08282E332487 |
:1050500080916D08C82EDD24C601880F991FDC01E0 |
:10506000A25CB74F0D90BC91A02DB88BAF878C5A26 |
:10507000974FDC01AD90BC90E0916F08AE2FB0E08F |
:10508000AA0FBB1FA25CB74F0D90BC91A02DBE878D |
:10509000AD876091980370E080E090E00E94A144A9 |
:1050A00020E030E040E251E40E944F4620E030E052 |
:1050B00040E85BE30E9406482B013C016093F50841 |
:1050C0007093F6088093F7089093F808609199031D |
:1050D00070E080E090E00E94A14420E030EE4BE2DE |
:1050E00057E40E94B3466093DB087093DC0880931A |
:1050F000DD089093DE082091B304222331F08AE08A |
:1051000090E09093C5048093C404E22F22FF09C06D |
:1051100080917405482F50E0440F551F440F551FD0 |
:1051200010C023FD03C040E050E00BC08091740527 |
:1051300090E0880F991F880F991F44275527481B17 |
:10514000590B20917E0530917F05C90113E0880F2E |
:10515000991F1A95E1F7821B930B840F951F68E046 |
:1051600070E00E94A8488B0170937F0560937E05D4 |
:10517000E4FF09C080917405482F50E0440F551F8B |
:10518000440F551F10C0E5FD03C040E050E00BC0C8 |
:105190008091740590E0880F991F880F991F44270C |
:1051A0005527481B590B80918005909181059C01E2 |
:1051B000F3E0220F331FFA95E1F7281B390BCA01E0 |
:1051C000820F931F68E070E00E94A8487E8B6D8B71 |
:1051D00070938105609380058091B204282F83FF2E |
:1051E00003C082E390E004C082FF07C08EEC9FEF13 |
:1051F000909383058093820504C0109283051092DA |
:10520000820521FF09C080919F039091A003019620 |
:105210009093A00380939F0324FF09C080919F0374 |
:105220009091A00301979093A00380939F032B89F3 |
:105230003C89229DF001239DF00D329DF00D11243B |
:1052400049895A894E9DC0014F9D900D5E9D900DDC |
:105250001124E80FF91FC80168E070E00E94A84817 |
:10526000E60FF71FFC8BEB8BF0936005E0935F0577 |
:10527000A29C8001A39C100DB29C100D11246F857F |
:1052800078896E9DC0016F9D900D7E9D900D1124BB |
:10529000080F191F8D899E8968E070E00E94A84858 |
:1052A000060F171F10936205009361058091820518 |
:1052B00090918305AD85BE858A1B9B0B90936405F9 |
:1052C000809363058091740882FF0CC080E090E0B9 |
:1052D000A0E0B0E08093DB089093DC08A093DD08A9 |
:1052E000B093DE0820E030E040E050E0C301B201BE |
:1052F0000E948947882364F480E090E0A0E0B0E059 |
:105300008093F5089093F608A093F708B093F808F7 |
:1053100020E030E040E050E06091DB087091DC0874 |
:105320008091DD089091DE080E948947882364F40B |
:1053300080E090E0A0E0B0E08093DB089093DC0890 |
:10534000A093DD08B093DE088091A008682F70E07C |
:10535000E4E06E2E712C6622772282FDC4C083FDAC |
:10536000C2C080910E0590910F05A0911005B091DB |
:10537000110581569A4EA040B040E4F0C70173E099 |
:10538000880F991F7A95E1F72B893C89281B390BE7 |
:105390003093600520935F0580910E0590910F0575 |
:1053A000A0911005B091110581589843A140B040DB |
:1053B000ACF128C080910E0590910F05A0911005C9 |
:1053C000B0911105805A9541AF4FBF4F3CF5970101 |
:1053D00053E0220F331F5A95E1F74B895C89240F64 |
:1053E000351F3093600520935F0580910E059091E5 |
:1053F0000F05A0911005B091110581589843A14067 |
:10540000B04064F0C70144E0880F991F4A95E1F766 |
:10541000281B390B3093600520935F05809116059A |
:1054200090911705A0911805B091190581569A4ED3 |
:10543000A040B0403CF1C701B3E0880F991FBA9576 |
:10544000E1F7F801E81BF90BF0936205E0936105C1 |
:105450008091160590911705A0911805B091190536 |
:1054600081589843A140B0400CF43DC0A4E0EE0C3C |
:10547000FF1CAA95E1F7EE19FF09F0936205E0938E |
:10548000610531C08091160590911705A09118050E |
:10549000B0911905805A9541AF4FBF4F24F5970140 |
:1054A00073E0220F331F7A95E1F7200F311F3093FD |
:1054B0006205209361058091160590911705A091D2 |
:1054C0001805B091190581589843A140B0405CF08F |
:1054D00054E0EE0CFF1C5A95E1F72E193F0930936A |
:1054E000620520936105F601EE0FFF1FE25CF74FA6 |
:1054F0002081318180919308482F50E04217530753 |
:1055000034F4672821F081E08093700511C0F60122 |
:10551000EE0FFF1FE25CF74F2081318180919408EC |
:10552000DA01A81BB1092A173B0714F41092700581 |
:10553000F601EE0FFF1FE25CF74F80819181AA27F1 |
:10554000BB27A41BB50B8A179B0734F463FF04C069 |
:1055500081E08093710517C080917105882399F0CF |
:10556000CC0CDD1CEEE3F8E0CE0EDF1EF601208150 |
:1055700031818091940890E0841B950B82179307EA |
:1055800014F410927105F401EE0FFF1FE25CF74F67 |
:10559000808191814817590734F460FF04C081E08D |
:1055A0008093730515C080917305882389F0F401F9 |
:1055B000EE0FFF1FE25CF74F20813181809194084C |
:1055C000FA01E81BF1092E173F0714F41092730536 |
:1055D000F401EE0FFF1FE25CF74F808191818A1783 |
:1055E0009B0734F461FF04C081E08093720517C00B |
:1055F00080917205882399F0880C991C2EE338E07D |
:10560000820E931ED4012D913C918091940890E0DC |
:10561000841B950B8217930714F4109272058091E6 |
:105620007005882321F480917105882321F081E0A1 |
:1056300080936F0502C010926F05809173058823D7 |
:1056400021F480917205882351F081E080936E05EA |
:1056500010926F05109270051092710502C01092A1 |
:105660006E0580916F05882311F40C94723A84E6DC |
:1056700090E09093C5048093C4048091920890E0D8 |
:10568000E981FA818E179F0714F49A8389838091A8 |
:105690005005882341F11092640510926305109221 |
:1056A000600510925F0510926205109261058DEC05 |
:1056B0009CECACECBDE38093F5089093F608A093C6 |
:1056C000F708B093F8088AE097EDA3EABBE380936C |
:1056D000DB089093DC08A093DD08B093DE081092FD |
:1056E0006F0510926E052091D1083091D20840913B |
:1056F000D3085091D40880910E0590910F05A09188 |
:105700001005B0911105820F931FA41FB51F809340 |
:10571000D1089093D208A093D308B093D4082091D5 |
:10572000D5083091D6084091D7085091D80880917B |
:10573000160590911705A0911805B0911905820FD3 |
:10574000931FA41FB51F8093D5089093D608A093EC |
:10575000D708B093D8082091C3083091C40840916D |
:10576000C5085091C6088091120590911305A0912B |
:105770001405B0911505820F931FA41FB51F8093C8 |
:10578000C3089093C408A093C508B093C60820919D |
:10579000B7083091B8084091B9085091BA08809183 |
:1057A0001A0590911B05A0911C05B0911D05820F53 |
:1057B000931FA41FB51F8093B7089093B808A093B8 |
:1057C000B908B093BA0850906E05552029F480911D |
:1057D0006F05882309F45FC010921E0510921F0503 |
:1057E0001092200510922105109222051092230597 |
:1057F00010922405109225051092D1081092D2081B |
:105800001092D3081092D4081092D5081092D6089E |
:105810001092D7081092D8081092C3081092C408AA |
:105820001092C5081092C6081092B7081092B808D6 |
:105830001092B9081092BA0880912E0590912F0508 |
:10584000A0913005B09131058093320590933305D6 |
:10585000A0933405B09335058091360590913705B6 |
:10586000A0913805B091390580933A0590933B0596 |
:10587000A0933C05B0933D051092E5041092E4041A |
:1058800010926D0510926C0510926B0510926A05CE |
:10589000552009F0A7C080916F05882309F0A2C0A8 |
:1058A00060910E0570910F05809110059091110582 |
:1058B000A0908008BB24CC24DD24E090EE08F0907A |
:1058C000EF08A60195010E94DD480027F7FC00952E |
:1058D000102F2E193F09400B510BCA01B90120E1CD |
:1058E00030E040E050E00E94DD4839014A0160911B |
:1058F0001605709117058091180590911905E09093 |
:10590000FA08F090FB08A60195010E94DD480027E7 |
:10591000F7FC0095102F2E193F09400B510BCA01BF |
:10592000B90120E130E040E050E00E94DD48F1E2C2 |
:105930006F1671048104910434F0F0E26F2E712C23 |
:10594000812C912C11C060EE66166FEF76066FEF1A |
:1059500086066FEF960644F4E0EE6E2EEFEF7E2E95 |
:10596000EFEF8E2EEFEF9E2E2132310541055105CE |
:105970002CF020E230E040E050E00CC0203E7FEF11 |
:1059800037077FEF47077FEF570724F420EE3FEFFD |
:105990004FEF5FEF80912E0590912F05A09130057C |
:1059A000B091310586199709A809B90980932E0588 |
:1059B00090932F05A0933005B09331058091360563 |
:1059C00090913705A0913805B0913905821B930B52 |
:1059D000A40BB50B8093360590933705A09338053B |
:1059E000B09339058091E4049091E5048F3F9105CF |
:1059F00009F008F4A9C4552009F02AC480916F0564 |
:105A0000882309F025C46091D1087091D208809153 |
:105A1000D3089091D40820E031E040E050E00E94AB |
:105A2000DD482093D1083093D2084093D308509397 |
:105A3000D4086091D5087091D6088091D7089091CC |
:105A4000D80820E031E040E050E00E94DD4820939B |
:105A5000D5083093D6084093D7085093D808E090E3 |
:105A60008008FF2400E010E020911E0530911F0502 |
:105A70004091200550912105C801B7010E94694855 |
:105A800020E031E040E050E00E94DD4820931E0518 |
:105A900030931F0540932005509321052091220546 |
:105AA000309123054091240550912505C801B70187 |
:105AB0000E94694820E031E040E050E00E94DD486B |
:105AC0002093220530932305409324055093250508 |
:105AD00060912605709127058091280590912905F0 |
:105AE00020E031E040E050E00E94DD4820932605B0 |
:105AF0003093270540932805509329056091D108DC |
:105B00007091D2088091D3089091D40820911E05FD |
:105B100030911F054091200550912105E090990892 |
:105B2000FF2400E010E0621B730B840B950BA801AF |
:105B300097010E94DD482093980530939905409382 |
:105B40009A0550939B05CA01B90120E031E040E07D |
:105B500050E00E94DD48690130936D0520936C058B |
:105B60006091D5087091D6088091D7089091D80897 |
:105B7000209122053091230540912405509125055F |
:105B8000621B730B840B950BA80197010E94DD48E3 |
:105B9000CA01B90120E031E040E050E00E94DD4858 |
:105BA000290130936B0520936A056091C3087091B9 |
:105BB000C4088091C5089091C60820E031E040E01B |
:105BC00050E00E94DD482093C3083093C4084093FE |
:105BD000C5085093C6086091B7087091B8088091C5 |
:105BE000B9089091BA0820E031E040E050E00E940E |
:105BF000DD482093B7083093B8084093B908509314 |
:105C0000BA0860901205709013058090140590906A |
:105C1000150580910E0590910F05A0911005B0918A |
:105C20001105681A790A8A0A9B0A6092B305709274 |
:105C3000B4058092B5059092B605E0901A05F090F3 |
:105C40001B0500911C0510911D0580911605909172 |
:105C50001705A0911805B0911905E81AF90A0A0B61 |
:105C60001B0BE092AF05F092B0050093B1051093C5 |
:105C7000B2056092AB057092AC058092AD05909232 |
:105C8000AE05E092A705F092A8050093A905109330 |
:105C9000AA058091320590913305A0913405B09109 |
:105CA000350586199709A809B9098093320590939B |
:105CB0003305A0933405B093350580913A05909152 |
:105CC0003B05A0913C05B0913D058E199F09A00BA5 |
:105CD000B10B80933A0590933B05A0933C05B0939C |
:105CE0003D058091030990910409A0910509B091A7 |
:105CF00006098032E4E29E07E7E0AE07E0E0BE0777 |
:105D000064F080529442A740B0408093030990937E |
:105D10000409A0930509B0930609809103099091A5 |
:105D20000409A0910509B0910609B7FF0CC0805E77 |
:105D30009B4DA84FBF4F8093030990930409A093F4 |
:105D40000509B0930609809100018A3011F4289862 |
:105D500001C0289A81E090E090939305809392058A |
:105D60008091D1089091D208A091D308B091D40825 |
:105D700020918A0530918B0540918C0550918D05BD |
:105D8000281B390B4A0B5B0B57FF07C050954095FA |
:105D9000309521953F4F4F4F5F4F20523E4440403A |
:105DA00050400CF0B9C021E0621620E1720620E0FC |
:105DB000820620E092060CF44EC080919105882363 |
:105DC00009F445C0D401C3017CE0B595A79597952A |
:105DD00087957A95D1F701969093930580939205D4 |
:105DE000D401C30163E0B595A795979587956A950A |
:105DF000D1F78093980590939905A0939A05B09355 |
:105E00009B0589589341A040B04064F088E893E135 |
:105E1000A0E0B0E08093980590939905A0939A052F |
:105E2000B0939B05609198057091990580919A05B2 |
:105E300090919B0520E031E040E050E00E94DD4879 |
:105E4000C20ED31ED0926D05C0926C0562C081E077 |
:105E5000809391055EC01092910540E0641640EF7A |
:105E600074064FEF84064FEF94060CF052C08091F9 |
:105E70009005882309F449C088279927DC018619F1 |
:105E80009709A809B9095CE0B595A79597958795F5 |
:105E90005A95D1F701969093930580939205C4018A |
:105EA000B30128E030E040E050E00E94DD4820935C |
:105EB00098053093990540939A0550939B05285770 |
:105EC0003C4E4F4F5F4F64F488E79CEEAFEFBFEF5F |
:105ED0008093980590939905A0939A05B0939B059C |
:105EE000609198057091990580919A0590919B0514 |
:105EF00020E031E040E050E00E94DD48C20ED31EB9 |
:105F0000D0926D05C0926C050BC081E08093900526 |
:105F100007C01092900504C010929305109292054C |
:105F2000C090EE08D090EF08D7FE04C0D094C19482 |
:105F3000D108D394D092C008C092BF08A090FA08AC |
:105F4000B090FB08B7FE04C0B094A194B108B3941C |
:105F5000B092E608A092E50874E6C716D1040CF0EA |
:105F600041C084E6A816B104ECF580919A08282F68 |
:105F700030E080919205909193052817390724F419 |
:105F8000309393052093920591E0691694E0790689 |
:105F900090E0890690E0990674F08091FA0490915F |
:105FA000FB042091920530919305820F931F9093EB |
:105FB000FB048093FA04A0E06A16ACEF7A06AFEF18 |
:105FC0008A06AFEF9A0674F48091FA049091FB046C |
:105FD0002091920530919305821B930B9093FB04C3 |
:105FE0008093FA0481E090E090939305809392056A |
:105FF00010929405109295051092960510929705AF |
:106000008091D5089091D608A091D708B091D80872 |
:10601000209186053091870540918805509189052A |
:10602000281B390B4A0B5B0B57FF07C05095409557 |
:10603000309521953F4F4F4F5F4F20523E44404097 |
:1060400050400CF0B9C0E1E0EE16E0E1FE06E0E001 |
:106050000E07E0E01E070CF44EC080918F058823E8 |
:1060600009F445C0D801C7014CE0B595A7959795AF |
:1060700087954A95D1F70196909393058093920561 |
:10608000D801C70133E0B595A795979587953A95BF |
:10609000D1F78093940590939505A0939605B093BE |
:1060A000970589589341A040B04064F088E893E197 |
:1060B000A0E0B0E08093940590939505A093960599 |
:1060C000B093970560919405709195058091960520 |
:1060D0009091970520E031E040E050E00E94DD48DB |
:1060E000420E531E50926B0540926A0562C081E0D9 |
:1060F00080938F055EC010928F0520E0E21620EF9E |
:10610000F2062FEF02072FEF12070CF052C080911A |
:106110008E05882309F449C088279927DC018E1948 |
:106120009F09A00BB10B2CE0B595A7959795879586 |
:106130002A95D1F701969093930580939205C80113 |
:10614000B70128E030E040E050E00E94DD482093B5 |
:1061500094053093950540939605509397052857DD |
:106160003C4E4F4F5F4F64F488E79CEEAFEFBFEFBC |
:106170008093940590939505A0939605B093970509 |
:106180006091940570919505809196059091970581 |
:1061900020E031E040E050E00E94DD48420E531E16 |
:1061A00050926B0540926A050BC081E080938E058A |
:1061B00007C010928E0504C01092930510929205AC |
:1061C00078ECC716D1040CF04BC088ECA816B104CB |
:1061D0000CF046C080919A08282F30E080919205FB |
:1061E000909193052817390724F430939305209351 |
:1061F000920591E0E91694E0F90690E0090790E035 |
:10620000190774F08091FC049091FD04209192058F |
:1062100030919305820F931F9093FD048093FC04AB |
:10622000A0E0EA16ACEFFA06AFEF0A07AFEF1A07E5 |
:10623000BCF48091FC049091FD0420919205309172 |
:106240009305821B930B9093FD048093FC0408C07C |
:1062500010926B0510926A0510926D0510926C05F4 |
:1062600020E030E040E050E06091DB087091DC0815 |
:106270008091DD089091DE080E948947882341F4CF |
:1062800010926B0510926A0510926D0510926C05C4 |
:106290008091D1089091D208A091D308B091D408F0 |
:1062A00080938A0590938B05A0938C05B0938D0500 |
:1062B0008091D5089091D608A091D708B091D808C0 |
:1062C0008093860590938705A0938805B0938905F0 |
:1062D00010921E0510921F051092200510922105A4 |
:1062E0001092220510922305109224051092250584 |
:1062F0001092260510922705109228051092290564 |
:106300001092D1081092D2081092D3081092D4089B |
:106310001092D5081092D6081092D7081092D8087B |
:106320001092C3081092C4081092C5081092C608B3 |
:106330001092B7081092B8081092B9081092BA08D3 |
:106340001092E5041092E4048091C804882309F4B3 |
:106350006EC11092C8042091EE083091EF0837FF0B |
:1063600003C0309521953F4F3093C0082093BF085C |
:106370008091FA089091FB0897FF03C09095819552 |
:106380009F4F9093E6088093E508243631050CF082 |
:106390003CC1843691050CF038C120914A053091FA |
:1063A0004B058091C9049091CA04281B390B37FF13 |
:1063B00003C0309521953F4F263031050CF02FC199 |
:1063C00080916305909164054396879708F091C08A |
:1063D00080915405909155058F3F91052CF40196BD |
:1063E00090935505809354058091540590915505DF |
:1063F00003970CF492C06091CB087091CC08809107 |
:10640000CD089091CE0824E135E040E050E00E94B4 |
:10641000DD48F9013093C0082093BF0860914A0518 |
:1064200070914B0580916A0890916B08681B790BFD |
:106430007093E6086093E508BFEF6C347B0734F493 |
:1064400068597E4F7093E6086093E5088091E508EF |
:106450009091E608853B910534F0885691409093E1 |
:10646000E6088093E5088091E5089091E608E81B2E |
:10647000F90BF093E608E093E508399734F088E0EB |
:1064800090E09093E6088093E5088091E50890916C |
:10649000E608885F9F4F34F488EF9FEF9093E608FB |
:1064A0008093E508C90137FF03C0909581959F4F00 |
:1064B00002979CF11092CB081092CC081092CD0854 |
:1064C0001092CE0880914A0590914B0590936B08ED |
:1064D00080936A088091FE049091FF042091E50862 |
:1064E0003091E608821B930B9093FF048093FE0487 |
:1064F00014C080914A0590914B0590936B0880934E |
:106500006A0810925505109254051092CB0810920B |
:10651000CC081092CD081092CE0881E080935205ED |
:106520006091030970910409809105099091060911 |
:1065300024E135E040E050E00E94DD48209303096B |
:1065400030930409409305095093060960914A0568 |
:1065500070914B05621B730B7093C0086093BF086A |
:10656000CB010197833B910588F0643B710534F4BE |
:10657000CB018C549F4F843B910528F4215030402F |
:106580004040504007C06C547F4F64F42F5F3F4F32 |
:106590004F4F5F4F2093030930930409409305093F |
:1065A000509306098091030990910409A09105096F |
:1065B000B0910609B7FF0CC088599E4FAF4FBF4F2F |
:1065C0008093030990930409A0930509B0930609E9 |
:1065D0006091030970910409809105099091060961 |
:1065E00028E631E040E050E00E94DD4824E135E05B |
:1065F00040E050E00E9469486093030970930409E9 |
:1066000080930509909306090AC0109252051092D2 |
:10661000CB081092CC081092CD081092CE08809131 |
:106620004A0590914B059093CA048093C9048091C8 |
:10663000740885FF3EC0E0916C08F0E0EE0FFF1F8C |
:10664000E25CF74F0190F081E02DF7FF03C0F09579 |
:10665000E195FF4F74976CF5E0916D08F0E0EE0F57 |
:10666000FF1FE25CF74F0190F081E02DF7FF03C0C0 |
:10667000F095E195FF4F7497E4F480916E09909145 |
:106680006F09892BB1F08091940390915305893C57 |
:1066900020F0933021F084E006C0943019F4109279 |
:1066A000530503C083E0809353058091530590E028 |
:1066B00008C080915305882331F01092530580E083 |
:1066C00090E00E94093DA0905909B0905A09A11488 |
:1066D000B10429F080919D058C3009F44298C09056 |
:1066E0006305D09064058601D7FE04C000271127FA |
:1066F0000C191D09053111053CF08091740884FDC9 |
:1067000003C081E080939C05E0907D08B601882756 |
:1067100077FD8095982F2E2D30E040E050E00E94CC |
:1067200069489801442737FD4095542F0E946948D5 |
:1067300020E032E040E050E00E94DD4889019A010B |
:10674000FF24EC9CC001ED9C900DFC9C900D11244D |
:1067500064E070E00E94A848600F711F1B01442490 |
:1067600037FC4094542C2092B7053092B8054092E3 |
:10677000B9055092BA0580913E0590913F05A091D0 |
:106780004005B091410582199309A409B509809388 |
:106790003E0590933F05A0934005B093410580913D |
:1067A0003E0590913F05A0914005B091410581556E |
:1067B000934CA040B04064F080E593ECA0E0B0E0E2 |
:1067C00080933E0590933F05A0934005B09341050B |
:1067D00080913E0590913F05A0914005B091410503 |
:1067E000805B9C43AF4FBF4F64F480EB9CE3AFEF03 |
:1067F000BFEF80933E0590933F05A0934005B09373 |
:10680000410580914A0590914B05892B09F460C0A0 |
:106810008091740883FF5CC08091CB049091CC047C |
:10682000892B09F455C02091E5083091E608809144 |
:10683000BF089091C0088217930724F43093C008D2 |
:106840002093BF0820915205222371F080919C056E |
:10685000882351F080914A0590914B0590934D0506 |
:1068600080934C0510929C0580919703482F50E02F |
:106870005093C0084093BF08882351F1222341F16F |
:1068800000913E0510913F05209140053091410552 |
:1068900080914E0590914F05BC01469FC001479FD6 |
:1068A000900D569F900D112460E270E00E94A84860 |
:1068B000882777FD8095982F600F711F821F931F87 |
:1068C00060933E0570933F0580934005909341058A |
:1068D00080919D05815080939D058F3F09F02AC1CD |
:1068E00088E180939D058091C4049091C504209116 |
:1068F00004033091050382239323892B29F488B163 |
:1069000094E0892788B907C080916505882311F034 |
:10691000429A01C0429860910E0570910F058091D6 |
:10692000100590911105E0908008FF2400E010E030 |
:10693000A80197010E94DD483093E4072093E30704 |
:1069400060911605709117058091180590911905B1 |
:10695000A80197010E94DD483093E6072093E507E0 |
:106960008091EE089091EF089093E8078093E707F5 |
:106970008091FA089091FB089093EA078093E907C9 |
:106980008091F3089091F4089093EC078093EB07C3 |
:1069900080916605909167059093EE078093ED07CF |
:1069A0006091460570914705809148059091490591 |
:1069B00020E032E040E050E00E94DD483093F007F4 |
:1069C0002093EF0780914A0590914B059093F4072F |
:1069D0008093F30760910309709104098091050980 |
:1069E0009091060924E135E040E050E00E94DD4846 |
:1069F0003093F6072093F5078091B5049091B60483 |
:106A000090930408809303088091080390910903F0 |
:106A100090930608809305088091BC089091BD086A |
:106A200090930808809307088091B4089091B50866 |
:106A300090930A08809309088091F3089091F408D4 |
:106A400090930C0880930B0880915F0590916005EE |
:106A500090930E0880930D088091610590916205D6 |
:106A60009093100880930F08D0921208C0921108DA |
:106A70008091740590E09093F8078093F7078091D8 |
:106A8000760590E09093FA078093F9078091CF05FF |
:106A90009091D00590931408809313088091D105AC |
:106AA0009091D205909316088093150880917709EC |
:106AB000909178099093180880931708809179092C |
:106AC00090917A0990931A088093190880917B0914 |
:106AD00090917C0990931C0880931B0880918009F9 |
:106AE000909181099C0163E0220F331F6A95E1F7C1 |
:106AF000880F991F820F931F8A0D9B1D20915305AC |
:106B000042E3249F90011124820F931F90931E084B |
:106B100080931D088091E3089091E40890932008E9 |
:106B200080931F088091E7089091E80890932208CD |
:106B30008093210880916E058823A9F06091BC089C |
:106B40007091BD08882777FD8095982F0E944E4749 |
:106B50002091F5083091F6084091F7085091F80817 |
:106B60000E94064832C060910E0570910F05809119 |
:106B7000100590911105E090BC08F090BD080E94AE |
:106B80004E472091DB083091DC084091DD085091A0 |
:106B9000DE080E9406485B016C010027F7FC0095A7 |
:106BA000102FC801B7010E944E472091F50830917F |
:106BB000F6084091F7085091F8080E9406489B019A |
:106BC000AC01C601B5010E944F460E941B4770935D |
:106BD000BD086093BC0880916F058823A9F060917F |
:106BE000B4087091B508882777FD8095982F0E948A |
:106BF0004E472091F5083091F6084091F7085091E2 |
:106C0000F8080E94064832C0609116057091170579 |
:106C10008091180590911905E090B408F090B5089E |
:106C20000E944E472091DB083091DC084091DD083E |
:106C30005091DE080E9406485B016C010027F7FCBA |
:106C40000095102FC801B7010E944E472091F5080A |
:106C50003091F6084091F7085091F8080E940648D4 |
:106C60009B01AC01C601B5010E944F460E941B4723 |
:106C70007093B5086093B4086091F3087091F408BC |
:106C8000E0902A05F0902B0500912C0510912D0520 |
:106C90008091DB089091DC08A091DD08B091DE08BE |
:106CA0008B839C83AD83BE83882777FD8095982F47 |
:106CB0000E944E472091F5083091F6084091F70860 |
:106CC0005091F8080E9406485B016C01C801B701A9 |
:106CD0000E944E472B813C814D815E810E94064877 |
:106CE00020E030E040E05FE30E9406489B01AC01F9 |
:106CF000C601B5010E944F460E941B477093F408DD |
:106D00006093F3088091BC089091BD088150984031 |
:106D100034F080E098E09093BD088093BC088091A7 |
:106D2000BC089091BD088050984F34F480E098EFF3 |
:106D30009093BD088093BC088091B4089091B508E9 |
:106D40008150984034F080E098E09093B5088093AB |
:106D5000B4088091B4089091B5088050984F34F4ED |
:106D600080E098EF9093B5088093B4088091F30881 |
:106D70009091F4088150984034F080E098E090932E |
:106D8000F4088093F3088091F3089091F408805000 |
:106D9000984F34F480E098EF9093F4088093F308D0 |
:106DA0008091740880FFD8C04091940381FF0EC089 |
:106DB000423310F580916605909167054497909352 |
:106DC0006905809368051092510519C020919F03B1 |
:106DD0003091A003240F311D8091790890E0AC011F |
:106DE000249FC001259F900D349F900D112444973E |
:106DF000909369058093680581E0809351058091A7 |
:106E00005005882321F010926905109268052091A1 |
:106E100066053091670540916805509169054217F4 |
:106E200053070CF099C080915105882309F494C050 |
:106E30008091950390E0241B350BBC01629FC0013B |
:106E4000639F900D729F900D112460E170E00E948D |
:106E5000A8486B01A090E204B090E304609146055D |
:106E6000709147058091480590914905E0909603FF |
:106E7000FF2400E010E020E032E040E050E00E941B |
:106E8000DD48C801B7010E94694820E230E040E0D7 |
:106E900050E00E94DD487FEF2E3C370714F42EECC3 |
:106EA0003FEF80919E0590919F058C0144E0000F7B |
:106EB000111F4A95E1F7081B190B8091930390E08D |
:106EC000DC01AA9DC001AB9D900DBA9D900D1124CF |
:106ED00068E070E00E94A848061B170B23333105B9 |
:106EE00014F022E330E0021B130B89819A818C1984 |
:106EF0009D09800F911F60E170E00E94A848709387 |
:106F00009F0560939E058091750890E0681779074A |
:106F100084F4E981FA81E817F9072CF090939F0532 |
:106F200080939E0506C029813A8130939F05209366 |
:106F30009E0580919E0590919F0549815A81481731 |
:106F4000590724F450939F0540939E0560919E0538 |
:106F500070919F057A83698389819A819093F20762 |
:106F60008093F1072091F3083091F4088091F208A2 |
:106F7000682E7724A981BA8154971CF418861F8241 |
:106F80002DC0B9016219730929813A813595279578 |
:106F9000621773070CF49B0189819A8162E070E0AB |
:106FA0000E94A848709561957F4FC9012617370741 |
:106FB0000CF4CB019301E981FA812E1B3F0B2817BA |
:106FC00039070CF4C90129813A81261937099887B4 |
:106FD0008F838217930714F438872F832091BC087E |
:106FE0003091BD0880905F05909060058091CF053D |
:106FF0009091D005881A990A281939093093D00838 |
:107000002093CF0820E030E040E050E06B817C81AD |
:107010008D819E810E9489478823F1F1E0900E05C1 |
:10702000F0900F0500911005109111056091BF05BA |
:107030007091C0058091C1059091C2050E944E4794 |
:107040005B016C01C801B7010E944E472B813C8156 |
:107050004D815E810E9406487B018C01B401882726 |
:1070600077FD8095982F0E944E479B01AC01C80187 |
:10707000B7010E944E469B01AC01C601B5010E94BA |
:107080004F460E941B476093BF057093C0058093D5 |
:10709000C1059093C2051CC02091CF083091D00843 |
:1070A000442737FD4095542F8091BF059091C0052E |
:1070B000A091C105B091C205820F931FA41FB51FF7 |
:1070C0008093BF059093C005A093C105B093C205FE |
:1070D0008091BF059091C005A091C105B091C205F6 |
:1070E000181619061A061B0624F40297A109B109FD |
:1070F00003C00296A11DB11D8093BF059093C005EA |
:10710000A093C105B093C2058091BF059091C005C1 |
:10711000A091C105B091C20581589E43A040B040E6 |
:1071200064F080E89EE3A0E0B0E08093BF05909318 |
:10713000C005A093C105B093C2058091BF05909191 |
:10714000C005A091C105B091C2058058914CAF4FC8 |
:10715000BF4F64F480E891ECAFEFBFEF8093BF05C1 |
:107160009093C005A093C105B093C2056091CF086C |
:107170007091D00880918F0390919003A09191031A |
:10718000B091920389879A87AB87BC87882777FD60 |
:107190008095982F0E944E477B018C016091BF051E |
:1071A0007091C0058091C1059091C2050E944E4723 |
:1071B0009B01AC0169857A858B859C850E94064878 |
:1071C0009B01AC01C801B7010E944F460E941B47BA |
:1071D0007B018C016B018F81988597FF03C090958F |
:1071E00081959F4F62E070E00E94A848A981BA8112 |
:1071F0006A0F7B1F882777FD8095982F20919E032B |
:1072000030E040E050E00E94694820E430E040E097 |
:1072100050E00E94DD481901C216D3060CF4970114 |
:107220004424552442185308241535050CF49201C2 |
:107230004F815885E981FA814E0F5F1FCA01820F85 |
:10724000931F97FF03C060E070E005C0BC016816A3 |
:1072500079060CF4B3018091BE08882E9924CB01E5 |
:10726000681579050CF4C4018093B608421B530BD2 |
:107270009A0157FF03C020E030E004C06416750691 |
:107280000CF49301281539050CF494012093BB08E4 |
:107290002091B4083091B508409161055091620584 |
:1072A0008091D1059091D205481B590B5C8B4B8B7B |
:1072B000241B350B3093B3082093B20820E030E054 |
:1072C00040E050E06B817C818D819E810E948947E6 |
:1072D000882309F440C0E0901605F090170500914E |
:1072E0001805109119056091BB057091BC0580913E |
:1072F000BD059091BE050E944E475B016C01C8011F |
:10730000B7010E944E472B813C814D815E810E94D6 |
:1073100006487B018C01AB89BC89BD01882777FDBC |
:107320008095982F0E944E479B01AC01C801B70180 |
:107330000E944E469B01AC01C601B5010E944F461A |
:107340000E941B476093BB057093BC058093BD05ED |
:107350009093BE051CC02091B2083091B308442719 |
:1073600037FD4095542F8091BB059091BC05A091AD |
:10737000BD05B091BE05820F931FA41FB51F80935A |
:10738000BB059093BC05A093BD05B093BE0580914D |
:10739000BB059091BC05A091BD05B091BE05181626 |
:1073A00019061A061B0624F40297A109B10903C0A5 |
:1073B0000296A11DB11D8093BB059093BC05A093BF |
:1073C000BD05B093BE058091BB059091BC05A09111 |
:1073D000BD05B091BE0581589E43A040B04064F009 |
:1073E00080E89EE3A0E0B0E08093BB059093BC05ED |
:1073F000A093BD05B093BE058091BB059091BC05DF |
:10740000A091BD05B091BE058058914CAF4FBF4FC4 |
:1074100064F480E891ECAFEFBFEF8093BB059093ED |
:10742000BC05A093BD05B093BE056091B2087091F4 |
:10743000B308882777FD8095982F0E944E477B01DF |
:107440008C016091BB057091BC058091BD05909148 |
:10745000BE050E944E479B01AC0169857A858B85EC |
:107460009C850E9406489B01AC01C801B7010E949F |
:107470004F460E941B479101621573050CF49B0156 |
:10748000241535050CF4920169817A814F81588564 |
:10749000641B750B620F731F77FF03C060E070E021 |
:1074A00004C0661677060CF4B301681579050CF470 |
:1074B000B4016093EB0869817A81621B730B9B01B5 |
:1074C0008F819885281B390B37FF03C020E030E0FF |
:1074D00004C0621673060CF493012815390554F4A0 |
:1074E000940108C080916E05882311F00C943D2B07 |
:1074F0000C94472B2093DF0866960FB6F894DEBFF6 |
:107500000FBECDBFDF91CF911F910F91FF90EF90F4 |
:10751000DF90CF90BF90AF909F908F907F906F90B3 |
:107520005F904F903F902F9008951092D405109245 |
:10753000D30510925A09109259091092810910929C |
:1075400080091092450910922B091092920910920D |
:10755000580910926D0910927D091092D005109271 |
:10756000CF051092D2051092D10510927F0910928A |
:107570007E091092EA051092E9051092EC0510922E |
:10758000EB0510926F0910926E09089580914509DC |
:10759000882319F481E090E008958091920988236E |
:1075A00009F48CC080912B09882309F487C080914D |
:1075B000860990E08370907002970CF474C08091FB |
:1075C000870980FF70C0109292096091370970910D |
:1075D00038098091390990913A092AE030E040E079 |
:1075E00050E00E94DD4820935B0930935C09409392 |
:1075F0005D0950935E0960913B0970913C0980914F |
:107600003D0990913E092AE030E040E050E00E94C0 |
:10761000DD4820935F0930936009409361095093DE |
:10762000620960913F0970914009809141099091F0 |
:1076300042092AE030E040E050E00E94DD4820931B |
:107640006309309364094093650950936609109269 |
:10765000450980911B0990911C09A0911D09B091C9 |
:107660001E098093670990936809A0936909B093F4 |
:107670006A0960911F0970912009809121099091F8 |
:10768000220920EA36E841E050E00E94DD483093CC |
:107690006C0920936B0910922B0981E080936D098E |
:1076A00080E090E0089510926D0910922B091092DD |
:1076B00092091092450982E090E0089581E090E0FF |
:1076C00008950E94C63A181619060CF44CC0809111 |
:1076D0006E0990916F0923E0883E920730F4885A32 |
:1076E0009D4F90936F0980936E098091580988236C |
:1076F000B1F180915B0990915C092091460930912C |
:107700004709821B930B90937809809377098091A6 |
:107710005F099091600920914A0930914B09821BC1 |
:10772000930B90937A0980937909809163099091E2 |
:10773000640920914E0930914F09821B930B90935D |
:107740007C0980937B0981E080937D0981E090E052 |
:1077500090937F0980937E0980E090E008951092D5 |
:107760007D0982E090E008950E94C63A892B99F540 |
:1077700080915B0990915C09A0915D09B0915E09CF |
:107780008093460990934709A0934809B09349090B |
:1077900080915F0990916009A0916109B09162099F |
:1077A00080934A0990934B09A0934C09B0934D09DB |
:1077B0008091630990916409A0916509B09166096F |
:1077C00080934E0990934F09A0935009B0935109AB |
:1077D00081E0809358090895482F2091D305309176 |
:1077E000D4052530310509F49AC0263031058CF4D2 |
:1077F0002130310529F1223031051CF4232BD1F041 |
:1078000003C12230310571F12330310509F0FCC08C |
:107810002FC02730310509F4E2C0273031050CF4C0 |
:1078200090C02830310509F4E5C02930310509F050 |
:10783000EBC0A2C0853B09F0E7C081E090E0D5C075 |
:10784000823639F482E090E09093D4058093D3059A |
:1078500004C01092D4051092D3051092E105109245 |
:10786000E2050895813009F0CFC083E090E0BDC00B |
:10787000883031F0823151F1833009F044C013C0B7 |
:1078800025E439E0309302062093010680914509F2 |
:107890008823C9F522513040309300062093FF051C |
:1078A0002E5E3F4F25C022E939E030930206209337 |
:1078B000010680919209882331F5205130403093A0 |
:1078C00000062093FF05205F3F4F12C02BE239E0F6 |
:1078D000309302062093010680912B09882399F4A6 |
:1078E00024523040309300062093FF052C5D3F4F1B |
:1078F0003093F4052093F30585E090E09093D40550 |
:107900008093D30504C01092D4051092D305842F20 |
:107910008F5F8093E1058F5F8093E205089590E08B |
:107920009093F2058093F1059091E105940F909367 |
:10793000E1058091E205890F8093E20586E090E001 |
:1079400054C0282F30E0322F22278091F1059091EA |
:10795000F205820F931F9093F2058093F1059091A9 |
:10796000E105940F9093E1058091E205890F8093E2 |
:10797000E20589E090E039C06091F1057091F2056F |
:107980006115710509F440C0E091FF05F091000612 |
:1079900080838091E105840F8093E1059091E20559 |
:1079A000980F9093E205CB0101979093F205809395 |
:1079B000F105892B89F08091F3059091F4058E17DC |
:1079C0009F0750F03196F0930006E093FF05309347 |
:1079D000D4052093D305089587E090E006C08091F8 |
:1079E000E105481789F488E090E09093D4058093EE |
:1079F000D30508958091E205481731F4E09101061E |
:107A0000F091020681E080831092D4051092D30594 |
:107A100008952F923F924F925F926F927F928F9232 |
:107A20009F92AF92BF92CF92DF92EF92FF920F930D |
:107A30001F93CF93DF93CDB7DEB728970FB6F89497 |
:107A4000DEBF0FBECDBF9E838D838330910509F4C9 |
:107A5000A2C08430910521F0892B09F4F3C0C3C57D |
:107A60008091590990915A090197029708F407C12A |
:107A70008091DF059091E00501969093E005809359 |
:107A8000DF05C39708F4B2C51092E0051092DF0538 |
:107A90001092FA051092F9051092FC051092FB0560 |
:107AA0001092FE051092FD051092D8051092D70590 |
:107AB0001092D6051092D5051092EE051092ED05A4 |
:107AC0001092F0051092EF051092DC051092DB0584 |
:107AD0001092DE051092DD05109204061092030646 |
:107AE0001092DA051092D90510928109109280093E |
:107AF00080917D09882309F44BC08091770990918A |
:107B00007809909371098093700960917909709157 |
:107B10007A09709373096093720921E020937609C2 |
:107B200090932D0980932C0970932F0960932E094F |
:107B300020933209709561957F4F909581959F4F65 |
:107B40000E9414439C019093F6058093F505E09103 |
:107B50007009F0917109F7FF03C08AE590E002C057 |
:107B60008EE091E0821B930B9093F6058093F505D0 |
:107B70004091F5055091F605609172097091730975 |
:107B8000CF010E944E447093F8056093F70520C51D |
:107B90001092760924C58091590990915A0901974C |
:107BA00009F46DC08091DF059091E00501969093F6 |
:107BB000E0058093DF058D5B924008F417C51092B5 |
:107BC000E0051092DF0580917D098823C1F11092B4 |
:107BD000FC051092FB051092FE051092FD05109217 |
:107BE000D8051092D7051092D6051092D50510929F |
:107BF000EE051092ED051092F0051092EF0510922F |
:107C0000DC051092DB051092DE051092DD05109266 |
:107C10000606109205068091770990917809909355 |
:107C20002D0980932C098091790990917A0990937C |
:107C30002F0980932E0981E0809332098AC1109226 |
:107C40003209CDC41092E0051092DF051092D005E4 |
:107C50001092CF051092D2051092D1051092EA052C |
:107C60001092E9051092EC051092EB051092810933 |
:107C70001092800910925A0910925909BAC4809141 |
:107C8000590990915A098130910509F465C18230F2 |
:107C9000910541F0892B09F0A2C41092E0051092E1 |
:107CA000DF05A7C480917609882309F498C48091E0 |
:107CB0007E0990917F09181619060CF04AC180912F |
:107CC000800990918109099709F443C18091F905D0 |
:107CD0009091FA0501969093FA058093F9054091E9 |
:107CE0002C0950912D098091770990917809DA013A |
:107CF000A81BB90BB7FF03C0B095A195BF4F60910A |
:107D00002E0970912F098091790990917A09FB01D0 |
:107D1000E81BF90BF7FF03C0F095E195FF4F809149 |
:107D2000F7059091F80520910306309104068C0127 |
:107D3000021B130B9093C2088093C1083093020971 |
:107D4000209301098090F5059090F6059092CA085D |
:107D50008092C9080536110574F1A83CB105E4F418 |
:107D6000E83CF105CCF48091D9059091DA058C308E |
:107D700091052CF404969093DA058093D9058091AF |
:107D8000D9059091DA05820F931F90930406809392 |
:107D9000030683E090E02AC08091D9059091DA052E |
:107DA000823091052CF001979093DA058093D905E4 |
:107DB00084E090E01BC0033311050CF475C0A436B9 |
:107DC000B10564F4E436F1054CF4285F3F4F30937D |
:107DD00004062093030685E090E008C02F5F3F4F24 |
:107DE000309304062093030686E090E09093810987 |
:107DF000809380091092FE051092FD0581E090E0CD |
:107E00009093FC058093FB05A0900306B0900406B8 |
:107E1000CC24B7FCC094DC2CC4010E94F0437C014C |
:107E20002090030630900406442437FC4094542CE0 |
:107E30008091F5059091F6050E9446443C0100278B |
:107E4000F7FC0095102FC801B701A60195010E940B |
:107E5000694828EE33E040E050E00E94DD48809120 |
:107E6000700990917109820F931F90932D0980934F |
:107E70002C09882477FC8094982CC401B301A201BA |
:107E800091010E94694828EE33E040E050E00E94F2 |
:107E9000DD488091720990917309820F931F90932E |
:107EA0002F0980932E0955C0A436B1050CF04BC0A4 |
:107EB000E436F1050CF047C087E090E0909381092B |
:107EC000809380091092FC051092FB051092FE052C |
:107ED0001092FD05433051051CF04350504006C040 |
:107EE0003FEF4E3F530734F44D5F5F4F50932D09E2 |
:107EF00040932C09633071051CF06350704006C03C |
:107F00004FEF6E3F740734F46D5F7F4F70932F090E |
:107F100060932E0980912C0990912D090396079763 |
:107F2000C0F480912E0990912F090396079788F449 |
:107F300010922D0910922C0910922F0910922E09DF |
:107F400089E090E002C088E090E0909381098093FE |
:107F5000800981E090E03EC380917E0990917F0985 |
:107F6000181619060CF02FC360902C0970902D097B |
:107F70008091770990917809681A790A7092DC05E6 |
:107F80006092DB0520902E0930902F0980917909AD |
:107F900090917A09281A390A3092DE052092DD057F |
:107FA0002091D7053091D805260D371D3093D8057F |
:107FB0002093D705E091D505F091D605E20DF31D8C |
:107FC000F093D605E093D50580910F0990911009A3 |
:107FD00066277727681B790B78876F8380910B0959 |
:107FE00090910C0988249924881A990A10927F0983 |
:107FF00010927E09C90137FF04C088279927821B88 |
:10800000930B895B9B4054F4CF01F7FF04C0882792 |
:1080100099278E1B9F0B895B9B4064F0809105061E |
:10802000909106068832910528F4019690930606F1 |
:10803000809305068091050690910606009729F128 |
:1080400001979093060680930506C901B3E0880F57 |
:10805000991FBA95E1F7821B930B68E070E00E94CC |
:10806000A8487093D8056093D705CF01A3E0880F87 |
:10807000991FAA95E1F78E1B9F0B68E070E00E94A4 |
:10808000A8487093D6056093D5058091FD05909121 |
:10809000FE051816190644F41092D8051092D7055B |
:1080A0001092D6051092D5058091FB059091FC05A4 |
:1080B000181619060CF04CC08F81988597FF03C0E5 |
:1080C000909581959F4F62E370E00E94A8489B01C4 |
:1080D000265F3F4FC40197FE04C08827992788195F |
:1080E000990962E370E00E94A848665F7F4FC9016A |
:1080F0002531310514F084E190E0FB016531710513 |
:1081000014F0E4E1F0E02091760526952695269579 |
:1081100030E0BC01629FC001639F900D729F900D83 |
:1081200011246AE070E00E94A8482B01E29FC00180 |
:10813000E39F900DF29F900D11246AE070E00E9481 |
:10814000A8487A83698386E090E09C838B835DC036 |
:108150002F81388537FF03C0309521953F4FC901E6 |
:1081600075E0880F991F7A95E1F7220F331F821B64 |
:10817000930B68EC70E00E94A848FB013A969401CA |
:1081800097FE04C02227332728193909C90155E071 |
:10819000880F991F5A95E1F7220F331F821B930B0B |
:1081A00068EC70E00E94A848665F7F4FCF01B997E6 |
:1081B00014F088E290E0FB016932710514F0E8E206 |
:1081C000F0E02091760526952695269530E0AC01C5 |
:1081D000429FC001439F900D529F900D11246AE071 |
:1081E00070E00E94A8482B01E29FC001E39F900D20 |
:1081F000F29F900D11246AE070E00E94A8487A83F3 |
:10820000698362E070E07C836B83E0907505FF24F6 |
:1082100000E010E02091D7053091D805442737FDC4 |
:108220004095542FC801B7010E94694820E031E011 |
:1082300040E050E00E94DD4859016A016091D50597 |
:108240007091D605882777FD8095982FA801970112 |
:108250000E94694820E031E040E050E00E94DD48A3 |
:1082600070EBA7167FEFB7067FEFC7067FEFD70645 |
:1082700044F490EBA92E9FEFB92E9FEFC92E9FEFEC |
:10828000D92E89019A01003B8FEF18078FEF28073D |
:108290008FEF380724F400EB1FEF2FEF3FEF8091B3 |
:1082A0007405869586958695E82EFF248F8198859E |
:1082B00065E070E00E94A848469EC001479E900D70 |
:1082C000569E900D112462E070E00E94A848AB0118 |
:1082D000C601B501613571058105910524F060E5A0 |
:1082E00070E080E090E05A01A60EB71EE69CC00147 |
:1082F000E79C900DF69C900D1124FC014B815C8154 |
:10830000E49FC001E59F900DF49F900D112460E162 |
:1083100070E00E94A848A60EB71EB092EE05A0928B |
:10832000ED05C40165E070E00E94A848E981FA818A |
:10833000E69FC001E79F900DF69F900D112462E02B |
:1083400070E00E94A848A901980121353105410536 |
:10835000510524F020E530E040E050E0260F371FC3 |
:10836000E29CC001E39C900DF29C900D1124AC01A5 |
:108370006B817C81469FC001479F900D569F900D59 |
:10838000112460E170E00E94A848260F371F309347 |
:10839000F0052093EF05B092E408A092E308309333 |
:1083A000E8082093E708B901C5010E9414439C0125 |
:1083B0009093E4058093E305A090ED05B090EE0561 |
:1083C000B7FC03C08AE590E002C08EE091E0821B1A |
:1083D000930B9093E4058093E3050091E3051091DE |
:1083E000E405609103097091040980910509909159 |
:1083F000060924E135E040E050E00E94DD48C80174 |
:10840000821B930B9C019093E6058093E505853BC9 |
:1084100091057CF0043B11051CF0285631400FC03B |
:1084200088E691E0821B930B9093E6058093E50527 |
:108430000AC09FEF2C34390734F428593E4F30934B |
:10844000E6052093E505C090EF05D090F005950175 |
:10845000B7FE04C0222733272A193B09C601D7FEDD |
:1084600004C0882799278C199D098217930754F413 |
:10847000C8010E94F0437C01B501882777FD8095F3 |
:10848000982F09C0C8010E9446447C01B601882784 |
:1084900077FD8095982F28EE33E040E050E00E9471 |
:1084A00069480027F7FC0095102FA80197010E944A |
:1084B000DD48C90137FF03C0909581959F4F5C014E |
:1084C000CC24B7FCC094DC2CB092E805A092E70560 |
:1084D0008091E5059091E6050E94F0434C01809162 |
:1084E000E5059091E6050E9446448C018091DB05EC |
:1084F0009091DC0597FF03C0909581959F4F855F14 |
:10850000914064F48091DD059091DE0597FF03C0F2 |
:10851000909581959F4F855F91404CF01092D205C8 |
:108520001092D1051092D0051092CF0558C0B40119 |
:10853000882777FD8095982FA60195010E946948AC |
:1085400028EE33E040E050E00E94DD48C9012FEF03 |
:108550008036920714F480E69FEF813A910514F07B |
:1085600080EA90E068E070E00E94A8487093D2052D |
:108570006093D105B801882777FD8095982FA601D3 |
:1085800095010E94694828E13CEF4FEF5FEF0E94A0 |
:10859000DD48C9013FEF8036930714F480E69FEF72 |
:1085A000813A910514F080EA90E068E070E00E9462 |
:1085B000A8487093D0056093CF054D815E8144300B |
:1085C0005105B9F405C06D817E816430710589F46F |
:1085D00082E090E090935A09809359090AC0109262 |
:1085E0005A091092590982E090E005C081E090E0BC |
:1085F00002C080E090E028960FB6F894DEBF0FBE70 |
:10860000CDBFDF91CF911F910F91FF90EF90DF9041 |
:10861000CF90BF90AF909F908F907F906F905F9022 |
:108620004F903F902F900895EF92FF920F931F93DA |
:10863000CF93DF938C01EB019C0197FF04C02227AD |
:108640003327281B390BCE01D7FF04C08827992771 |
:108650008C1B9D0B821793073CF4CE01E8018C0123 |
:10866000B1E0EB2EF12C02C0EE24FF24209741F460 |
:108670000115110529F461E070E080E090E024C06C |
:10868000B801882777FD8095982F28EE33E040E0E9 |
:1086900050E00E9469489E01442737FD4095542FC1 |
:1086A0000E94DD48B90137FF03C0709561957F4F87 |
:1086B000882777FD8095982F6D3021E0720720E0A4 |
:1086C000820720E0920704F524E630E040E050E025 |
:1086D0000E9469482CE031E040E050E00E94DD4813 |
:1086E000CA01B901A4E0660F771F881F991FAA95D8 |
:1086F000D1F7621B730B840B950B24E630E040E04E |
:1087000050E00E94DD4853C0633422E0720720E04D |
:10871000820720E0920734F524E630E040E050E0A4 |
:108720000E946948605B78468040904026E331E0D3 |
:1087300040E050E00E94DD48CA01B901F4E0660F54 |
:10874000771F881F991FFA95D1F7621B730B840B53 |
:10875000950B24E630E040E050E00E94DD48215FC8 |
:108760003F4F25C022E330E040E050E00E946948DE |
:10877000645E70478040904026EA31E040E050E07F |
:108780000E94DD48CA01B901E4E0660F771F881F27 |
:10879000991FEA95D1F7621B730B840B950B22E3AB |
:1087A00030E040E050E00E94DD48225E3F4FEF287D |
:1087B00029F48AE590E0821B930B9C0117FD03C00E |
:1087C000D7FF06C002C0D7FD03C0309521953F4FAB |
:1087D000C901DF91CF911F910F91FF90EF90089504 |
:1087E000FC01F7FF04C0882799278E1B9F0B885632 |
:1087F000914034F0CF0168E671E00E94A848FC0186 |
:10880000F7FD03C041E050E005C0F095E195FF4F52 |
:108810004FEF5FEFCF018B5590408A35910530F4D3 |
:1088200084EB90E08E1B9F0BFC010FC0CF01855B9A |
:1088300090408A35910518F4E45BF0400EC0CF01FA |
:108840008F5091408A35910518F081E090E007C083 |
:1088500088E691E08E1B9F0BFC018FEF9FEFEE0FE0 |
:10886000FF1FEF5DFB4F25913491BC01649FC00158 |
:10887000659F900D749F900D1124AC01429FC00123 |
:10888000439F900D529F900D112408952AE530E0EA |
:10889000281B390BC9010E94F0430895EF92FF9203 |
:1088A0000F931F93CF93DF93EA01AC0197FF04C0AE |
:1088B00044275527481B590B9B0177FF04C02227EB |
:1088C0003327261B370B2417350794F49C01B90175 |
:1088D000882777FD8095982F28EE33E040E050E020 |
:1088E0000E9469487B018C01CE010E94F0430FC0B9 |
:1088F000882777FD8095982F28EE33E040E050E000 |
:108900000E9469487B018C01CE010E9446449C0173 |
:10891000442737FD4095542FC801B7010E94DD4818 |
:10892000B90137FF03C0709561957F4F882777FDA8 |
:108930008095982FDF91CF911F910F91FF90EF902D |
:108940000895A8E0B0E0E7EAF4E40C9402497B0162 |
:108950008C01611571058105910519F482E0898307 |
:108960005AC083E089838EE1C82ED12CDC82CB8271 |
:10897000ED82FE820F831887C801B7010E9414455B |
:10898000BC016150704077FF33C0EE27FF27E61B24 |
:10899000F70B20E030E040E050E081E090E0A0E024 |
:1089A000B0E00E2E04C0880F991FAA1FBB1F0A94A7 |
:1089B000D2F70197A109B1098E219F21A023B123EC |
:1089C0000097A105B10521F021E030E040E050E042 |
:1089D00004C016950795F794E794EA95D2F72E29E7 |
:1089E0003F29402B512B2D833E834F8358870FC047 |
:1089F0006115710581F0062E04C0EE0CFF1C001FEE |
:108A0000111F0A94D2F7ED82FE820F831887C61ACF |
:108A1000D70ADC82CB821A82CE0101960E94614580 |
:108A2000E8E028960C941E49EF92FF920F931F9353 |
:108A30009B01AC01203080E0380781E0480780E0EE |
:108A4000580780F42F3F31054105510509F020F406 |
:108A5000EE24FF24870119C068E0E62EF12C012DD9 |
:108A6000112D13C0203080E0380780E0480781E0F6 |
:108A7000580730F490E1E92EF12C012D112D05C09D |
:108A800088E1E82EF12C012D112D80E290E0A0E08C |
:108A9000B0E08E199F09A00BB10B04C05695479505 |
:108AA00037952795EA94D2F7F901EF55FC4F2081CD |
:108AB000821B9109A109B1091F910F91FF90EF90BD |
:108AC00008959F92AF92BF92CF92DF92EF92FF9262 |
:108AD0000F931F93EE24FF248701FC01248135812D |
:108AE0004681578191808081823010F44061A2C01C |
:108AF000843009F49BC0823029F420E030E040E06B |
:108B000050E005C0211531054105510519F4E0E09B |
:108B1000F0E092C0828193816FEF823896070CF06B |
:108B20005AC062E87FEF681B790B6A3171052CF03F |
:108B300020E030E040E050E02AC0AA24BB246501D8 |
:108B400081E090E0A0E0B0E0062E04C0880F991FFD |
:108B5000AA1FBB1F0A94D2F70197A109B10982236A |
:108B60009323A423B5230097A105B10529F071E053 |
:108B7000A72EB12CC12CD12C04C056954795379502 |
:108B800027956A95D2F72A293B294C295D29DA01D4 |
:108B9000C9018F779070A070B07080349105A105E5 |
:108BA000B10539F427FF09C0205C3F4F4F4F5F4F9D |
:108BB00004C0215C3F4F4F4F5F4F80E090E020307A |
:108BC00060E0360760E0460760E4560710F081E099 |
:108BD00090E0FC0123C08038910544F5FC01E15888 |
:108BE000FF4FDA01C9018F779070A070B0708034A8 |
:108BF0009105A105B10539F427FF09C0205C3F4F5D |
:108C00004F4F5F4F04C0215C3F4F4F4F5F4F57FFA7 |
:108C100005C05695479537952795319687E0569527 |
:108C20004795379527958A95D1F706C020E030E023 |
:108C300040E050E0EFEFF0E0E22EF32E942F9F772C |
:108C4000802F8078892B9E2F9795992797958F77DE |
:108C5000082F092B9E2F9695812F8078892B97942A |
:108C6000992497948F77182F1929C801B7011F915C |
:108C70000F91FF90EF90DF90CF90BF90AF909F90BB |
:108C80000895FC014150504030F001900616D1F794 |
:108C90003197CF0108958827992708955058BB2709 |
:108CA000AA270ED079C16AD130F06FD120F031F40B |
:108CB0009F3F11F41EF45FC10EF4E095E7FB55C130 |
:108CC000E92F7BD180F3BA176207730784079507F2 |
:108CD00018F071F49EF593C10EF4E0950B2EBA2FA7 |
:108CE000A02D0B01B90190010C01CA01A0011124B2 |
:108CF000FF27591B99F0593F50F4503E68F11A165E |
:108D0000F040A22F232F342F4427585FF3CF4695EE |
:108D100037952795A795F0405395C9F77EF41F1610 |
:108D2000BA0B620B730B840BBAF09150A1F0FF0FDA |
:108D3000BB1F661F771F881FC2F70EC0BA0F621FC6 |
:108D4000731F841F48F4879577956795B795F795B6 |
:108D50009E3F08F0B3CF9395880F08F09927EE0F48 |
:108D60009795879508950CD017C10FD140F006D183 |
:108D700030F021F45F3F19F0F8C0511141C1FBC040 |
:108D80001CD198F39923C9F35523B1F3951B550BC7 |
:108D9000BB27AA2762177307840738F09F5F5F4FCE |
:108DA000220F331F441FAA1FA9F333D00E2E3AF00F |
:108DB000E0E830D091505040E695001CCAF729D029 |
:108DC000FE2F27D0660F771F881FBB1F2617370778 |
:108DD0004807AB07B0E809F0BB0B802DBF01FF27A8 |
:108DE00093585F4F2AF09E3F510568F0BEC008C1FE |
:108DF0005F3FECF3983EDCF3869577956795B795E2 |
:108E0000F7959F5FC9F7880F911D9695879597F9FC |
:108E10000895E1E0660F771F881FBB1F6217730775 |
:108E20008407BA0720F0621B730B840BBA0BEE1F8A |
:108E300088F7E095089504D06894B111E1C00895D1 |
:108E4000C4D088F09F5790F0B92F9927B751A0F060 |
:108E5000D1F0660F771F881F991F1AF0BA95C9F7CE |
:108E600012C0B13081F0CBD0B1E00895C8C0672FF7 |
:108E7000782F8827B85F39F0B93FCCF3869577957E |
:108E80006795B395D9F73EF4909580957095619567 |
:108E90007F4F8F4F9F4F0895E89409C097FB3EF492 |
:108EA00090958095709561957F4F8F4F9F4F992337 |
:108EB000A9F0F92F96E9BB279395F69587957795B5 |
:108EC0006795B795F111F8CFFAF4BB0F11F460FF75 |
:108ED0001BC06F5F7F4F8F4F9F4F16C0882311F0CD |
:108EE00096E911C0772321F09EE8872F762F05C0E1 |
:108EF000662371F096E8862F70E060E02AF09A957C |
:108F0000660F771F881FDAF7880F9695879597F970 |
:108F1000089507D008F481E0089503D008F48FEF96 |
:108F20000895990F0008550FAA0BE0E8FEEF1616FA |
:108F30001706E807F907C0F012161306E407F5074D |
:108F400098F0621B730B840B950B39F40A2661F0C1 |
:108F5000232B242B252B21F408950A2609F4A14064 |
:108F6000A6958FEF811D811D089597F99F6780E871 |
:108F700070E060E008959FEF80EC089500240A946B |
:108F80001616170618060906089500240A941216E4 |
:108F90001306140605060895092E0394000C11F417 |
:108FA000882352F0BB0F40F4BF2B11F460FF04C0C4 |
:108FB0006F5F7F4F8F4F9F4F089557FD9058440F1D |
:108FC000551F59F05F3F71F04795880F97FB991F28 |
:108FD00061F09F3F79F087950895121613061406E5 |
:108FE000551FF2CF4695F1DF08C016161706180672 |
:108FF000991FF1CF86957105610508940895E8944D |
:10900000BB2766277727CB0197F908950BD0C4CFEC |
:10901000B5DF28F0BADF18F0952309F0A6CFABCF63 |
:109020001124EECFCADFA0F3959FD1F3950F50E046 |
:10903000551F629FF001729FBB27F00DB11D639F0A |
:10904000AA27F00DB11DAA1F649F6627B00DA11DB0 |
:10905000661F829F2227B00DA11D621F739FB00D56 |
:10906000A11D621F839FA00D611D221F749F3327C6 |
:10907000A00D611D231F849F600D211D822F762F5F |
:109080006A2F11249F5750408AF0E1F088234AF05C |
:10909000EE0FFF1FBB1F661F771F881F91505040A8 |
:1090A000A9F79E3F510570F060CFAACF5F3FECF368 |
:1090B000983EDCF3869577956795B795F795E79594 |
:1090C0009F5FC1F7FE2B880F911D9695879597F9A5 |
:1090D0000895629FD001739FF001829FE00DF11D02 |
:1090E000649FE00DF11D929FF00D839FF00D749F22 |
:1090F000F00D659FF00D9927729FB00DE11DF91FCE |
:10910000639FB00DE11DF91FBD01CF01112408952A |
:10911000991B79E004C0991F961708F0961B881FC9 |
:109120007A95C9F780950895AA1BBB1B51E107C02A |
:10913000AA1FBB1FA617B70710F0A61BB70B881FE7 |
:10914000991F5A95A9F780959095BC01CD01089576 |
:1091500097FB092E07260AD077FD04D0E5DF06D05D |
:1091600000201AF4709561957F4F0895F6F7909559 |
:1091700081959F4F0895A1E21A2EAA1BBB1BFD01EA |
:109180000DC0AA1FBB1FEE1FFF1FA217B307E407E6 |
:10919000F50720F0A21BB30BE40BF50B661F771F3E |
:1091A000881F991F1A9469F760957095809590951E |
:1091B0009B01AC01BD01CF01089597FB092E052647 |
:1091C0000ED057FD04D0D7DF0AD0001C38F45095DC |
:1091D0004095309521953F4F4F4F5F4F0895F6F7DB |
:1091E00090958095709561957F4F8F4F9F4F089513 |
:1091F0002F923F924F925F926F927F928F929F92A7 |
:10920000AF92BF92CF92DF92EF92FF920F931F9394 |
:10921000CF93DF93CDB7DEB7CA1BDB0B0FB6F89445 |
:10922000DEBF0FBECDBF09942A88398848885F8485 |
:109230006E847D848C849B84AA84B984C884DF80F6 |
:10924000EE80FD800C811B81AA81B981CE0FD11DDA |
:109250000FB6F894DEBF0FBECDBFED010895F999AA |
:10926000FECFB2BDA1BDF89A119600B40895F99948 |
:10927000FECFB2BDA1BD00BC11960FB6F894FA9A0C |
:08928000F99A0FBE0895FFCF1B |
:109288000A01FF64496E74656772616C4E69636BAD |
:1092980020202020496E74656772616C526F6C6C77 |
:1092A800202020204163634E69636B20202020200A |
:1092B80020202020416363526F6C6C2020202020E6 |
:1092C800202020204779726F47696572202020206E |
:1092D80020202020486F6568656E576572742020CD |
:1092E800202020204163635A202020202020202095 |
:1092F80020202020476173202020202020202020AB |
:10930800202020204B6F6D7061737356616C7565FA |
:109318002020202045727361747A6B6F6D706173C1 |
:10932800732020205573725F5061723120202020F5 |
:10933800202020205573725F706172332020202016 |
:10934800202020204D6F746F725F566F726E6520FB |
:10935800202020204D6F746F725F48696E74656EAF |
:10936800202020204D6F746F725F4C696E6B7320E4 |
:10937800202020204D6F746F725F5265636874738C |
:1093880020202020496E646578202020202020207D |
:1093980020202020554261742020202020202020D9 |
:1093A800202020204D657373776572745F4E696362 |
:1093B8006B2020204D657373776572745F526F6CF4 |
:1093C8006C2020204D657373776572745F476965FB |
:1093D80072202020537469636B5F4E69636B202091 |
:1093E80020202020537469636B5F526F6C6C2020BF |
:1093F80020202020537469636B5F476965722020C1 |
:10940800202020204750535F4E69636B2020202086 |
:10941800202020204750535F526F6C6C2020202062 |
:109428002020202075746D5F6561737420202020D2 |
:109438002020202075746D5F6E6F72746820202064 |
:109448002020202075746D5F616C742020202020FE |
:10945800202020206770735F73746174652020205A |
:109468002020202067705F7265675F7820202020A9 |
:109478002020202067705F7265675F792020202098 |
:1094880020202020FFFF0A016400007D0000FF0368 |
:109498000102030405060708090A48616C6C6F207D |
:1094A80057656C7400000000000000000000000018 |
:1094B80000000000000000000000000000000000A4 |
:1094C8000000000000000000000000000000000094 |
:1094D8000000000000000000000000000000000084 |
:1094E800000000000000000000000A0142656769F2 |
:1094F8006E6E657200004E6F726D616C0000537085 |
:109508006F72740000640090D0030090D0030017BD |
:10951800B7D13830FB103A409696020A644664EC9C |
:10952800FF00010202030303030404040404040407 |
:1095380004050505050505050505050505050505D4 |
:1095480005060606060606060606060606060606B4 |
:1095580006060606060606060606060606060606A3 |
:109568000607070707070707070707070707070784 |
:109578000707070707070707070707070707070773 |
:109588000707070707070707070707070707070763 |
:109598000707070707070707070707070707070753 |
:1095A8000708080808080808080808080808080834 |
:1095B8000808080808080808080808080808080823 |
:1095C8000808080808080808080808080808080813 |
:1095D8000808080808080808080808080808080803 |
:1095E80008080808080808080808080808080808F3 |
:1095F80008080808080808080808080808080808E3 |
:1096080008080808080808080808080808080808D2 |
:1096180008080808080808080808080808080808C2 |
:02962800080038 |
:00000001FF |
/branches/salvo_gps/Basis_v0067g/tags/v0005/GPS.c |
---|
0,0 → 1,660 |
/* |
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 |
*/ |
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
von Peter Muehlenbrock alias Salvo |
Auswertung der Daten vom GPS im ublox Format |
Hold Modus mit PID Regler |
Rückstuerz zur Basis Funktion |
Stand 9.1.2008 |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
*/ |
#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 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 |
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 amplfy_speed_east,amplfy_speed_north; //Verstaerkungsfaktoren fuer D-Anteil |
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 > 50) // 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; |
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 > 700) // 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; |
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 - dist_flown); // Restdistanz zum Ziel |
debug_gp_2 = dist_2home; // zum Debuggen |
debug_gp_3 = dist_flown; // zum Debuggen |
debug_gp_4 = hdng_2home; // zum Debuggen |
// debug_gp_5 = amplfy_speed_north; // zum Debuggen |
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-3) gps_g2t_act_v += 4; //Geschwindigkeit flott erhoehen |
dist_flown +=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)(((long)dist_flown * (long)sin_i(hdng_2home))/1000); |
dist_frm_start_north = (int)(((long)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 einsschalten |
hold_fast = 1; // Regler fuer schnellen Flug |
dist_frm_start_east = (int)(((long)dist_flown * (long)sin_i(hdng_2home))/1000); |
dist_frm_start_north = (int)(((long)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 einsschalten |
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 |
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; |
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 |
#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 |
} |
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; |
} |
if (hold_fast > 0) //schneller Coming Home Modus |
{ |
// Verstaerkungsfaktor fuer D-Anteil ermitteln um exponentielles Verhalten zu erzielen |
amplfy_speed_east = (((abs(speed_east)) *(DIFF_Y_F_MAX-1)*10)/DIFF_X_F_MAX) +10; |
amplfy_speed_north = (((abs(speed_north))*(DIFF_Y_F_MAX-1)*10)/DIFF_X_F_MAX) +10; |
if (amplfy_speed_east > (DIFF_Y_F_MAX *10)) amplfy_speed_east = DIFF_Y_F_MAX *10; // Begrenzung |
if (amplfy_speed_north > (DIFF_Y_F_MAX *10)) amplfy_speed_north = DIFF_Y_F_MAX *10; // Begrenzung |
amplfy_speed_east *= (Parameter_UserParam3/GPS_USR_PAR_FKT); |
amplfy_speed_north *= (Parameter_UserParam3/GPS_USR_PAR_FKT); |
amplfy_speed_east /= 10; //Faktor 10 wieder rausnehmen |
amplfy_speed_north /= 10; //Faktor 10 wieder rausnehmen |
} |
else //langsamer Holdmodus |
{ |
// Verstaerkungsfaktor fuer D-Anteil ermitteln um exponentielles Verhalten zu erzielen |
amplfy_speed_east = (((abs(speed_east)) *(DIFF_Y_N_MAX-1)*10)/DIFF_X_N_MAX) +10; |
amplfy_speed_north = (((abs(speed_north))*(DIFF_Y_N_MAX-1)*10)/DIFF_X_N_MAX) +10; |
if (amplfy_speed_east > (DIFF_Y_N_MAX *10)) amplfy_speed_east = DIFF_Y_N_MAX *10; // Begrenzung |
if (amplfy_speed_north > (DIFF_Y_N_MAX *10)) amplfy_speed_north = DIFF_Y_N_MAX *10; // Begrenzung |
amplfy_speed_east *= (Parameter_UserParam3/GPS_USR_PAR_FKT); |
amplfy_speed_north *= (Parameter_UserParam3/GPS_USR_PAR_FKT); |
amplfy_speed_east /= 10; //Faktor 10 wieder rausnehmen |
amplfy_speed_north /= 10; //Faktor 10 wieder rausnehmen |
} |
#define GPS_SPEED_SCALE 5 |
speed_east /= GPS_SPEED_SCALE; // Wegen overflow Gefahr Wert jetzt schon runterskalieren |
speed_north /= GPS_SPEED_SCALE; // Wegen overflow Gefahr Wert jetzt schon runterskalieren |
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; |
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))+ ((speed_east * amplfy_speed_east )/(10/GPS_SPEED_SCALE))); // I + P +D Anteil X Achse |
gps_reg_y = ((int)int_north1 + ((dist_north * (Parameter_UserParam1/GPS_USR_PAR_FKT) * diff_p)/(8*2))+ ((speed_north * amplfy_speed_north )/(10/GPS_SPEED_SCALE))); // 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 |
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/v0005/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/v0005/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/v0005/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/v0005/README_Gps_Deutsch.txt |
---|
0,0 → 1,80 |
********************************************************************* |
GPS Implementierung von Peter Muehlenbrock ("Salvo") für Mikrokopter/FlightCrtl |
Stand 9.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,120. |
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ür ca. 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/v0005/README_Gps_English.txt |
---|
0,0 → 1,66 |
********************************************************************* |
GPS Implementation by Peter Muehlenbrock ("Salvo") for Mikrokopter/FlightCrtl |
As of Jan, 9th 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,120. |
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/v0005/Settings.h |
---|
--- salvo_gps/Basis_v0067g/tags/v0005/_Settings.h (nonexistent) |
+++ salvo_gps/Basis_v0067g/tags/v0005/_Settings.h (revision 630) |
@@ -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/v0005/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/v0005/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/v0005/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/v0005/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 9.11.2008 |
/* |
Driftkompensation fuer Gyros verbessert |
Linearsensor optional 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 Allgemeine 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; |
//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/v0005/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/v0005/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="155 0" State="Maximized"/><File00003 Name="G:\Mikrokopter\Flight_Crtl\v0067g\main.c" Position="332 188 1262 796" LineCol="157 0" State="Maximized"/><File00004 Name="G:\Mikrokopter\Flight_Crtl\v0067g\gps.h" Position="262 71 1402 978" LineCol="126 30" State="Maximized"/></Files></AVRWorkspace> |
/branches/salvo_gps/Basis_v0067g/tags/v0005/gps.h |
---|
0,0 → 1,130 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Peter Muehlenbrock alias Salvo |
// Definitionen fuer Modul GPS |
// Stand 9.1.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 // Inaktiv |
#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 20 // Maximaler Einfluss des GPS Lagereglers auf Nick und Roll |
#define GPS_DIST_MAX 500 // 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 |
// Konstanten fuer Verstaerkung fuer Speed Werte in Abhaengigkeit vom SpeedWert (cm/sek) |
// um eine exponentielle Verstaerkung zu erreichen |
#define DIFF_Y_N_MAX 4 // Verstaerkung bei Eingangswert = DIFF_X_N_MAX im Normal (Hold) Mode |
#define DIFF_X_N_MAX 200 // bei diesem Eingangswert ist die Verstaerkung = DIFF_Y_N_MAX |
#define DIFF_Y_F_MAX 2 // Verstaerkung bei Eingangswert = DIFF_X_F_MAX im Fast (Coming Home) Mode |
#define DIFF_X_F_MAX 500 // bei diesem Eingangswert ist die Verstaerkung = DIFF_Y_F_MAX |
// P-Regler Verstaerkung |
#define GPS_PROP_NRML_V 2 //maximale Verstaerkung * 2 |
#define GPS_PROP_FAST_V 6 //maximale Verstaerkung * 2 im Fast mode |
// GPS G2T /Go to Target Regler |
#define GPS_G2T_DIST_MAX_STOP 100 // Ab dieser Entfernung vom Zielpunkt soll die Geschwindigkeit runtergeregelt werden( in 10 cm) |
#define GPS_G2T_DIST_HOLD 50 // Ab dieser Entfernung vom Zielpunkt wird mit Minimaler Geschwindigkeit eingeregelt |
#define GPS_G2T_FAST_TOL 200 // 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 100 // Bei kleiner Entfernung vom Ziel: Der Sollwert wird nur geaendert wenn die aktuelle Position nicht mehr als diesem Wert vom Sollwert abweicht |
#define GPS_G2T_V_MAX 15 // Maximale Geschwindigkeit (in 10cm/0.25 Sekunden) mit der der Sollpunkt geaendert wird. |
#define GPS_G2T_V_RAMP_DWN 8 // 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. |
/branches/salvo_gps/Basis_v0067g/tags/v0005/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/v0005/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/v0005/makefile |
---|
0,0 → 1,411 |
#-------------------------------------------------------------------- |
# MCU name |
MCU = atmega644 |
F_CPU = 20000000 |
#------------------------------------------------------------------- |
HAUPT_VERSION = 0 |
NEBEN_VERSION = 05 |
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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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/v0005/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 |
/* "dist_2home ", |
"dist_flown ", |
"hdng_2home ", |
"diff_v_north ", //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/v0005/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/v0005 |
---|
Property changes: |
Added: svn:ignore |
+*.bak |
+*.aps |
+*.elf |
+*.sym |
+*.map |
+*.lss |
+*.eep |
+*.txt |