/branches/MicroMag3_Nick666/Festkomma/V0.67g/COPYING |
---|
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/MicroMag3_Nick666/Festkomma/V0.67g/COPYING.LESSER |
---|
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/MicroMag3_Nick666/Festkomma/V0.67g/Flight-Ctrl_MEGA644_V0_67g.hex |
---|
0,0 → 1,1981 |
:100000000C948E030C94AB030C94AB030C94AB03D5 |
:100010000C94AB030C94AB030C94AB030C94AB03A8 |
:100020000C94AB030C94AF0C0C94AB030C94AB038B |
:100030000C940D160C94AB030C94AB030C94AB0313 |
:100040000C94AB030C94AB030C94520D0C94DB3664 |
:100050000C9453060C94AB030C941D060C94AB0348 |
:100060000C94FA0D0C94AB030C944B150C94AB034D |
:10007000EC08A409F808A409A409A4093A090B0981 |
:10008000A409A4092D0966096609660966096609B5 |
:100090003E09A409A4092609A4093609240E390E2B |
:1000A000420E4C0E690E810E9A0EB70ED40EF10E52 |
:1000B000BF0F09115111B21108125C12E01287131F |
:1000C000DD13011437147314B114EA14641569159F |
:1000D0007A15881595158D159515A9150A0A0D001F |
:1000E0004E65757472616C0048656164696E67483D |
:1000F0006F6C64000A0D537465756572756E673AAE |
:1001000020004F4B0A0D000A0D4162676C65696360 |
:1001100068204C756674647275636B73656E736F7B |
:10012000722E2E000A0D4B616C69627269657265F0 |
:10013000204B6F6D70617373000A0D42656E7574AC |
:100140007A6520506172616D657465727361747A4D |
:10015000202564000A0D414343206E6963687420C2 |
:1001600061626765676C696368656E21000A0D49A5 |
:100170006E69742E20454550524F4D3A2047656EAA |
:100180006572696572652044656661756C742D5091 |
:100190006172616D657465722E2E2E000A0D3D3DF3 |
:1001A0003D3D3D3D3D3D3D3D3D3D3D3D3D3D3D3D7F |
:1001B0003D3D3D3D3D3D3D3D3D3D3D3D000A0D4606 |
:1001C0006C69676874436F6E74726F6C0A0D486176 |
:1001D0007264776172653A25642E25640A0D536F47 |
:1001E0006674776172653A5625642E25642563200E |
:1001F000002E005A5F52616E67653A2020253469EF |
:1002000000595F52616E67653A20202534690058B5 |
:100210005F52616E67653A2020253469004D4D3389 |
:100220002052616E6765005A5F4F66667365743A67 |
:10023000202025336900595F4F66667365743A2044 |
:100240002025336900585F4F66667365743A202035 |
:10025000253369004D4D33204F66660052616E674D |
:10026000653A2533692D253369005374656C6C75C7 |
:100270006E673A2025336900536574706F696E7438 |
:10028000202025336900536572766F202000506F5F |
:100290007469343A202025336900506F7469333A09 |
:1002A000202025336900506F7469323A20202533AD |
:1002B0006900506F7469313A202025336900537406 |
:1002C0006172743A2020202020253569004D657325 |
:1002D00073776572743A2020253569005269636826 |
:1002E00074756E673A2020253569004B6F6D70611B |
:1002F00073732020202020202000456D70662E5032 |
:100300006567656C3A253569005370616E6E756E70 |
:10031000673A202025356900486F636820253469D5 |
:1003200020282533692900526F6C6C202534692000 |
:100330002825336929004E69636B202534692028FC |
:100340002533692900414343202D2053656E736F87 |
:100350007200476965722025346920282533692990 |
:1003600000526F6C6C2025346920282533692900E0 |
:100370004E69636B2025346920282533692900479D |
:100380006965722025346920282533692900526F58 |
:100390006C6C20253469202825336929004E696357 |
:1003A0006B20253469202825336929004779726F2D |
:1003B000202D2053656E736F720050333A253469D7 |
:1003C000202050343A253469200050313A253469D0 |
:1003D000202050323A253469200047733A25346989 |
:1003E000202047693A25346920004E693A2534694E |
:1003F0002020526F3A25346920004B373A25346962 |
:1004000020204B383A25346920004B353A25346991 |
:1004100020204B363A25346920004B333A25346985 |
:1004200020204B343A25346920004B313A25346979 |
:1004300020204B323A25346920004B6F6D70617378 |
:10044000733A20202025356900526F6C6C3A2020C9 |
:1004500020202020253569004E69636B3A2020203A |
:1004600020202025356900616B742E204C61676562 |
:100470000048F668656E726567656C756E67004B5F |
:1004800065696E6520004F66662020202020203A96 |
:1004900020253569004C756674647275636B3A206B |
:1004A00025356900536F6C6C486F6568653A202587 |
:1004B000356900486F6568653A2020202020253581 |
:1004C000690028632920486F6C6765722042757344 |
:1004D000730053657474696E673A20256420004880 |
:1004E000573A5625642E25642053573A25642E2505 |
:1004F000642563002B2B204D696B726F4B6F7074FA |
:100500006572202B2B005B25695D0000010203044E |
:100510000405060708090A0B0B0C0D0E0F1011112C |
:10052000121314151516171818191A1B1B1C1D1D4C |
:100530001E1F1F202121222323242425252627278F |
:10054000282829292A2A2B2B2C2C2D2D2D2E2E2FF5 |
:100550002F3030303131323232333333343434357A |
:100560003535363636373737373838383939393917 |
:100570003A3A3A3A3B3B3B3B3C3C3C3C3C3D3D3DC4 |
:100580003D3E3E3E3E3E3F3F3F3F3F3F404040407E |
:100590004040414141414141424242424242424344 |
:1005A000434343434343444444444444444445450F |
:1005B00045454545454545464646464646464646E2 |
:1005C00047474747474747474747474848484848B6 |
:1005D0004848484848484949494949494949494991 |
:1005E000494949494A4A4A4A4A4A4A4A4A4A4A4A6F |
:1005F0004A4A4B4B4B4B4B4B4B4B4B4B4B4B4B4B4D |
:100600004B4B4B4C4C4C4C4C4C4C4C4C4C4C4C4C2D |
:100610004C4C4C4C4C4C4D4D4D4D4D4D4D4D4D4D10 |
:100620004D4D4D4D4D4D4D4D4D4D4D4D4E4E4E4EF6 |
:100630004E4E4E4E4E4E4E4E4E4E4E4E4E4E4E4EDA |
:100640004E4E4E4E4E4E4F4F4F4F4F4F4F4F4F4FC0 |
:100650004F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4FAA |
:100660004F4F4F4F4F0000120024003600470059F3 |
:10067000006B007D008F00A000B200C300D500E633 |
:1006800000F80009011A012B013C014D015E016FC8 |
:100690000180019001A001B101C101D101E101F08E |
:1006A0000100020F021F022E023D024B025A026895 |
:1006B00002760284029202A002AD02BA02C702D4FC |
:1006C00002E102ED02F902050310031C03270332C5 |
:1006D000033C03470351035B0364036E037703800A |
:1006E00003880390039803A003A703AF03B503BCDB |
:1006F00003C203C803CE03D303D803DD03E203E63A |
:1007000003EA03ED03F003F303F603F803FA03FC33 |
:1007100003FE03FF03FF03000400040011241FBEB7 |
:10072000CFEFD0E1DEBFCDBF13E0A0E0B1E0EEE05F |
:10073000F9E702C005900D92A23AB107D9F717E088 |
:10074000A2EAB3E001C01D92A13CB107E1F70E940B |
:10075000EB030C94863C0C94000022E030E0D901BD |
:100760000E94683C802D863028F082E0D901082E56 |
:100770000E94753C99270895FB01863008F085E0BA |
:10078000282F2150842F9927A6E42A9FD0011124D5 |
:10079000A65FBF4F019724F001900E94753CFACFED |
:1007A000A2E0B0E0022E0E94753C0895FB01282FC4 |
:1007B000863008F025E0842F99272150A6E42A9F4F |
:1007C000D0011124A65FBF4F019724F00E94683C1E |
:1007D0000192FACF08951F93CF93DF9314B815B801 |
:1007E000189B02C08BE001C08AE08093000181E881 |
:1007F00087B98FEF88B98BE184B981E085B98EE341 |
:100800008AB9579A87EF8BB984B7877F84BF809165 |
:1008100060008861809360001092600080ED97E036 |
:100820009093C1038093C003109254041092530418 |
:1008300010920A0710920907109252041092510464 |
:100840001092500410924F04809100018A3011F4EC |
:10085000289801C0289A0E947C0C0E9423080E94BC |
:10086000F8150E94F40D0E9431150E9421397894E8 |
:100870001092080683E48093090687E080930A06B5 |
:100880002091000187E690E09F938F9383E490E0AE |
:100890009F938F931F921F92822F6AE00E94BB3B0F |
:1008A000892F99279F938F93822F0E94BB3B992773 |
:1008B0009F938F938DEB91E09F938F931F920E9454 |
:1008C000030A8CE991E09F938F931F920E94030A81 |
:1008D000299AA1E0B0E00E94683C802D2DB73EB778 |
:1008E000205F3F4F2DBF843409F43FC08DE691E077 |
:1008F0009F938F931F920E94030A0E942F2310E060 |
:100900000F900F900F90123049F40E949D2246E400 |
:1009100061E377E082E00E94BC0302C0133051F42F |
:100920000E940C2246E461E377E083E00E94BC036E |
:1009300014E002C0143010F00E949D2246E461E3EE |
:1009400077E0812F0E94BC031F5F1630E0F283E046 |
:1009500022E030E0D901082E0E94753C84E4215049 |
:100960003040D901082E0E94753CC4E0D0E0DE0181 |
:100970000E94683C802D853050F084E591E09F9383 |
:100980008F931F920E94030A0F900F900F9022974F |
:10099000DE010E94683C802D863028F082E0DE0176 |
:1009A000082E0E94753C46E461E377E00E94D6037E |
:1009B000DE010E94683C802D863028F082E0DE0156 |
:1009C000082E0E94753C99279F938F9389E391E0AD |
:1009D0009F938F931F920E94030A84EF91E00E94DD |
:1009E0009A0CEC010F900F900F900F900F90CE018A |
:1009F0000E94A30C8823D9F3E0913307FF27EE0F61 |
:100A0000FF1FEB5FF84F8081918185369105C4F01F |
:100A1000E0913407FF27EE0FFF1FEB5FF84F808157 |
:100A200091818536910564F084E291E09F938F93E4 |
:100A30001F920E94030A0E9455380F900F900F904A |
:100A40008091390780FF20C087E091E09F938F93CA |
:100A50001F920E94030A88EE93E00E949A0CEC0118 |
:100A60000E9460100F900F900F90CE010E94A30C77 |
:100A70008823D9F382E091E09F938F931F920E9485 |
:100A8000030A0F900F900F900E949E20809100010A |
:100A90008A3011F4289801C0289A80ED97E090934D |
:100AA000C1038093C00388EE93E090930306809384 |
:100AB000020685E58093FD0584EF90E09F938F9378 |
:100AC0001F920E94030A809139070F900F900F9098 |
:100AD00082FF03C088EE90E002C080EE90E09F931A |
:100AE0008F931F920E94030A0F900F900F908CED2E |
:100AF00090E09F938F931F920E94030A0E94A4107C |
:100B000088E893E190938603809385030F900F907C |
:100B10000F908091BF03882309F462C01092BF0335 |
:100B20000E94C0230E945720209100012A3011F416 |
:100B3000289801C0289A80910301882321F08150D0 |
:100B40008093030110C01092B2031092B30310926D |
:100B50006F0410926E04109271041092700410923F |
:100B600073041092720480914E04882329F08091BE |
:100B70004E04815080934E048091850390918603AA |
:100B8000892B01F585E090E090938603809385039F |
:100B90000E94D21580910403909105038F5F9F4FAF |
:100BA000F9F4809155048823D9F080E197E290937D |
:100BB000C1038093C00380E890E090930503809385 |
:100BC00004030EC080918503909186030197909352 |
:100BD0008603809385032A3011F4289801C0289A4F |
:100BE0000E943E080E94CE08CE010E94A30C8823DA |
:100BF00009F48FCF209108033091090380914907B0 |
:100C00009927281739079CF48091040390910503D4 |
:100C10008F5F9F4F61F480E797E19093C1038093CA |
:100C2000C00380E093E0909305038093040384E67F |
:100C300090E00E949A0CEC016CCF1F920F920FB6BD |
:100C40000F9211248F939F93EF93FF938091010153 |
:100C50008823E1F48091BB039091BC0301969093AB |
:100C6000BC038093BB03FC01E153FB4FE081ED30FB |
:100C700019F08639910539F41092BC031092BB0328 |
:100C800081E080930101E093C60004C01092BC0390 |
:100C90001092BB03FF91EF919F918F910F900FBE28 |
:100CA0000F901F9018951F920F920FB60F9211245C |
:100CB0002F933F934F938F939F93AF93BF93CF9374 |
:100CC000DF93EF93FF938091C6008093A60340913A |
:100CD000B603463910F01092B5038091A6038D300B |
:100CE00009F05CC08091B503823009F057C01092C2 |
:100CF000B503A42FBB27FD01E05FF94F3081ED0163 |
:100D0000CF5ED94F28818091B9039091BA03831B9C |
:100D10009109821B91099F709093BA038093B90344 |
:100D20009C0196E0369527959A95E1F7235C2093F0 |
:100D3000B803982F9F73935C9093B7038081281713 |
:100D400029F48881981711F491E006C08091A903D5 |
:100D50008F5F8093A90390E08091A703882309F017 |
:100D600064C0992309F461C081E08093A703409394 |
:100D7000AA03AE5EB94F8DE08C9380911406823544 |
:100D800009F053C088E190E02CE00FB6F894A895E4 |
:100D9000809360000FBE2093600047C08091B50330 |
:100DA0008130D9F0813018F08230E9F530C080917F |
:100DB000A603833239F48091A703882319F481E0D4 |
:100DC0008093B5038091A6038093120681E08093FF |
:100DD000B6038091A603992715C082E08093B503DE |
:100DE000E42FFF278091A603EE5EF94F80834F5FCB |
:100DF0004093B6032091A6038091B9039091BA0362 |
:100E0000820F911D9093BA038093B9030EC0E42F13 |
:100E1000FF278091A603EE5EF94F8083463938F3B1 |
:100E20001092B503E7CF1092B503FF91EF91DF91D8 |
:100E3000CF91BF91AF919F918F914F913F912F9102 |
:100E40000F900FBE0F901F901895DC0120E030E04E |
:100E500040E050E0EFECF4E005C08191280F311D37 |
:100E60004F5F5F4F4A175B07C1F73F70C90136E01C |
:100E7000969587953A95E1F7835CFD01E153FB4F29 |
:100E8000808311962F73235CFD01E153FB4F208378 |
:100E9000A053BB4F8DE08C93109201018091CF0441 |
:100EA0008093C6000895EF92FF920F931F93CF9304 |
:100EB000DF937A01722F93E29093CF046093D00472 |
:100EC0008093D10403E010E060E0A2EDB4E046C0FE |
:100ED000F701E60FF11D90816F5F715019F4E0E0AA |
:100EE00040E00FC0F701E60FF11D40816F5F7150C8 |
:100EF00011F4E0E006C0F701E60FF11DE0816F5F3D |
:100F00007150892F86958695835C8C935527892F00 |
:100F100099278370907024E0880F991F2A95E1F734 |
:100F20009A0194E0369527959A95E1F7822B835C98 |
:100F3000ED0189834F705070440F551F440F551FAA |
:100F40008E2F8295869586958370842B835C8A8309 |
:100F5000EF73E35CEB830C5F1F4F1496772309F06C |
:100F6000B7CFC8010E942507E6E0CDB7DEB70C94E5 |
:100F7000533C1F93CF93DF93EC0170E0A22FBB276C |
:100F8000129748C0E42FFF27EE5EF94F30814F5F84 |
:100F9000E42FFF27EE5EF94F50814F5FE42FFF27CC |
:100FA000EE5EF94F10814F5FE42FFF27EE5EF94FA1 |
:100FB00020814F5F842F9927A817B90774F15D53DB |
:100FC000FE01E70FF11D3D53330F330F852F82953F |
:100FD0008F70382B3083613001F1912F9D537F5FEB |
:100FE000FE01E70FF11D71505295507F892F8695B4 |
:100FF0008695582B508363506F3F79F07E5FFE01DA |
:10100000E70FF11D9295990F990F907C2D53922B1C |
:1010100090837F5F662309F0B5CFDF91CF911F9159 |
:1010200008951F93182F8A3019F48DE00E9411083B |
:101030008091C00085FFFCCF1093C60080E090E057 |
:101040001F9108950895E1ECF0E088E18083A0EC21 |
:10105000B0E08C9182608C938081806880838081F5 |
:10106000806480838AE28093C40088EC90E00E94D0 |
:101070009A0C9093FC058093FB05089580910101E3 |
:10108000882309F48AC08091A203882371F080919B |
:101090000101882351F02BE04DEF55E06091CE0423 |
:1010A00087E40E9453071092A2038091FB05909160 |
:1010B000FC050E94A30C882321F48091A4038823BB |
:1010C000B1F080910101882391F022E448EA56E0D2 |
:1010D0006091CE0484E40E9453071092A40384EF2D |
:1010E00091E00E949A0C9093FC058093FB0560911F |
:1010F00002016F3F89F0462F552734E0440F551FFA |
:101100003A95E1F74C5F5E4F605D20E181E40E941B |
:1011100053078FEF809302018091A303882359F135 |
:1011200080910101882339F10E94AD101092A30330 |
:101130003091AC03932F9F5F9093AC03943021F0D8 |
:101140008091AD03882359F026E145E057E060E047 |
:1011500084E30E9453078FEF8093AC030CC044E1FB |
:10116000949FA0011124465E5C4F24E160E0832F30 |
:101170008F5C0E9453078091A503882371F08091B2 |
:101180000101882351F02AE048E056E06091CE0446 |
:1011900086E50E9453071092A5030895A2E0B0E0EF |
:1011A000E4EDF8E00C943A3C8091A703882309F41D |
:1011B000CDC08FEF80930301809114069927AA2751 |
:1011C000BB27FC01E156F040E631F10508F0BCC058 |
:1011D000E85CFF4F0C94623C2091AA0343E062E07C |
:1011E000CE0101960E94B907898180930201ACC0AB |
:1011F0002091AA0343E06BE08DEF95E00E94B907D0 |
:101200008091E6039091FF05892B8093E60381E0AE |
:101210008093A40399C02091AA0343E062E0CE0129 |
:1012200001960E94B9078091E6039981892B8093EA |
:10123000E6038A818F3F21F481E08093AD0302C0F1 |
:101240001092AD0381E08093A3037EC02091AA0396 |
:1012500043E064E08EEA93E006C02091AA0343E0F5 |
:1012600063E082EB93E00E94B9076EC081E0809357 |
:10127000A5036AC081E08093A20366C02091AA03FF |
:1012800043E062E0CE0101960E94B90789818F3F59 |
:1012900089F0863010F085E0898346E461E377E0E9 |
:1012A00089810E94D603898126E441E357E0609159 |
:1012B000CE0408C01091CE040E94AD0326E441E3A1 |
:1012C00057E0612F855B0E9453073EC02091AA031F |
:1012D00043E066E481E397E00E94B9078091140639 |
:1012E00046E461E377E08B560E94BC0380911406CC |
:1012F0008B56A2E0B0E0082E0E94753C60915C071E |
:1013000077278827992724EC39E040E050E00E94B5 |
:101310009C3B609387037093880380938903909329 |
:101320008A0360915D077727882799270E949C3B55 |
:1013300060938B0370938C0380938D0390938E0343 |
:101340000E94AD030E94F7211092A703E3E0CE5F55 |
:101350000C94563C982F8091EA06813069F4809174 |
:10136000E503E82FFF27E65EFC4F90838F5F8093B5 |
:10137000E50321E030E005C0892F0E941108282FE5 |
:101380003327C90108951F93182F04C080E30E94DA |
:10139000AA0911501116D4F31F9108951F93182F05 |
:1013A00004C080E20E94AA0911501116D4F31F91C3 |
:1013B00008950F931F93CF93DF938C01EB0108C027 |
:1013C000F8010F5F1F4FE4918E2F0E94AA09219709 |
:1013D0002097B1F7DF91CF911F910F9108950F934F |
:1013E0001F93CF93DF938C01EB0106C0F80181912D |
:1013F0008F010E94AA0921972097C1F7DF91CF9111 |
:101400001F910F910895A3E3B0E0E9E0FAE00C9496 |
:101410002B3C29968FAD29978093EA06CE01855BF8 |
:101420009F4F9D838C832B968EAD9FAD2B979FA74F |
:101430008EA722243324210102C0130124010EA50A |
:101440001FA502C00F5F1F4FF801F490FF2019F095 |
:10145000F5E2FF16B9F7B8018EA59FA5681B790BB9 |
:1014600011F00E94D909FF2009F442C20F5F1F4FFB |
:101470001FA70EA71982AC81BD811BAA1AAA9FEFD4 |
:1014800099ABEEA5FFA5CF0101969FA78EA7B490BB |
:1014900095E7B91621F08B2D8062883789F4EBA986 |
:1014A000E0FF07C02D903D904D905C9013971496EF |
:1014B00007C08D919C9111971C01442455241296CC |
:1014C000F0E2BF1621F489818823D9F685C083E232 |
:1014D000B81609F483C09AE2B91621F0EDE2BE16FF |
:1014E00069F408C0FD011296E081EAABE7FFC9CFBD |
:1014F000E195EAABFBA9F061FF7D72C08BE2B81603 |
:1015000009F46AC09EE2B916B1F52EA53FA52F5F7A |
:101510003F4FEEA5FFA584918A3221F0B82E20E03E |
:1015200030E01BC0FD0112964081518157FF02C07F |
:101530004FEF5FEF49AB3FA72EA7A3CFC90103E051 |
:10154000880F991F0A95E1F7220F331F280F391FC3 |
:101550002B0D311D20533040B49031968B2D80538C |
:101560008A3060F3FFA7EEA7A90137FF02C04FEF53 |
:101570005FEF49AB8DCFF0E3BF1631F48BA984FD4B |
:1015800080CF80628BAB7DCF8B2D81538930E8F487 |
:1015900020E030E0C901F3E0880F991FFA95E1F7E8 |
:1015A000220F331F280F391F2B0D311D20533040C0 |
:1015B000EEA5FFA5CF0101969FA78EA7B4908B2D16 |
:1015C00080538A3038F32AAB63CF98E6B91651F4CA |
:1015D000EBA9E460EBAB55CFB98253CFFBA9F86020 |
:1015E000FBAB4FCF8CE6B81621F49BA991609BAB67 |
:1015F00048CFBD83AC83E3E6BE1639F41296BD83B3 |
:10160000AC8312978C918E8318C1F4E4BF1639F025 |
:1016100084E6B81639F099E6B91659F503C0EBA976 |
:10162000E160EBABFBA9F0FF08C01496BD83AC836F |
:101630005E904E903E902E900AC01296BD83AC8371 |
:101640009E918E911C01442437FC4094542C57FCED |
:1016500003C08AE088AB92C05094409430942094A8 |
:10166000211C311C411C511C8DE289839AE098ABEE |
:1016700085C0EFE4BE1629F0FFE6BF1639F488E016 |
:1016800061C09BA991609BABE8E056C0F0E7BF1634 |
:1016900071F41296BD83AC839E918E911C014424FB |
:1016A00055248BA980648BAB78E7B72E5EC0E3E747 |
:1016B000BE16D9F51296BD83AC83DE90CE90C114D0 |
:1016C000D10489F488E28E838EE68F8385E788874C |
:1016D0008CE689878A8789E28B871C8666E0C62E1E |
:1016E000D12CCC0EDD1EF9A9F7FD13C04F2F5527C5 |
:1016F00047FD509560E070E0C6010E94273A0097D0 |
:1017000011F419A90DC08C1919A981174CF4182FBF |
:1017100007C0F60101900020E9F731971E2F1C1930 |
:1017200019824201310140E094C085E5B81631F0DC |
:1017300095E7B91649F4EAE0E8AB1FC0FBA9F160F0 |
:10174000FBAB8AE088AB19C098E5B91621F0E8E751 |
:10175000BE1609F06EC0FBA9F3FD02C080E1F2CF16 |
:10176000211431044104510419F490E198AB05C0EF |
:10177000EBA9E064EBABF0E1F8AB198289A987FD36 |
:1017800003C09BA99F7D9BAB2114310441045104EC |
:1017900061F4E9A9EE2349F46624772443015EE26B |
:1017A000C52ED12CCC0EDD1E3EC04EE2C42ED12C57 |
:1017B000CC0EDD1EF8A9EF2EFF2400271127C20151 |
:1017C000B101A80197010E94EE3B6A3020F430E39A |
:1017D000A32EA60E08C027E5A22EA60E88E5B816F1 |
:1017E00011F49FEDA922F601A2926F01C201B1018D |
:1017F000A80197010E94EE3B39014A012E143F04D3 |
:101800004006510618F019012A01D9CFF8A9F8307D |
:1018100051F48BA983FF07C090E3A91621F080E360 |
:10182000F60182936F01CE018C19182F125D49A920 |
:1018300010C0BB2009F45CC0BE8219824201310194 |
:1018400000E096E0C92ED12CCC0EDD1E11E021E087 |
:1018500005C0212F042F011B07FD00E0898188238B |
:1018600019F0812F8F5F07C09BA996FD02C0812FC1 |
:1018700002C0822F8E5FA82EA00EEBA9EE2EFF24B1 |
:1018800080E3482E512C4E205F204114510421F456 |
:101890008AA98A190E94CE098981882329F061E0EA |
:1018A00070E0CE01019609C0E6FE09C080E38A839C |
:1018B000BB8262E070E0CE0102960E94EF09F0E286 |
:1018C0004F16510421F48AA98A190E94C309802F56 |
:1018D0000E94C309612F772767FD7095C6010E949A |
:1018E000EF09E4FEAACD8AA98A190E94CE09A5CDE6 |
:1018F000E2E1CD5C0C94473C82E085BD83EA84BD87 |
:1019000017BC88E788BD96E096BD83EC8093B00055 |
:101910009093B100E0E7F0E0808182608083EEE6A2 |
:10192000F0E08081816080838AE08093B300109230 |
:10193000B20008952091BD033091BE032F5F3F4F49 |
:10194000820F931F08952091BD033091BE03821B27 |
:10195000930B892F992786958074992708951F9254 |
:101960000F920FB60F921124EF92FF920F931F93D5 |
:101970002F933F934F935F936F937F938F939F9397 |
:10198000AF93BF93CF93DF93EF93FF9380910603C1 |
:101990008150809306038F3F09F069C083E88093EC |
:1019A000B00080919C03C82FDD27D093C303C09360 |
:1019B000C20380916607E0905307209101043091A3 |
:1019C0000204409103045091040480FF18C0FF24D6 |
:1019D00000271127CA01B90120E830E040E050E0BB |
:1019E0000E94103CC801B7010E949C3B20E032E0FD |
:1019F00040E050E00E94103CC20FD31F17C0FF24EC |
:101A000000271127CA01B90120E830E040E050E08A |
:101A10000E94103CC801B7010E949C3B20E032E0CC |
:101A200040E050E00E94103CC21BD30BD093C30394 |
:101A3000C093C2032091C2033091C3038091540725 |
:101A400099272817390734F080915507992782176D |
:101A5000930724F49093C3038093C2038091C2033D |
:101A60008093B300809156078093060304C083E0FF |
:101A70008093B0005F98FF91EF91DF91CF91BF917C |
:101A8000AF919F918F917F916F915F914F913F9116 |
:101A90002F911F910F91FF90EF900F900FBE0F901D |
:101AA0001F9018951F920F920FB60F9211242F932B |
:101AB0003F934F935F936F937F938F939F93AF93D6 |
:101AC000BF93EF93FF938091C40381508093C4032D |
:101AD0008F3FB9F48AE08093C403809107038F5F3E |
:101AE000817080930703882319F481E08093BF03FA |
:101AF0008091BD039091BE0301969093BE038093A5 |
:101B0000BD038091C0039091C1030297B0F0809112 |
:101B1000C0039091C10301979093C1038093C003C8 |
:101B20008091C0039091C10320910403309105037B |
:101B300082239323892BD1F406C08FEF9FEF9093DC |
:101B4000050380930403809100018A3039F404C0B6 |
:101B50005A9A05C0479A03C05A9801C04798809185 |
:101B6000390783FF08C00E94233805C08091000117 |
:101B70008A3081F7EDCFFF91EF91BF91AF919F91A7 |
:101B80008F917F916F915F914F913F912F910F9026 |
:101B90000FBE0F901F9018952091BD033091BE038A |
:101BA0002F5F3F4F280F391F4FEE02C040937A003E |
:101BB0008091BD039091BE03B901681B790B77FF3B |
:101BC000F5CF08952091BD033091BE032F5F3F4FA5 |
:101BD000280F391F8091BD039091BE03A901481BB6 |
:101BE000590B57FFF7CF089510927C008FEE80932A |
:101BF0007A0008951F920F920FB60F921124DF9270 |
:101C0000EF92FF920F931F932F933F934F935F9306 |
:101C10006F937F938F939F93AF93BF93CF93DF93F4 |
:101C2000EF93FF9310927A008091E103D82ED39422 |
:101C3000D092E103E82FFF27EB30F10508F022C234 |
:101C4000E25BFF4F0C94623C8091780090917900A8 |
:101C50009093E0038093DF0381E08093E20380911F |
:101C6000D9039091DA0301969093DA038093D90314 |
:101C7000FFC180917800909179009093DE0380936A |
:101C8000DD0390C080917800909179009093DC03FF |
:101C90008093DB0384E070C14091080350910903F5 |
:101CA00080917800909179009A01220F331F240FC0 |
:101CB000351F63E070E00E94C73B260F371F369543 |
:101CC000279536952795309309032093080386E0DE |
:101CD00053C18091FB039091FC03209178003091D7 |
:101CE0007900821B930B9093EC068093EB06809116 |
:101CF000EB069091EC069093CC038093CB0387E0A6 |
:101D00003BC180917800909179002091F903309146 |
:101D1000FA03821B930B9093F7068093F60680914B |
:101D2000F6069091F7069093CE038093CD03109220 |
:101D3000E2039EC1809100012091DF033091E00316 |
:101D40008A3049F48091780090917900820F931F36 |
:101D50009695879506C08091780090917900820FC2 |
:101D6000931F9093CA038093C90381E005C18091BA |
:101D700000012091DD033091DE038A3049F4809127 |
:101D8000780090917900820F931F9695879506C0F1 |
:101D90008091780090917900820F931F9093C803EF |
:101DA0008093C70382E0E8C0809100012091DB03AB |
:101DB0003091DC038A3049F4809178009091790069 |
:101DC000820F931F9695879506C080917800909119 |
:101DD0007900820F931F9093C6038093C50385E01B |
:101DE000CBC06091780070917900E090FD03F09095 |
:101DF000FE030091FF0310910004882777FD809572 |
:101E0000982F0E94DA3AA80197010E94343A0E9462 |
:101E1000BD3A7093D0036093CF032091CF033091EC |
:101E2000D003E091EB06F091EC068091F6069091DC |
:101E3000F70697FF03C0909581959F4F64E070E08F |
:101E40000E94DB3BEB01CF01F7FF03C0909581952A |
:101E50009F4F64E070E00E94DB3B260F371F2C0F82 |
:101E60003D1F3093D0032093CF038091CF039091F7 |
:101E7000D003029704F16091FD037091FE038091FD |
:101E8000FF039091000420E030E048E454E40E9415 |
:101E9000E43A88230CF03CC06091FD037091FE038E |
:101EA0008091FF03909100042AE037ED43EA5CE360 |
:101EB0000E94353A25C08091CF039091D0038F5F67 |
:101EC0009F4F34F56091FD037091FE038091FF03F5 |
:101ED0009091000420E030E046E154E40E94E73AAB |
:101EE0001816B4F46091FD037091FE038091FF0316 |
:101EF000909100042AE037ED43EA5CE30E94343A13 |
:101F00006093FD037093FE038093FF03909300049E |
:101F100081E08093D603809178009091790090932E |
:101F2000EE068093ED06E090CF03F090D0030027FB |
:101F3000F7FC0095102F8091390490913A04A091FC |
:101F40003B04B0913C04E80EF91E0A1F1B1FC80198 |
:101F5000B70120E034E040E050E00E94103CE21A7B |
:101F6000F30A040B150BE0923904F0923A04009343 |
:101F70003B0410933C0483E08093E20379C080919A |
:101F8000FB069091FC062091780030917900820F39 |
:101F9000931F9093FC068093FB068091F3068F5F5E |
:101FA0008093F3068091F306853008F46BC080912E |
:101FB00078009091790090930F0380930E03109214 |
:101FC000F3068091EF069091F0062091FB06309188 |
:101FD000FC06821B930B2091560430915704821B00 |
:101FE000930B9093D8038093D7036091FB06709175 |
:101FF000FC06E0900A03F0900B0300910C03109193 |
:102000000D03882777FD8095982FA8019701220F4F |
:10201000331F441F551F2E0D3F1D401F511F620FC0 |
:10202000731F841F951F24E030E040E050E00E94C1 |
:10203000103C20930A0330930B0340930C035093FE |
:102040000D032091EF063091F00680910A039091E4 |
:102050000B03A0910C03B0910D03281B390B309397 |
:102060005704209356041092FC061092FB060AC0F7 |
:102070008091E20380937C00DD2051F08FEE80930D |
:102080007A0006C01092E2031092E10310927C00E5 |
:10209000FF91EF91DF91CF91BF91AF919F918F9180 |
:1020A0007F916F915F914F913F912F911F910F9170 |
:1020B000FF90EF90DF900F900FBE0F901F9018953C |
:1020C000CF93DF93A3E0B0E00E94683C802DC82F3F |
:1020D000DD27C531D10508F02A97C7BD84E690E019 |
:1020E0000E94CC0D80910E0390910F038255934076 |
:1020F000D0F4C0E0D0E017C0C7BD82E390E00E94FA |
:10210000CC0D81EF91E09F938F931F920E94030A61 |
:1021100080910E0390910F030F900F900F908458B1 |
:10212000934020F02196CA3FD10530F3A3E0B0E000 |
:102130000C2E0E94753CC093F8068CE291E00E9440 |
:10214000CC0DDF91CF910895EAE1F3E080E2819335 |
:1021500093E0EA36F907D9F708951F938091E603D3 |
:10216000282F3327C90181709070682F8823A9F028 |
:102170008091E703882311F0815002C080916A03A7 |
:102180008093E703EAE1F3E080E2819393E0EA36AB |
:10219000F907D9F78FEF8093AC03A9014270507013 |
:1021A00021FF10C08091E7038F5F8093E703EAE18E |
:1021B000F3E080E2819393E0EA36F907D9F78FEFF5 |
:1021C0008093AC03662321F0452B11F01092E703B6 |
:1021D00081E18093E5038091E70399279F938F9393 |
:1021E00086E095E09F938F9381E08F930E94030A8E |
:1021F0008091E7030F900F900F900F900F90E82FB2 |
:10220000FF27ED30F10508F023C4E75AFF4F0C9487 |
:10221000623C1092E50384EF94E09F938F9311E06A |
:102220001F930E94030A84E18093E503209100013B |
:1022300087E690E09F938F9383E490E09F938F9342 |
:102240001F921F92822F6AE00E94BB3B892F992721 |
:102250009F938F93822F0E94BB3B99279F938F93CD |
:102260008FED94E09F938F931F930E94030A88E25F |
:102270008093E5030E94AD0399279F938F9382ED8E |
:1022800094E09F938F931F930E94030A8CE38093A3 |
:10229000E50382EC94E09F938F931F930E94030ABF |
:1022A00088C28091390780FF44C01092E503809175 |
:1022B0005604909157049F938F9383EB94E09F93E0 |
:1022C0008F9311E01F930E94030A84E18093E5033A |
:1022D00080915804909159049F938F9384EA94E0DD |
:1022E0009F938F931F930E94030A88E28093E503D4 |
:1022F00080910E0390910F039F938F9385E994E053 |
:102300009F938F931F930E94030A8CE38093E503AE |
:102310008091F80699279F938F9386E894E09F9386 |
:102320008F931F930E94030A8DB79EB744968DBF6B |
:1023300094C384E18093E5038FE794E09F938F93A8 |
:1023400011E01F930E94030A88E28093E50381E76E |
:1023500094E09F938F931F930E94030A8DB79EB7BB |
:102360000696E5CF1092E50387E694E09F938F935E |
:1023700011E01F930E94030A84E18093E5036091BA |
:10238000010470910204809103049091040420E000 |
:1023900034E040E050E00E94103C5F934F933F9345 |
:1023A0002F9388E594E09F938F931F930E94030AD5 |
:1023B00088E28093E5036091090470910A0480919A |
:1023C0000B0490910C0420E034E040E050E00E94C7 |
:1023D000103C5F934F933F932F9389E494E09F9336 |
:1023E0008F931F930E94030A8CE38093E5038091EF |
:1023F0003D0490913E049F938F938AE394E09F93D2 |
:102400008F931F930E94030A8DB79EB746968FCF76 |
:102410001092E5038091090790910A072091070720 |
:10242000309108079F938F933F932F938AE294E014 |
:102430009F938F9311E01F930E94030A84E180937E |
:10244000E50380910D0790910E0720910B073091C5 |
:102450000C079F938F933F932F938AE194E09F9370 |
:102460008F931F930E94030A88E28093E503809173 |
:1024700011079091120720910F07309110079F9339 |
:102480008F933F932F938AE094E09F938F931F93B2 |
:102490000E94030A8CE38093E503809115079091D5 |
:1024A000160720911307309114079F938F933F9342 |
:1024B0002F938AEF93E07BC01092E503E0913207FF |
:1024C000FF27EE0FFF1FEB5FF84F20813181E09176 |
:1024D0003107FF27EE0FFF1FEB5FF84F80819181DF |
:1024E0003F932F939F938F938AEE93E09F938F93C5 |
:1024F00011E01F930E94030A84E18093E503E091B9 |
:102500003407FF27EE0FFF1FEB5FF84F208131816B |
:10251000E0913307FF27EE0FFF1FEB5FF84F80813D |
:1025200091813F932F939F938F938AED93E09F9395 |
:102530008F931F930E94030A88E28093E503E09142 |
:102540003607FF27EE0FFF1FEB5FF84F2081318129 |
:10255000E0913507FF27EE0FFF1FEB5FF84F8081FB |
:1025600091813F932F939F938F938AEC93E09F9356 |
:102570008F931F930E94030A8CE38093E503E091FD |
:102580003807FF27EE0FFF1FEB5FF84F20813181E7 |
:10259000E0913707FF27EE0FFF1FEB5FF84F8081B9 |
:1025A00091813F932F939F938F938AEB93E09F9317 |
:1025B0008F931F930E94030A8DB79EB74C96B7CE98 |
:1025C0001092E5038CEA93E09F938F9311E01F93A1 |
:1025D0000E94030A0F900F900F9080910001E091EC |
:1025E000EF03F091F0038A30F1F584E18093E50385 |
:1025F0008091C5039091C603FF93EF938E1B9F0BB1 |
:102600009F938F938DE993E09F938F931F930E94E5 |
:10261000030A88E28093E5032091F1033091F203ED |
:102620008091C7039091C8033F932F93821B930B14 |
:102630009F938F938EE893E09F938F931F930E94B5 |
:10264000030A8CE38093E5038091F3039091F403F4 |
:102650009F938F938091A0079091A1079F938F9351 |
:102660008FE793E04BC084E18093E5032091C5039D |
:102670003091C603CF0162E070E00E94DB3B7F93A4 |
:102680006F932E1B3F0B3F932F9380E793E09F9315 |
:102690008F931F930E94030A88E28093E503E091E1 |
:1026A000F103F091F2032091C7033091C803CF01E9 |
:1026B00062E070E00E94DB3B7F936F932E1B3F0B29 |
:1026C0003F932F9381E693E09F938F931F930E94F4 |
:1026D000030A8CE38093E5038091F3039091F40364 |
:1026E00062E070E00E94DB3B7F936F938091A007D4 |
:1026F0009091A1079F938F9382E593E09F938F938F |
:102700001F930E94030A8DB79EB7459610CE109274 |
:10271000E50385E493E09F938F9311E01F930E945C |
:10272000030A84E18093E5038091F9039091FA0311 |
:102730002091CD033091CE039F938F933F932F939E |
:1027400086E393E09F938F931F930E94030A88E28E |
:102750008093E5038091FB039091FC032091CB03D0 |
:102760003091CC039F938F933F932F9387E293E015 |
:102770009F938F931F930E94030A8CE38093E5033A |
:102780006091FD037091FE038091FF03909100041E |
:102790000E94BD3A7F936F9380918807909189073B |
:1027A0009F938F9388E193E09F938F931F930E9451 |
:1027B000030A8DB79EB74896BACD84E18093E503AE |
:1027C00080910803909109039F938F9389E093E090 |
:1027D0009F938F9311E01F930E94030A88E28093D6 |
:1027E000E50380914E0499279F938F938AEF92E09F |
:1027F0009F938F931F930E94030A8DB79EB70A96EB |
:1028000096CD1092E5038BEE92E09F938F9311E0AB |
:102810001F930E94030A84E18093E50380914104A1 |
:10282000909142049F938F938CED92E09F938F93AE |
:102830001F930E94030A88E28093E50380913D0480 |
:1028400090913E049F938F938DEC92E09F938F9392 |
:102850001F930E94030A8CE38093E50380913F0459 |
:10286000909140049F938F938EEB92E0E8C010927A |
:10287000E50380914604909147049F938F9382EBE8 |
:1028800092E09F938F9311E01F930E94030A84E1CB |
:102890008093E50380914804909149049F938F931E |
:1028A00086EA92E09F938F931F930E94030A88E227 |
:1028B0008093E50380914A0490914B049F938F93FA |
:1028C0008AE992E09F938F931F930E94030A8CE3FF |
:1028D0008093E50380914C0490914D049F938F93D6 |
:1028E0008EE892E01CCD1092E50386E892E09F937B |
:1028F0008F9311E01F930E94030A84E18093E50304 |
:1029000080919C0399279F938F9388E792E09F93F0 |
:102910008F931F930E94030A88E28093E5038091BE |
:10292000C2039091C3039F938F938AE692E09F9393 |
:102930008F931F930E94030A8CE38093E503809199 |
:10294000550799279F938F938091540799279F93B9 |
:102950008F938CE592E09F938F931F930E94030ABD |
:10296000E3CC1092E50384E592E09F938F9311E00E |
:102970001F930E94030A84E18093E5038091AE07D0 |
:10298000992787FD90959F938F9385E492E09F937D |
:102990008F931F930E94030A88E28093E50380913E |
:1029A000AF07992787FD90959F938F9386E392E0D9 |
:1029B0009F938F931F930E94030A8CE38093E503F8 |
:1029C0008091B007992787FD90959F938F9387E219 |
:1029D00092E035C01092E5038DE192E09F938F93D2 |
:1029E00011E01F930E94030A84E18093E503809124 |
:1029F000B1079091B2079F938F938FE092E09F93DE |
:102A00008F931F930E94030A88E28093E5038091CD |
:102A1000B3079091B4079F938F9381E092E09F93C7 |
:102A20008F931F930E94030A8CE38093E5038091A8 |
:102A3000B5079091B6079F938F9383EF91E09F9393 |
:102A40008F931F930E94030A8DB79EB742966FCC57 |
:102A5000815080936A031092E7031092E6031F915E |
:102A600008951092B9008AE28093B800089585EA2B |
:102A70008093BC0080E090E0089584E98093BC00DE |
:102A800008951092B9008093BB0085E88093BC0044 |
:102A900080E090E008951F920F920FB60F921124DC |
:102AA0008F939F93EF93FF938091E8038F5F8093C1 |
:102AB000E8038150E82FFF27E830F10508F064C0F3 |
:102AC000EA59FF4F0C94623C8091E903880F8E5ABB |
:102AD00009C08091E9038F5F8093E903815027C08B |
:102AE00080917B071092B9008093BB0085E88093AA |
:102AF000BC004AC084E98093BC008091E903843023 |
:102B000018F41092E80302C01092E90385EAEFCFAF |
:102B10008091EA03880F8D5AE5CF8091BB00E09148 |
:102B2000EA03FF27E350F94F80838091EA03813065 |
:102B300039F08130A8F2823031F0833029F506C0B7 |
:102B400080918007CFCF80919807CCCF80919A0752 |
:102B5000C9CF8091EA039091BB00E82FFF27E35093 |
:102B6000F94F94838F5F8093EA03843010F01092C2 |
:102B7000EA0384E98093BC008AE090E090938603A6 |
:102B8000809385031092E8038091BC008068809355 |
:102B9000BC00FF91EF919F918F910F900FBE0F900E |
:102BA0001F9018954CEB50E084E9DA018C93109259 |
:102BB000E8032BEB30E0F90180811092E90380E813 |
:102BC0008C931092BD001092BA001082E9EBF0E0F5 |
:102BD0001082A8EBB0E01C9210828AE28C9385EA06 |
:102BE000DA018C931082F901108285E88C930895A4 |
:102BF00083EC80938100EFE6F0E080818062808347 |
:102C00001092F4031092F3031092F2031092F10366 |
:102C10001092F0031092EF0308951F920F920FB6D7 |
:102C20000F9211240F931F932F933F934F935F9312 |
:102C30006F937F938F939F93AF93BF93CF93DF93C4 |
:102C4000EF93FF9320918600309187008091ED03F0 |
:102C50009091EE03281B390B80918600909187009C |
:102C60009093EE038093ED03C9018D549440C0917D |
:102C7000EB03D091EC03835F9A4158F4249714F04E |
:102C800010926B0381E090E09093EC038093EB0350 |
:102C90005CC0CA30D1050CF058C0C9018B5F9040B0 |
:102CA000845B914008F040C0A901425D5140FE01A3 |
:102CB000EE0FFF1FEB5FF84F80819181FA01E81B57 |
:102CC000F90BCF01F7FF03C0909581959F4F0697B1 |
:102CD0004CF480914E04883C28F480914E04865F29 |
:102CE00080934E04FE01EE0FFF1F8F010B5F184F04 |
:102CF000D8012D913C91C901880F991F820F931F14 |
:102D0000840F951F64E070E00E94DB3BD8018D9139 |
:102D10009C9111979B01281B390BE55EF84F31837D |
:102D2000208311967C936E93FE013196F093EC0311 |
:102D3000E093EB03E530F10511F45D9A05C05D9871 |
:102D4000369711F45C9A01C05C98FF91EF91DF9186 |
:102D5000CF91BF91AF919F918F917F916F915F9133 |
:102D60004F913F912F911F910F910F900FBE0F9098 |
:102D70001F901895A2E1B0E0E0ECF6E10C942B3C3A |
:102D80008091C9039091CA034090F3035090F403DB |
:102D9000481A590A5092A1074092A0078091C70390 |
:102DA0009091C803988B8F87A091F103B091F203A3 |
:102DB000BA8BA98BE091C503F091C603FE87ED871E |
:102DC0008091EF039091F0039C878B876091CD03F6 |
:102DD0007091CE03E0909D07F0909E070027F7FCCE |
:102DE0000095102F882777FD8095982F2CE030E0F4 |
:102DF00040E050E00E949C3BE60EF71E081F191FA2 |
:102E0000C801B70122E030E040E050E00E94103CF1 |
:102E100030939E0720939D076091CB037091CC0364 |
:102E2000E090A707F090A8070027F7FC0095102F67 |
:102E3000882777FD8095982F2CE030E040E050E027 |
:102E40000E949C3BE60EF71E081F191FC801B70120 |
:102E500022E030E040E050E00E94103C3093A807B0 |
:102E60002093A7072091CF033091D003609188076A |
:102E700070918907882777FD8095982F442737FD23 |
:102E80004095542F620F731F841F951F22E030E07E |
:102E900040E050E00E94103C30938907209388075F |
:102EA0002091CD033091CE03C901880F991F820F65 |
:102EB000931F880F991F880F991FAA2797FDA09528 |
:102EC000BA2F2091110430911204409113045091B3 |
:102ED0001404280F391F4A1F5B1F209311043093DD |
:102EE000120440931304509314042091CB033091A7 |
:102EF000CC03C901880F991F820F931F880F991F58 |
:102F0000880F991FAA2797FDA095BA2F2091150425 |
:102F1000309116044091170450911804280F391F5E |
:102F20004A1F5B1F20931504309316044093170427 |
:102F300050931804E090ED06F090EE06A090FD038B |
:102F4000B090FE03C090FF03D0900004609119047C |
:102F500070911A0480911B0490911C040E94DA3A2B |
:102F60003B014C010027F7FC0095102FC801B70169 |
:102F70000E94DA3AA60195010E94343A9B01AC0105 |
:102F8000C401B3010E94353A0E94BD3A609319040E |
:102F900070931A0480931B0490931C045201CC2458 |
:102FA000B7FCC094DC2C60903104709032048090A7 |
:102FB0003304909034046A0C7B1C8C1C9D1C609222 |
:102FC00031047092320480923304909234048091E0 |
:102FD000350490913604A0913704B09138048A0DDD |
:102FE0009B1DAC1DBD1D8093350490933604A093AA |
:102FF0003704B093380490915E049A87992309F0BE |
:103000005FC080915F04882309F05AC0809139071E |
:1030100086FF56C0E0906C04FF24002711276091C2 |
:10302000210470912204809123049091240420E0D3 |
:1030300030E140E050E00E94103CCA01B901A80113 |
:1030400097010E949C3B9B01AC01C601B5010E9407 |
:103050009C3B20E038E040E050E00E94103C209390 |
:10306000B5043093B6044093B7045093B80460910C |
:10307000290470912A0480912B0490912C0420E063 |
:1030800030E140E050E00E94103CCA01B901A801C3 |
:1030900097010E949C3B9B01AC01C601B5010E94B7 |
:1030A0009C3B20E038E040E050E00E94103C209340 |
:1030B000B1043093B2044093B3045093B40410C0ED |
:1030C0001092B1041092B2041092B3041092B4049E |
:1030D0001092B5041092B6041092B7041092B8047E |
:1030E0008091B5049091B604A091B704B091B80452 |
:1030F0008E839F83A887B9878091B1049091B20491 |
:10310000A091B304B091B4048A839B83AC83BD8344 |
:1031100080916D04282E332444245524EF84F888AC |
:10312000A989BA89EA1AFB0AEE81FF81EE0EFF1E19 |
:103130006A817B818C819D81A20191010E949C3BCF |
:1031400020E032E040E050E00E94103CE20EF31E2E |
:10315000F0927A07E09279079701442737FD40956E |
:10316000542F80912D0490912E04A0912F04B091A2 |
:103170003004820F931FA41FB51F80932D049093DA |
:103180002E04A0932F04B093300480915A049091A0 |
:103190005B04E81AF90A0027F7FC0095102F8091CC |
:1031A000290490912A04A0912B04B0912C04E80EDC |
:1031B000F91E0A1F1B1FE0922904F0922A040093B3 |
:1031C0002B0410932C04A0908B03B0908C03C09020 |
:1031D0008D03D0908E03AE14BF04C006D106C4F494 |
:1031E00080E197E2A0E0B0E08A199B09AC09BD0933 |
:1031F0008093290490932A04A0932B04B0932C0469 |
:1032000080932D0490932E04A0932F04B093300448 |
:1032100022273327A9012A193B094C095D0980910E |
:10322000290490912A04A0912B04B0912C048217B8 |
:103230009307A407B507B4F4D601C501805197429E |
:10324000A040B0408093290490932A04A0932B04BB |
:10325000B0932C0480932D0490932E04A0932F04FC |
:10326000B09330048091C7039091C8030F9734F452 |
:1032700088E19CEF90937A07809379078091C70348 |
:103280009091C803079734F480E398EF90937A07FE |
:1032900080937907F0910001F983FA30A9F48091C5 |
:1032A000C7039091C803835F934034F088EE93E0A6 |
:1032B00090937A07809379078091C7039091C80310 |
:1032C0008A5F9340DCF014C08091C7039091C803DB |
:1032D000855E974034F088EE93E090937A07809370 |
:1032E00079078091C7039091C803835F974034F0BA |
:1032F00080ED97E090937A0780937907ED84FE84C0 |
:103300008B859C85E81AF90AAA81BB81EA1AFB0A17 |
:103310006E817F8188859985A20191010E949C3BE5 |
:1033200020E032E040E050E00E94103CE21AF30A54 |
:10333000F0928207E09281079701442737FD40957C |
:10334000542F8091250490912604A0912704B091D8 |
:103350002804820F931FA41FB51F80932504909308 |
:103360002604A0932704B093280480915C049091D4 |
:103370005D04E81AF90A0027F7FC0095102F8091E8 |
:10338000210490912204A0912304B0912404E80E1A |
:10339000F91E0A1F1B1FE0922104F09222040093E1 |
:1033A000230410932404A0908703B0908803C09056 |
:1033B0008903D0908A03AE14BF04C006D106C4F4BA |
:1033C00080E197E2A0E0B0E08A199B09AC09BD0951 |
:1033D0008093210490932204A0932304B0932404A7 |
:1033E0008093250490932604A0932704B093280487 |
:1033F00022273327A9012A193B094C095D0980912D |
:10340000210490912204A0912304B09124048217F6 |
:103410009307A407B507B4F4D601C50180519742BC |
:10342000A040B0408093210490932204A0932304F1 |
:10343000B09324048093250490932604A09327043A |
:10344000B09328048091C5039091C6030F9734F47C |
:1034500088E19CEF90938207809381078091C50358 |
:103460009091C603079734F480E398EF9093820716 |
:1034700080938107B981BA30A9F48091C5039091F6 |
:10348000C603835F934034F088EE93E09093820705 |
:10349000809381078091C5039091C6038A5F934012 |
:1034A000DCF014C08091C5039091C603855E9740FF |
:1034B00034F088EE93E090938207809381078091A7 |
:1034C000C5039091C603835F974034F080ED97E089 |
:1034D00090938207809381078FEE80937A006092A9 |
:1034E0001D0470921E0480921F049092200480910B |
:1034F000210490912204A0912304B091240480938C |
:10350000010490930204A0930304B09304048091F7 |
:10351000290490912A04A0912B04B0912C0480934B |
:10352000090490930A04A0930B04B0930C048091B7 |
:10353000250490912604A0912704B091280480933B |
:10354000050490930604A0930704B09308048091A7 |
:103550002D0490912E04A0912F04B09130048093FB |
:103560000D0490930E04A0930F04B0931004809167 |
:10357000390787FF3FC0BA85BB23E1F580915F041F |
:103580008823C1F52091810730918207293C3105BC |
:1035900024F0C9018052934007C0EFEF28333E0763 |
:1035A0006CF4C901805E9C4F220F331F220F331F22 |
:1035B000280F391F309382072093810720917907C4 |
:1035C00030917A07293C310524F0C901805293409B |
:1035D00007C0FFEF28333F076CF4C901805E9C4FA2 |
:1035E000220F331F220F331F280F391F30937A0702 |
:1035F0002093790720914604309147048091350744 |
:10360000E82FFF27EE0FFF1FEB5FF84F80819181BE |
:1036100082599F4F281739071CF42F5F3F4F0CC06A |
:103620008081918182599F4F821793074CF4211515 |
:10363000310531F021503040309347042093460447 |
:10364000209148043091490480913607E82FFF27E4 |
:10365000EE0FFF1FEB5FF84F8081918182599F4FE2 |
:10366000281739071CF42F5F3F4F0CC080819181D0 |
:1036700082599F4F821793074CF42115310531F081 |
:1036800021503040309349042093480420914A044B |
:1036900030914B0480913707E82FFF27EE0FFF1F73 |
:1036A000EB5FF84F8081918182599F4F281739072E |
:1036B0001CF42F5F3F4F0CC08081918182599F4F36 |
:1036C000821793074CF42115310531F02150304019 |
:1036D00030934B0420934A0420914C0430914D04C4 |
:1036E00080913807E82FFF27EE0FFF1FEB5FF84FA1 |
:1036F0008081918182599F4F281739071CF42F5FD1 |
:103700003F4F0CC08081918182599F4F8217930750 |
:103710004CF42115310531F02150304030934D04E7 |
:1037200020934C04809146049091470497FF05C074 |
:1037300010924704109246040AC08F3F910539F059 |
:1037400034F08FEF90E0909347048093460480918B |
:1037500048049091490497FF05C0109249041092C3 |
:1037600048040AC08F3F910539F034F08FEF90E0A4 |
:10377000909349048093480480914A0490914B04AB |
:1037800097FF05C010924B0410924A040AC08F3F65 |
:10379000910539F034F08FEF90E090934B048093D3 |
:1037A0004A0480914C0490914D0497FF05C01092FB |
:1037B0004D0410924C040AC08F3F910539F034F04B |
:1037C0008FEF90E090934D0480934C04E2E1CE5E45 |
:1037D0000C94473C10927A008091C5039091C603E7 |
:1037E00090938207809381078091C7039091C803CB |
:1037F00090937A07809379078091C9039091CA03C7 |
:103800009093A1078093A0076091CD037091CE03A0 |
:10381000882777FD8095982F2CE030E040E050E03D |
:103820000E949C3B70939E0760939D076091CB0321 |
:103830007091CC03882777FD8095982F0E949C3B40 |
:103840007093A8076093A7078091CF039091D0034E |
:1038500090938907809388078FEE80937A00209158 |
:1038600046043091470480913507E82FFF27EE0F7B |
:10387000FF1FEB5FF84F8081918182599F4F28177E |
:1038800039071CF42F5F3F4F0CC080819181825912 |
:103890009F4F821793074CF42115310531F02150C9 |
:1038A00030403093470420934604209148043091DF |
:1038B000490480913607E82FFF27EE0FFF1FEB5FCB |
:1038C000F84F8081918182599F4F281739071CF446 |
:1038D0002F5F3F4F0CC08081918182599F4F82178B |
:1038E00093074CF42115310531F0215030403093CD |
:1038F00049042093480420914A0430914B0480915C |
:103900003707E82FFF27EE0FFF1FEB5FF84F80818F |
:10391000918182599F4F281739071CF42F5F3F4F21 |
:103920000CC08081918182599F4F821793074CF47C |
:103930002115310531F02150304030934B04209354 |
:103940004A0420914C0430914D0480913807E82FAF |
:10395000FF27EE0FFF1FEB5FF84F808191818259A7 |
:103960009F4F281739071CF42F5F3F4F0CC08081F1 |
:10397000918182599F4F821793074CF4211531058D |
:1039800031F02150304030934D0420934C0480910D |
:1039900046049091470497FF05C010924704109287 |
:1039A00046040AC08F3F910539F034F08FEF90E064 |
:1039B0009093470480934604809148049091490471 |
:1039C00097FF05C010924904109248040AC08F3F27 |
:1039D000910539F034F08FEF90E090934904809393 |
:1039E000480480914A0490914B0497FF05C01092BF |
:1039F0004B0410924A040AC08F3F910539F034F00D |
:103A00008FEF90E090934B0480934A0480914C0494 |
:103A100090914D0497FF05C010924D0410924C04F4 |
:103A20000AC08F3F910539F034F08FEF90E090930A |
:103A30004D0480934C0460915C0777278827992771 |
:103A400024EC39E040E050E00E949C3B6093870307 |
:103A5000709388038093890390938A0360938B0308 |
:103A600070938C0380938D0390938E0308951F931E |
:103A700080913C078B3F98F08B3F19F4809146046E |
:103A80000EC08C3F19F48091480409C08D3F19F491 |
:103A900080914A0404C08E3F21F480914C048093AD |
:103AA000940380919403882319F41092940304C022 |
:103AB0008F3F11F48093940380913B078B3F98F0E4 |
:103AC0008B3F19F4809146040EC08C3F19F480910D |
:103AD000480409C08D3F19F480914A0404C08E3F08 |
:103AE00021F480914C048093930380919303882365 |
:103AF00019F41092930305C0843618F084E680937D |
:103B0000930380913D078B3F98F08B3F19F4809190 |
:103B100046040EC08C3F19F48091480409C08D3FC3 |
:103B200019F480914A0404C08E3F21F480914C0422 |
:103B30008093950380919503882319F4109295033F |
:103B400005C0843618F084E68093950380913F0782 |
:103B50008B3F98F08B3F19F4809146040EC08C3F48 |
:103B600019F48091480409C08D3F19F480914A04EA |
:103B700004C08E3F21F480914C0480939603809181 |
:103B80009603882319F41092960304C08F3F11F412 |
:103B900080939603809146078B3F98F08B3F19F4F2 |
:103BA000809146040EC08C3F19F48091480409C0EE |
:103BB0008D3F19F480914A0404C08E3F21F4809116 |
:103BC0004C048093970380919703882319F41092F3 |
:103BD000970304C08F3F11F48093970380914707A8 |
:103BE0008B3F98F08B3F19F4809146040EC08C3FB8 |
:103BF00019F48091480409C08D3F19F480914A045A |
:103C000004C08E3F21F480914C04809398038091EE |
:103C100098038B3010F48AE002C08F3F11F4809338 |
:103C20009803809148078B3F98F08B3F19F480915F |
:103C300046040EC08C3F19F48091480409C08D3FA2 |
:103C400019F480914A0404C08E3F21F480914C0401 |
:103C50008093990380919903882319F41092990312 |
:103C600004C08F3F11F48093990380914D078B3FDF |
:103C700098F08B3F19F4809146040EC08C3F19F4E4 |
:103C80008091480409C08D3F19F480914A0404C012 |
:103C90008E3F21F480914C0480939B0380919B0381 |
:103CA000882319F410929B0304C08F3F11F4809372 |
:103CB0009B0380914E078B3F98F08B3F19F48091C6 |
:103CC00046040EC08C3F19F48091480409C08D3F12 |
:103CD00019F480914A0404C08E3F21F480914C0471 |
:103CE0008093640480916404882319F4109264041E |
:103CF00004C08F3F11F48093640480914F078B3F81 |
:103D000098F08B3F19F4809146040EC08C3F19F453 |
:103D10008091480409C08D3F19F480914A0404C081 |
:103D20008E3F21F480914C0480936504809165045A |
:103D3000882319F41092650404C08F3F11F4809316 |
:103D40006504809150078B3F98F08B3F19F4809168 |
:103D500046040EC08C3F19F48091480409C08D3F81 |
:103D600019F480914A0404C08E3F21F480914C04E0 |
:103D70008093660480916604882319F41092660487 |
:103D800004C08F3F11F480936604809151078B3FEC |
:103D900098F08B3F19F4809146040EC08C3F19F4C3 |
:103DA0008091480409C08D3F19F480914A0404C0F1 |
:103DB0008E3F21F480914C048093670480916704C6 |
:103DC000882319F41092670404C08F3F11F4809384 |
:103DD0006704809161078B3F98F08B3F19F48091C5 |
:103DE00046040EC08C3F19F48091480409C08D3FF1 |
:103DF00019F480914A0404C08E3F21F480914C0450 |
:103E00008093680480916804882319F410926804F0 |
:103E100004C08F3F11F480936804809162078B3F48 |
:103E200098F08B3F19F4809146040EC08C3F19F432 |
:103E30008091480409C08D3F19F480914A0404C060 |
:103E40008E3F21F480914C04809369048091690431 |
:103E5000882319F41092690404C08F3F11F48093F1 |
:103E60006904809163078B3F98F08B3F19F4809130 |
:103E700046040EC08C3F19F48091480409C08D3F60 |
:103E800019F480914A0404C08E3F21F480914C04BF |
:103E900080936A0480916A04882319F410926A045A |
:103EA00004C08F3F11F480936A04809164078B3FB4 |
:103EB00098F08B3F19F4809146040EC08C3F19F4A2 |
:103EC0008091480409C08D3F19F480914A0404C0D0 |
:103ED0008E3F21F480914C0480936B0480916B049D |
:103EE000882319F410926B0404C08F3F11F480935F |
:103EF0006B04809152078B3F98F08B3F19F48091AF |
:103F000046040EC08C3F19F48091480409C08D3FCF |
:103F100019F480914A0404C08E3F21F480914C042E |
:103F200080939C0380919C03882319F410929C0336 |
:103F300004C08F3F11F480939C03809157078B3FFF |
:103F400098F08B3F19F4809146040EC08C3F19F411 |
:103F50008091480409C08D3F19F480914A0404C03F |
:103F60008E3F21F480914C0480939D0380919D03AA |
:103F7000882319F410929D0304C08F3F11F480939D |
:103F80009D0380915A078B3F98F08B3F19F48091E5 |
:103F900046040EC08C3F19F48091480409C08D3F3F |
:103FA00019F480914A0404C08E3F21F480914C049E |
:103FB00080936C0480916C04882319F410926C0433 |
:103FC00004C08F3F11F480936C0480915B078B3F9A |
:103FD00098F08B3F19F4809146040EC08C3F19F481 |
:103FE0008091480409C08D3F19F480914A0404C0AF |
:103FF0008E3F21F480914C0480936D0480916D0478 |
:10400000882319F410926D0404C08F3F11F480933B |
:104010006D04809160078B3F98F08B3F19F480917D |
:1040200046040EC08C3F19F48091480409C08D3FAE |
:1040300019F480914A0404C08E3F21F480914C040D |
:1040400080939E0380919E03882319F410929E030F |
:1040500004C08F3F11F480939E0310919B03612F46 |
:10406000772767FD7095872F972F0E94DA3A17FF01 |
:1040700006C020E030E040E853E40E94353A27E1F2 |
:1040800037EB41ED58E30E94543B60938F037093EC |
:1040900090038093910390939203809144078093BF |
:1040A0009F0780914307809383071F910895809114 |
:1040B0005504882301F51092800710927B07109217 |
:1040C000980710929A078091AE03882311F080938D |
:1040D0007B078091AF03882311F080938007809144 |
:1040E000B003882311F080939A078091B10388234D |
:1040F00011F08093980780917B0799279093C306CE |
:104100008093C2068091800799279093C50680937B |
:10411000C40680919A0799279093C7068093C60694 |
:104120008091980799279093C9068093C8061092AA |
:10413000E8031092E9030E94371508951092FA03DC |
:104140001092F9031092FC031092FB0380E090E0C0 |
:10415000A0E0B0E08093FD039093FE03A093FF03E3 |
:10416000B09300041092F0031092EF031092F20348 |
:104170001092F1031092F4031092F30310926C0466 |
:1041800010926D040E94EA1B84E690E00E94CC0D20 |
:104190000E94EA1B8091390780FF10C080910E03B6 |
:1041A00090910F03875B934038F480910E039091B8 |
:1041B0000F038E5E924010F40E9460104091C50380 |
:1041C0005091C6035093F0034093EF032091C7032F |
:1041D0003091C8033093F2032093F1038091C90317 |
:1041E0009091CA039093F4038093F3033093F60302 |
:1041F0002093F5035093F8034093F70344E050E015 |
:10420000DA010E94683C802D853038F18091A70743 |
:104210009091A80797FF03C0909581959F4F6CE000 |
:1042200070E00E94DB3B7093FC036093FB03809182 |
:104230009D0790919E0797FF03C0909581959F4F92 |
:104240006CE070E00E94DB3B7093FA036093F9032B |
:104250006091ED067091EE0639C0DA010E94683C6B |
:10426000802D4F5F5F4FDA010E94683C202D992717 |
:10427000982F8827820F911D9093FA038093F9035A |
:104280004F5F5F4FDA010E94683C802D4F5F5F4FA8 |
:10429000DA010E94683C202D9927982F8827820FE9 |
:1042A000911D9093FC038093FB034F5F5F4FDA01F6 |
:1042B0000E94683C602D4F5F5F4FDA010E94683CAE |
:1042C000202D7727762F6627620F711D882777FDAF |
:1042D0008095982F0E94DA3A6093FD037093FE0355 |
:1042E0008093FF0390930004109221041092220403 |
:1042F0001092230410922404109225041092260494 |
:1043000010922704109228041092290410922A0473 |
:1043100010922B0410922C0410922D0410922E0453 |
:1043200010922F0410923004109231041092320433 |
:104330001092330410923404109282071092810775 |
:1043400010927A07109279071092A1071092A00795 |
:1043500080910A0390910B03A0910C03B0910D037F |
:104360009093F0068093EF061092D8031092D70333 |
:104370001092390410923A0410923B0410923C04BB |
:1043800080913D0490913E049093400480933F04BB |
:104390000E94B13682E390E09093C1038093C00302 |
:1043A00060915C0777278827992724EC39E040E063 |
:1043B00050E00E949C3B6093870370938803809336 |
:1043C000890390938A0360915D077727882799274F |
:1043D0000E949C3B60938B0370938C0380938D03AE |
:1043E00090938E031092A00310929F0308951F9341 |
:1043F000182F0EC080915504882361F484E690E064 |
:104400009093C1038093C0038AEF90E00E94E20D75 |
:10441000115080F71F91089581E08093310752E099 |
:104420005093320743E04093330774E070933407AE |
:1044300065E06093350786E08093360787E08093D8 |
:10444000370798E09093380780EC809339078EE126 |
:1044500080933A078BEF80933C073AE030933D0717 |
:1044600022E320933B0720933F0750933E0740935E |
:10447000400710924107909342078FE080934307D3 |
:104480008AEF809344078AE18093450780E8809310 |
:10449000460788EC809347078FEA809348078EE5AC |
:1044A0008093490783E280934A0784E180934B0716 |
:1044B00010924C0730934D0780E580934E07109281 |
:1044C0004F071092500710925107109261071092F7 |
:1044D0006207109263071092640794E69093520764 |
:1044E00088E280935307109266072093540786E969 |
:1044F0008093550760935607209357078AE580936A |
:104500005807209359071092650790935A073093E4 |
:104510005B0790935C0790935D0790935E077093A1 |
:104520005F0720936007ABE6B7E0ECE6F3E08CE0D2 |
:1045300001900D928150E1F7089581E08093310759 |
:1045400092E09093320783E08093330744E04093F6 |
:10455000340755E05093350786E08093360787E0AF |
:104560008093370788E08093380780E48093390789 |
:104570008EE180933A078BEF80933C073AE03093CB |
:104580003D0722E320933B0720933F0790933E078C |
:104590004093400710924107309342078FE0809389 |
:1045A00043078AEF809344078AE18093450780E8B8 |
:1045B000809346078FEA80934707809348078EE5EC |
:1045C0008093490783E280934A0784E180934B07F5 |
:1045D00010924C0780E280934D0780E580934E0750 |
:1045E00010924F07109250071092510710926107D6 |
:1045F00010926207109263071092640794E69093FA |
:10460000520788E28093530710926607209354075D |
:1046100086E98093550750935607209357078AE5FC |
:1046200080935807209359071092650790935A0773 |
:1046300030935B0790935C0790935D0790935E07C0 |
:1046400040935F078BE480936007ABE6B7E0E6E753 |
:10465000F3E08CE001900D928150E1F7089581E044 |
:104660008093310782E08093320783E080933307A1 |
:1046700034E03093340765E06093350786E080933B |
:10468000360787E08093370798E09093380780E4F7 |
:10469000809339078EE180933A078BEF80933C0734 |
:1046A0005AE050933D0722E320933B0720933F07B6 |
:1046B00030933E0730934007909341078EE08093FC |
:1046C00042078FE0809343078AEF809344078AE193 |
:1046D0008093450790E89093460788E780934707C3 |
:1046E00046E9409348078EE58093490783E280932B |
:1046F0004A0784E180934B0710924C0780E2809335 |
:104700004D0790934E0710924F071092500710924A |
:10471000510710926107109262071092630710927E |
:10472000640794E69093520788E2809353071092AF |
:1047300066072093540740935507609356072093CC |
:1047400057078AE580935807209359071092650709 |
:1047500090935A0750935B0790935C0790935D0783 |
:1047600020935E0730935F0790936007ABE6B7E056 |
:10477000EEE7F3E08CE001900D928150E1F70895AF |
:10478000A6E3B0E0E6ECF3E20C942B3C0E94BA16F0 |
:10479000299AE0913307FF27EE0FFF1FEB5FF84FD9 |
:1047A0000190F081E02DE858FF4F80919F079927F5 |
:1047B0004497E817F9070CF4CF019A83898397FF90 |
:1047C00002C01A82198280914E04843608F05DC0BE |
:1047D00080910301882399F480910403909105034B |
:1047E0008F5F9F4F61F488E99AE39093C1038093B0 |
:1047F000C00380E09CE090930503809304038091C4 |
:10480000930490919404009731F00197909394044D |
:104810008093930404C01092550410924404809134 |
:1048200000018A3011F4289A01C0289880918E04E2 |
:1048300090918F04815D974028F180914A07482F1D |
:1048400055275A83498381E080934404E0913107DE |
:10485000FF27EE0FFF1FEB5FF84F11821082E091F0 |
:104860003207FF27EE0FFF1FEB5FF84F1182108218 |
:10487000E0913407FF27EE0FFF1FEB5FF84F118227 |
:1048800010824FC2109255044CC280914E048D3854 |
:1048900008F447C21092440480914B0722E3829FA0 |
:1048A000C0011124909394048093930489819A8188 |
:1048B00089976CF080918E0490918F04AFEF8F3FB9 |
:1048C0009A0781F1019690938F0480938E048091D2 |
:1048D0008E0490918F04883C910520F0E981FA8143 |
:1048E000B89704F51092AD041092AE041092AF0484 |
:1048F0001092B0041092A9041092AA041092AB0472 |
:104900001092AC04109231041092320410923304CD |
:104910001092340410923504109236041092370429 |
:104920001092380429813A81293C31050CF459C18F |
:1049300080915504882309F0F4C180913407E82F51 |
:10494000FF27EE0FFF1FEB5FF84F808191818C34C2 |
:1049500091050CF4BCC0809192048F5F8093920407 |
:10496000893C08F4DEC129981092550410929204F3 |
:1049700010928F0410928E0480913107282F3327D4 |
:10498000F901EE0FFF1FEB5FF84F808191818734B3 |
:1049900091059CF4E0913207FF27EE0FFF1FEB5FBC |
:1049A000F84F0190F081E02DF7FF03C0F095E195FD |
:1049B000FF4FE734F1050CF46CC080913207682F8B |
:1049C0007727DB01AA0FBB1FAB5FB84F8D919C917E |
:1049D0001197873491053CF0F901EE0FFF1FEB5F53 |
:1049E000F84F808191818D919C918734910564F07D |
:1049F000F901EE0FFF1FEB5FF84F80819181873443 |
:104A0000910514F042E001C041E0FB01EE0FFF1FF1 |
:104A1000EB5FF84F80819181863491055CF4F90158 |
:104A2000EE0FFF1FEB5FF84F808191818734910576 |
:104A30000CF043E0FB01EE0FFF1FEB5FF84F8081AE |
:104A400091818A5B9F4F5CF4F901EE0FFF1FEB5FD2 |
:104A5000F84F80819181873491050CF044E0660F16 |
:104A6000771F6B5F784FDB018D919C918A5B9F4F25 |
:104A70005CF4220F331F2B5F384FF9018081918145 |
:104A8000863491050CF445E0A2E0B0E0042E0E94CB |
:104A9000753C8091390780FF10C080910E03909182 |
:104AA0000F03875B934038F480910E0390910F03BE |
:104AB0008E5E924010F40E9460100E94AD0346E4A6 |
:104AC00061E377E00E94D6030E949E2082C080812D |
:104AD0009181855B9F4F0CF081C0809192048F5F24 |
:104AE00080939204893C08F41CC129988FEF04E05C |
:104AF00010E0D801082E0E94753C109255041092C7 |
:104B0000920410928F0410928E040E949E20809135 |
:104B1000F9039091FA0360E071E00E94DB3BD80159 |
:104B2000062E0E94753C8091F9039091FA0360E093 |
:104B300071E00E94DB3B0F5F1F4FD801082E0E94DF |
:104B4000753C8091FB039091FC0360E071E00E9452 |
:104B5000DB3B0F5F1F4FD801062E0E94753C8091F2 |
:104B6000FB039091FC0360E071E00E94DB3B0F5F70 |
:104B70001F4FD801082E0E94753C6091FD03709173 |
:104B8000FE038091FF03909100040E94BD3ADC0176 |
:104B9000CB0160E071E00E94DB3B0F5F1F4FD8014B |
:104BA000062E0E94753C6091FD037091FE0380917A |
:104BB000FF03909100040E94BD3ADC01CB0160E04C |
:104BC00071E00E94DB3B0F5F1F4FD801082E0E944F |
:104BD000753C0E94AD030E94F721A3C0109292047D |
:104BE000A0C0E981FA81B3970CF09BC08091340793 |
:104BF000482F5527FA01EE0FFF1FEB5FF84F80811A |
:104C00009181855B9F4F0CF06DC0809191048F5F07 |
:104C100080939104893C08F467C088EC80939104E8 |
:104C200081E090E090938F0480938E0481E08093E4 |
:104C300055041092A5041092A6041092A704109295 |
:104C4000A80410923104109232041092330410928E |
:104C500034041092350410923604109237041092E6 |
:104C6000380410922104109222041092230410920E |
:104C700024041092290410922A0410922B041092FA |
:104C80002C048091010490910204A0910304B0913E |
:104C900004048093250490932604A0932704B093E2 |
:104CA00028048091090490910A04A0910B04B0910A |
:104CB0000C0480932D0490932E04A0932F04B093A2 |
:104CC00030041092AD041092AE041092AF04109212 |
:104CD000B0041092A9041092AA041092AB0410928E |
:104CE000AC0402C010929104440F551F4B5F584F03 |
:104CF000DA018D919C918C3491058CF08091900417 |
:104D00008F5F80939004893C60F01092550488EC8A |
:104D10008093900410928F0410928E0402C010921F |
:104D2000900480916B03815080936B0380916B039F |
:104D30008F3F29F080914404882309F4FCC20E942B |
:104D4000371D80913107A82EBB24D501AA0FBB1FA8 |
:104D5000FD01EB5FF84F0190F081E02DFCABEBAB78 |
:104D600080914007E82EFF24A55EB84F0D90BC91BE |
:104D7000A02DBAA7A9A780914107482E552480915C |
:104D80003207C82EDD24C601880F991FDC01AB5FF6 |
:104D9000B84F0D90BC91A02DB8A7AFA3855E984FDA |
:104DA000FC0120803180E0913407AE2FBB27AA0F91 |
:104DB000BB1FAB5FB84F0D90BC91A02DBCA3ABA3A4 |
:104DC00010919803612F772767FD7095872F972F94 |
:104DD0000E94DA3A17FF06C020E030E040E853E4D2 |
:104DE0000E94353A20E030E040E251E40E94353A3A |
:104DF00020E030E040E85BE30E94543B3B014C0183 |
:104E00006093A2077093A3078093A4079093A507CC |
:104E100010919903612F772767FD7095872F972F42 |
:104E20000E94DA3A17FF06C020E030E040E853E481 |
:104E30000E94353A20E030EE4BE257E40E94773A88 |
:104E400060939407709395078093960790939707C4 |
:104E50002091B303222311F40C94DC358AE090E016 |
:104E60009093C1038093C003E22FFF27E2FF09C0A4 |
:104E700080916404482F5527440F551F440F551F38 |
:104E800010C0E3FD03C040E050E00BC0809164041B |
:104E90009927880F991F880F991F44275527481B6A |
:104EA000590B20916E0430916F04C901F3E0880F13 |
:104EB000991FFA95E1F7821B930B840F951F68E009 |
:104EC00070E00E94DB3B8B0170936F0460936E0473 |
:104ED000E4FF09C080916404482F5527440F551FF3 |
:104EE000440F551F0FC0E5FD02C00C94F1358091B1 |
:104EF00064049927880F991F880F991F4427552705 |
:104F0000481B590B2091700430917104C90163E072 |
:104F1000880F991F6A95E1F7821B930B840F951FE9 |
:104F200068E070E00E94DB3B7EAB6DAB7093710478 |
:104F3000609370048091B203282F332723FF03C0AE |
:104F400082E390E004C022FF07C08EEC9FEF9093B5 |
:104F500073048093720404C010927304109272045C |
:104F600021FF09C080919F039091A0030196909327 |
:104F7000A00380939F0324FF09C080919F03909119 |
:104F8000A00301979093A00380939F034BA95CA972 |
:104F90004E9D90014F9D300D5E9D300D1124A9A5B1 |
:104FA000BAA5A49DC001A59D900DB49D900D11249E |
:104FB000280F391FC80168E070E00E94DB3B260F14 |
:104FC000371F3CAB2BAB3093500420934F04EFA121 |
:104FD000F8A5EE9D8001EF9D100DFE9D100D112492 |
:104FE000249CC001259C900D349C900D1124080F29 |
:104FF000191F8DA99EA968E070E00E94DB3B060F97 |
:10500000171F1093520400935104809172049091E1 |
:1050100073042BA13CA1821B930B909354048093A7 |
:1050200053048091390782FF0CC080E090E0A0E03B |
:10503000B0E08093940790939507A0939607B09360 |
:10504000970720E030E040E050E0C401B3010E9447 |
:10505000E43A882364F480E090E0A0E0B0E080933C |
:10506000A2079093A307A093A407B093A50720E0FD |
:1050700030E040E050E06091940770919507809196 |
:105080009607909197070E94E43A882364F480E0A1 |
:1050900090E0A0E0B0E08093940790939507A093F0 |
:1050A0009607B093970780916507682F772784E06C |
:1050B000882E912C8622972262FD7FC063FD7DC0E1 |
:1050C00020910104309102044091030450910404A2 |
:1050D00021368AEE380780E0480780E05807E4F080 |
:1050E000C701B3E0880F991FBA95E1F7EBA9FCA9B6 |
:1050F000E81BF90BF0935004E0934F042158384318 |
:1051000041405040E4F0C701A4E0880F991FAA95E0 |
:10511000E1F7E81BF90B0FC0205A35414F4F5F4FA5 |
:1051200074F4C701E3E0880F991FEA95E1F7EBA952 |
:10513000FCA9E80FF91FF0935004E0934F0420916D |
:10514000090430910A0440910B0450910C0421365B |
:10515000FAEE3F07F0E04F07F0E05F07F4F0C70119 |
:1051600073E0880F991F7A95E1F7D801A81BB90B56 |
:10517000B0935204A0935104215838434140504009 |
:10518000E4F094E0EE0CFF1C9A95E1F7AE19BF092C |
:10519000B0935204A093510410C0205A35414F4F90 |
:1051A0005F4F5CF483E0EE0CFF1C8A95E1F70E0D77 |
:1051B0001F1D1093520400935104F601EE0FFF1FC0 |
:1051C000EB5FF84F2081318180915807482F552798 |
:1051D0004217530734F4892821F081E0809360045A |
:1051E00011C0F601EE0FFF1FEB5FF84F20813181F8 |
:1051F00080915907DA01A81BB1092A173B0714F45B |
:1052000010926004F601EE0FFF1FEB5FF84F8081F4 |
:105210009181AA27BB27A41BB50B8A179B0734F4DF |
:1052200063FF04C081E08093610417C08091610432 |
:10523000882399F0CC0CDD1CE5E0F7E0CE0EDF1EF4 |
:10524000F60120813181809159079927841B950BA4 |
:105250008217930714F410926104F501EE0FFF1FFB |
:10526000EB5FF84F808191814817590734F460FF54 |
:1052700004C081E08093630415C080916304882397 |
:1052800089F0F501EE0FFF1FEB5FF84F20813181B0 |
:1052900080915907FA01E81BF1092E173F0714F412 |
:1052A00010926304F501EE0FFF1FEB5FF84F808152 |
:1052B00091818A179B0734F461FF04C081E08093D9 |
:1052C000620417C080916204882399F0AA0CBB1C69 |
:1052D00025E037E0A20EB31ED5012D913C918091BF |
:1052E00059079927841B950B8217930714F4109282 |
:1052F000620480916004882321F4809161048823F2 |
:1053000021F081E080935F0402C010925F048091DD |
:105310006304882321F480916204882351F081E0A2 |
:1053200080935E0410925F041092600410926104F6 |
:105330000EC010925E0480915F04882311F40C94D7 |
:10534000F53584E690E09093C1038093C00380918B |
:1053500057079927E981FA818E179F0714F49A83DA |
:10536000898380914404882341F11092540410925F |
:1053700053041092500410924F0410925204109251 |
:1053800051048DEC9CECACECBDE38093A2079093B0 |
:10539000A307A093A407B093A5078AE097EDA3EA1B |
:1053A000BBE38093940790939507A0939607B093DF |
:1053B000970710925F0410925E04209101043091CF |
:1053C000020440910304509104042FA738AB49AB69 |
:1053D0005AAB80918C0790918D07A0918E07B09168 |
:1053E0008F07820F931FA41FB51F80938C07909384 |
:1053F0008D07A0938E07B0938F0780910904909139 |
:105400000A04A0910B04B0910C048BA79CA7ADA734 |
:10541000BEA78091900790919107A0919207B091BB |
:1054200093072BA53CA54DA55EA5820F931FA41F36 |
:10543000B51F8093900790939107A0939207B09324 |
:1054400093078091050490910604A0910704B09100 |
:1054500008048F8F98A3A9A3BAA380918407909181 |
:105460008507A0918607B09187072F8D38A149A1A4 |
:105470005AA1820F931FA41FB51F80938407909396 |
:105480008507A0938607B093870780910D049091BC |
:105490000E04A0910F04B09110048B8F9C8FAD8FE0 |
:1054A000BE8F80917C0790917D07A0917E07B0917F |
:1054B0007F072B8D3C8D4D8D5E8D820F931FA41F1A |
:1054C000B51F80937C0790937D07A0937E07B093D0 |
:1054D0007F0790905E04992011F00C944D368091D6 |
:1054E0005F04882311F00C944D360C94FD3580EE4A |
:1054F000A8168FEFB8068FEFC8068FEFD80644F4D2 |
:1055000080EEA82E8FEFB82E8FEFC82E8FEFD82EFB |
:10551000213231054105510534F010E2E12EF12C24 |
:10552000012D112D0DC0205E3F4F4F4F5F4F44F4B2 |
:10553000B0EEEB2EBFEFFB2EBFEF0B2FBFEF1B2FFD |
:105540008091210490912204A0912304B09124041D |
:105550008A199B09AC09BD09809321049093220408 |
:10556000A0932304B09324048091290490912A04E9 |
:10557000A0912B04B0912C048E199F09A00BB10BA4 |
:105580008093290490932A04A0932B04B0932C04B5 |
:105590008091D9039091DA038F3F910509F008F4C7 |
:1055A000ADC4992009F02EC480915F04882309F0CE |
:1055B00029C460918C0770918D0780918E0790911E |
:1055C0008F0720E031E040E050E00E94103C1901DC |
:1055D0002A0120938C0730938D0740938E075093B8 |
:1055E0008F07609190077091910780919207909139 |
:1055F000930720E031E040E050E00E94103C2F8B08 |
:10560000388F498F5A8F209390073093910740939A |
:10561000920750939307E0904507FF240027112736 |
:1056200020911104309112044091130450911404FC |
:10563000C801B7010E949C3B20E031E040E050E00F |
:105640000E94103C39014A01209311043093120446 |
:1056500040931304509314042091150430911604C0 |
:105660004091170450911804C801B7010E949C3B57 |
:1056700020E031E040E050E00E94103C59016A0116 |
:105680002093150430931604409317045093180484 |
:105690006091190470911A0480911B0490911C046C |
:1056A00020E031E040E050E00E94103C20931904DB |
:1056B00030931A0440931B0450931C04C201B1019F |
:1056C0006619770988099909E0905E07FF24002789 |
:1056D0001127A80197010E94103C20938604309363 |
:1056E00087044093880450938904CA01B90120E0DB |
:1056F00031E040E050E00E94103C3E8B2D8B309317 |
:105700005D0420935C046F89788D898D9A8D6A1968 |
:105710007B098C099D09A80197010E94103C790121 |
:105720008A01CA01B90120E031E040E050E00E9466 |
:10573000103C3CAB2BAB30935B0420935A0460913C |
:10574000840770918507809186079091870720E0F4 |
:1057500031E040E050E00E94103C209384073093F9 |
:105760008507409386075093870760917C07709167 |
:105770007D0780917E0790917F0720E031E040E037 |
:1057800050E00E94103C20937C0730937D074093AB |
:105790007E0750937F072F8D38A149A15AA18FA56D |
:1057A00098A9A9A9BAA9281B390B4A0B5B0B298B0D |
:1057B0003A8B4B8B5C8B2093A1043093A2044093D3 |
:1057C000A3045093A4042B8D3C8D4D8D5E8D8BA531 |
:1057D0009CA5ADA5BEA5281B390B4A0B5B0B2D87DD |
:1057E0003E874F87588B20939D0430939E044093AF |
:1057F0009F045093A00429893A894B895C8920939E |
:10580000990430939A0440939B0450939C048D8593 |
:105810009E85AF85B8898093950490939604A09354 |
:105820009704B09398048091250490912604A09148 |
:105830002704B0912804821B930BA40BB50B809313 |
:10584000250490932604A0932704B0932804809104 |
:105850002D0490912E04A0912F04B09130042D8539 |
:105860003E854F855889821B930BA40BB50B809303 |
:105870002D0490932E04A0932F04B0933004C40100 |
:10588000B3012AE130E040E050E00E94103C309348 |
:10589000CD062093CC06C601B5012AE130E040E0F8 |
:1058A00050E00E94103C3093CF062093CE064989E9 |
:1058B0005A895093D1064093D0068D859E8590934A |
:1058C000D3068093D206C201B1012AE130E040E064 |
:1058D00050E00E94103C3093D5062093D4066F8987 |
:1058E000788D898D9A8D2AE130E040E050E00E9469 |
:1058F000103C3093D7062093D606F092E506E0924E |
:10590000E4068BA99CA9880F991F2BA93CA9F3E059 |
:10591000220F331FFA95E1F7820F931F9093E7064A |
:105920008093E60681E090E0909381048093800468 |
:105930008091780490917904A0917A04B0917B04CD |
:1059400082199309A409B509815E914BAF4FBF4FEE |
:105950008F539C49A040B04008F0C5C029893A89BE |
:105960004B895C89213080E1380780E0480780E07E |
:1059700058070CF450C080917F04882309F447C075 |
:10598000DA01C901ECE0B595A79597958795EA9559 |
:10599000D1F701969093810480938004DA01C901C4 |
:1059A00073E0B595A795979587957A95D1F78093EC |
:1059B000860490938704A0938804B093890489583F |
:1059C0009341A040B04064F088E893E1A0E0B0E0EB |
:1059D0008093860490938704A0938804B0938904ED |
:1059E0006091860470918704809188049091890465 |
:1059F00020E031E040E050E00E94103C8D899E891B |
:105A0000820F931F90935D0480935C0469C081E0D2 |
:105A100080937F0465C010927F0429893A894B895D |
:105A20005C89203080EF38078FEF48078FEF5807E9 |
:105A30000CF056C080917E04882309F44DC0DA0131 |
:105A4000C901B095A095909581959F4FAF4FBF4FDD |
:105A50006CE0B595A795979587956A95D1F70196CE |
:105A60009093810480938004CA01B90128E030E05A |
:105A700040E050E00E94103C20938604309387045D |
:105A8000409388045093890428573C4E4F4F5F4FF2 |
:105A900064F488E79CEEAFEFBFEF809386049093A9 |
:105AA0008704A0938804B093890460918604709160 |
:105AB0008704809188049091890420E031E040E0DF |
:105AC00050E00E94103CAD89BE89A20FB31FB09375 |
:105AD0005D04A0935C040BC081E080937E0407C04A |
:105AE00010927E0404C01092810410928004809170 |
:105AF0005F07082F11278091800490918104081777 |
:105B0000190724F4109381040093800429893A89A9 |
:105B10004B895C8921503440404050405CF080917A |
:105B2000EF039091F0032091800430918104820F63 |
:105B3000931F13C029893A894B895C8920503C4FB7 |
:105B40004F4F5F4F74F48091EF039091F0032091D9 |
:105B5000800430918104821B930B9093F003809317 |
:105B6000EF0381E090E09093810480938004109291 |
:105B70008204109283041092840410928504809110 |
:105B8000740490917504A0917604B09177042F89E4 |
:105B9000388D498D5A8D821B930BA40BB50B815EFA |
:105BA000914BAF4FBF4F8F539C49A040B04008F07E |
:105BB000C6C08D859E85AF85B88981509041A04033 |
:105BC000B0400CF454C080917D04882309F44BC08C |
:105BD0008D859E85AF85B8893CE0B595A79597954D |
:105BE00087953A95D1F7019690938104809380042C |
:105BF0008D859E85AF85B88923E0B595A795979546 |
:105C000087952A95D1F78093820490938304A0937B |
:105C10008404B093850489589341A040B04064F057 |
:105C200088E893E1A0E0B0E080938204909383043D |
:105C3000A0938404B09385046091820470918304DE |
:105C4000809184049091850420E031E040E050E0B0 |
:105C50000E94103C8BA99CA9820F931F90935B0418 |
:105C600080935A0469C081E080937D0465C01092DE |
:105C70007D042D853E854F855889203080EF38077B |
:105C80008FEF48078FEF58070CF056C080917C04C7 |
:105C9000882309F44DC0DA01C901B095A09590950B |
:105CA00081959F4FAF4FBF4FFCE0B595A795979556 |
:105CB0008795FA95D1F7019690938104809380049B |
:105CC000CA01B90128E030E040E050E00E94103CF9 |
:105CD000209382043093830440938404509385047A |
:105CE00028573C4E4F4F5F4F64F488E79CEEAFEF70 |
:105CF000BFEF8093820490938304A0938404B093B5 |
:105D00008504609182047091830480918404909151 |
:105D1000850420E031E040E050E00E94103CABA957 |
:105D2000BCA9A20FB31FB0935B04A0935A040BC08D |
:105D300081E080937C0407C010927C0404C0109220 |
:105D40008104109280048091820490918304909346 |
:105D5000E1068093E0068091800490918104081709 |
:105D6000190724F410938104009380042D853E8547 |
:105D70004F85588921503440404050405CF080911C |
:105D8000F1039091F2032091800430918104820FFD |
:105D9000931F13C02D853E854F85588920503C4F59 |
:105DA0004F4F5F4F74F48091F1039091F203209173 |
:105DB000800430918104821B930B9093F2038093B3 |
:105DC000F1038091EF039091F0039093D9068093B3 |
:105DD000D8068091F1039091F2032091F503309160 |
:105DE000F603821B930B9C01E3E0220F331FEA951D |
:105DF000E1F7880F991F820F931F9093DB06809322 |
:105E0000DA0608C010925B0410925A0410925D04E6 |
:105E100010925C0420E030E040E050E06091940794 |
:105E20007091950780919607909197070E94E43AA8 |
:105E3000882341F410925B0410925A0410925D047E |
:105E400010925C0480918C0790918D07A0918E0731 |
:105E5000B0918F078093780490937904A0937A048B |
:105E6000B0937B048091900790919107A091920745 |
:105E7000B09193078093740490937504A093760473 |
:105E8000B09377041092110410921204109213042C |
:105E90001092140410921504109216041092170414 |
:105EA000109218041092190410921A0410921B04F4 |
:105EB00010921C0410928C0710928D0710928E077E |
:105EC00010928F07109290071092910710929207EC |
:105ED00010929307109284071092850710928607FC |
:105EE0001092870710927C0710927D0710927E0710 |
:105EF00010927F071092DA031092D9038090530416 |
:105F000090905404940197FE04C022273327281947 |
:105F10003909253131053CF08091390784FD03C0F2 |
:105F200081E080938A04E09042075901CC24B7FCB9 |
:105F3000C094DC2CB401882777FD8095982F2E2DF6 |
:105F40003327442755270E949C3B9B01AC01C60187 |
:105F5000B5010E949C3B20E032E040E050E00E940E |
:105F6000103C89019A01FF24E89CC001E99C900D36 |
:105F7000F89C900D112464E070E00E94DB3B600F00 |
:105F8000711F882777FD8095982F6093A5047093E3 |
:105F9000A6048093A7049093A80420913104309123 |
:105FA00032044091330450913404261B370B480BC4 |
:105FB000590B2093310430933204409333045093AF |
:105FC0003404213593EC390790E0490790E05907F4 |
:105FD0002CF080E593ECA0E0B0E009C0205B3C43EE |
:105FE0004F4F5F4F64F480EB9CE3AFEFBFEF8093C4 |
:105FF000310490933204A0933304B093340480911D |
:10600000390783FF9AC080914304815080934304F1 |
:106010008F3FD9F40E94293790933E0480933D042A |
:1060200020913F0430914004821B930B845E9D4F6E |
:1060300068E671E00E94DB3B845B904090934204F1 |
:106040008093410482E38093430460910104709142 |
:106050000204809103049091040420E032E040E0C7 |
:1060600050E00E94103C890137FF03C01095019554 |
:106070001F4F6091090470910A0480910B04909164 |
:106080000C0420E032E040E050E00E94103CB901F6 |
:1060900037FF03C0709561957F4F601771070CF44F |
:1060A000B8016332710574F480918A04882351F039 |
:1060B00080913D0490913E049093400480933F046E |
:1060C00010928A04209197033327629FC001639F37 |
:1060D000900D729F900D112460E470E00E94DB3BF4 |
:1060E000261B370B1216130644F58091410490913C |
:1060F0004204FC012E9FC0012F9F900D3E9F900DEA |
:10610000112460E270E00E94DB3B882777FD8095D8 |
:10611000982F2091310430913204409133045091F2 |
:106120003404260F371F481F591F20933104309322 |
:106130003204409333045093340480918B04815093 |
:1061400080938B048F3F09F079C088E180938B04A2 |
:10615000E0904507FF24002711276091010470910A |
:1061600002048091030490910404A80197010E9405 |
:10617000103C3093AB062093AA06609109047091FD |
:106180000A0480910B0490910C04A80197010E94CD |
:10619000103C3093AD062093AC0680919D07909102 |
:1061A0009E079093AF068093AE068091A7079091CB |
:1061B000A8079093B1068093B0068091A0079091B4 |
:1061C000A1079093B3068093B206809156049091F4 |
:1061D00057049093B5068093B4066091390470918A |
:1061E0003A0480913B0490913C0420E032E040E08E |
:1061F00050E00E94103C3093B7062093B606809181 |
:106200003D0490913E049093BB068093BA06809122 |
:106210000803909109039093BD068093BC0680917A |
:106220004E0499279093BF068093BE0680918807FD |
:10623000909189079093CB068093CA0680915E0463 |
:10624000C0908107D0908207882391F0B6018827FB |
:1062500077FD8095982F0E94DA3A2091A20730911D |
:10626000A3074091A4075091A5070E94543B2DC05D |
:1062700060910104709102048091030490910404E0 |
:106280000E94DA3A20919407309195074091960741 |
:10629000509197070E94543B7B018C01B6018827DF |
:1062A00077FD8095982F0E94DA3A2091A2073091CD |
:1062B000A3074091A4075091A5070E94543B9B015E |
:1062C000AC01C801B7010E94353A0E94BD3A7093F3 |
:1062D00082076093810780915F04C0907907D09016 |
:1062E0007A07882391F0B601882777FD8095982F4B |
:1062F0000E94DA3A2091A2073091A3074091A407A7 |
:106300005091A5070E94543B2DC0609109047091E3 |
:106310000A0480910B0490910C040E94DA3A2091B7 |
:1063200094073091950740919607509197070E94E6 |
:10633000543B7B018C01B601882777FD8095982F0F |
:106340000E94DA3A2091A2073091A3074091A40756 |
:106350005091A5070E94543B9B01AC01C801B701B5 |
:106360000E94353A0E94BD3A70937A07609379078C |
:10637000209094073090950740909607509097078B |
:106380006091A0077091A107882777FD8095982FCD |
:106390000E94DA3A2091A2073091A3074091A40706 |
:1063A0005091A5070E94543B7B018C0160911D0414 |
:1063B00070911E0480911F04909120040E94DA3A8B |
:1063C000A20191010E94543B20E030E040E05FE3F5 |
:1063D0000E94543B9B01AC01C801B7010E94353AB1 |
:1063E0000E94BD3A8B017093A1076093A007E090D3 |
:1063F0007907F0907A07F092E306E092E206609166 |
:10640000090470910A0480910B0490910C040E947D |
:10641000DA3AA20191010E94543B69877A878B87FF |
:106420009C870E94BD3A7093DD066093DC06209144 |
:106430005104309152043EA32DA33093E9062093DA |
:10644000E806809181079091820738E081309307B8 |
:106450001CF080E098E005C08050984F34F480E054 |
:1064600098EF909382078093810751E0E51658E0FA |
:10647000F5061CF080E098E007C080E0E81688EFA1 |
:10648000F80634F480E098EF90937A0780937907C8 |
:1064900098E0013019071CF080E098E005C000503A |
:1064A000184F34F480E098EF9093A1078093A007F1 |
:1064B00080913907992780FFD9C04091940381FFCB |
:1064C0000EC0423310F580915604909157044497C2 |
:1064D00090935904809358041092450419C0209158 |
:1064E0009F033091A003240F311D80913E0799270F |
:1064F000FC012E9FC0012F9F900D3E9F900D1124F7 |
:106500004497909359048093580481E08093450404 |
:1065100080914404882321F0109259041092580469 |
:1065200020915604309157044091580450915904D9 |
:10653000421753070CF09AC080914504882309F450 |
:1065400095C0241B350B809195039927AC01249F9E |
:10655000C001259F900D349F900D112460E170E0E3 |
:106560000E94DB3B09811A81061B170B2091D70380 |
:106570003091D803809193039927DC012A9FC001B1 |
:106580002B9F900D3A9F900D112468E070E00E94BF |
:10659000DB3B061B170B6091390470913A04809124 |
:1065A0003B0490913C0420E032E040E050E00E9447 |
:1065B000103CCA01B901209196033327442755277F |
:1065C0000E949C3B20E230E040E050E00E94103C02 |
:1065D000BFEF2E3C3B0714F42EEC3FEF80918C0470 |
:1065E00090918D04AC0164E0440F551F6A95E1F76A |
:1065F000481B590B2333310514F022E330E0021B12 |
:10660000130BCA01800F911F60E170E00E94DB3B19 |
:1066100070938D0460938C0480913A0799276817D2 |
:1066200079078CF4E981FA81E817F9072CF0909347 |
:106630008D0480938C0407C029813A8130938D04A6 |
:1066400020938C040DC080918C0490918D0449811D |
:106650005A814817590724F450938D0440938C04B1 |
:1066600080918C0490918D049A838983A981BA8149 |
:10667000B093B906A093B806E090A007F090A107E8 |
:106680000091A5041091A6042091A7043091A804BC |
:1066900080919F07882E992454971CF41C821B829A |
:1066A00029C089819A8162E070E00E94DB3B9701FA |
:1066B000201B310BCB01261737070CF4C90170954D |
:1066C00061957F4F681779070CF4BC01C401E9811B |
:1066D000FA818E1B9F0B681779070CF4CB01298177 |
:1066E0003A81281939093C832B832817390714F478 |
:1066F0009C838B8360904F04709050048091B90408 |
:106700009091BA04681A790A809181079091820762 |
:106710008619970990938B0780938A0720E030E0D1 |
:1067200040E050E0C201B1010E94E43A8823D1F177 |
:106730006091AD047091AE048091AF049091B0046B |
:106740000E94DA3A5B016C016091010470910204CD |
:1067500080910304909104040E94DA3AA20191010D |
:106760000E94543B7B018C01B301882777FD809503 |
:10677000982F0E94DA3A9B01AC01C801B7010E9430 |
:10678000343A9B01AC01C601B5010E94353A0E9422 |
:10679000BD3A6093AD047093AE048093AF049093C0 |
:1067A000B0041CC020918A0730918B07442737FD25 |
:1067B0004095542F8091AD049091AE04A091AF0408 |
:1067C000B091B004820F931FA41FB51F8093AD0436 |
:1067D0009093AE04A093AF04B093B0048091AD0445 |
:1067E0009091AE04A091AF04B091B00418161906B0 |
:1067F0001A061B0624F40297A109B10903C00296E8 |
:10680000A11DB11D8093AD049093AE04A093AF047D |
:10681000B093B0048091AD049091AE04A091AF0408 |
:10682000B091B00481383EE3930730E0A30730E035 |
:10683000B3072CF080E89EE3A0E0B0E009C08058E8 |
:10684000914CAF4FBF4F64F480E891ECAFEFBFEFD6 |
:106850008093AD049093AE04A093AF04B093B004C2 |
:1068600060918A0770918B0780918F0390919003BC |
:10687000A0919103B09192038D839E83AF83B887DB |
:10688000882777FD8095982F0E94DA3A7B018C014A |
:106890006091AD047091AE048091AF049091B0040A |
:1068A0000E94DA3A9B01AC016D817E818F819885CF |
:1068B0000E94543B9B01AC01C801B7010E94353ACC |
:1068C0000E94BD3A5B016C017CAB6BAB80919E0377 |
:1068D000E82EFF24002711278B819C8197FF03C09E |
:1068E000909581959F4F62E070E00E94DB3B9B0199 |
:1068F000A981BA812A0F3B1F442737FD4095542FA9 |
:10690000C801B7010E949C3B20E430E040E050E029 |
:106910000E94103C3901EBA9FCA9E217F3070CF423 |
:106920009501AA24BB24A618B708A501A216B30690 |
:106930000CF4A90189819A812B813C81820F931FDC |
:10694000840F951F97FF03C020E030E005C094013D |
:10695000881599050CF49C0180918307C82EDD24CD |
:10696000C601C216D3060CF4C90180937B07898146 |
:106970009A81841B950B4B815C81840F951F97FF37 |
:1069800003C020E030E005C09401881599050CF49F |
:106990009C01C601C216D3060CF4C901809380077E |
:1069A0008091BB049091BC04ADA1BEA1A81BB90B02 |
:1069B000BCABABAB8091790790917A078A1B9B0B9C |
:1069C000909378078093770720E030E040E050E034 |
:1069D000C201B1010E94E43A882371F16091A904D7 |
:1069E0007091AA048091AB049091AC040E94DA3AB1 |
:1069F0007B018C01EBA9FCA9BF01882777FD80955D |
:106A0000982F0E94DA3A9B01AC0169857A858B85C3 |
:106A10009C850E94343A9B01AC01C801B7010E94D9 |
:106A2000353A0E94BD3A6093A9047093AA048093FA |
:106A3000AB049093AC041CC0209177073091780789 |
:106A4000442737FD4095542F8091A9049091AA04C2 |
:106A5000A091AB04B091AC04820F931FA41FB51F8B |
:106A60008093A9049093AA04A093AB04B093AC04C0 |
:106A70008091A9049091AA04A091AB04B091AC04B8 |
:106A8000181619061A061B0624F40297A109B10963 |
:106A900003C00296A11DB11D8093A9049093AA047E |
:106AA000A093AB04B093AC048091A9049091AA0484 |
:106AB000A091AB04B091AC048138FEE39F07F0E0F5 |
:106AC000AF07F0E0BF072CF080E89EE3A0E0B0E065 |
:106AD00009C08058914CAF4FBF4F64F480E891ECEF |
:106AE000AFEFBFEF8093A9049093AA04A093AB04E7 |
:106AF000B093AC046091770770917807882777FD91 |
:106B00008095982F0E94DA3A7B018C016091A9044C |
:106B10007091AA048091AB049091AC040E94DA3A7F |
:106B20009B01AC016D817E818F8198850E94543BD1 |
:106B30009B01AC01C801B7010E94353A0E94BD3AE1 |
:106B40009301661577050CF49B01C501A216B306E7 |
:106B50000CF4C90149815A81480F591FAB81BC818E |
:106B60004A1B5B0B57FF03C020E030E005C09401D7 |
:106B7000481559050CF49A01A601C216D3060CF467 |
:106B8000A90140939A0729813A81281B390BEB818F |
:106B9000FC812E1B3F0B37FF03C040E050E005C0D7 |
:106BA000A401281539050CF4A901C601C416D5069F |
:106BB0000CF0D1C0CA01CFC020916E0430916F0497 |
:106BC000C90113E0880F991F1A95E1F7821B930BF7 |
:106BD00068E070E00E94DB3B8B0170936F04609370 |
:106BE0006E0440E050E00C94822780915E0488237C |
:106BF00011F40C94B1290C94A729E0904507FF24C7 |
:106C0000002711276FA578A989A99AA9A80197013A |
:106C10000E94103C80919D0790919E07AA2797FDA6 |
:106C2000A095BA2F281B390B4A0B5B0BCA01B9017F |
:106C300020E130E040E050E00E94103C59016A0140 |
:106C40006BA57CA58DA59EA5A80197010E94103C6F |
:106C50008091A7079091A807AA2797FDA095BA2F22 |
:106C6000281B390B4A0B5B0BCA01B90120E130E04C |
:106C700040E050E00E94103C79018A01F1E2AF1639 |
:106C8000B104C104D10414F40C94772AB0E2AB2E01 |
:106C9000B12CC12CD12C0C94882A10921104109282 |
:106CA00012041092130410921404109215041092FE |
:106CB0001604109217041092180410928C07109268 |
:106CC0008D0710928E0710928F07109290071092E6 |
:106CD00091071092920710929307109284071092D6 |
:106CE0008507109286071092870710927C071092F2 |
:106CF0007D0710927E0710927F078091210490916A |
:106D00002204A0912304B09124048093250490933D |
:106D10002604A0932704B09328048091290490911D |
:106D20002A04A0912B04B0912C0480932D049093FD |
:106D30002E04A0932F04B09330041092DA03109223 |
:106D4000D90310925D0410925C0410925B041092BF |
:106D50005A040C94C82A80939807E2E1CA5C0C9408 |
:106D6000473C8091BD049091BE04A091BF04B091B6 |
:106D7000C0048093C5049093C604A093C704B09345 |
:106D8000C8048091C1049091C204A091C304B09141 |
:106D9000C4048093C9049093CA04A093CB04B09315 |
:106DA000CC0408951092BA041092B9041092BC0455 |
:106DB0001092BB0408951F920F920FB60F921124E8 |
:106DC0002F933F934F938F939F938091B707833077 |
:106DD00019F08430A1F508C08EB58093CD041EBC97 |
:106DE00084E08093B7072BC08091CD049927382F7A |
:106DF00022278EB59927282B392BC9018D509E4FFC |
:106E0000875E9340D0F48091BA07853019F08630C0 |
:106E100069F406C03093BC072093BB0786E00BC023 |
:106E20003093BE072093BD0787E005C03093C007AD |
:106E30002093BF0785E08093BA071092B7079F9110 |
:106E40008F914F913F912F910F900FBE0F901F90F8 |
:106E50001895AAE0B0E0EFE2F7E30C942B3CA09089 |
:106E60005007BB2433E0AA0CBB1C3A95E1F7CC24B5 |
:106E7000DD246091010470910204809103049091DB |
:106E80000404A60195010E94103C79018A01FF24A7 |
:106E9000E7FCF094C7010E94DC392C01C7010E9475 |
:106EA0001F3A3C016091090470910A0480910B041F |
:106EB00090910C04A60195010E94103C79018A0171 |
:106EC000FF24E7FCF094C7010E94DC399A87898788 |
:106ED000C7010E941F3A1C016091BB077091BC075B |
:106EE000E090BD07F090BE072091AF07332727FD44 |
:106EF0003095E21AF30A0027F7FC0095102FA090B6 |
:106F0000BF07B090C0072091B007332727FD309509 |
:106F1000A21AB30ACC24B7FCC094DC2C2091AE0793 |
:106F2000332727FD3095621B730B882777FD8095EB |
:106F3000982F882477FC8094982CA40193010E94B8 |
:106F40009C3B3B014C0189859A85AA2797FDA0951A |
:106F5000BA2F8D839E83AF83B887C201AA2797FD7E |
:106F6000A095BA2F89839A83AB83BC83C801B701EC |
:106F70002D813E814F8158850E949C3B29813A8119 |
:106F80004B815C810E949C3B20E034E040E050E07B |
:106F90000E94103C620E731E841E951E442437FC12 |
:106FA0004094542CC601B501A20191010E949C3B62 |
:106FB00029813A814B815C810E949C3B20E034E036 |
:106FC00040E050E00E94103C621A730A840A950A5D |
:106FD000C801B701A20191010E949C3B7B018C0179 |
:106FE000C601B5012D813E814F8158850E949C3B91 |
:106FF000E60EF71E081F191FC801B70120E034E094 |
:1070000040E050E00E94103C79018A01C401B301C4 |
:1070100020E034E040E050E00E94103CDA01C90179 |
:10702000B7010E943D399C0197FF05C08827992729 |
:10703000821B930B04C088E691E0821B930BE2E174 |
:10704000C65F0C94473C8091B707813041F0813096 |
:1070500018F0823049F51CC02A9A81E016C02A989F |
:107060008091BA07853011F481E305C0863011F4B0 |
:1070700082E301C083E38EBD88E090E00E949A0C19 |
:107080009093B9078093B80782E08093B70708957B |
:107090008091B8079091B9070E94A30C882321F032 |
:1070A0001EBC83E08093B7070895A0E0B0E0EBE555 |
:1070B000F8E30C942D3C299A809100018A3011F458 |
:1070C000289801C0289AAA24BB2400E010E0882454 |
:1070D0009924EE24FF2466247724CC24DD2462E363 |
:1070E000462E55248091BB079091BC0708171907BD |
:1070F0002CF40091BB071091BC070BC08091BB071B |
:107100009091BC078A159B0524F4A090BB07B09012 |
:10711000BC078091BD079091BE07E816F9062CF4D4 |
:10712000E090BD07F090BE070BC08091BD07909125 |
:10713000BE078815990524F48090BD079090BE077E |
:107140008091BF079091C007C816D9062CF4C09053 |
:10715000BF07D090C0070BC08091BF079091C007B8 |
:107160008615970524F46090BF077090C0075520DE |
:1071700081F485B191E0892785B985B192E08927AD |
:1071800085B982E390E09093C1038093C00352E3FA |
:10719000552E8AE090E00E949A0CEC01CE010E94EC |
:1071A000A30C8823D9F3E0913307FF27EE0FFF1FCD |
:1071B000EB5FF84F80819181843691050CF44A94FD |
:1071C000442011F05A948ECFC8018A199B099093DC |
:1071D000B2078093B107C701881999099093B40742 |
:1071E0008093B307C601861997099093B6078093D9 |
:1071F000B507EEEAF7E0C8018A0D9B1D62E070E07A |
:107200000E94DB3B6093AE07C701880D991D62E0C9 |
:1072100070E00E94DB3B6093AF07C601860D971DAF |
:1072200062E070E00E94DB3B6093B00789E0A8E673 |
:10723000B1E0182E0E94813CE0E1CDB7DEB70C949E |
:10724000493C83ED8CBD84B1846A84B9809100018E |
:107250008A3019F4539A5B9802C03E9A469885E0AA |
:107260008093BA071092B70789E0EEEAF7E0A8E644 |
:10727000B1E0182E0E94703C08951F93CF93DF93C6 |
:10728000EC01892B31F46115710519F480E090E06F |
:107290008FC077FD02C011E001C01FEF209729F4D5 |
:1072A0008AE51802C001112483C0882777FD8095E4 |
:1072B000982F26E0660F771F881F991F2A95D1F710 |
:1072C0009E01442737FD4095542F0E94103CF90140 |
:1072D00037FF03C0F095E195FF4F41E0EA35F40731 |
:1072E00034F4E55FFA4F8491282F332747C05CE1DF |
:1072F000E73AF5071CF02AE530E040C089E0ED38B8 |
:10730000F8071CF029E530E039C045E0EA3BF40716 |
:107310001CF028E530E032C054E0E731F5071CF0FE |
:1073200027E530E02BC083E0EE32F8071CF026E5BD |
:1073300030E024C042E0E939F4071CF025E530E0F4 |
:107340001DC052E0E233F5071CF024E530E016C022 |
:1073500081E0E73EF8071CF023E530E00FC041E094 |
:10736000ED3AF4071CF022E530E008C0EF57F14099 |
:107370001CF021E530E002C020E530E01C161D06BF |
:107380006CF4812F992787FD9095AC01249FC00153 |
:10739000259F900D349F900D11240AC011162CF4D6 |
:1073A00084EB90E0821B930B03C0C901845B904087 |
:1073B000DF91CF911F910895FC0197FD03C041E03B |
:1073C00050E005C0F095E195FF4F4FEF5FEFEB35D3 |
:1073D000F1055CF0CF018B5590408A35910540F462 |
:1073E00084EB90E08E1B9F0BFC0121E030E010C08D |
:1073F000CF01855B90408A35910518F4E45BF0403D |
:1074000005C088E691E08E1B9F0BFC012FEF3FEF3C |
:10741000EE0FFF1FEB59F94F85919491BC01629FCC |
:10742000C001639F900D729F900D11249C01429F9B |
:10743000C001439F900D529F900D112408952AE59D |
:1074400030E0281B390BC9010E94DC390895FC018A |
:107450004150504030F001900616D1F73197CF01DE |
:1074600008958827992708955058192EEFD001D0F4 |
:10747000D2C0BA176207730784079507B1F188F481 |
:107480000EF410940B2EBA2FA02D062E622F202D55 |
:10749000072E732F302D082E842F402D092E952F67 |
:1074A000502DFF275523B9F0591B49F0573E98F04E |
:1074B000469537952795A795F0405395C9F776F0EF |
:1074C000BA0F621F731F841F30F4879577956795F5 |
:1074D000B795F040939517FA0F2E0895BF1BBB2761 |
:1074E000BA0B620B730B840BF6CFDEF6DBC0AED0AB |
:1074F00001D091C0552359F0992369F09F575F57E8 |
:10750000951B33F442F4903811F4915805C09BC098 |
:1075100091589F3F09F4C6C0BB2711246217730717 |
:10752000840730F4660F771F881FBB1F915098F3B4 |
:1075300011D00F920FD00F920DD0A0E82617370769 |
:1075400048071B0609F0A048BA2F602D7F918F9144 |
:1075500000240895A0E80024621773078407B1058A |
:1075600028F0621B730B840BB1090A2A660F771F80 |
:10757000881FBB1FA69581F7089597FB73D09F378F |
:1075800038F0FEE9F91B982F872F762F6B2F05C057 |
:1075900086C09695879577956795F150D0F73EF41C |
:1075A00090958095709561957F4F8F4F9F4F08956F |
:1075B000E89403C097FB0EF4F3DFB62F672F782F04 |
:1075C000892F9EE9002427C00ED05EF004C00BD0A6 |
:1075D00026F001C008D019F020F48FEF089580E064 |
:1075E000089581E0089597FB092E052600F8689418 |
:1075F00030D0E89407FC07C062177307840795072B |
:1076000021F008F400940794989408959A95BB0F7C |
:10761000661F771F881F11249923A1F08823B2F7D2 |
:107620009F3F59F0BB0F48F421F4002011F460FF94 |
:1076300004C06F5F7F4F8F4F9F4F881F979587952F |
:1076400097F908952CC09FEF80EC0895052E092628 |
:1076500007FA440F551F5F3F79F0AA27A51708F0D6 |
:1076600051E04795880F991F9F3F31F0BB27B9170D |
:1076700008F091E0879508959F919F911124E3CFA1 |
:1076800097FB880F991F9F3F31F0BB27B91708F070 |
:1076900091E0879508959F919F911124D4CF6627FB |
:1076A0007727882799270895D1DF01D0B4CF992370 |
:1076B00039F0552329F09F575F57950F13F49AF12E |
:1076C000F1CF91589F3FE1F3629FA12D0F92BB270D |
:1076D000639FA00DB11DEE27729FA00DB11DEE1F7F |
:1076E000AF93AA27649FB00DE11D739FB00DE11DFC |
:1076F000AA1F6627829FB00DE11DA61F5527749F04 |
:10770000E00DA11D551F839FE00DA11D561F849FF5 |
:10771000A00D511D852F7A2F6E2F1F900F9088235B |
:107720001AF4939539F48FCF000C111CBB1F661F00 |
:10773000771F881F01280895629FD001739FF00171 |
:10774000829FE00DF11D649FE00DF11D929FF00DF1 |
:10775000839FF00D749FF00D659FF00D9927729F28 |
:10776000B00DE11DF91F639FB00DE11DF91FBD01B3 |
:10777000CF0111240895991B79E004C0991F961731 |
:1077800008F0961B881F7A95C9F780950895AA1B63 |
:10779000BB1B51E107C0AA1FBB1FA617B70710F0FC |
:1077A000A61BB70B881F991F5A95A9F7809590952E |
:1077B000BC01CD01089597FB092E07260AD077FD5D |
:1077C00004D0E5DF06D000201AF4709561957F4F54 |
:1077D0000895F6F7909581959F4F0895A1E21A2E8E |
:1077E000AA1BBB1BFD010DC0AA1FBB1FEE1FFF1F65 |
:1077F000A217B307E407F50720F0A21BB30BE40BB5 |
:10780000F50B661F771F881F991F1A9469F76095FB |
:107810007095809590959B01AC01BD01CF010895B5 |
:1078200097FB092E05260ED057FD04D0D7DF0AD0CE |
:10783000001C38F450954095309521953F4F4F4F9F |
:107840005F4F0895F6F790958095709561957F4FFD |
:107850008F4F9F4F08952F923F924F925F926F925A |
:107860007F928F929F92AF92BF92CF92DF92EF92D0 |
:10787000FF920F931F93CF93DF93CDB7DEB7CA1B51 |
:10788000DB0B0FB6F894DEBF0FBECDBF09942A887C |
:10789000398848885F846E847D848C849B84AA8424 |
:1078A000B984C884DF80EE80FD800C811B81AA81B1 |
:1078B000B981CE0FD11D0FB6F894DEBF0FBECDBF7C |
:1078C000ED010895EE0FFF1F0590F491E02D09944E |
:1078D000F999FECFB2BDA1BDF89A119600B40895F2 |
:1078E000F7DF01921A94E1F70895F999FECFB2BD3E |
:1078F000A1BD00BC11960FB6F894FA9AF99A0FBE82 |
:0E79000008950190F2DF1A94E1F70895FFCF89 |
:10790E000A01FF64496E74656772616C4E69636B40 |
:10791E0020202020496E74656772616C526F6C6C0A |
:10792E00202020204163634E69636B20202020209D |
:10793E0020202020416363526F6C6C202020202079 |
:10794E00202020204779726F476965722020202001 |
:10795E0020202020486F6568656E57657274202060 |
:10796E00202020204163635A202020202020202028 |
:10797E00202020204761732020202020202020203E |
:10798E00202020204B6F6D7061737356616C75658E |
:10799E00202020205370616E6E756E67202020208F |
:1079AE0020202020456D7066616E672020202020EB |
:1079BE0020202020416E616C6F6731312020202005 |
:1079CE00202020204D6F746F725F566F726E65208F |
:1079DE00202020204D6F746F725F48696E74656E43 |
:1079EE00202020204D6F746F725F4C696E6B732078 |
:1079FE00202020204D6F746F725F52656368747320 |
:107A0E00202020204163635F5A2020202020202048 |
:107A1E00202020204D697474656C4163634E696348 |
:107A2E006B2020204D697474656C416363526F6CDA |
:107A3E006C202020496E74656772616C4572724EBF |
:107A4E0069636B20496E74656772616C4572725220 |
:107A5E006F6C6C204D697474656C496E744E6963FD |
:107A6E006B2020204D697474656C496E74526F6C76 |
:107A7E006C0920004E65757472616C4E69636B20E3 |
:107A8E0020202020526F6C6C4F6666736574202028 |
:107A9E0020202020496E74526F6C6C2A46616B74E4 |
:107AAE006F722020416E616C6F673236202020206D |
:107ABE0020202020446972656B74417573676C5287 |
:107ACE006F6C6C204D65737377657274526F6C6C4E |
:107ADE0020202020417573676C65696368526F6C56 |
:107AEE006C202020492D4C616765526F6C6C2020F4 |
:107AFE0020202020537469636B526F6C6C20202001 |
:107B0E0020202020FFFF0A016400007D0000FF03FB |
:107B1E000102030405060708090A48616C6C6F2010 |
:107B2E0057656C74000000000000000000000000AB |
:107B3E000000000000000000000000000000000037 |
:107B4E000000000000000000000000000000000027 |
:107B5E000000000000000000000000000000000017 |
:107B6E00000000000000000000000C014265676983 |
:107B7E006E6E657200004E6F726D616C0000537018 |
:107B8E006F72740000640090D0030090D003001751 |
:107B9E00B7D13830FB103A409696020A644664EC30 |
:027BAE00FF00D6 |
:00000001FF |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/FlightCtrl.aps |
---|
0,0 → 1,0 |
<AVRStudio><MANAGEMENT><ProjectName>FlightCtrl</ProjectName><Created>15-May-2007 11:20:41</Created><LastEdit>11-Oct-2007 22:58:54</LastEdit><ICON>241</ICON><ProjectType>0</ProjectType><Created>15-May-2007 11:20:41</Created><Version>4</Version><Build>4, 13, 0, 528</Build><ProjectTypeName>AVR GCC</ProjectTypeName></MANAGEMENT><CODE_CREATION><ObjectFile>default\Flight-Ctrl.elf</ObjectFile><EntryFile></EntryFile><SaveFolder>F:\SVN\MikroKopter\FlightCtrl\branches\V0.64_ZeroWarnings\</SaveFolder></CODE_CREATION><DEBUG_TARGET><CURRENT_TARGET>AVR Simulator</CURRENT_TARGET><CURRENT_PART>ATmega644.xml</CURRENT_PART><BREAKPOINTS></BREAKPOINTS><IO_EXPAND><HIDE>false</HIDE></IO_EXPAND><REGISTERNAMES><Register>R00</Register><Register>R01</Register><Register>R02</Register><Register>R03</Register><Register>R04</Register><Register>R05</Register><Register>R06</Register><Register>R07</Register><Register>R08</Register><Register>R09</Register><Register>R10</Register><Register>R11</Register><Register>R12</Register><Register>R13</Register><Register>R14</Register><Register>R15</Register><Register>R16</Register><Register>R17</Register><Register>R18</Register><Register>R19</Register><Register>R20</Register><Register>R21</Register><Register>R22</Register><Register>R23</Register><Register>R24</Register><Register>R25</Register><Register>R26</Register><Register>R27</Register><Register>R28</Register><Register>R29</Register><Register>R30</Register><Register>R31</Register></REGISTERNAMES><COM>Auto</COM><COMType>0</COMType><WATCHNUM>0</WATCHNUM><WATCHNAMES><Pane0></Pane0><Pane1></Pane1><Pane2></Pane2><Pane3></Pane3></WATCHNAMES><BreakOnTrcaeFull>0</BreakOnTrcaeFull></DEBUG_TARGET><Debugger><Triggers></Triggers></Debugger><AVRGCCPLUGIN><FILES><SOURCEFILE>uart.c</SOURCEFILE><SOURCEFILE>analog.c</SOURCEFILE><SOURCEFILE>eeprom.c</SOURCEFILE><SOURCEFILE>fc.c</SOURCEFILE><SOURCEFILE>GPS.c</SOURCEFILE><SOURCEFILE>main.c</SOURCEFILE><SOURCEFILE>menu.c</SOURCEFILE><SOURCEFILE>printf_P.c</SOURCEFILE><SOURCEFILE>rc.c</SOURCEFILE><SOURCEFILE>timer0.c</SOURCEFILE><SOURCEFILE>twimaster.c</SOURCEFILE><HEADERFILE>uart.h</HEADERFILE><HEADERFILE>_Settings.h</HEADERFILE><HEADERFILE>analog.h</HEADERFILE><HEADERFILE>fc.h</HEADERFILE><HEADERFILE>gps.h</HEADERFILE><HEADERFILE>main.h</HEADERFILE><HEADERFILE>menu.h</HEADERFILE><HEADERFILE>old_macros.h</HEADERFILE><HEADERFILE>printf_P.h</HEADERFILE><HEADERFILE>rc.h</HEADERFILE><HEADERFILE>Settings.h</HEADERFILE><HEADERFILE>timer0.h</HEADERFILE><HEADERFILE>twimaster.h</HEADERFILE></FILES><CONFIGS><CONFIG><NAME>default</NAME><USESEXTERNALMAKEFILE>NO</USESEXTERNALMAKEFILE><EXTERNALMAKEFILE></EXTERNALMAKEFILE><PART>atmega644</PART><HEX>1</HEX><LIST>1</LIST><MAP>1</MAP><OUTPUTFILENAME>Flight-Ctrl.elf</OUTPUTFILENAME><OUTPUTDIR>default\</OUTPUTDIR><ISDIRTY>1</ISDIRTY><OPTIONS><OPTION><FILE>GPS.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>analog.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>eeprom.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>fc.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>main.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>menu.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>printf_P.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>rc.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>timer0.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>twimaster.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>uart.c</FILE><OPTIONLIST></OPTIONLIST></OPTION></OPTIONS><INCDIRS/><LIBDIRS/><LIBS><LIB>libc.a</LIB><LIB>libm.a</LIB></LIBS><LINKOBJECTS/><OPTIONSFORALL>-Wall -gdwarf-2 -Wstrict-prototypes -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -DVERSION_HAUPTVERSION=0 -DVERSION_NEBENVERSION=64 -DVERSION_KOMPATIBEL=5</OPTIONSFORALL><LINKEROPTIONS></LINKEROPTIONS><SEGMENTS/></CONFIG></CONFIGS><LASTCONFIG>default</LASTCONFIG><USES_WINAVR>1</USES_WINAVR><GCC_LOC>C:\Program Files\WinAVR\bin\avr-gcc.exe</GCC_LOC><MAKE_LOC>C:\Program Files\WinAVR\utils\bin\make.exe</MAKE_LOC></AVRGCCPLUGIN><IOView><usergroups/></IOView><Files><File00000><FileId>00000</FileId><FileName>main.c</FileName><Status>1</Status></File00000><File00001><FileId>00001</FileId><FileName>uart.c</FileName><Status>1</Status></File00001><File00002><FileId>00002</FileId><FileName>menu.c</FileName><Status>1</Status></File00002><File00003><FileId>00003</FileId><FileName>timer0.c</FileName><Status>1</Status></File00003><File00004><FileId>00004</FileId><FileName>fc.c</FileName><Status>1</Status></File00004><File00005><FileId>00005</FileId><FileName>fc.h</FileName><Status>1</Status></File00005><File00006><FileId>00006</FileId><FileName>menu.h</FileName><Status>1</Status></File00006><File00007><FileId>00007</FileId><FileName>TWIMASTER.C</FileName><Status>1</Status></File00007><File00008><FileId>00008</FileId><FileName>twimaster.h</FileName><Status>1</Status></File00008><File00009><FileId>00009</FileId><FileName>uart.h</FileName><Status>1</Status></File00009><File00010><FileId>00010</FileId><FileName>_Settings.h</FileName><Status>1</Status></File00010><File00011><FileId>00011</FileId><FileName>analog.h</FileName><Status>1</Status></File00011><File00012><FileId>00012</FileId><FileName>gps.h</FileName><Status>1</Status></File00012><File00013><FileId>00013</FileId><FileName>main.h</FileName><Status>1</Status></File00013><File00014><FileId>00014</FileId><FileName>old_macros.h</FileName><Status>1</Status></File00014><File00015><FileId>00015</FileId><FileName>printf_P.h</FileName><Status>1</Status></File00015><File00016><FileId>00016</FileId><FileName>rc.h</FileName><Status>1</Status></File00016><File00017><FileId>00017</FileId><FileName>Settings.h</FileName><Status>1</Status></File00017><File00018><FileId>00018</FileId><FileName>timer0.h</FileName><Status>1</Status></File00018></Files><Events><Bookmarks></Bookmarks></Events><Trace><Filters></Filters></Trace></AVRStudio> |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/GPS.c |
---|
0,0 → 1,30 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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" |
signed int GPS_Nick = 0; |
signed int GPS_Roll = 0; |
long GpsAktuell_X = 0; |
long GpsAktuell_Y = 0; |
long GpsZiel_X = 0; |
long GpsZiel_Y = 0; |
void GPS_Neutral(void) |
{ |
GpsZiel_X = GpsAktuell_X; |
GpsZiel_Y = GpsAktuell_Y; |
} |
void GPS_BerechneZielrichtung(void) |
{ |
GPS_Nick = 0; |
GPS_Roll = 0; |
} |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/License.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/MicroMag3_Nick666/Festkomma/V0.67g/Readme.pdf |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/Settings.h |
---|
--- V0.67g/_Settings.h (nonexistent) |
+++ V0.67g/_Settings.h (revision 603) |
@@ -0,0 +1,50 @@ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Testmodi |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define MOTOR_OFF 0 |
+#define MOTOR_TEST 0 |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Abstimmung |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define ACC_AMPLIFY 12 |
+#define FAKTOR_P 1 |
+#define FAKTOR_I 0.0001 |
+ |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Debug-Interface |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define SIO_DEBUG 1 // Soll der Debugger aktiviert sein? |
+#define MIN_DEBUG_INTERVALL 500 // in diesem Intervall werden Degugdaten 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/MicroMag3_Nick666/Festkomma/V0.67g/analog.c |
---|
0,0 → 1,147 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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; |
//AdWertNick = 0; |
//AdWertNick += Poti2; |
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/MicroMag3_Nick666/Festkomma/V0.67g/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/MicroMag3_Nick666/Festkomma/V0.67g/compass.c |
---|
0,0 → 1,243 |
/* |
Copyright 2007, Niklas Nold |
This program (files compass.c and compass.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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
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 |
*/ |
#include "main.h" |
struct MM3_calib_struct ee_calib EEMEM; // Reservierung im EEPROM |
struct MM3_working_struct MM3; |
struct MM3_calib_struct MM3_calib; |
//############################################################################ |
// Initialisierung |
void init_MM3(void) |
//############################################################################ |
{ |
// SPI-Schnittstelle initialisieren |
SPCR = (1<<SPIE)|(1<<SPE)|(1<<MSTR)|(1<<SPR1)|(1<<SPR0); // Interrupt an, Master, 156 kHz Oszillator |
DDRB |= (1<<PB7)|(1<<PB5)|(1<<PB2); // J8, MOSI, SCK Ausgang |
if(PlatinenVersion == 10) |
{ |
DDRD |= (1<<PD3); // PD3 als Ausgang |
PORTD &= ~(1<<PD3); // J5 permanent auf Low |
} |
else |
{ |
DDRC |= (1<<PC6); // PC6 als Ausgang |
PORTC &= ~(1<<PC6); // J9 permanent auf Low |
} |
// Init Statemachine |
MM3.AXIS = MM3_X; |
MM3.STATE = MM3_RESET; |
// Kalibrierung aus dem EEprom lesen |
eeprom_read_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Wird in der SIGNAL (SIG_OVERFLOW0) aufgerufen |
void timer0_MM3(void) |
//############################################################################ |
{ |
switch (MM3.STATE) |
{ |
case MM3_RESET: |
PORTB |= (1<<PB2); // J8 auf High, MM3 Reset |
MM3.STATE = MM3_START_TRANSFER; |
return; |
case MM3_START_TRANSFER: |
PORTB &= ~(1<<PB2); // J8 auf Low (war ~125 µs auf High) |
if (MM3.AXIS == MM3_X) SPDR = 0x31; // Schreiben ins SPDR löst automatisch SPI-Übertragung (MOSI und MISO) aus |
else if (MM3.AXIS == MM3_Y) SPDR = 0x32; // Micromag Period Select ist auf 256 (0x30) |
else SPDR = 0x33; //if (MM3.AXIS == MM3_Z) // 1: x-Achse, 2: Y-Achse, 3: Z-Achse |
MM3.DRDY = SetDelay(8); // Laut Datenblatt max. Zeit bis Messung fertig (bei PS 256 eigentlich 4 ms) |
MM3.STATE = MM3_WAIT_DRDY; |
return; |
case MM3_WAIT_DRDY: |
if (CheckDelay(MM3.DRDY)) {SPDR = 0x00;MM3.STATE = MM3_DRDY;} // Irgendwas ins SPDR, damit Übertragung ausgelöst wird, wenn Wartezeit vorbei |
return; // Jetzt gehts weiter in SIGNAL (SIG_SPI) |
} |
} |
//############################################################################ |
// SPI byte ready |
SIGNAL (SIG_SPI) |
//############################################################################ |
{ |
static char tmp; |
int wert; |
switch (MM3.STATE) |
{ |
case MM3_DRDY: // 1. Byte ist da, zwischenspeichern |
tmp = SPDR; |
SPDR = 0x00; // Übertragung von 2. Byte auslösen |
MM3.STATE = MM3_BYTE2; |
return; |
case MM3_BYTE2: // 2. Byte der entsprechenden Achse ist da |
wert = tmp; |
wert <<= 8; // 1. Byte an MSB-Stelle rücken |
wert |= SPDR; // 2. Byte dranpappen |
if(abs(wert) < Max_Axis_Value) // Spikes filtern. Zuweisung nur, wenn Max-Wert nicht überschritten |
switch (MM3.AXIS) |
{ |
case MM3_X: |
MM3.x_axis = wert; |
MM3.AXIS = MM3_Y; |
break; |
case MM3_Y: |
MM3.y_axis = wert; |
MM3.AXIS = MM3_Z; |
break; |
default: //case MM3_Z: |
MM3.z_axis = wert; |
MM3.AXIS = MM3_X; |
} |
MM3.STATE = MM3_RESET; |
} |
} |
//############################################################################ |
// Kompass kalibrieren |
void calib_MM3(void) |
//############################################################################ |
{ |
signed int x_min=0,x_max=0,y_min=0,y_max=0,z_min=0,z_max=0; |
uint8_t measurement=50,beeper=0; |
unsigned int timer; |
GRN_ON; |
ROT_OFF; |
while (measurement) |
{ |
//H_earth = MM3.x_axis*MM3.x_axis + MM3.y_axis*MM3.y_axis + MM3.z_axis*MM3.z_axis; |
if (MM3.x_axis > x_max) x_max = MM3.x_axis; |
else if (MM3.x_axis < x_min) x_min = MM3.x_axis; |
if (MM3.y_axis > y_max) y_max = MM3.y_axis; |
else if (MM3.y_axis < y_min) y_min = MM3.y_axis; |
if (MM3.z_axis > z_max) z_max = MM3.z_axis; |
else if (MM3.z_axis < z_min) z_min = MM3.z_axis; |
if (!beeper) |
{ |
ROT_FLASH; |
GRN_FLASH; |
beeptime = 50; |
beeper = 50; |
} |
beeper--; |
// Schleife mit 100 Hz |
timer = SetDelay(10); |
while(!CheckDelay(timer)); |
// Wenn Gas zurück genommen wird, Kalibrierung mit 1/2 Sekunde Verzögerung beenden |
if (PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] < 100) measurement--; |
} |
// Wertebereich der Achsen |
MM3_calib.X_range = (x_max - x_min); |
MM3_calib.Y_range = (y_max - y_min); |
MM3_calib.Z_range = (z_max - z_min); |
// Offset der Achsen |
MM3_calib.X_off = (x_max + x_min) / 2; |
MM3_calib.Y_off = (y_max + y_min) / 2; |
MM3_calib.Z_off = (z_max + z_min) / 2; |
// und im EEProm abspeichern |
eeprom_write_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Neigungskompensierung und Berechnung der Ausrichtung |
int heading_MM3(void) |
//############################################################################ |
{ |
signed int sin_nick, cos_nick, sin_roll, cos_roll; |
long x_axis, y_axis, z_axis; |
long x_corr, y_corr; |
signed int heading; |
int8_t nicktilt,rolltilt; |
unsigned int div_faktor; |
div_faktor = (uint16_t)EE_Parameter.UserParam3 * 8; |
// Berechung von sinus und cosinus |
nicktilt = (IntegralNick/div_faktor); |
sin_nick = sin_i(nicktilt); |
cos_nick = cos_i(nicktilt); |
rolltilt = (IntegralRoll/div_faktor); |
sin_roll = sin_i(rolltilt); |
cos_roll = cos_i(rolltilt); |
// Offset |
x_axis = (MM3.x_axis - MM3_calib.X_off); |
y_axis = (MM3.y_axis - MM3_calib.Y_off); |
z_axis = (MM3.z_axis - MM3_calib.Z_off); |
/* |
// Normierung Wertebereich |
if ((MM3_calib.X_range > MM3_calib.Y_range) && (MM3_calib.X_range > MM3_calib.Z_range)) |
{ |
y_axis = (y_axis * MM3_calib.X_range) / MM3_calib.Y_range; |
z_axis = (z_axis * MM3_calib.X_range) / MM3_calib.Z_range; |
} |
else if ((MM3_calib.Y_range > MM3_calib.X_range) && (MM3_calib.Y_range > MM3_calib.Z_range)) |
{ |
x_axis = (x_axis * MM3_calib.Y_range) / MM3_calib.X_range; |
z_axis = (z_axis * MM3_calib.Y_range) / MM3_calib.Z_range; |
} |
else //if ((MM3_calib.Z_range > MM3_calib.X_range) && (MM3_calib.Z_range > MM3_calib.Y_range)) |
{ |
x_axis = (x_axis * MM3_calib.Z_range) / MM3_calib.X_range; |
y_axis = (y_axis * MM3_calib.Z_range) / MM3_calib.Y_range; |
} |
*/ |
// Neigungskompensierung |
x_corr = x_axis * cos_nick; |
x_corr += (y_axis * sin_roll * sin_nick) /1024; |
x_corr -= (z_axis * cos_roll * sin_nick) /1024; |
x_corr /= 1024; |
y_corr = y_axis * cos_roll; |
y_corr += z_axis * sin_roll; |
y_corr /= 1024; |
// Winkelberechnung |
heading = atan2_i(x_corr, y_corr); |
if (heading < 0) heading = -heading; |
else heading = 360 - heading; |
return (heading); |
} |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/compass.h |
---|
0,0 → 1,44 |
struct MM3_working_struct |
{ |
uint8_t STATE; |
unsigned int DRDY; |
uint8_t AXIS; |
volatile signed int x_axis; |
volatile signed int y_axis; |
volatile signed int z_axis; |
}; |
struct MM3_calib_struct |
{ |
int8_t X_off; |
int8_t Y_off; |
int8_t Z_off; |
uint16_t X_range; |
uint16_t Y_range; |
uint16_t Z_range; |
}; |
extern struct MM3_working_struct MM3; |
extern struct MM3_calib_struct MM3_calib; |
void init_MM3(void); |
void timer0_MM3(void); |
void calib_MM3(void); |
int heading_MM3(void); |
#define Max_Axis_Value 500 |
// Die Werte der Statemachine |
#define MM3_RESET 0 |
#define MM3_START_TRANSFER 1 |
#define MM3_WAIT_DRDY 2 |
#define MM3_DRDY 3 |
#define MM3_BYTE2 4 |
#define MM3_X 5 |
#define MM3_Y 6 |
#define MM3_Z 7 |
#define MM3_TILT 8 |
#define MM3_IDLE 9 |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/eeprom.c |
---|
0,0 → 1,182 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 8; //8 // Wert : 0-64 |
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 = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // 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 = 32 * 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 / 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 = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // 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 = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // 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/MicroMag3_Nick666/Festkomma/V0.67g/fc.c |
---|
0,0 → 1,1148 |
/*####################################################################################### |
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. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
#include "eeprom.c" |
unsigned char h,m,s; |
volatile unsigned int I2CTimeout = 100; |
int MesswertNick,MesswertRoll,MesswertGier; |
int AdNeutralNick = 0,AdNeutralRoll = 0,AdNeutralGier = 0,StartNeutralRoll = 0,StartNeutralNick = 0; |
int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
volatile int NeutralAccX=0, NeutralAccY=0; |
volatile float NeutralAccZ = 0; |
long IntegralNick = 0,IntegralNick2 = 0; |
long IntegralRoll = 0,IntegralRoll2 = 0; |
long IntegralAccNick = 0,IntegralAccRoll = 0,IntegralAccZ = 0; |
long Integral_Gier = 0; |
long Mess_IntegralNick = 0,Mess_IntegralNick2 = 0; |
long Mess_IntegralRoll = 0,Mess_IntegralRoll2 = 0; |
long Mess_Integral_Gier = 0,Mess_Integral_Gier2 = 0; |
long MittelIntegralNick,MittelIntegralRoll,MittelIntegralNick2,MittelIntegralRoll2; |
volatile long Mess_Integral_Hoch = 0; |
int KompassValue = 0; |
int KompassStartwert = 0; |
int KompassRichtung = 0; |
uint8_t updKompass = 0; |
unsigned char MAX_GAS,MIN_GAS; |
unsigned char Notlandung = 0; |
unsigned char HoehenReglerAktiv = 0; |
long Umschlag180Nick = 250000L, Umschlag180Roll = 250000L; |
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); |
} |
} |
/* |
//############################################################################ |
// Neutrallage kalibrieren und fest im EEPROM abspeichern |
void calib_acc(void) |
//############################################################################ |
{ |
unsigned int timer; |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
CalibrierMittelwert(); |
timer = SetDelay(5); |
while (!CheckDelay(timer)); |
CalibrierMittelwert(); |
acc_neutral.X = abs(Mittelwert_AccNick) / ACC_AMPLIFY; |
acc_neutral.Y = abs(Mittelwert_AccRoll) / ACC_AMPLIFY; |
acc_neutral.Z = Aktuell_az; |
eeprom_write_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
} |
*/ |
//############################################################################ |
// Nullwerte ermitteln |
void SetNeutral(void) |
//############################################################################ |
{ |
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; |
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; |
} |
//############################################################################ |
// 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 ++++++++++++++++++++++++++++++++++++++++++++++++ |
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 = 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(); |
GRN_ON; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gaswert ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GasMischanteil = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + 120; |
if(GasMischanteil > MAX_GAS - 20) GasMischanteil = MAX_GAS - 20; |
if(GasMischanteil < 0) GasMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang 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; |
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 |
} |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
SetNeutral(); |
Piep(GetActiveParamSetNumber()); |
} |
} |
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(); |
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) |
{ |
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; |
} |
} |
else delay_einschalten = 0; |
//Auf Neutralwerte setzen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Auschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) |
{ |
if(++delay_ausschalten > 200) // nicht sofort |
{ |
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; |
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; |
if(cnt > EE_Parameter.Driftkomp) cnt = EE_Parameter.Driftkomp; |
if(IntegralFehlerNick > FEHLER_LIMIT) AdNeutralNick += cnt; |
if(IntegralFehlerNick < -FEHLER_LIMIT) AdNeutralNick -= cnt; |
// 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; |
} |
DebugOut.Analog[27] = ausgleichRoll; |
if(cnt > EE_Parameter.Driftkomp) cnt = EE_Parameter.Driftkomp; |
//if(cnt > 1) beeptime = 50; |
if(IntegralFehlerRoll > FEHLER_LIMIT) AdNeutralRoll += cnt; |
if(IntegralFehlerRoll < -FEHLER_LIMIT) AdNeutralRoll -= cnt; |
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; |
} |
//DebugOut.Analog[31] = StickRoll / (26*IntegralFaktor); |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// 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(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
{ |
int w,v; |
if (!updKompass--) // Aufruf mit ~10 Hz |
{ |
KompassValue = heading_MM3(); |
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
updKompass = 50; |
} |
w = abs(IntegralNick /512); // mit zunehmender Neigung den Einfluss drosseln |
v = abs(IntegralRoll /512); |
if(v > w) w = v; // grösste Neigung ermitteln |
if(w < 35 && NeueKompassRichtungMerken) |
{ |
KompassStartwert = KompassValue; |
NeueKompassRichtungMerken = 0; |
} |
w = (w * Parameter_KompassWirkung) / 64; // auf die Wirkung normieren |
w = Parameter_KompassWirkung - w; // Wirkung ggf drosseln |
if(w > 0) |
{ |
Mess_Integral_Gier += (KompassRichtung * w) / 32; // nach Kompass ausrichten |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Debugwerte zuordnen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!TimerWerteausgabe--) |
{ |
TimerWerteausgabe = 24; |
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] = UBat; |
DebugOut.Analog[10] = SenderOkay; |
DebugOut.Analog[16] = Mittelwert_AccHoch; |
/* 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)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)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/MicroMag3_Nick666/Festkomma/V0.67g/fc.h |
---|
0,0 → 1,153 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
#ifndef _FC_H |
#define _FC_H |
extern volatile unsigned int I2CTimeout; |
extern unsigned char Sekunde,Minute; |
extern long Mess_IntegralNick,Mess_IntegralNick2; |
extern long Mess_IntegralRoll,Mess_IntegralRoll2; |
extern volatile long Mess_Integral_Hoch; |
extern long Mess_Integral_Gier,Mess_Integral_Gier2; |
extern int KompassValue; |
extern int KompassStartwert; |
extern int KompassRichtung; |
extern long IntegralNick,IntegralNick2; |
extern long IntegralRoll,IntegralRoll2; |
extern long IntegralAccNick,IntegralAccRoll,IntegralAccZ; |
extern long Integral_Gier; |
extern int HoehenWert; |
extern int SollHoehe; |
extern int MesswertNick,MesswertRoll,MesswertGier; |
extern int AdNeutralNick,AdNeutralRoll,AdNeutralGier, Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
extern volatile int NeutralAccX, NeutralAccY; |
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; |
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 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); |
struct acc_neutral_struct |
{ |
volatile int X; |
volatile int Y; |
volatile float Z; |
}; |
extern struct acc_neutral_struct acc_neutral; |
extern void calib_acc(void); |
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/MicroMag3_Nick666/Festkomma/V0.67g/flight.pnproj |
---|
0,0 → 1,0 |
<Project name="Flight-Ctrl"><File path="uart.h"></File><File path="main.c"></File><File path="main.h"></File><File path="makefile"></File><File path="uart.c"></File><File path="printf_P.h"></File><File path="printf_P.c"></File><File path="timer0.c"></File><File path="timer0.h"></File><File path="old_macros.h"></File><File path="twimaster.c"></File><File path="version.txt"></File><File path="twimaster.h"></File><File path="rc.c"></File><File path="rc.h"></File><File path="fc.h"></File><File path="fc.c"></File><File path="menu.h"></File><File path="menu.c"></File><File path="_Settings.h"></File><File path="analog.c"></File><File path="analog.h"></File><File path="GPS.c"></File><File path="gps.h"></File><File path="License.txt"></File><File path="eeprom.c"></File><File path="compass.c"></File><File path="compass.h"></File><File path="mymath.c"></File><File path="mymath.h"></File></Project> |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/flight.pnps |
---|
0,0 → 1,0 |
<pd><ViewState><e p="Flight-Ctrl" x="true"></e></ViewState></pd> |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/gps.h |
---|
0,0 → 1,14 |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Roll; |
void GPS_Neutral(void); |
void GPS_BerechneZielrichtung(void); |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/main.c |
---|
0,0 → 1,263 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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" |
// Reservierung im EEPROM |
unsigned char EEPromArray[10] EEMEM; |
struct mk_param_struct EEParameterArray[5] 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; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_read_block(buffer, &EEParameterArray[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; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_write_block(buffer, &EEParameterArray[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; |
DDRC = 0x81; // SCL |
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(); |
init_MM3(); |
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], sizeof(struct mk_param_struct)); |
} |
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], sizeof(struct mk_param_struct)); |
printf("\n\rBenutze Parametersatz %d", GetActiveParamSetNumber()); |
//kurze Wartezeit (sonst reagiert die "Kompass kalibrieren?"-Abfrage nicht |
timer = SetDelay(500); |
while(!CheckDelay(timer)); |
//Kompass kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 100) |
{ |
printf("\n\rKalibriere Kompass"); |
calib_MM3(); |
} |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
printf("\n\rAbgleich Luftdrucksensor.."); |
timer = SetDelay(1000); |
SucheLuftruckOffset(); |
while (!CheckDelay(timer)); |
printf("OK\n\r"); |
} |
SetNeutral(); |
ROT_OFF; |
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/MicroMag3_Nick666/Festkomma/V0.67g/main.h |
---|
0,0 → 1,100 |
#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 |
#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 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 unsigned char SenderOkay; |
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 "compass.h" |
#include "mymath.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/MicroMag3_Nick666/Festkomma/V0.67g/makefile |
---|
0,0 → 1,419 |
#-------------------------------------------------------------------- |
# MCU name |
MCU = atmega644 |
F_CPU = 20000000 |
#------------------------------------------------------------------- |
HAUPT_VERSION = 0 |
NEBEN_VERSION = 67 |
VERSION_INDEX = 6 |
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 |
ifeq ($(VERSION_INDEX), 6) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)g |
endif |
ifeq ($(VERSION_INDEX), 7) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)h |
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 |
SRC += compass.c mymath.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 \ |
-mtiny-stack -mcall-prologues \ |
-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/MicroMag3_Nick666/Festkomma/V0.67g/menu.c |
---|
0,0 → 1,139 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 = 12,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; |
case 11: |
LCD_printfxy(0,0,"MM3 Off"); |
LCD_printfxy(0,1,"X_Offset: %3i",MM3_calib.X_off); |
LCD_printfxy(0,2,"Y_Offset: %3i",MM3_calib.Y_off); |
LCD_printfxy(0,3,"Z_Offset: %3i",MM3_calib.Z_off); |
break; |
case 12: |
LCD_printfxy(0,0,"MM3 Range"); |
LCD_printfxy(0,1,"X_Range: %4i",MM3_calib.X_range); |
LCD_printfxy(0,2,"Y_Range: %4i",MM3_calib.Y_range); |
LCD_printfxy(0,3,"Z_Range: %4i",MM3_calib.Z_range); |
break; |
default: MaxMenue = MenuePunkt - 1; |
MenuePunkt = 0; |
break; |
} |
RemoteTasten = 0; |
} |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/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/MicroMag3_Nick666/Festkomma/V0.67g/mymath.c |
---|
0,0 → 1,110 |
/* |
Copyright 2007, Niklas Nold |
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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
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 |
*/ |
#include "main.h" |
const uint8_t pgm_atan[346] PROGMEM = {0,1,2,3,4,4,5,6,7,8,9,10,11,11,12,13,14,15,16,17,17,18,19,20,21,21,22,23,24,24,25,26,27,27,28,29,29,30,31,31,32,33,33,34,35,35,36,36,37,37,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,45,46,46,47,47,48,48,48,49,49,50,50,50,51,51,51,52,52,52,53,53,53,54,54,54,55,55,55,55,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,60,61,61,61,61,62,62,62,62,62,63,63,63,63,63,63,64,64,64,64,64,64,65,65,65,65,65,65,66,66,66,66,66,66,66,67,67,67,67,67,67,67,68,68,68,68,68,68,68,68,69,69,69,69,69,69,69,69,69,70,70,70,70,70,70,70,70,70,71,71,71,71,71,71,71,71,71,71,71,72,72,72,72,72,72,72,72,72,72,72,73,73,73,73,73,73,73,73,73,73,73,73,73,73,74,74,74,74,74,74,74,74,74,74,74,74,74,74,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79}; |
//############################################################################ |
// Arkustangens2 im Gradmaß |
signed int atan2_i(signed int x, signed int y) |
//############################################################################ |
{ |
int i,angle; |
int8_t m; |
if (!x && !y) return 0; //atan2 = 0 für x und y = 0 |
if (y < 0) m=-1; |
else m=1; |
if (!x) return (90*m); // atan2 = 90° für x = 0 |
i = abs(((long)y*64) / x); // Berechne i für die Lookup table (Schrittweite atan(x) ist 0,015625 -> y *64) |
if (i<346) angle = pgm_read_byte(&pgm_atan[i]); // Lookup für 1° bis 79° |
else if (i>7334) angle = 90; // Grenzwert ist 90° |
else if (i>2444) angle = 89; // 89° bis 80° über Wertebereiche |
else if (i>1465) angle = 88; |
else if (i>1046) angle = 87; |
else if (i>813) angle = 86; |
else if (i>664) angle = 85; |
else if (i>561) angle = 84; |
else if (i>486) angle = 83; |
else if (i>428) angle = 82; |
else if (i>382) angle = 81; |
else angle = 80; // (i>345) |
if (x > 0) return (angle*m); // Quadrant I und IV |
else if ((x < 0) && (m > 0)) return (-angle + 180); // Quadrant II |
else return (angle - 180); // x < 0 && y < 0 Quadrant III |
} |
const uint16_t pgm_sinus_i[91] PROGMEM = {0,18,36,54,71,89,107,125,143,160,178,195,213,230,248,265,282,299,316,333,350,367,384,400,416,433,449,465,481,496,512,527,543,558,573,587,602,616,630,644,658,672,685,698,711,724,737,749,761,773,784,796,807,818,828,839,849,859,868,878,887,896,904,912,920,928,935,943,949,956,962,968,974,979,984,989,994,998,1002,1005,1008,1011,1014,1016,1018,1020,1022,1023,1023,1024,1024}; |
//############################################################################ |
// Kosinusfunktion im Gradmaß |
signed int cos_i(signed int winkel) |
//############################################################################ |
{ |
return (sin_i(90-winkel)); |
} |
//############################################################################ |
// Sinusfunktion im Gradmaß |
signed int sin_i(signed int winkel) |
//############################################################################ |
{ |
short int m,n; |
signed int sinus; |
if (winkel < 0) |
{ |
m = -1; |
winkel = abs(winkel); |
} |
else m = +1; |
// Quadranten auswerten |
if (winkel <= 90) n=1; |
else if ((winkel > 90) && (winkel <= 180)) {winkel = 180 - winkel; n = 1;} |
else if ((winkel > 180) && (winkel <= 270)) {winkel = winkel - 180; n = -1;} |
else {winkel = 360 - winkel; n = -1;} //if ((winkel > 270) && (winkel <= 360)) |
sinus = pgm_read_word(&pgm_sinus_i[winkel]); |
return (sinus*m*n); |
} |
/* |
const uint8_t pgm_asin[201] PROGMEM = {0,0,1,1,1,1,2,2,2,3,3,3,3,4,4,4,5,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9,10,10,10,11,11,11,12,12,12,12,13,13,13,14,14,14,14,15,15,15,16,16,16,17,17,17,17,18,18,18,19,19,19,20,20,20,20,21,21,21,22,22,22,23,23,23,24,24,24,25,25,25,25,26,26,26,27,27,27,28,28,28,29,29,29,30,30,30,31,31,31,32,32,32,33,33,33,34,34,34,35,35,35,36,36,37,37,37,38,38,38,39,39,39,40,40,41,41,41,42,42,42,43,43,44,44,44,45,45,46,46,46,47,47,48,48,49,49,49,50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57,58,58,59,59,60,60,61,62,62,63,64,64,65,66,66,67,68,68,69,70,71,72,73,74,75,76,77,79,80,82,84,90}; |
//############################################################################ |
// Akurssinusfunktion im Gradmaß |
int8_t asin_i(signed int i) |
//############################################################################ |
{ |
signed char m; |
if (i < 0) {m=-1;i=abs(i);} |
else m=1; |
i %= 200; |
return (pgm_read_byte(&pgm_asin[i]) * m); |
} |
*/ |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/mymath.h |
---|
0,0 → 1,8 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
extern signed int atan2_i(signed int x, signed int y); |
extern signed int cos_i(signed int winkel); |
extern signed int sin_i(signed int winkel); |
//extern int8_t asin_i(signed int i); |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/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/MicroMag3_Nick666/Festkomma/V0.67g/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/MicroMag3_Nick666/Festkomma/V0.67g/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/MicroMag3_Nick666/Festkomma/V0.67g/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/MicroMag3_Nick666/Festkomma/V0.67g/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/MicroMag3_Nick666/Festkomma/V0.67g/timer0.c |
---|
0,0 → 1,145 |
#include "main.h" |
volatile unsigned int CountMilliseconds = 0; |
volatile unsigned char UpdateMotor = 0; |
volatile unsigned int beeptime = 0; |
unsigned int BeepMuster = 0xffff; |
int ServoValue = 0; |
enum { |
STOP = 0, |
CK = 1, |
CK8 = 2, |
CK64 = 3, |
CK256 = 4, |
CK1024 = 5, |
T0_FALLING_EDGE = 6, |
T0_RISING_EDGE = 7 |
}; |
SIGNAL (SIG_OVERFLOW0) // 9,8kHz |
{ |
static unsigned char cnt_1ms = 1,cnt = 0; |
unsigned char pieper_ein = 0; |
// TCNT0 -= 250;//TIMER_RELOAD_VALUE; |
if(!cnt--) |
{ |
cnt = 10; |
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) timer0_MM3(); // Kompass auslesen |
} |
void Timer_Init(void) |
{ |
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/MicroMag3_Nick666/Festkomma/V0.67g/timer0.h |
---|
0,0 → 1,15 |
#define TIMER_TEILER CK8 |
#define TIMER_RELOAD_VALUE 250 |
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 int ServoValue; |
extern unsigned int BeepMuster; |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/COPYING |
---|
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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/COPYING.LESSER |
---|
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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/Flight-Ctrl_MEGA644_V0_67g.hex |
---|
0,0 → 1,1958 |
:100000000C9486030C94A3030C94A3030C94A303F5 |
:100010000C94A3030C94A3030C94A3030C94A303C8 |
:100020000C94A3030C946D0C0C94A3030C94A303E5 |
:100030000C94E2150C94A3030C94A3030C94A30357 |
:100040000C94A3030C94A3030C94100D0C94213670 |
:100050000C9460060C94A3030C942A060C94A3033E |
:100060000C94B80D0C94A3030C9421150C94A303C9 |
:10007000AA086209B608620962096209F808C90893 |
:1000800062096209EB0824092409240924092409C6 |
:10009000FC0862096209E4086209F408E20DF70D40 |
:1000A000000E0A0E270E3F0E580E750E920EAF0E62 |
:1000B000930FDD1025118611DC113012B4125B1381 |
:1000C000B113D5130B1447148514BE140A0A0D007E |
:1000D0004E65757472616C0048656164696E67484D |
:1000E0006F6C64000A0D537465756572756E673ABE |
:1000F00020004F4B0A0D000A0D4162676C65696371 |
:1001000068204C756674647275636B73656E736F8B |
:10011000722E2E000A0D4B616C6962726965726500 |
:10012000204E65757472616C6C616765000A0D4BD9 |
:10013000616C69627269657265204B6F6D70617385 |
:1001400073000A0D42656E75747A652050617261A4 |
:100150006D657465727361747A202564000A0D49B7 |
:100160006E69742E20454550524F4D3A2047656EBA |
:100170006572696572652044656661756C742D50A1 |
:100180006172616D657465722E2E2E000A0D3D3D03 |
:100190003D3D3D3D3D3D3D3D3D3D3D3D3D3D3D3D8F |
:1001A0003D3D3D3D3D3D3D3D3D3D3D3D000A0D4616 |
:1001B0006C69676874436F6E74726F6C0A0D486186 |
:1001C0007264776172653A25642E25640A0D536F57 |
:1001D0006674776172653A5625642E25642563201E |
:1001E000002E005A5F52616E67653A2020253469FF |
:1001F00000595F52616E67653A20202534690058C6 |
:100200005F52616E67653A2020253469004D4D3399 |
:100210002052616E6765005A5F4F66667365743A77 |
:10022000202025336900595F4F66667365743A2054 |
:100230002025336900585F4F66667365743A202045 |
:10024000253369004D4D33204F66660052616E675D |
:10025000653A2533692D253369005374656C6C75D7 |
:100260006E673A2025336900536574706F696E7448 |
:10027000202025336900536572766F202000506F6F |
:100280007469343A202025336900506F7469333A19 |
:10029000202025336900506F7469323A20202533BD |
:1002A0006900506F7469313A202025336900537416 |
:1002B0006172743A2020202020253569004D657335 |
:1002C00073776572743A2020253569005269636836 |
:1002D00074756E673A2020253569004B6F6D70612B |
:1002E00073732020202020202000456D70662E5042 |
:1002F0006567656C3A253569005370616E6E756E81 |
:10030000673A202025356900486F636820253469E5 |
:1003100020282533692900526F6C6C202534692010 |
:100320002825336929004E69636B2025346920280C |
:100330002533692900414343202D2053656E736F97 |
:1003400072004769657220253469202825336929A0 |
:1003500000526F6C6C2025346920282533692900F0 |
:100360004E69636B202534692028253369290047AD |
:100370006965722025346920282533692900526F68 |
:100380006C6C20253469202825336929004E696367 |
:100390006B20253469202825336929004779726F3D |
:1003A000202D2053656E736F720050333A253469E7 |
:1003B000202050343A253469200050313A253469E0 |
:1003C000202050323A253469200047733A25346999 |
:1003D000202047693A25346920004E693A2534695E |
:1003E0002020526F3A25346920004B373A25346972 |
:1003F00020204B383A25346920004B353A253469A2 |
:1004000020204B363A25346920004B333A25346995 |
:1004100020204B343A25346920004B313A25346989 |
:1004200020204B323A25346920004B6F6D70617388 |
:10043000733A20202025356900526F6C6C3A2020D9 |
:1004400020202020253569004E69636B3A2020204A |
:1004500020202025356900616B742E204C61676572 |
:100460000048F668656E726567656C756E67004B6F |
:1004700065696E6520004F66662020202020203AA6 |
:1004800020253569004C756674647275636B3A207B |
:1004900025356900536F6C6C486F6568653A202597 |
:1004A000356900486F6568653A2020202020253591 |
:1004B000690028632920486F6C6765722042757354 |
:1004C000730053657474696E673A20256420004890 |
:1004D000573A5625642E25642053573A25642E2515 |
:1004E000642563002B2B204D696B726F4B6F70740A |
:1004F0006572202B2B005B25695D0000010203045F |
:100500000405060708090A0B0B0C0D0E0F1011113C |
:10051000121314151516171818191A1B1B1C1D1D5C |
:100520001E1F1F202121222323242425252627279F |
:10053000282829292A2A2B2B2C2C2D2D2D2E2E2F05 |
:100540002F3030303131323232333333343434358A |
:100550003535363636373737373838383939393927 |
:100560003A3A3A3A3B3B3B3B3C3C3C3C3C3D3D3DD4 |
:100570003D3E3E3E3E3E3F3F3F3F3F3F404040408E |
:100580004040414141414141424242424242424354 |
:10059000434343434343444444444444444445451F |
:1005A00045454545454545464646464646464646F2 |
:1005B00047474747474747474747474848484848C6 |
:1005C00048484848484849494949494949494949A1 |
:1005D000494949494A4A4A4A4A4A4A4A4A4A4A4A7F |
:1005E0004A4A4B4B4B4B4B4B4B4B4B4B4B4B4B4B5D |
:1005F0004B4B4B4C4C4C4C4C4C4C4C4C4C4C4C4C3E |
:100600004C4C4C4C4C4C4D4D4D4D4D4D4D4D4D4D20 |
:100610004D4D4D4D4D4D4D4D4D4D4D4D4E4E4E4E06 |
:100620004E4E4E4E4E4E4E4E4E4E4E4E4E4E4E4EEA |
:100630004E4E4E4E4E4E4F4F4F4F4F4F4F4F4F4FD0 |
:100640004F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4FBA |
:100650004F4F4F4F4F000012002400360047005903 |
:10066000006B007D008F00A000B200C300D500E643 |
:1006700000F80009011A012B013C014D015E016FD8 |
:100680000180019001A001B101C101D101E101F09E |
:100690000100020F021F022E023D024B025A0268A5 |
:1006A00002760284029202A002AD02BA02C702D40C |
:1006B00002E102ED02F902050310031C03270332D5 |
:1006C000033C03470351035B0364036E037703801A |
:1006D00003880390039803A003A703AF03B503BCEB |
:1006E00003C203C803CE03D303D803DD03E203E64A |
:1006F00003EA03ED03F003F303F603F803FA03FC44 |
:1007000003FE03FF03FF03000400040011241FBEC7 |
:10071000CFEFD0E1DEBFCDBF13E0A0E0B1E0EAE96A |
:10072000F7E702C005900D92A23AB107D9F717E09A |
:10073000A2EAB3E001C01D92AD3BB107E1F70E9410 |
:10074000E3030C94CC3B0C94000022E030E0D90190 |
:100750000E94AE3B802D863028F082E0D901082E21 |
:100760000E94BB3B99270895FB01863008F085E085 |
:10077000282F2150842F9927A6E42A9FD0011124E5 |
:10078000A65FBF4F019724F001900E94BB3BFACFB8 |
:10079000A2E0B0E0022E0E94BB3B0895FB01282F8F |
:1007A000863008F025E0842F99272150A6E42A9F5F |
:1007B000D0011124A65FBF4F019724F00E94AE3BE9 |
:1007C0000192FACF08951F93CF93DF9314B815B811 |
:1007D000189B02C08BE001C08AE08093000181E891 |
:1007E00087B98FEF88B98BE184B981E085B98EE351 |
:1007F0008AB9579A87EF8BB984B7877F84BF809176 |
:1008000060008861809360001092600080ED97E046 |
:100810009093BD038093BC03109248041092470448 |
:100820001092FE061092FD061092460410924504A6 |
:100830001092440410924304809100018A3011F414 |
:10084000289801C0289A0E943A0C0E94E1070E9451 |
:10085000CD150E94B20D0E9405150E94673878944C |
:100860001092FC0583E48093FD0587E08093FE05EC |
:100870002091000187E690E09F938F9383E490E0BE |
:100880009F938F931F921F92822F6AE00E94013BD9 |
:10089000892F99279F938F93822F0E94013B99273D |
:1008A0009F938F938DEA91E09F938F931F920E9465 |
:1008B000C1098CE891E09F938F931F920E94C10918 |
:1008C000299AA1E0B0E00E94AE3B802D2DB73EB743 |
:1008D000205F3F4F2DBF843409F441C08DE591E086 |
:1008E0009F938F931F920E94C1090E94663510E06A |
:1008F0000F900F900F90123049F40E94D43446E4C8 |
:1009000065E277E082E00E94B40302C0133051F444 |
:100910000E94433446E465E277E083E00E94B4033A |
:1009200014E002C0143010F00E94D43446E465E2B2 |
:1009300077E0812F0E94B4031F5F1630E0F283E05E |
:1009400022E030E0D901082E0E94BB3B84E4215014 |
:100950003040D901082E0E94BB3B0E945E21C2E0BC |
:10096000D0E0DE010E94AE3B802D863028F082E090 |
:10097000DE01082E0E94BB3B46E465E277E00E9460 |
:10098000CE03DE010E94AE3B802D863028F082E04F |
:10099000DE01082E0E94BB3B99279F938F9382E430 |
:1009A00091E09F938F931F920E94C10984EF91E081 |
:1009B0000E94580CEC010F900F900F900F900F9029 |
:1009C000CE010E94610C8823D9F3E0912707FF270D |
:1009D000EE0FFF1FE750F94F808191818536910519 |
:1009E000C4F0E0912807FF27EE0FFF1FE750F94FF3 |
:1009F000808191818536910564F08DE291E09F932D |
:100A00008F931F920E94C1090E949B370F900F90F5 |
:100A10000F90E0912707FF27EE0FFF1FE750F94FD8 |
:100A20008081918185369105C4F0E0912807FF27E8 |
:100A3000EE0FFF1FE750F94F808191818C599F4F36 |
:100A400064F484E191E09F938F931F920E94C10907 |
:100A50000E945E210F900F900F9080912D0780FFD4 |
:100A600020C087EF90E09F938F931F920E94C1094F |
:100A700088EE93E00E94580CEC010E9434100F9015 |
:100A80000F900F90CE010E94610C8823D9F382EF62 |
:100A900090E09F938F931F920E94C1090F900F9037 |
:100AA0000F900E947320809100018A3011F42898E1 |
:100AB00001C0289A80ED97E09093BD038093BC031A |
:100AC00088EE93E09093F7058093F60585E5809393 |
:100AD000F10584EE90E09F938F931F920E94C109CD |
:100AE00080912D070F900F900F9082FF03C088ED2B |
:100AF00090E002C080ED90E09F938F931F920E9440 |
:100B0000C1090F900F900F908CEC90E09F938F9302 |
:100B10001F920E94C1090E94781088E893E1909387 |
:100B20008603809385030F900F900F908091BB03F5 |
:100B3000882309F462C01092BB030E94D1210E9455 |
:100B40002C20209100012A3011F4289801C0289A05 |
:100B500080910301882321F081508093030110C00C |
:100B60001092B1031092B2031092630410926204C7 |
:100B70001092650410926404109267041092660447 |
:100B800080914204882329F080914204815080930F |
:100B900042048091850390918603892B01F585E0BD |
:100BA00090E090938603809385030E94A515809121 |
:100BB0000403909105038F5F9F4FF9F480914904DE |
:100BC0008823D9F080E197E29093BD038093BC0322 |
:100BD00080E890E090930503809304030EC0809119 |
:100BE00085039091860301979093860380938503F4 |
:100BF0002A3011F4289801C0289A0E94FC070E940C |
:100C00008C08CE010E94610C882309F48FCF2091BB |
:100C100008033091090380913D0799272817390768 |
:100C20009CF480910403909105038F5F9F4F61F4C2 |
:100C300080E797E19093BD038093BC0380E093E04D |
:100C4000909305038093040384E690E00E94580C7F |
:100C5000EC016CCF1F920F920FB60F9211248F935D |
:100C60009F93EF93FF93809101018823E1F480919A |
:100C7000B7039091B80301969093B8038093B7039C |
:100C8000FC01ED53FB4FE081ED3019F08639910501 |
:100C900039F41092B8031092B70381E080930101F8 |
:100CA000E093C60004C01092B8031092B703FF91FE |
:100CB000EF919F918F910F900FBE0F901F901895FD |
:100CC0001F920F920FB60F9211242F933F934F93C1 |
:100CD0005F936F937F938F939F93EF93FF936091B5 |
:100CE000C6003091B403332371F4633239F4809138 |
:100CF000A603882319F481E08093B4036093060669 |
:100D0000862F992713C0363908F053C0E32FFF27E9 |
:100D10008091B5039091B6036D3069F0EA5FF94FA9 |
:100D200060833F5F3093B403860F911D9093B603A9 |
:100D30008093B50340C0EA5FF94F32972081329625 |
:100D400072913196AC01421B5109471B51095F70EA |
:100D50005093B6034093B503CA0156E09695879524 |
:100D60005A95E1F7835C8217F9F4842F8F73835CC3 |
:100D70008717D1F48091A6038823D9F481E080936A |
:100D8000A6033093A903608380910806823589F415 |
:100D900088E190E02CE00FB6F894A895809360006D |
:100DA0000FBE2093600005C08091A8038F5F8093E1 |
:100DB000A8031092B403FF91EF919F918F917F91BF |
:100DC0006F915F914F913F912F910F900FBE0F90B8 |
:100DD0001F901895AC0120E030E060E070E0E3EC9B |
:100DE000F4E005C08191280F311D6F5F7F4F6417BC |
:100DF0007507C1F73F70FA01ED53FB4FC90166E07B |
:100E0000969587956A95E1F7835C8083FA01EC53A8 |
:100E1000FB4F2F73235C20838DE0818310920101AF |
:100E20008091C3048093C60008950F931F93CF93BE |
:100E3000DF938A01722F93E29093C3046093C404FA |
:100E40008093C50460E0A6ECB4E044C0F801E60F6E |
:100E5000F11D90816F5F715019F4E0E040E00FC028 |
:100E6000F801E60FF11D40816F5F715011F4E0E071 |
:100E700006C0F801E60FF11DE0816F5F7150892F08 |
:100E800086958695835C8C935527892F9927837047 |
:100E9000907024E0880F991F2A95E1F79A0194E059 |
:100EA000369527959A95E1F7822B835CED0189832E |
:100EB0004F705070440F551F440F551F8E2F829551 |
:100EC000869586958370842B835C8A83EF73E35CBD |
:100ED000EB831496772309F0B9CFCD01835C94405E |
:100EE0000E94EA06DF91CF911F910F9108951F9301 |
:100EF000CF93DF93EC0170E0A22FBB27129748C07D |
:100F0000E42FFF27EA5FF94F30814F5FE42FFF277F |
:100F1000EA5FF94F50814F5FE42FFF27EA5FF94FF7 |
:100F200010814F5FE42FFF27EA5FF94F20814F5F69 |
:100F3000842F9927A817B90774F15D53FE01E70FB5 |
:100F4000F11D3D53330F330F852F82958F70382B52 |
:100F50003083613001F1912F9D537F5FFE01E70FD8 |
:100F6000F11D71505295507F892F86958695582B8B |
:100F7000508363506F3F79F07E5FFE01E70FF11DF4 |
:100F80009295990F990F907C2D53922B90837F5FB0 |
:100F9000662309F0B5CFDF91CF911F9108951F937C |
:100FA000182F8A3019F48DE00E94CF078091C0007D |
:100FB00085FFFCCF1093C60080E090E01F9108955C |
:100FC0000895E1ECF0E088E18083A0ECB0E08C9142 |
:100FD00082608C938081806880838081806480833C |
:100FE0008AE28093C40088EC90E00E94580C9093B1 |
:100FF000F0058093EF05089580910101882309F49D |
:101000008AC08091A203882371F080910101882316 |
:1010100051F02BE041EF55E06091C20487E40E945B |
:1010200015071092A2038091EF059091F0050E94A0 |
:10103000610C882321F48091A4038823B1F080916E |
:101040000101882391F022E44CE956E06091C2044A |
:1010500084E40E9415071092A40384EF91E00E949B |
:10106000580C9093F0058093EF05609102016F3F5B |
:1010700089F0462F552734E0440F551F3A95E1F784 |
:101080004C5F5E4F605D20E181E40E9415078FEFA9 |
:10109000809302018091A303882359F1809101017B |
:1010A000882339F10E9481101092A3033091AB0381 |
:1010B000932F9F5F9093AB03943021F08091AC030A |
:1010C000882359F026E149EF56E060E084E30E946E |
:1010D00015078FEF8093AB030CC044E1949FA001F0 |
:1010E0001124465E5C4F24E160E0832F8F5C0E94F8 |
:1010F00015078091A503882371F080910101882351 |
:1011000051F02AE04CEF55E06091C20486E50E9460 |
:1011100015071092A5030895A2E0B0E0E2E9F8E017 |
:101120000C94803B8091A603882309F4CDC08FEFF7 |
:1011300080930301809108069927AA27BB27FC0109 |
:10114000E156F040E631F10508F0BCC0E85CFF4F25 |
:101150000C94A83B2091A90343E062E0CE010196E4 |
:101160000E947707898180930201ACC02091A90376 |
:1011700043E06BE081EF95E00E9477078091E20306 |
:101180009091F305892B8093E20381E08093A4037F |
:1011900099C02091A90343E062E0CE0101960E942C |
:1011A00077078091E2039981892B8093E2038A81FA |
:1011B0008F3F21F481E08093AC0302C01092AC0316 |
:1011C00081E08093A3037EC02091A90343E064E003 |
:1011D0008DEA93E006C02091A90343E063E081EB30 |
:1011E00093E00E9477076EC081E08093A5036AC0F8 |
:1011F00081E08093A20366C02091A90343E062E0EE |
:10120000CE0101960E94770789818F3F89F0863051 |
:1012100010F085E0898346E465E277E089810E94E9 |
:10122000CE03898126E445E257E06091C20408C0FC |
:101230001091C2040E94A50326E445E257E0612F05 |
:10124000855B0E9415073EC02091A90343E066E438 |
:1012500085E297E00E9477078091080646E465E200 |
:1012600077E08B560E94B403809108068B56A2E06B |
:10127000B0E0082E0E94BB3B60915007772788277B |
:10128000992724EC39E040E050E00E94E23A609374 |
:101290008703709388038093890390938A036091F6 |
:1012A00051077727882799270E94E23A60938B039A |
:1012B00070938C0380938D0390938E030E94A503FB |
:1012C0000E94BC211092A603E3E0CE5F0C949C3BED |
:1012D000982F8091DE06813069F48091E103E82F38 |
:1012E000FF27E65EFC4F90838F5F8093E10321E050 |
:1012F00030E005C0892F0E94CF07282F3327C9016E |
:1013000008951F93182F04C080E30E9468091150AC |
:101310001116D4F31F9108951F93182F04C080E273 |
:101320000E94680911501116D4F31F9108950F936C |
:101330001F93CF93DF938C01EB0108C0F8010F5F7F |
:101340001F4FE4918E2F0E94680921972097B1F7D3 |
:10135000DF91CF911F910F9108950F931F93CF931A |
:10136000DF938C01EB0106C0F80181918F010E948F |
:10137000680921972097C1F7DF91CF911F910F91B5 |
:101380000895A3E3B0E0E7ECF9E00C94713B2996F3 |
:101390008FAD29978093DE06CE01855B9F4F9D839D |
:1013A0008C832B968EAD9FAD2B979FA78EA7222463 |
:1013B0003324210102C0130124010EA51FA502C080 |
:1013C0000F5F1F4FF801F490FF2019F0F5E2FF16B0 |
:1013D000B9F7B8018EA59FA5681B790B11F00E9483 |
:1013E0009709FF2009F442C20F5F1F4F1FA70EA7E6 |
:1013F0001982AC81BD811BAA1AAA9FEF99ABEEA5F9 |
:10140000FFA5CF0101969FA78EA7B49095E7B916C7 |
:1014100021F08B2D8062883789F4EBA9E0FF07C0AB |
:101420002D903D904D905C901397149607C08D9130 |
:101430009C9111971C01442455241296F0E2BF168A |
:1014400021F489818823D9F685C083E2B81609F48E |
:1014500083C09AE2B91621F0EDE2BE1669F408C025 |
:10146000FD011296E081EAABE7FFC9CFE195EAAB57 |
:10147000FBA9F061FF7D72C08BE2B81609F46AC067 |
:101480009EE2B916B1F52EA53FA52F5F3F4FEEA501 |
:10149000FFA584918A3221F0B82E20E030E01BC0F5 |
:1014A000FD0112964081518157FF02C04FEF5FEF5F |
:1014B00049AB3FA72EA7A3CFC90103E0880F991F0F |
:1014C0000A95E1F7220F331F280F391F2B0D311D0D |
:1014D00020533040B49031968B2D80538A3060F386 |
:1014E000FFA7EEA7A90137FF02C04FEF5FEF49AB9F |
:1014F0008DCFF0E3BF1631F48BA984FD80CF8062DD |
:101500008BAB7DCF8B2D81538930E8F420E030E028 |
:10151000C901F3E0880F991FFA95E1F7220F331FF5 |
:10152000280F391F2B0D311D20533040EEA5FFA58C |
:10153000CF0101969FA78EA7B4908B2D80538A3040 |
:1015400038F32AAB63CF98E6B91651F4EBA9E460FF |
:10155000EBAB55CFB98253CFFBA9F860FBAB4FCFB4 |
:101560008CE6B81621F49BA991609BAB48CFBD8354 |
:10157000AC83E3E6BE1639F41296BD83AC831297B2 |
:101580008C918E8318C1F4E4BF1639F084E6B81646 |
:1015900039F099E6B91659F503C0EBA9E160EBAB58 |
:1015A000FBA9F0FF08C01496BD83AC835E904E90FB |
:1015B0003E902E900AC01296BD83AC839E918E9170 |
:1015C0001C01442437FC4094542C57FC03C08AE08F |
:1015D00088AB92C05094409430942094211C311CCC |
:1015E000411C511C8DE289839AE098AB85C0EFE4E1 |
:1015F000BE1629F0FFE6BF1639F488E061C09BA94A |
:1016000091609BABE8E056C0F0E7BF1671F412960C |
:10161000BD83AC839E918E911C01442455248BA9DB |
:1016200080648BAB78E7B72E5EC0E3E7BE16D9F5D2 |
:101630001296BD83AC83DE90CE90C114D10489F4A0 |
:1016400088E28E838EE68F8385E788878CE689879C |
:101650008A8789E28B871C8666E0C62ED12CCC0E49 |
:10166000DD1EF9A9F7FD13C04F2F552747FD5095F3 |
:1016700060E070E0C6010E946D39009711F419A96D |
:101680000DC08C1919A981174CF4182F07C0F60149 |
:1016900001900020E9F731971E2F1C191982420191 |
:1016A000310140E094C085E5B81631F095E7B916F0 |
:1016B00049F4EAE0E8AB1FC0FBA9F160FBAB8AE0AC |
:1016C00088AB19C098E5B91621F0E8E7BE1609F015 |
:1016D0006EC0FBA9F3FD02C080E1F2CF21143104FA |
:1016E0004104510419F490E198AB05C0EBA9E06402 |
:1016F000EBABF0E1F8AB198289A987FD03C09BA988 |
:101700009F7D9BAB211431044104510461F4E9A98C |
:10171000EE2349F46624772443015EE2C52ED12CE2 |
:10172000CC0EDD1E3EC04EE2C42ED12CCC0EDD1EF2 |
:10173000F8A9EF2EFF2400271127C201B101A8014B |
:1017400097010E94343B6A3020F430E3A32EA60EAA |
:1017500008C027E5A22EA60E88E5B81611F49FED65 |
:10176000A922F601A2926F01C201B101A80197015D |
:101770000E94343B39014A012E143F0440065106B1 |
:1017800018F019012A01D9CFF8A9F83051F48BA922 |
:1017900083FF07C090E3A91621F080E3F60182934E |
:1017A0006F01CE018C19182F125D49A910C0BB2002 |
:1017B00009F45CC0BE8219824201310100E096E06A |
:1017C000C92ED12CCC0EDD1E11E021E005C0212F49 |
:1017D000042F011B07FD00E08981882319F0812F68 |
:1017E0008F5F07C09BA996FD02C0812F02C0822F88 |
:1017F0008E5FA82EA00EEBA9EE2EFF2480E3482ECC |
:10180000512C4E205F204114510421F48AA98A19D9 |
:101810000E948C098981882329F061E070E0CE0163 |
:10182000019609C0E6FE09C080E38A83BB8262E0BC |
:1018300070E0CE0102960E94AD09F0E24F1651040D |
:1018400021F48AA98A190E948109802F0E948109A6 |
:10185000612F772767FD7095C6010E94AD09E4FEF0 |
:10186000AACD8AA98A190E948C09A5CDE2E1CD5C96 |
:101870000C948D3B82E085BD83EA84BD17BC88E76C |
:1018800088BD96E096BD83EC8093B0009093B10044 |
:10189000E0E7F0E0808182608083EEE6F0E0808126 |
:1018A000816080838AE08093B3001092B200089533 |
:1018B0002091B9033091BA032F5F3F4F820F931FDE |
:1018C00008952091B9033091BA03821B930B892F9D |
:1018D000992786958074992708951F920F920FB6C5 |
:1018E0000F921124EF92FF920F931F932F933F9328 |
:1018F0004F935F936F937F938F939F93AF93BF9318 |
:10190000CF93DF93EF93FF938091060381508093F1 |
:1019100006038F3F09F069C083E88093B00080918F |
:101920009C03C82FDD27D093BF03C093BE038091D3 |
:101930005A07E09047072091F5033091F603409154 |
:10194000F7035091F80380FF18C0FF2400271127E8 |
:10195000CA01B90120E830E040E050E00E94563B67 |
:10196000C801B7010E94E23A20E032E040E050E0D6 |
:101970000E94563BC20FD31F17C0FF240027112718 |
:10198000CA01B90120E830E040E050E00E94563B37 |
:10199000C801B7010E94E23A20E032E040E050E0A6 |
:1019A0000E94563BC21BD30BD093BF03C093BE0310 |
:1019B0002091BE033091BF038091480799272817D3 |
:1019C000390734F08091490799278217930724F447 |
:1019D0009093BF038093BE038091BE038093B300B6 |
:1019E00080914A078093060304C083E08093B0008F |
:1019F0005F98FF91EF91DF91CF91BF91AF919F9150 |
:101A00008F917F916F915F914F913F912F911F9196 |
:101A10000F91FF90EF900F900FBE0F901F901895B1 |
:101A20001F920F920FB60F9211242F933F934F9353 |
:101A30005F936F937F938F939F93AF93BF93EF9336 |
:101A4000FF938091C00381508093C0038F3FB9F40E |
:101A50008AE08093C003809107038F5F8170809339 |
:101A60000703882319F481E08093BB038091B903B5 |
:101A70009091BA0301969093BA038093B903809131 |
:101A8000BC039091BD030297B0F08091BC0390918C |
:101A9000BD0301979093BD038093BC038091BC0369 |
:101AA0009091BD0320910403309105038223932379 |
:101AB000892BD1F406C08FEF9FEF9093050380939D |
:101AC0000403809100018A3039F404C05A9A05C099 |
:101AD000479A03C05A9801C0479880912D0783FF09 |
:101AE00008C00E94693705C0809100018A3081F7E3 |
:101AF000EDCFFF91EF91BF91AF919F918F917F912A |
:101B00006F915F914F913F912F910F900FBE0F906A |
:101B10001F9018952091B9033091BA032F5F3F4F62 |
:101B2000280F391F4FEE02C040937A008091B9030D |
:101B30009091BA03B901681B790B77FFF5CF08952F |
:101B40002091B9033091BA032F5F3F4F280F391FFF |
:101B50008091B9039091BA03A901481B590B57FF13 |
:101B6000F7CF089510927C008FEE80937A0008954D |
:101B70001F920F920FB60F921124DF92EF92FF92F5 |
:101B80000F931F932F933F934F935F936F937F9385 |
:101B90008F939F93AF93BF93CF93DF93EF93FF9375 |
:101BA00010927A008091DD03D82ED394D092DD0379 |
:101BB000E82FFF27EB30F10508F038C2E25BFF4F5A |
:101BC0000C94A83B80917800909179009093DC036D |
:101BD0008093DB0381E08093DE038091D5039091B5 |
:101BE000D60301969093D6038093D50315C28091B6 |
:101BF0007800909179009093DA038093D90390C094 |
:101C000080917800909179009093D8038093D703C6 |
:101C100084E086C1409108035091090380917800C7 |
:101C2000909179009A01220F331F240F351F63E032 |
:101C300070E00E940D3B260F371F3695279536958D |
:101C40002795309309032093080386E069C18091AA |
:101C50009007909191072091780030917900821B34 |
:101C6000930B9093E0068093DF068091DF069091BE |
:101C7000E0069093C8038093C70387E051C1809129 |
:101C800078009091790020918E0730918F07821B08 |
:101C9000930B9093EB068093EA068091EA0690916D |
:101CA000EB069093CA038093C9031092DE03B4C17C |
:101CB000809100012091DB033091DC038A3049F4EC |
:101CC0008091780090917900820F931F9695879567 |
:101CD00006C08091780090917900820F931F9093B5 |
:101CE000C6038093C50381E01BC180910001209150 |
:101CF000D9033091DA038A3049F4809178009091C9 |
:101D00007900820F931F9695879506C08091780081 |
:101D100090917900820F931F9093C4038093C30323 |
:101D200082E0FEC0809100012091D7033091D8035A |
:101D30008A3049F48091780090917900820F931F46 |
:101D40009695879506C08091780090917900820FD2 |
:101D5000931F9093C2038093C10385E0E1C060911B |
:101D6000780070917900E0909207F09093070091CD |
:101D7000940710919507882777FD8095982F0E94EA |
:101D8000203AA80197010E947A390E94033A709381 |
:101D9000CC036093CB032091CB033091CC03E09133 |
:101DA000DF06F091E0068091EA069091EB0697FF3E |
:101DB00003C0909581959F4F64E070E00E94213BA5 |
:101DC000EB01CF01F7FF03C0909581959F4F64E031 |
:101DD00070E00E94213B260F371F2C0F3D1F3093D0 |
:101DE000CC032093CB038091CB039091CC0302973B |
:101DF00004F16091920770919307809194079091FC |
:101E0000950720E030E048E454E40E942A3A882311 |
:101E10000CF03CC0609192077091930780919407F9 |
:101E2000909195072AE037ED43EA5CE30E947B3905 |
:101E300025C08091CB039091CC038F5F9F4F34F5E9 |
:101E40006091920770919307809194079091950704 |
:101E500020E030E046E154E40E942D3A1816B4F434 |
:101E600060919207709193078091940790919507E4 |
:101E70002AE037ED43EA5CE30E947A3960939207E7 |
:101E800070939307809394079093950781E08093D4 |
:101E9000D20380917800909179009093E20680932C |
:101EA000E10620912D0430912E0440912F04509191 |
:101EB00030048091CB039091CC03AA2797FDA09585 |
:101EC000BA2F280F391F4A1F5B1F20932D04309310 |
:101ED0002E0440932F0450933004E0902D04F09092 |
:101EE0002E0400912F041091300460912D04709104 |
:101EF0002E0480912F049091300420E034E040E0E3 |
:101F000050E00E94563BE21AF30A040B150BE092D4 |
:101F10002D04F0922E0400932F041093300483E0DC |
:101F20008093DE0379C08091EF069091F0062091B6 |
:101F3000780030917900820F931F9093F006809380 |
:101F4000EF068091E7068F5F8093E7068091E706B2 |
:101F5000853008F46BC0809178009091790090935F |
:101F60000F0380930E031092E7068091E306909191 |
:101F7000E4062091EF063091F006821B930B20912E |
:101F80004A0430914B04821B930B9093D4038093AB |
:101F9000D3036091EF067091F006E0900A03F09091 |
:101FA0000B0300910C0310910D03882777FD80959A |
:101FB000982FA8019701220F331F441F551F2E0D84 |
:101FC0003F1D401F511F620F731F841F951F24E088 |
:101FD00030E040E050E00E94563B20930A033093EB |
:101FE0000B0340930C0350930D032091E3063091B3 |
:101FF000E40680910A0390910B03A0910C03B09129 |
:102000000D03281B390B30934B0420934A04109284 |
:10201000F0061092EF060AC08091DE0380937C00E8 |
:10202000DD2051F08FEE80937A0006C01092DE031F |
:102030001092DD0310927C00FF91EF91DF91CF9120 |
:10204000BF91AF919F918F917F916F915F914F91D0 |
:102050003F912F911F910F91FF90EF90DF900F9084 |
:102060000FBE0F901F901895CF93DF93A3E0B0E0C1 |
:102070000E94AE3B802DC82FDD27C531D10508F069 |
:102080002A97C7BD84E690E00E948A0D80910E03D6 |
:1020900090910F0382559340D0F4C0E0D0E017C078 |
:1020A000C7BD82E390E00E948A0D81EE91E09F938C |
:1020B0008F931F920E94C10980910E0390910F038C |
:1020C0000F900F900F908458934020F02196CA3FB4 |
:1020D000D10530F3A3E0B0E00C2E0E94BB3BC093CF |
:1020E000EC068CE291E00E948A0DDF91CF91089579 |
:1020F000EAE1F3E080E2819393E0EA36F907D9F769 |
:1021000008951F938091E203282F3327C90181701E |
:102110009070682F8823A9F08091E303882311F041 |
:10212000815002C080916A038093E303EAE1F3E007 |
:1021300080E2819393E0EA36F907D9F78FEF809335 |
:10214000AB03A9014270507021FF10C08091E303DE |
:102150008F5F8093E303EAE1F3E080E2819393E011 |
:10216000EA36F907D9F78FEF8093AB03662321F0A6 |
:10217000452B11F01092E30381E18093E1038091FC |
:10218000E30399279F938F9386EF94E09F938F9318 |
:1021900081E08F930E94C1098091E3030F900F901B |
:1021A0000F900F900F90E82FFF27ED30F10508F00A |
:1021B00023C4E75AFF4F0C94A83B1092E10384EE2E |
:1021C00094E09F938F9311E01F930E94C10984E1D3 |
:1021D0008093E1032091000187E690E09F938F9325 |
:1021E00083E490E09F938F931F921F92822F6AE067 |
:1021F0000E94013B892F99279F938F93822F0E94E2 |
:10220000013B99279F938F938FEC94E09F938F933B |
:102210001F930E94C10988E28093E1030E94A503F5 |
:1022200099279F938F9382EC94E09F938F931F93B2 |
:102230000E94C1098CE38093E10382EB94E09F93B9 |
:102240008F931F930E94C10988C280912D0780FF40 |
:1022500044C01092E10380914A0490914B049F93F3 |
:102260008F9383EA94E09F938F9311E01F930E94D2 |
:10227000C10984E18093E10380914C0490914D0465 |
:102280009F938F9384E994E09F938F931F930E9471 |
:10229000C10988E28093E10380910E0390910F03BE |
:1022A0009F938F9385E894E09F938F931F930E9451 |
:1022B000C1098CE38093E1038091EC0699279F93F9 |
:1022C0008F9386E794E09F938F931F930E94C10999 |
:1022D0008DB79EB744968DBF94C384E18093E1038C |
:1022E0008FE694E09F938F9311E01F930E94C109A2 |
:1022F00088E28093E10381E694E09F938F931F939C |
:102300000E94C1098DB79EB70696E5CF1092E103F2 |
:1023100087E594E09F938F9311E01F930E94C1097A |
:1023200084E18093E1036091F5037091F60380915D |
:10233000F7039091F80320E034E040E050E00E9481 |
:10234000563B5F934F933F932F9388E494E09F9382 |
:102350008F931F930E94C10988E28093E1036091EB |
:10236000FD037091FE038091FF039091000420E033 |
:1023700034E040E050E00E94563B5F934F933F9320 |
:102380002F9389E394E09F938F931F930E94C10939 |
:102390008CE38093E10380913104909132049F9308 |
:1023A0008F938AE294E09F938F931F930E94C109B9 |
:1023B0008DB79EB746968FCF1092E1038091FD06B0 |
:1023C0009091FE062091FB063091FC069F938F931F |
:1023D0003F932F938AE194E09F938F9311E01F9393 |
:1023E0000E94C10984E18093E103809101079091EB |
:1023F00002072091FF06309100079F938F933F9330 |
:102400002F938AE094E09F938F931F930E94C109BA |
:1024100088E28093E103809105079091060720915F |
:102420000307309104079F938F933F932F938AEF75 |
:1024300093E09F938F931F930E94C1098CE3809335 |
:10244000E1038091090790910A07209107073091D5 |
:1024500008079F938F933F932F938AEE93E07BC05F |
:102460001092E103E0912607FF27EE0FFF1FE750D0 |
:10247000F94F20813181E0912507FF27EE0FFF1FE3 |
:10248000E750F94F808191813F932F939F938F93D2 |
:102490008AED93E09F938F9311E01F930E94C109EF |
:1024A00084E18093E103E0912807FF27EE0FFF1FEF |
:1024B000E750F94F20813181E0912707FF27EE0F88 |
:1024C000FF1FE750F94F808191813F932F939F9396 |
:1024D0008F938AEC93E09F938F931F930E94C1097F |
:1024E00088E28093E103E0912A07FF27EE0FFF1FA8 |
:1024F000E750F94F20813181E0912907FF27EE0F46 |
:10250000FF1FE750F94F808191813F932F939F9355 |
:102510008F938AEB93E09F938F931F930E94C1093F |
:102520008CE38093E103E0912C07FF27EE0FFF1F60 |
:10253000E750F94F20813181E0912B07FF27EE0F03 |
:10254000FF1FE750F94F808191813F932F939F9315 |
:102550008F938AEA93E09F938F931F930E94C10900 |
:102560008DB79EB74C96B7CE1092E1038CE993E0FD |
:102570009F938F9311E01F930E94C1090F900F90BA |
:102580000F9080910001E091EB03F091EC038A3011 |
:10259000F1F584E18093E1038091C1039091C2033E |
:1025A000FF93EF938E1B9F0B9F938F938DE893E088 |
:1025B0009F938F931F930E94C10988E28093E10348 |
:1025C0002091ED033091EE038091C3039091C403F9 |
:1025D0003F932F93821B930B9F938F938EE793E0F0 |
:1025E0009F938F931F930E94C1098CE38093E10313 |
:1025F0008091EF039091F0039F938F9380919C07BC |
:1026000090919D079F938F938FE693E04BC084E159 |
:102610008093E1032091C1033091C203CF0162E0B6 |
:1026200070E00E94213B7F936F932E1B3F0B3F93E3 |
:102630002F9380E693E09F938F931F930E94C1098D |
:1026400088E28093E103E091ED03F091EE032091A5 |
:10265000C3033091C403CF0162E070E00E94213BCC |
:102660007F936F932E1B3F0B3F932F9381E593E056 |
:102670009F938F931F930E94C1098CE38093E10382 |
:102680008091EF039091F00362E070E00E94213BA3 |
:102690007F936F9380919C0790919D079F938F9359 |
:1026A00082E493E09F938F931F930E94C1098DB79B |
:1026B0009EB7459610CE1092E10385E393E09F9379 |
:1026C0008F9311E01F930E94C10984E18093E1037D |
:1026D00080918E0790918F072091C9033091CA0392 |
:1026E0009F938F933F932F9386E293E09F938F93D3 |
:1026F0001F930E94C10988E28093E10380919007B3 |
:10270000909191072091C7033091C8039F938F93B5 |
:102710003F932F9387E193E09F938F931F930E94A2 |
:10272000C1098CE38093E103609192077091930754 |
:1027300080919407909195070E94033A7F936F933D |
:1027400080917C0790917D079F938F9388E093E021 |
:102750009F938F931F930E94C1098DB79EB7489690 |
:10276000BACD84E18093E10380910803909109033D |
:102770009F938F9389EF92E09F938F9311E01F9324 |
:102780000E94C10988E28093E10380914204992765 |
:102790009F938F938AEE92E09F938F931F930E9453 |
:1027A000C1098DB79EB70A9696CD1092E1038BEDC5 |
:1027B00092E09F938F9311E01F930E94C10984E1DF |
:1027C0008093E10380913504909136049F938F9319 |
:1027D0008CEC92E09F938F931F930E94C10988E233 |
:1027E0008093E10380913104909132049F938F9301 |
:1027F0008DEB92E09F938F931F930E94C1098CE30E |
:102800008093E10380913304909134049F938F93DC |
:102810008EEA92E0E8C01092E10380913A04909130 |
:102820003B049F938F9382EA92E09F938F9311E0F2 |
:102830001F930E94C10984E18093E10380913C04CD |
:1028400090913D049F938F9386E992E09F938F939D |
:102850001F930E94C10988E28093E10380913E04A6 |
:1028600090913F049F938F938AE892E09F938F9378 |
:102870001F930E94C1098CE38093E103809140047F |
:10288000909141049F938F938EE792E01CCD10921C |
:10289000E10386E792E09F938F9311E01F930E94DC |
:1028A000C10984E18093E10380919C0399279F9360 |
:1028B0008F9388E692E09F938F931F930E94C109A4 |
:1028C00088E28093E1038091BE039091BF039F93C0 |
:1028D0008F938AE592E09F938F931F930E94C10983 |
:1028E0008CE38093E1038091490799279F938F930D |
:1028F0008091480799279F938F938CE492E09F9350 |
:102900008F931F930E94C109E3CC1092E10384E4EA |
:1029100092E09F938F9311E01F930E94C10984E17D |
:102920008093E1038091AA07992787FD90959F9353 |
:102930008F9385E392E09F938F931F930E94C10929 |
:1029400088E28093E1038091AB07992787FD9095FA |
:102950009F938F9386E292E09F938F931F930E94A1 |
:10296000C1098CE38093E1038091AC07992787FD2F |
:1029700090959F938F9387E192E035C01092E10389 |
:102980008DE092E09F938F9311E01F930E94C10905 |
:1029900084E18093E1038091AD079091AE079F930E |
:1029A0008F938FEF91E09F938F931F930E94C109A4 |
:1029B00088E28093E1038091AF079091B0079F93E5 |
:1029C0008F9381EF91E09F938F931F930E94C10992 |
:1029D0008CE38093E1038091B1079091B2079F93BC |
:1029E0008F9383EE91E09F938F931F930E94C10971 |
:1029F0008DB79EB742966FCC815080936A03109238 |
:102A0000E3031092E2031F9108951092B9008AE245 |
:102A10008093B800089585EA8093BC00089584E906 |
:102A20008093BC0008958093BB0085E88093BC0030 |
:102A3000089585EC8093BC00089585E88093BC00E0 |
:102A400008951F920F920FB60F9211248F939F93A8 |
:102A5000EF93FF938091E4038F5F8093E4038150B1 |
:102A60008330E9F1843028F4813081F0823078F5C8 |
:102A700008C08530D9F18530B8F1863009F04FC0F3 |
:102A80003EC08091E503880F8E5A12C08091E50305 |
:102A90008F5F8093E5038150813081F0813030F089 |
:102AA000823079F0833009F047C00EC080916F0703 |
:102AB0008093BB0085E88093BC003EC08091740782 |
:102AC000F7CF80918C07F4CF80919607F1CF80915A |
:102AD000E503843010F41092E40385EAECCF809192 |
:102AE000E603880F8D5AE4CF85ECE5CF8091BB00DB |
:102AF000E091E603FF27EF50F94F8083DBCF809111 |
:102B0000E6039091BB00E82FFF27EF50F94F948325 |
:102B10008F5F8093E603843010F01092E60384E91F |
:102B20008093BC001092E4038AE090E090938603C7 |
:102B3000809385031092E503FF91EF919F918F9110 |
:102B40000F900FBE0F901F9018954CEB50E084E94A |
:102B5000FA0180831092E4032BEB30E0F9018081CD |
:102B60001092E50380E8FA0180831092BD00109274 |
:102B7000BA00F9011082E9EBF0E01082A8EBB0E0B6 |
:102B80001C9210828AE28C9385EAFA018083F90113 |
:102B9000108285E8FA018083089583EC8093810098 |
:102BA000EFE6F0E08081806280831092F003109263 |
:102BB000EF031092EE031092ED031092EC031092CB |
:102BC000EB0308951F920F920FB60F9211240F93EB |
:102BD0001F932F933F934F935F936F937F938F93A5 |
:102BE0009F93AF93BF93CF93DF93EF93FF93209186 |
:102BF0008600309187008091E9039091EA03281BB9 |
:102C0000390B80918600909187009093EA0380931E |
:102C1000E903C9018D549440C091E703D091E803C2 |
:102C2000835F9A4158F4249714F010926B0381E06B |
:102C300090E09093E8038093E7035CC0CA30D1052D |
:102C40000CF058C0C9018B5F9040845B914008F044 |
:102C500040C0A901425D5140FE01EE0FFF1FE75049 |
:102C6000F94F80819181FA01E81BF90BCF01F7FF41 |
:102C700003C0909581959F4F06974CF48091420434 |
:102C8000883C28F480914204865F80934204FE01D0 |
:102C9000EE0FFF1F8F010750194FD8012D913C9166 |
:102CA000C901880F991F820F931F840F951F64E03D |
:102CB00070E00E94213BD8018D919C9111979B015E |
:102CC000281B390BE15FF84F3183208311967C93E9 |
:102CD0006E93FE013196F093E803E093E703E5304D |
:102CE000F10511F45D9A05C05D98369711F45C9A70 |
:102CF00001C05C98FF91EF91DF91CF91BF91AF91AF |
:102D00009F918F917F916F915F914F913F912F9103 |
:102D10001F910F910F900FBE0F901F901895A2E179 |
:102D2000B0E0E5E9F6E10C94713B8091C503909128 |
:102D3000C6034090EF035090F003481A590A50928E |
:102D40009D0740929C078091C3039091C403988B88 |
:102D50008F87A091ED03B091EE03BA8BA98BE09120 |
:102D6000C103F091C203FE87ED878091EB03909140 |
:102D7000EC039C878B876091C9037091CA03E09034 |
:102D80009907F0909A070027F7FC0095102F8827E5 |
:102D900077FD8095982F2CE030E040E050E00E94D5 |
:102DA000E23AE60EF71E081F191FC801B70122E01C |
:102DB00030E040E050E00E94563B30939A07209369 |
:102DC00099076091C7037091C803E090A307F09042 |
:102DD000A4070027F7FC0095102F882777FD809522 |
:102DE000982F2CE030E040E050E00E94E23AE60EFE |
:102DF000F71E081F191FC801B70122E030E040E0AC |
:102E000050E00E94563B3093A4072093A3072091E3 |
:102E1000CB033091CC0360917C0770917D078827AC |
:102E200077FD8095982F442737FD4095542F620FEA |
:102E3000731F841F951F22E030E040E050E00E94A5 |
:102E4000563B30937D0720937C072091C903309136 |
:102E5000CA03C901880F991F820F931F880F991FFA |
:102E6000880F991FAA2797FDA095BA2F20910504D6 |
:102E7000309106044091070450910804280F391F2F |
:102E80004A1F5B1F209305043093060440930704F8 |
:102E9000509308042091C7033091C803C901880FDB |
:102EA000991F820F931F880F991F880F991FAA27B8 |
:102EB00097FDA095BA2F2091090430910A04409102 |
:102EC0000B0450910C04280F391F4A1F5B1F2093DD |
:102ED000090430930A0440930B0450930C04E090CF |
:102EE000E106F090E206A0909207B0909307C090A0 |
:102EF0009407D090950760910D0470910E04809115 |
:102F00000F04909110040E94203A3B014C010027CD |
:102F1000F7FC0095102FC801B7010E94203AA601C6 |
:102F200095010E947A399B01AC01C401B3010E9452 |
:102F30007B390E94033A60930D0470930E048093D2 |
:102F40000F04909310045201CC24B7FCC094DC2CE5 |
:102F500060902504709026048090270490902804A7 |
:102F60006A0C7B1C8C1C9D1C6092250470922604AC |
:102F700080922704909228048091290490912A0439 |
:102F8000A0912B04B0912C048A0D9B1DAC1DBD1D7E |
:102F90008093290490932A04A0932B04B0932C04CB |
:102FA000909152049A87992309F05FC0809153044D |
:102FB000882309F05AC080912D0786FF56C0E09003 |
:102FC0006004FF24002711276091150470911604F6 |
:102FD000809117049091180420E030E140E050E027 |
:102FE0000E94563BCA01B901A80197010E94E23A2A |
:102FF0009B01AC01C601B5010E94E23A20E038E035 |
:1030000040E050E00E94563B2093A9043093AA046C |
:103010004093AB045093AC0460911D0470911E0466 |
:1030200080911F049091200420E030E140E050E0C6 |
:103030000E94563BCA01B901A80197010E94E23AD9 |
:103040009B01AC01C601B5010E94E23A20E038E0E4 |
:1030500040E050E00E94563B2093A5043093A60424 |
:103060004093A7045093A80410C01092A504109296 |
:10307000A6041092A7041092A8041092A90410921A |
:10308000AA041092AB041092AC048091A904909110 |
:10309000AA04A091AB04B091AC048E839F83A8874F |
:1030A000B9878091A5049091A604A091A704B0913E |
:1030B000A8048A839B83AC83BD8380916104282EFE |
:1030C000332444245524EF84F888A989BA89EA1A5C |
:1030D000FB0AEE81FF81EE0EFF1E6A817B818C81EF |
:1030E0009D81A20191010E94E23A20E032E040E09D |
:1030F00050E00E94563BE20EF31EF0926E07E09203 |
:103100006D079701442737FD4095542F8091210486 |
:1031100090912204A0912304B0912404820F931F64 |
:10312000A41FB51F8093210490932204A09323042D |
:10313000B093240480914E0490914F04E81AF90A48 |
:103140000027F7FC0095102F80911D0490911E041C |
:10315000A0911F04B0912004E80EF91E0A1F1B1F46 |
:10316000E0921D04F0921E0400931F0410932004AB |
:10317000A0908B03B0908C03C0908D03D0908E03F1 |
:10318000AE14BF04C006D106C4F480E197E2A0E00B |
:10319000B0E08A199B09AC09BD0980931D04909386 |
:1031A0001E04A0931F04B0932004809321049093E5 |
:1031B0002204A0932304B093240422273327A901D7 |
:1031C0002A193B094C095D0980911D0490911E0448 |
:1031D000A0911F04B091200482179307A407B5079C |
:1031E000B4F4D601C50180519742A040B04080930D |
:1031F0001D0490931E04A0931F04B0932004809399 |
:10320000210490932204A0932304B093240480917A |
:10321000C3039091C4030F9734F488E19CEF90931B |
:103220006E0780936D078091C3039091C403079745 |
:1032300034F480E398EF90936E0780936D07F091DC |
:103240000001F983FA30A9F48091C3039091C4037B |
:10325000835F934034F088EE93E090936E07809301 |
:103260006D078091C3039091C4038A5F9340DCF0A3 |
:1032700014C08091C3039091C403855E974034F0DD |
:1032800088EE93E090936E0780936D078091C3035F |
:103290009091C403835F974034F080ED97E0909362 |
:1032A0006E0780936D07ED84FE848B859C85E81AFC |
:1032B000F90AAA81BB81EA1AFB0A6E817F8188859F |
:1032C0009985A20191010E94E23A20E032E040E0BB |
:1032D00050E00E94563BE21AF30AF0927607E09221 |
:1032E00075079701442737FD4095542F80911904A5 |
:1032F00090911A04A0911B04B0911C04820F931F9B |
:10330000A41FB51F8093190490931A04A0931B0463 |
:10331000B0931C048091500490915104E81AF90A6A |
:103320000027F7FC0095102F80911504909116044A |
:10333000A0911704B0911804E80EF91E0A1F1B1F74 |
:10334000E0921504F09216040093170410931804E9 |
:10335000A0908703B0908803C0908903D0908A031F |
:10336000AE14BF04C006D106C4F480E197E2A0E029 |
:10337000B0E08A199B09AC09BD09809315049093AC |
:103380001604A0931704B093180480931904909323 |
:103390001A04A0931B04B0931C0422273327A9010D |
:1033A0002A193B094C095D09809115049091160476 |
:1033B000A0911704B091180482179307A407B507CA |
:1033C000B4F4D601C50180519742A040B04080932B |
:1033D000150490931604A0931704B09318048093D7 |
:1033E000190490931A04A0931B04B0931C048091B9 |
:1033F000C1039091C2030F9734F488E19CEF90933E |
:103400007607809375078091C1039091C203079757 |
:1034100034F480E398EF9093760780937507B98131 |
:10342000BA30A9F48091C1039091C203835F9340A5 |
:1034300034F088EE93E0909376078093750780913F |
:10344000C1039091C2038A5F9340DCF014C0809165 |
:10345000C1039091C203855E974034F088EE93E0FB |
:1034600090937607809375078091C1039091C20372 |
:10347000835F974034F080ED97E0909376078093D8 |
:1034800075078FEE80937A00609211047092120497 |
:103490008092130490921404809115049091160464 |
:1034A000A0911704B09118048093F5039093F6034C |
:1034B000A093F703B093F80380911D0490911E042C |
:1034C000A0911F04B09120048093FD039093FE030C |
:1034D000A093FF03B09300048091190490911A0403 |
:1034E000A0911B04B0911C048093F9039093FA03FC |
:1034F000A093FB03B093FC038091210490912204DC |
:10350000A0912304B09124048093010490930204B9 |
:10351000A0930304B093040480912D0787FF3FC05C |
:10352000BA85BB23E1F5809153048823C1F520912E |
:10353000750730917607293C310524F0C901805286 |
:10354000934007C0EFEF28333E076CF4C901805E5B |
:103550009C4F220F331F220F331F280F391F309328 |
:1035600076072093750720916D0730916E07293CEF |
:10357000310524F0C9018052934007C0FFEF283382 |
:103580003F076CF4C901805E9C4F220F331F220F4E |
:10359000331F280F391F30936E0720936D0720913A |
:1035A0003A0430913B0480912907E82FFF27EE0F62 |
:1035B000FF1FE750F94F8081918182599F4F281753 |
:1035C00039071CF42F5F3F4F0CC0808191818259D5 |
:1035D0009F4F821793074CF42115310531F021508C |
:1035E000304030933B0420933A0420913C043091C6 |
:1035F0003D0480912A07E82FFF27EE0FFF1FE750B9 |
:10360000F94F8081918182599F4F281739071CF407 |
:103610002F5F3F4F0CC08081918182599F4F82174D |
:1036200093074CF42115310531F02150304030938F |
:103630003D0420933C0420913E0430913F0480914E |
:103640002B07E82FFF27EE0FFF1FE750F94F808170 |
:10365000918182599F4F281739071CF42F5F3F4FE4 |
:103660000CC08081918182599F4F821793074CF43F |
:103670002115310531F02150304030933F04209323 |
:103680003E04209140043091410480912C07E82FA2 |
:10369000FF27EE0FFF1FE750F94F8081918182597C |
:1036A0009F4F281739071CF42F5F3F4F0CC08081B4 |
:1036B000918182599F4F821793074CF42115310550 |
:1036C00031F02150304030934104209340048091E8 |
:1036D0003A0490913B0497FF05C010923B0410926E |
:1036E0003A040AC08F3F910539F034F08FEF90E033 |
:1036F00090933B0480933A0480913C0490913D0464 |
:1037000097FF05C010923D0410923C040AC08F3F01 |
:10371000910539F034F08FEF90E090933D04809361 |
:103720003C0480913E0490913F0497FF05C01092A5 |
:103730003F0410923E040AC08F3F910539F034F0E7 |
:103740008FEF90E090933F0480933E04809140047B |
:103750009091410497FF05C01092410410924004DB |
:103760000AC08F3F910539F034F08FEF90E09093CD |
:10377000410480934004E2E1CE5E0C948D3B1092B4 |
:103780007A008091C1039091C20390937607809351 |
:1037900075078091C3039091C40390936E07809343 |
:1037A0006D078091C5039091C60390939D07809308 |
:1037B0009C076091C9037091CA03882777FD8095A3 |
:1037C000982F2CE030E040E050E00E94E23A709305 |
:1037D0009A07609399076091C7037091C80388277F |
:1037E00077FD8095982F0E94E23A7093A40760932A |
:1037F000A3078091CB039091CC0390937D07809396 |
:103800007C078FEE80937A0020913A0430913B043C |
:1038100080912907E82FFF27EE0FFF1FE750F94F90 |
:103820008081918182599F4F281739071CF42F5F9F |
:103830003F4F0CC08081918182599F4F821793071F |
:103840004CF42115310531F02150304030933B04C8 |
:1038500020933A0420913C0430913D0480912A0742 |
:10386000E82FFF27EE0FFF1FE750F94F808191816E |
:1038700082599F4F281739071CF42F5F3F4F0CC008 |
:103880008081918182599F4F821793074CF42115B3 |
:10389000310531F02150304030933D0420933C04F9 |
:1038A00020913E0430913F0480912B07E82FFF27A1 |
:1038B000EE0FFF1FE750F94F8081918182599F4F92 |
:1038C000281739071CF42F5F3F4F0CC0808191816E |
:1038D00082599F4F821793074CF42115310531F01F |
:1038E0002150304030933F0420933E042091400407 |
:1038F0003091410480912C07E82FFF27EE0FFF1F26 |
:10390000E750F94F8081918182599F4F28173907DD |
:103910001CF42F5F3F4F0CC08081918182599F4FD3 |
:10392000821793074CF42115310531F021503040B6 |
:10393000309341042093400480913A0490913B04D9 |
:1039400097FF05C010923B0410923A040AC08F3FC3 |
:10395000910539F034F08FEF90E090933B04809321 |
:103960003A0480913C0490913D0497FF05C0109269 |
:103970003D0410923C040AC08F3F910539F034F0A9 |
:103980008FEF90E090933D0480933C0480913E043F |
:1039900090913F0497FF05C010923F0410923E049F |
:1039A0000AC08F3F910539F034F08FEF90E090938B |
:1039B0003F0480933E04809140049091410497FF1E |
:1039C00005C010924104109240040AC08F3F910537 |
:1039D00039F034F08FEF90E09093410480934004ED |
:1039E0006091500777278827992724EC39E040E039 |
:1039F00050E00E94E23A60938703709388038093BB |
:103A0000890390938A0360938B0370938C03809354 |
:103A10008D0390938E0308951F93809130078B3F01 |
:103A200098F08B3F19F480913A040EC08C3F19F442 |
:103A300080913C0409C08D3F19F480913E0404C07C |
:103A40008E3F21F4809140048093940380919403ED |
:103A5000882319F41092940304C08F3F11F48093CB |
:103A6000940380912F078B3F98F08B3F19F480913E |
:103A70003A040EC08C3F19F480913C0409C08D3F7C |
:103A800019F480913E0404C08E3F21F480914004DB |
:103A90008093930380919303882319F410929303E6 |
:103AA00005C0843618F084E6809393038091310733 |
:103AB0008B3F98F08B3F19F480913A040EC08C3FF5 |
:103AC00019F480913C0409C08D3F19F480913E04A3 |
:103AD00004C08E3F21F4809140048093950380912F |
:103AE0009503882319F41092950305C0843618F0C5 |
:103AF00084E680939503809133078B3F98F08B3F4A |
:103B000019F480913A040EC08C3F19F480913C0462 |
:103B100009C08D3F19F480913E0404C08E3F21F40A |
:103B2000809140048093960380919603882319F432 |
:103B30001092960304C08F3F11F4809396038091F6 |
:103B40003A078B3F98F08B3F19F480913A040EC0EE |
:103B50008C3F19F480913C0409C08D3F19F4809189 |
:103B60003E0404C08E3F21F480914004809397036B |
:103B700080919703882319F41092970304C08F3F14 |
:103B800011F48093970380913B078B3F98F08B3F14 |
:103B900019F480913A040EC08C3F19F480913C04D2 |
:103BA00009C08D3F19F480913E0404C08E3F21F47A |
:103BB0008091400480939803809198038B3010F497 |
:103BC0008AE002C08F3F11F48093980380913C07F4 |
:103BD0008B3F98F08B3F19F480913A040EC08C3FD4 |
:103BE00019F480913C0409C08D3F19F480913E0482 |
:103BF00004C08E3F21F4809140048093990380910A |
:103C00009903882319F41092990304C08F3F11F48B |
:103C100080939903809141078B3F98F08B3F19F473 |
:103C200080913A040EC08C3F19F480913C0409C085 |
:103C30008D3F19F480913E0404C08E3F21F48091A1 |
:103C4000400480939B0380919B03882319F4109276 |
:103C50009B0304C08F3F11F480939B038091420724 |
:103C60008B3F98F08B3F19F480913A040EC08C3F43 |
:103C700019F480913C0409C08D3F19F480913E04F1 |
:103C800004C08E3F21F480914004809358048091B9 |
:103C90005804882319F41092580404C08F3F11F47B |
:103CA00080935804809143078B3F98F08B3F19F421 |
:103CB00080913A040EC08C3F19F480913C0409C0F5 |
:103CC0008D3F19F480913E0404C08E3F21F4809111 |
:103CD00040048093590480915904882319F4109268 |
:103CE000590404C08F3F11F4809359048091440714 |
:103CF0008B3F98F08B3F19F480913A040EC08C3FB3 |
:103D000019F480913C0409C08D3F19F480913E0460 |
:103D100004C08E3F21F48091400480935A04809126 |
:103D20005A04882319F410925A0404C08F3F11F4E6 |
:103D300080935A04809145078B3F98F08B3F19F48C |
:103D400080913A040EC08C3F19F480913C0409C064 |
:103D50008D3F19F480913E0404C08E3F21F4809180 |
:103D6000400480935B0480915B04882319F41092D3 |
:103D70005B0404C08F3F11F480935B04809155076E |
:103D80008B3F98F08B3F19F480913A040EC08C3F22 |
:103D900019F480913C0409C08D3F19F480913E04D0 |
:103DA00004C08E3F21F48091400480935C04809194 |
:103DB0005C04882319F410925C0404C08F3F11F452 |
:103DC00080935C04809156078B3F98F08B3F19F4E9 |
:103DD00080913A040EC08C3F19F480913C0409C0D4 |
:103DE0008D3F19F480913E0404C08E3F21F48091F0 |
:103DF000400480935D0480915D04882319F410923F |
:103E00005D0404C08F3F11F480935D0480915707D7 |
:103E10008B3F98F08B3F19F480913A040EC08C3F91 |
:103E200019F480913C0409C08D3F19F480913E043F |
:103E300004C08E3F21F48091400480935E04809101 |
:103E40005E04882319F410925E0404C08F3F11F4BD |
:103E500080935E04809158078B3F98F08B3F19F454 |
:103E600080913A040EC08C3F19F480913C0409C043 |
:103E70008D3F19F480913E0404C08E3F21F480915F |
:103E8000400480935F0480915F04882319F41092AA |
:103E90005F0404C08F3F11F480935F048091460754 |
:103EA0008B3F98F08B3F19F480913A040EC08C3F01 |
:103EB00019F480913C0409C08D3F19F480913E04AF |
:103EC00004C08E3F21F48091400480939C03809134 |
:103ED0009C03882319F410929C0304C08F3F11F4B3 |
:103EE00080939C0380914B078B3F98F08B3F19F494 |
:103EF00080913A040EC08C3F19F480913C0409C0B3 |
:103F00008D3F19F480913E0404C08E3F21F48091CE |
:103F1000400480939D0380919D03882319F410929F |
:103F20009D0304C08F3F11F480939D0380914E0741 |
:103F30008B3F98F08B3F19F480913A040EC08C3F70 |
:103F400019F480913C0409C08D3F19F480913E041E |
:103F500004C08E3F21F480914004809360048091DE |
:103F60006004882319F41092600404C08F3F11F498 |
:103F70008093600480914F078B3F98F08B3F19F43A |
:103F800080913A040EC08C3F19F480913C0409C022 |
:103F90008D3F19F480913E0404C08E3F21F480913E |
:103FA00040048093610480916104882319F4109285 |
:103FB000610404C08F3F11F4809361048091540721 |
:103FC0008B3F98F08B3F19F480913A040EC08C3FE0 |
:103FD00019F480913C0409C08D3F19F480913E048E |
:103FE00004C08E3F21F48091400480939E03809111 |
:103FF0009E03882319F410929E0304C08F3F11F48E |
:1040000080939E0310919B03612F772767FD709526 |
:10401000872F972F0E94203A17FF06C020E030E03C |
:1040200040E853E40E947B3927E137EB41ED58E348 |
:104030000E949A3A60938F03709390038093910348 |
:10404000909392038091380780939B078091370764 |
:10405000809377071F91089580914904882301F583 |
:104060001092740710926F0710928C0710929607A7 |
:104070008091AD03882311F080936F078091AE0388 |
:10408000882311F0809374078091AF03882311F087 |
:10409000809396078091B003882311F080938C075A |
:1040A00080916F0799279093B7068093B606809109 |
:1040B000740799279093B9068093B8068091960764 |
:1040C00099279093BB068093BA0680918C07992715 |
:1040D0009093BD068093BC061092E4031092E50312 |
:1040E0000E940B15089510928F0710928E07109260 |
:1040F00091071092900780E090E0A0E0B0E08093FC |
:10410000920790939307A0939407B093950710920A |
:10411000EC031092EB031092EE031092ED03109259 |
:10412000F0031092EF0310926004109261040E9459 |
:10413000BF1B84E690E00E948A0D0E94BF1B809105 |
:104140002D0780FF10C080910E0390910F03875BB5 |
:10415000934038F480910E0390910F038E5E92404D |
:1041600010F40E9434104091C1035091C203509347 |
:10417000EC034093EB032091C3033091C4033093CD |
:10418000EE032093ED038091C5039091C6039093B5 |
:10419000F0038093EF033093F2032093F1035093E5 |
:1041A000F4034093F30388E0EEE8F7E0A8E6B1E01B |
:1041B000182E0E94B63B109215041092160410920D |
:1041C0001704109218041092190410921A041092F5 |
:1041D0001B0410921C0410921D0410921E041092D5 |
:1041E0001F041092200410922104109222041092B5 |
:1041F0002304109224041092250410922604109295 |
:1042000027041092280410927607109275071092D6 |
:104210006E0710926D0710929D0710929C07809177 |
:104220000A0390910B03A0910C03B0910D0390939E |
:10423000E4068093E3061092D4031092D303109205 |
:104240002D0410922E0410922F04109230048091AD |
:1042500031049091320490933404809333040E948B |
:10426000F73582E390E09093BD038093BC036091A7 |
:10427000500777278827992724EC39E040E050E061 |
:104280000E94E23A609387037093880380938903C6 |
:1042900090938A03609151077727882799270E9476 |
:1042A000E23A60938B0370938C0380938D03909319 |
:1042B0008E031092A00310929F030895CF93DF9373 |
:1042C000CEE8D7E010928F0710928E0710929107D8 |
:1042D0001092900780E090E0A0E0B0E08093920719 |
:1042E00090939307A0939407B09395070E94BF1BE8 |
:1042F00084E690E00E948A0D0E94BF1B809199077E |
:1043000090919A0797FF03C0909581959F4F6CE01D |
:1043100070E00E94213B70938F0760938E0780911D |
:10432000A3079091A40797FF03C0909581959F4F95 |
:104330006CE070E00E94213B7093910760939007BE |
:104340006091E1067091E206882777FD8095982FAD |
:104350000E94203A6093920770939307809394078A |
:104360009093950788E0A8E6B1E0FE01182E0E9420 |
:10437000C73BDF91CF9108951F93182F0EC08091F6 |
:104380004904882361F484E690E09093BD03809310 |
:10439000BC038AEF90E00E94A00D115080F71F919E |
:1043A0000895A6E3B0E0E7EDF1E20C94713B0E94C2 |
:1043B0008F16299AE0912707FF27EE0FFF1FE7507E |
:1043C000F94F0190F081E02DE858FF4F80919B0755 |
:1043D00099274497E817F9070CF4CF019A8389834A |
:1043E00097FF02C01A82198280914204843608F035 |
:1043F0005DC080910301882399F48091040390911A |
:1044000005038F5F9F4F61F488E99AE39093BD03A2 |
:104410008093BC0380E09CE09093050380930403A9 |
:104420008091870490918804009731F001979093D0 |
:1044300088048093870404C01092490410923804C1 |
:10444000809100018A3011F4289A01C02898809147 |
:10445000820490918304815D974028F180913E070A |
:10446000482F55275A83498381E080933804E0918F |
:104470002507FF27EE0FFF1FE750F94F118210822B |
:10448000E0912607FF27EE0FFF1FE750F94F11823B |
:104490001082E0912807FF27EE0FFF1FE750F94F2A |
:1044A00011821082CCC110924904C9C1809142048A |
:1044B0008D3808F4C4C11092380480913F0722E37C |
:1044C000829FC0011124909388048093870489817E |
:1044D0009A8189976CF08091820490918304AFEF68 |
:1044E0008F3F9A0781F10196909383048093820411 |
:1044F0008091820490918304883C910520F0E981A9 |
:10450000FA81B89704F51092A1041092A2041092B7 |
:10451000A3041092A40410929D0410929E04109281 |
:104520009F041092A0041092250410922604109269 |
:104530002704109228041092290410922A04109241 |
:104540002B0410922C0429813A81293C31050CF46A |
:10455000D5C080914904882309F071C1E0912807F2 |
:10456000FF27EE0FFF1FE750F94F808191818C34B8 |
:1045700091050CF4C0C0809186048F5F80938604FF |
:10458000893C08F45CC12998109249041092860471 |
:10459000109283041092820480912507282F3327DC |
:1045A000F901EE0FFF1FE750F94F808191818734A9 |
:1045B00091059CF4E0912607FF27EE0FFF1FE750BF |
:1045C000F94F0190F081E02DF7FF03C0F095E195E0 |
:1045D000FF4FE734F1050CF46CC080912607682F7B |
:1045E0007727DB01AA0FBB1FA750B94F8D919C9174 |
:1045F0001197873491053CF0F901EE0FFF1FE7504A |
:10460000F94F808191818D919C918734910564F05F |
:10461000F901EE0FFF1FE750F94F80819181873438 |
:10462000910514F042E001C041E0FB01EE0FFF1FD5 |
:10463000E750F94F80819181863491055CF4F9014E |
:10464000EE0FFF1FE750F94F80819181873491056C |
:104650000CF043E0FB01EE0FFF1FE750F94F8081A4 |
:1046600091818A5B9F4F5CF4F901EE0FFF1FE750C9 |
:10467000F94F80819181873491050CF044E0660FF9 |
:10468000771F6750794FDB018D919C918A5B9F4F1B |
:104690005CF4220F331F2750394FF901808191813B |
:1046A000863491050CF445E0A2E0B0E0042E0E94AF |
:1046B000BB3B80912D0780FF10C080910E0390912D |
:1046C0000F03875B934038F480910E0390910F03A2 |
:1046D0008E5E924010F40E9434100E94A50346E4BE |
:1046E00065E277E00E94CE030E9473200E94A5033A |
:1046F0000E94BC21A4C010928604A1C049815A81A5 |
:10470000433251050CF09BC080912807482F552754 |
:10471000FA01EE0FFF1FE750F94F80819181855B11 |
:104720009F4F0CF06DC0809185048F5F809385044E |
:10473000893C08F467C088EC8093850481E090E0B0 |
:10474000909383048093820481E0809349041092C3 |
:10475000990410929A0410929B0410929C04109257 |
:104760002504109226041092270410922804109217 |
:10477000290410922A0410922B0410922C041092F7 |
:104780001504109216041092170410921804109237 |
:104790001D0410921E0410921F0410922004809198 |
:1047A000F5039091F603A091F703B091F80380937D |
:1047B000190490931A04A0931B04B0931C048091D5 |
:1047C000FD039091FE03A091FF03B091000480933C |
:1047D000210490932204A0932304B0932404109204 |
:1047E000A1041092A2041092A3041092A4041092A7 |
:1047F0009D0410929E0410929F041092A00402C087 |
:1048000010928504440F551F4750594FFA0180817B |
:1048100091818C3491058CF0809184048F5F80931A |
:104820008404893C60F01092490488EC80938404ED |
:10483000109283041092820402C01092840480912A |
:104840006B03815080936B0380916B038F3F29F042 |
:1048500080913804882309F400C30E940C1D8091C4 |
:104860002507A82EBB24D501AA0FBB1FFD01E750C9 |
:10487000F94F0190F081E02DFCABEBAB8091340758 |
:10488000E82EFF24A15FB84F0D90BC91A02DBAA7D0 |
:10489000A9A780913507482E552480912607C82E58 |
:1048A000DD24C601880F991FDC01A750B94F0D9078 |
:1048B000BC91A02DB8A7AFA3815F984FDC012D90CC |
:1048C0003C90E0912807AE2FBB27AA0FBB1FA75033 |
:1048D000B94F0D90BC91A02DBCA3ABA31091980330 |
:1048E000612F772767FD7095872F972F0E94203AB9 |
:1048F00017FF06C020E030E040E853E40E947B3917 |
:1049000020E030E040E251E40E947B3920E030E0DA |
:1049100040E85BE30E949A3A3B014C0160939E079A |
:1049200070939F078093A0079093A107109199031C |
:10493000612F772767FD7095872F972F0E94203A68 |
:1049400017FF06C020E030E040E853E40E947B39C6 |
:1049500020E030EE4BE257E40E94BD3960938807B7 |
:104960007093890780938A0790938B072091B203F5 |
:10497000222311F40C946E338AE090E09093BD03EF |
:104980008093BC03E22FFF27E2FF09C08091580407 |
:10499000482F5527440F551F440F551F10C0E3FDE6 |
:1049A00003C040E050E00BC0809158049927880F65 |
:1049B000991F880F991F44275527481B590B209191 |
:1049C000620430916304C901F3E0880F991FFA95DE |
:1049D000E1F7821B930B840F951F68E070E00E9443 |
:1049E000213B8B017093630460936204E4FF09C070 |
:1049F00080915804482F5527440F551F440F551FC9 |
:104A00000FC0E5FD02C00C948333809158049927B0 |
:104A1000880F991F880F991F44275527481B590B4A |
:104A20002091640430916504C90163E0880F991FE7 |
:104A30006A95E1F7821B930B840F951F68E070E085 |
:104A40000E94213B7EAB6DAB709365046093640460 |
:104A50008091B103282F332723FF03C082E390E026 |
:104A600004C022FF07C08EEC9FEF909367048093F1 |
:104A7000660404C0109267041092660421FF09C006 |
:104A800080919F039091A00301969093A00380933F |
:104A90009F0324FF09C080919F039091A003019779 |
:104AA0009093A00380939F032BA93CA92E9DF00116 |
:104AB0002F9DF00D3E9DF00D112449A55AA5449D52 |
:104AC000C001459D900D549D900D1124E80FF91FD4 |
:104AD000C80168E070E00E94213BE60FF71FFCABC5 |
:104AE000EBABF0934404E09343048FA198A58E9D13 |
:104AF00080018F9D100D9E9D100D1124249CC001DE |
:104B0000259C900D349C900D1124080F191F8DA920 |
:104B10009EA968E070E00E94213B060F171F1093CA |
:104B20004604009345048091660490916704ABA10C |
:104B3000BCA18A1B9B0B90934804809347048091EF |
:104B40002D0782FF0CC080E090E0A0E0B0E08093F1 |
:104B5000880790938907A0938A07B0938B0720E07A |
:104B600030E040E050E0C401B3010E942A3A8823BB |
:104B700064F480E090E0A0E0B0E080939E07909322 |
:104B80009F07A093A007B093A10720E030E040E08A |
:104B900050E0609188077091890780918A07909111 |
:104BA0008B070E942A3A882364F480E090E0A0E01A |
:104BB000B0E08093880790938907A0938A07B09309 |
:104BC0008B0780915907682F772784E0882E912CD6 |
:104BD0008622972262FD83C063FD81C02091F50388 |
:104BE0003091F6034091F7035091F8032136BAEE65 |
:104BF0003B07B0E04B07B0E05B0704F1C701B3E04F |
:104C0000880F991FBA95E1F7EBA9FCA9E81BF90BEE |
:104C1000F0934404E093430421583843414050400A |
:104C200004F1C701A4E0880F991FAA95E1F7E81BDA |
:104C3000F90BF0934404E093430413C0205A354128 |
:104C40004F4F5F4F74F4C701F3E0880F991FFA9537 |
:104C5000E1F7ABA9BCA9A80FB91FB0934404A09376 |
:104C600043042091FD033091FE034091FF035091D6 |
:104C700000042136BAEE3B07B0E04B07B0E05B071B |
:104C8000F4F0C701E3E0880F991FEA95E1F7D80136 |
:104C9000A81BB90BB0934604A09345042158384390 |
:104CA00041405040E4F074E0EE0CFF1C7A95E1F7CF |
:104CB000AE19BF09B0934604A093450410C0205A12 |
:104CC00035414F4F5F4F5CF453E0EE0CFF1C5A959B |
:104CD000E1F70E0D1F1D1093460400934504F601E5 |
:104CE000EE0FFF1FE750F94F2081318180914C0773 |
:104CF000482F55274217530734F4892821F081E0C3 |
:104D00008093540411C0F601EE0FFF1FE750F94FD6 |
:104D10002081318180914D07DA01A81BB1092A1742 |
:104D20003B0714F410925404F601EE0FFF1FE750F6 |
:104D3000F94F80819181AA27BB27A41BB50B8A1745 |
:104D40009B0734F463FF04C081E08093550417C0CF |
:104D500080915504882399F0CC0CDD1CE9EFF6E036 |
:104D6000CE0EDF1EF6012081318180914D079927FB |
:104D7000841B950B8217930714F410925504F501C8 |
:104D8000EE0FFF1FE750F94F8081918148175907B7 |
:104D900034F460FF04C081E08093570415C0809113 |
:104DA0005704882389F0F501EE0FFF1FE750F94FF4 |
:104DB0002081318180914D07FA01E81BF1092E17FE |
:104DC0003F0714F410925704F501EE0FFF1FE75050 |
:104DD000F94F808191818A179B0734F461FF04C0E9 |
:104DE00081E08093560417C080915604882399F07F |
:104DF000AA0CBB1C29EF36E0A20EB31ED5012D91E3 |
:104E00003C9180914D079927841B950B821793073E |
:104E100014F41092560480915404882321F4809154 |
:104E20005504882321F081E08093530402C010923E |
:104E3000530480915704882321F4809156048823D9 |
:104E400051F081E080935204109253041092540464 |
:104E5000109255040EC0109252048091530488237E |
:104E600011F40C94873384E690E09093BD03809313 |
:104E7000BC0380914B079927E981FA818E179F0720 |
:104E800014F49A83898380913804882341F1109225 |
:104E90004804109247041092440410924304109264 |
:104EA0004604109245048DEC9CECACECBDE3809381 |
:104EB0009E0790939F07A093A007B093A1078AE055 |
:104EC00097EDA3EABBE38093880790938907A093AB |
:104ED0008A07B0938B0710925304109252042091CA |
:104EE000F5033091F6034091F7035091F8032FA793 |
:104EF00038AB49AB5AAB8091800790918107A09164 |
:104F00008207B0918307820F931FA41FB51F809360 |
:104F1000800790938107A0938207B09383078091C5 |
:104F2000FD039091FE03A091FF03B09100048BA7B5 |
:104F30009CA7ADA7BEA78091840790918507A091FB |
:104F40008607B09187072BA53CA54DA55EA5820FCE |
:104F5000931FA41FB51F8093840790938507A09388 |
:104F60008607B09387078091F9039091FA03A09187 |
:104F7000FB03B091FC038F8F98A3A9A3BAA38091E0 |
:104F8000780790917907A0917A07B0917B072F8DD0 |
:104F900038A149A15AA1820F931FA41FB51F809366 |
:104FA000780790937907A0937A07B0937B07809155 |
:104FB000010490910204A0910304B09104048B8F2A |
:104FC0009C8FAD8FBE8F8091700790917107A091DB |
:104FD0007207B09173072B8D3C8D4D8D5E8D820FC6 |
:104FE000931FA41FB51F8093700790937107A09320 |
:104FF0007207B093730790905204992011F00C94AB |
:10500000DF3380915304882311F00C94DF330C9428 |
:105010008F3380EEA8168FEFB8068FEFC8068FEF9C |
:10502000D80644F4E0EEAE2EEFEFBE2EEFEFCE2E1C |
:10503000EFEFDE2E213231054105510534F070E2EB |
:10504000E72EF12C012D112D0DC0205E3F4F4F4F4B |
:105050005F4F44F460EEE62E6FEFF62E6FEF062FF3 |
:105060006FEF162F8091150490911604A0911704EC |
:10507000B09118048A199B09AC09BD0980931504E5 |
:1050800090931604A0931704B093180480911D0404 |
:1050900090911E04A0911F04B09120048E199F09C5 |
:1050A000A00BB10B80931D0490931E04A0931F04CA |
:1050B000B09320048091D5039091D6038F3F910542 |
:1050C00009F008F4ADC4992009F02EC4809153046E |
:1050D000882309F029C4609180077091810780912D |
:1050E00082079091830720E031E040E050E00E9489 |
:1050F000563B19012A012093800730938107409382 |
:10510000820750938307609184077091850780918F |
:1051100086079091870720E031E040E050E00E9450 |
:10512000563B2F8B388F498F5A8F209384073093AB |
:1051300085074093860750938707E0903907FF243F |
:10514000002711272091050430910604409107049F |
:1051500050910804C801B7010E94E23A20E031E012 |
:1051600040E050E00E94563B39014A01209305047B |
:1051700030930604409307045093080420910904D7 |
:1051800030910A0440910B0450910C04C801B701FE |
:105190000E94E23A20E031E040E050E00E94563BBD |
:1051A00059016A012093090430930A0440930B04C7 |
:1051B00050930C0460910D0470910E0480910F04C3 |
:1051C0009091100420E031E040E050E00E94563B16 |
:1051D00020930D0430930E0440930F045093100459 |
:1051E000C201B1016619770988099909E09052074F |
:1051F000FF2400271127A80197010E94563B209306 |
:105200007A0430937B0440937C0450937D04CA015C |
:10521000B90120E031E040E050E00E94563B3E8B77 |
:105220002D8B30935104209350046F89788D898D94 |
:105230009A8D6A197B098C099D09A80197010E9422 |
:10524000563B79018A01CA01B90120E031E040E012 |
:1052500050E00E94563B3CAB2BAB30934F04209365 |
:105260004E04609178077091790780917A07909148 |
:105270007B0720E031E040E050E00E94563B209365 |
:1052800078073093790740937A0750937B076091B2 |
:10529000700770917107809172079091730720E0F9 |
:1052A00031E040E050E00E94563B2093700730937D |
:1052B000710740937207509373072F8D38A149A14E |
:1052C0005AA18FA598A9A9A9BAA9281B390B4A0BDD |
:1052D0005B0B298B3A8B4B8B5C8B20939504309323 |
:1052E000960440939704509398042B8D3C8D4D8DDC |
:1052F0005E8D8BA59CA5ADA5BEA5281B390B4A0BC1 |
:105300005B0B2D873E874F87588B209391043093FA |
:105310009204409393045093940429893A894B89C9 |
:105320005C8920938D0430938E0440938F045093B6 |
:1053300090048D859E85AF85B8898093890490936C |
:105340008A04A0938B04B0938C04809119049091EB |
:105350001A04A0911B04B0911C04821B930BA40B94 |
:10536000B50B8093190490931A04A0931B04B09377 |
:105370001C048091210490912204A0912304B091F7 |
:1053800024042D853E854F855889821B930BA40BE1 |
:10539000B50B8093210490932204A0932304B0932F |
:1053A0002404C401B3012AE130E040E050E00E944F |
:1053B000563B3093C1062093C006C601B5012AE1D1 |
:1053C00030E040E050E00E94563B3093C30620930B |
:1053D000C20649895A895093C5064093C4068D85F3 |
:1053E0009E859093C7068093C606C201B1012AE14B |
:1053F00030E040E050E00E94563B3093C9062093D5 |
:10540000C8066F89788D898D9A8D2AE130E040E059 |
:1054100050E00E94563B3093CB062093CA06F09290 |
:10542000D906E092D8068BA99CA9880F991F2BA9B1 |
:105430003CA943E0220F331F4A95E1F7820F931FE7 |
:105440009093DB068093DA0681E090E090937504F8 |
:105450008093740480916C0490916D04A0916E040B |
:10546000B0916F0482199309A409B509815E914B2B |
:10547000AF4FBF4F8F539C49A040B04008F0C5C00C |
:1054800029893A894B895C89213080E1380780E09D |
:10549000480780E058070CF450C0809173048823BB |
:1054A00009F447C0DA01C9010CE0B595A7959795B5 |
:1054B00087950A95D1F701969093750480937404AB |
:1054C000DA01C90113E0B595A795979587951A95C7 |
:1054D000D1F780937A0490937B04A0937C04B093DB |
:1054E0007D0489589341A040B04064F088E893E17E |
:1054F000A0E0B0E080937A0490937B04A0937C04B6 |
:10550000B0937D0460917A0470917B0480917C0457 |
:1055100090917D0420E031E040E050E00E94563B55 |
:105520008D899E89820F931F90935104809350041C |
:1055300069C081E08093730465C010927304298967 |
:105540003A894B895C89203080EF38078FEF480714 |
:105550008FEF58070CF056C080917204882309F42D |
:105560004DC0DA01C901B095A095909581959F4FE6 |
:10557000AF4FBF4FFCE0B595A79597958795FA95E6 |
:10558000D1F701969093750480937404CA01B90110 |
:1055900028E030E040E050E00E94563B20937A043F |
:1055A00030937B0440937C0450937D0428573C4EF9 |
:1055B0004F4F5F4F64F488E79CEEAFEFBFEF8093EF |
:1055C0007A0490937B04A0937C04B0937D04609153 |
:1055D0007A0470917B0480917C0490917D0420E09A |
:1055E00031E040E050E00E94563BAD89BE89A20FF9 |
:1055F000B31FB0935104A09350040BC081E080937B |
:10560000720407C01092720404C0109275041092C4 |
:10561000740480915307082F11278091740490918E |
:1056200075040817190724F4109375040093740483 |
:1056300029893A894B895C89215034404040504047 |
:105640005CF08091EB039091EC0320917404309115 |
:105650007504820F931F13C029893A894B895C898D |
:1056600020503C4F4F4F5F4F74F48091EB0390916B |
:10567000EC032091740430917504821B930B90937A |
:10568000EC038093EB0381E090E0909375048093AA |
:105690007404109276041092770410927804109299 |
:1056A00079048091680490916904A0916A04B09192 |
:1056B0006B042F89388D498D5A8D821B930BA40B57 |
:1056C000B50B815E914BAF4FBF4F8F539C49A040AC |
:1056D000B04008F0C6C08D859E85AF85B8898150E1 |
:1056E0009041A040B0400CF454C0809171048823D4 |
:1056F00009F44BC08D859E85AF85B889ECE0B595E2 |
:10570000A79597958795EA95D1F70196909375049B |
:10571000809374048D859E85AF85B88973E0B595B7 |
:10572000A795979587957A95D1F78093760490936E |
:105730007704A0937804B093790489589341A040EA |
:10574000B04064F088E893E1A0E0B0E08093760494 |
:1057500090937704A0937804B093790460917604D1 |
:1057600070917704809178049091790420E031E081 |
:1057700040E050E00E94563B8BA99CA9820F931FEA |
:1057800090934F0480934E0469C081E0809371042C |
:1057900065C0109271042D853E854F855889203053 |
:1057A00080EF38078FEF48078FEF58070CF056C08F |
:1057B00080917004882309F44DC0DA01C901B095C5 |
:1057C000A095909581959F4FAF4FBF4F6CE0B595D9 |
:1057D000A795979587956A95D1F70196909375044B |
:1057E00080937404CA01B90128E030E040E050E041 |
:1057F0000E94563B209376043093770440937804BC |
:105800005093790428573C4E4F4F5F4F64F488E71C |
:105810009CEEAFEFBFEF8093760490937704A09354 |
:105820007804B09379046091760470917704809144 |
:1058300078049091790420E031E040E050E00E944B |
:10584000563BABA9BCA9A20FB31FB0934F04A093C2 |
:105850004E040BC081E08093700407C01092700466 |
:1058600004C0109275041092740480917604909193 |
:1058700077049093D5068093D40680917404909118 |
:1058800075040817190724F4109375040093740421 |
:105890002D853E854F8558892150344040405040E9 |
:1058A0005CF08091ED039091EE03209174043091AF |
:1058B0007504820F931F13C02D853E854F8558892F |
:1058C00020503C4F4F4F5F4F74F48091ED03909107 |
:1058D000EE032091740430917504821B930B909316 |
:1058E000EE038093ED038091EB039091EC03909392 |
:1058F000CD068093CC068091ED039091EE0320912C |
:10590000F1033091F203821B930B9C01A3E0220F61 |
:10591000331FAA95E1F7880F991F820F931F909369 |
:10592000CF068093CE0608C010924F0410924E040A |
:10593000109251041092500420E030E040E050E01A |
:10594000609188077091890780918A0790918B07F1 |
:105950000E942A3A882341F410924F0410924E0478 |
:105960001092510410925004809180079091810709 |
:10597000A0918207B091830780936C0490936D048B |
:10598000A0936E04B0936F04809184079091850773 |
:10599000A0918607B091870780936804909369046B |
:1059A000A0936A04B0936B0410920504109206044D |
:1059B00010920704109208041092090410920A042D |
:1059C00010920B0410920C0410920D0410920E040D |
:1059D00010920F0410921004109280071092810709 |
:1059E0001092820710928307109284071092850705 |
:1059F0001092860710928707109278071092790705 |
:105A000010927A0710927B0710927007109271071C |
:105A100010927207109273071092D6031092D5035A |
:105A20008090470490904804940197FE04C0222778 |
:105A3000332728193909253131053CF080912D078C |
:105A400084FD03C081E080937E04E0903607590115 |
:105A5000CC24B7FCC094DC2CB401882777FD80955A |
:105A6000982F2E2D3327442755270E94E23A9B0179 |
:105A7000AC01C601B5010E94E23A20E032E040E00C |
:105A800050E00E94563B89019A01FF24E89CC00126 |
:105A9000E99C900DF89C900D112464E070E00E9448 |
:105AA000213B600F711F882777FD8095982F6093A9 |
:105AB000990470939A0480939B0490939C04209182 |
:105AC0002504309126044091270450912804261B78 |
:105AD000370B480B590B2093250430932604409331 |
:105AE000270450932804213593EC390790E04907A7 |
:105AF00090E059072CF080E593ECA0E0B0E009C0FD |
:105B0000205B3C434F4F5F4F64F480EB9CE3AFEF6F |
:105B1000BFEF8093250490932604A0932704B093AD |
:105B2000280480912D0783FF9AC08091370481500B |
:105B3000809337048F3FD9F40E946F3690933204DC |
:105B4000809331042091330430913404821B930BF1 |
:105B5000845E9D4F68E671E00E94213B845B90402B |
:105B6000909336048093350482E3809337046091E8 |
:105B7000F5037091F6038091F7039091F80320E00C |
:105B800032E040E050E00E94563B890137FF03C0FD |
:105B9000109501951F4F6091FD037091FE03809158 |
:105BA000FF039091000420E032E040E050E00E94CA |
:105BB000563BB90137FF03C0709561957F4F601761 |
:105BC00071070CF4B8016332710574F480917E049E |
:105BD000882351F0809131049091320490933404E1 |
:105BE0008093330410927E04209197033327629FA1 |
:105BF000C001639F900D729F900D112460E470E0CE |
:105C00000E94213B261B370B1216130644F5809188 |
:105C1000350490913604FC012E9FC0012F9F900DFA |
:105C20003E9F900D112460E270E00E94213B882786 |
:105C300077FD8095982F209125043091260440917E |
:105C4000270450912804260F371F481F591F2093FF |
:105C50002504309326044093270450932804809110 |
:105C60007F04815080937F048F3F09F079C088E1E1 |
:105C700080937F04E0903907FF240027112760916B |
:105C8000F5037091F6038091F7039091F803A80152 |
:105C900097010E94563B30939F0620939E06609189 |
:105CA000FD037091FE038091FF0390910004A80111 |
:105CB00097010E94563B3093A1062093A006809145 |
:105CC000990790919A079093A3068093A2068091DA |
:105CD000A3079091A4079093A5068093A4068091B2 |
:105CE0009C0790919D079093A7068093A6068091AC |
:105CF0004A0490914B049093A9068093A806609162 |
:105D00002D0470912E0480912F049091300420E096 |
:105D100032E040E050E00E94563B3093AB062093C7 |
:105D2000AA0680913104909132049093AF0680933B |
:105D3000AE0680910803909109039093B106809379 |
:105D4000B0068091420499279093B3068093B206DF |
:105D500080917C0790917D079093BF068093BE064B |
:105D600080915204C0907507D0907607882391F0F7 |
:105D7000B601882777FD8095982F0E94203A2091C0 |
:105D80009E0730919F074091A0075091A1070E9464 |
:105D90009A3A2DC06091F5037091F6038091F70354 |
:105DA0009091F8030E94203A20918807309189074A |
:105DB00040918A0750918B070E949A3A7B018C018F |
:105DC000B601882777FD8095982F0E94203A209170 |
:105DD0009E0730919F074091A0075091A1070E9414 |
:105DE0009A3A9B01AC01C801B7010E947B390E941D |
:105DF000033A709376076093750780915304C090BF |
:105E00006D07D0906E07882391F0B601882777FD43 |
:105E10008095982F0E94203A20919E0730919F07ED |
:105E20004091A0075091A1070E949A3A2DC060911D |
:105E3000FD037091FE038091FF03909100040E9486 |
:105E4000203A209188073091890740918A07509124 |
:105E50008B070E949A3A7B018C01B601882777FD57 |
:105E60008095982F0E94203A20919E0730919F079D |
:105E70004091A0075091A1070E949A3A9B01AC0162 |
:105E8000C801B7010E947B390E94033A70936E07E4 |
:105E900060936D07209088073090890740908A07AB |
:105EA00050908B0760919C0770919D07882777FD24 |
:105EB0008095982F0E94203A20919E0730919F074D |
:105EC0004091A0075091A1070E949A3A7B018C0152 |
:105ED0006091110470911204809113049091140444 |
:105EE0000E94203AA20191010E949A3A20E030E0FB |
:105EF00040E05FE30E949A3A9B01AC01C801B70100 |
:105F00000E947B390E94033A8B0170939D07609336 |
:105F10009C07E0906D07F0906E07F092D706E09234 |
:105F2000D6066091FD037091FE038091FF0390916E |
:105F300000040E94203AA20191010E949A3A6987C6 |
:105F40007A878B879C870E94033A7093D10660936F |
:105F5000D00620914504309146043EA32DA33093F2 |
:105F6000DD062093DC06809175079091760738E076 |
:105F7000813093071CF080E098E005C08050984F76 |
:105F800034F480E098EF909376078093750751E0A2 |
:105F9000E51658E0F5061CF080E098E007C080E0C8 |
:105FA000E81688EFF80634F480E098EF90936E07D7 |
:105FB00080936D0798E0013019071CF080E098E0AD |
:105FC00005C00050184F34F480E098EF90939D077F |
:105FD00080939C0780912D07992780FFD9C040911D |
:105FE000940381FF0EC0423310F580914A049091D2 |
:105FF0004B04449790934D0480934C0410923904C1 |
:1060000019C020919F033091A003240F311D80916E |
:1060100032079927FC012E9FC0012F9F900D3E9FB4 |
:10602000900D1124449790934D0480934C0481E08B |
:106030008093390480913804882321F010924D0414 |
:1060400010924C0420914A0430914B0440914C042E |
:1060500050914D04421753070CF09AC080913904B7 |
:10606000882309F495C0241B350B8091950399274B |
:10607000AC01249FC001259F900D349F900D1124E9 |
:1060800060E170E00E94213B09811A81061B170B19 |
:106090002091D3033091D403809193039927DC019D |
:1060A0002A9FC0012B9F900D3A9F900D112468E00C |
:1060B00070E00E94213B061B170B60912D0470912C |
:1060C0002E0480912F049091300420E032E040E0D3 |
:1060D00050E00E94563BCA01B90120919603332734 |
:1060E000442755270E94E23A20E230E040E050E0A9 |
:1060F0000E94563BBFEF2E3C3B0714F42EEC3FEFC3 |
:106100008091800490918104AC01E4E0440F551F1C |
:10611000EA95E1F7481B590B2333310514F022E3CC |
:1061200030E0021B130BCA01800F911F60E170E089 |
:106130000E94213B709381046093800480912E071C |
:106140009927681779078CF4E981FA81E817F9072C |
:106150002CF0909381048093800407C029813A81B8 |
:1061600030938104209380040DC08091800490912D |
:10617000810449815A814817590724F450938104B6 |
:106180004093800480918004909181049A83898354 |
:10619000A981BA81B093AD06A093AC06E0909C07AC |
:1061A000F0909D070091990410919A0420919B040E |
:1061B00030919C0480919B07882E992454971CF45D |
:1061C0001C821B8229C089819A8162E070E00E9452 |
:1061D000213B9701201B310BCB01261737070CF40D |
:1061E000C901709561957F4F681779070CF4BC0160 |
:1061F000C401E981FA818E1B9F0B681779070CF4A3 |
:10620000CB0129813A81281939093C832B8328172E |
:10621000390714F49C838B8360904304709044048A |
:106220008091AD049091AE04681A790A8091750747 |
:10623000909176078619970990937F0780937E0740 |
:1062400020E030E040E050E0C201B1010E942A3A73 |
:106250008823D1F16091A1047091A2048091A304DC |
:106260009091A4040E94203A5B016C016091F503B7 |
:106270007091F6038091F7039091F8030E94203A01 |
:10628000A20191010E949A3A7B018C01B3018827F7 |
:1062900077FD8095982F0E94203A9B01AC01C801A0 |
:1062A000B7010E947A399B01AC01C601B5010E9479 |
:1062B0007B390E94033A6093A1047093A2048093F7 |
:1062C000A3049093A4041CC020917E0730917F0703 |
:1062D000442737FD4095542F8091A1049091A2044A |
:1062E000A091A304B091A404820F931FA41FB51F13 |
:1062F0008093A1049093A204A093A304B093A40458 |
:106300008091A1049091A204A091A304B091A4044F |
:10631000181619061A061B0624F40297A109B109DA |
:1063200003C00296A11DB11D8093A1049093A20405 |
:10633000A093A304B093A4048091A1049091A2041B |
:10634000A091A304B091A40481383EE3930730E008 |
:10635000A30730E0B3072CF080E89EE3A0E0B0E0B4 |
:1063600009C08058914CAF4FBF4F64F480E891EC66 |
:10637000AFEFBFEF8093A1049093A204A093A30476 |
:10638000B093A40460917E0770917F0780918F0382 |
:1063900090919003A0919103B09192038D839E837D |
:1063A000AF83B887882777FD8095982F0E94203A81 |
:1063B0007B018C016091A1047091A2048091A304DF |
:1063C0009091A4040E94203A9B01AC016D817E81D2 |
:1063D0008F8198850E949A3A9B01AC01C801B70150 |
:1063E0000E947B390E94033A5B016C017CAB6BAB72 |
:1063F00080919E03E82EFF24002711278B819C812A |
:1064000097FF03C0909581959F4F62E070E00E94D6 |
:10641000213B9B01A981BA812A0F3B1F442737FDED |
:106420004095542FC801B7010E94E23A20E430E0C1 |
:1064300040E050E00E94563B3901EBA9FCA9E2176D |
:10644000F3070CF49501AA24BB24A618B708A501EC |
:10645000A216B3060CF4A90189819A812B813C8193 |
:10646000820F931F840F951F97FF03C020E030E039 |
:1064700005C09401881599050CF49C01809177075B |
:10648000C82EDD24C601C216D3060CF4C9018093C0 |
:106490006F0789819A81841B950B4B815C81840FE6 |
:1064A000951F97FF03C020E030E005C094018815D8 |
:1064B00099050CF49C01C601C216D3060CF4C9015F |
:1064C000809374078091AF049091B004ADA1BEA1F8 |
:1064D000A81BB90BBCABABAB80916D0790916E075D |
:1064E0008A1B9B0B90936C0780936B0720E030E036 |
:1064F00040E050E0C201B1010E942A3A882371F1C4 |
:1065000060919D0470919E0480919F049091A004DD |
:106510000E94203A7B018C01EBA9FCA9BF018827CE |
:1065200077FD8095982F0E94203A9B01AC016985E8 |
:106530007A858B859C850E947A399B01AC01C801C4 |
:10654000B7010E947B390E94033A60939D047093C7 |
:106550009E0480939F049093A0041CC020916B071D |
:1065600030916C07442737FD4095542F80919D044E |
:1065700090919E04A0919F04B091A004820F931F5C |
:10658000A41FB51F80939D0490939E04A0939F0425 |
:10659000B093A00480919D0490919E04A0919F04CB |
:1065A000B091A004181619061A061B0624F40297C7 |
:1065B000A109B10903C00296A11DB11D80939D04DC |
:1065C00090939E04A0939F04B093A00480919D0497 |
:1065D00090919E04A0919F04B091A0048138FEE3A5 |
:1065E0009F07F0E0AF07F0E0BF072CF080E89EE3E4 |
:1065F000A0E0B0E009C08058914CAF4FBF4F64F4A9 |
:1066000080E891ECAFEFBFEF80939D0490939E04E0 |
:10661000A0939F04B093A00460916B0770916C07E6 |
:10662000882777FD8095982F0E94203A7B018C0166 |
:1066300060919D0470919E0480919F049091A004AC |
:106640000E94203A9B01AC016D817E818F819885EB |
:106650000E949A3A9B01AC01C801B7010E947B39A4 |
:106660000E94033A9301661577050CF49B01C5015E |
:10667000A216B3060CF4C90149815A81480F591F6B |
:10668000AB81BC814A1B5B0B57FF03C020E030E0AD |
:1066900005C09401481559050CF49A01A601C216CB |
:1066A000D3060CF4A9014093960729813A81281B4F |
:1066B000390BEB81FC812E1B3F0B37FF03C040E001 |
:1066C00050E005C0A401281539050CF4A901C60144 |
:1066D000C416D5060CF0D1C0CA01CFC02091620407 |
:1066E00030916304C90173E0880F991F7A95E1F72F |
:1066F000821B930B68E070E00E94213B8B0170933A |
:1067000063046093620440E050E00C941025809193 |
:106710005204882311F40C9443270C943927E090F9 |
:106720003907FF24002711276FA578A989A99AA9FD |
:10673000A80197010E94563B8091990790919A0772 |
:10674000AA2797FDA095BA2F281B390B4A0B5B0B84 |
:10675000CA01B90120E130E040E050E00E94563B20 |
:1067600059016A016BA57CA58DA59EA5A80197017D |
:106770000E94563B8091A3079091A407AA2797FDFA |
:10678000A095BA2F281B390B4A0B5B0BCA01B90124 |
:1067900020E130E040E050E00E94563B79018A0160 |
:1067A000F1E2AF16B104C104D10414F40C94092829 |
:1067B00060E2A62EB12CC12CD12C0C941A28109278 |
:1067C0000504109206041092070410920804109217 |
:1067D000090410920A0410920B0410920C041092F7 |
:1067E00080071092810710928207109283071092FF |
:1067F00084071092850710928607109287071092DF |
:1068000078071092790710927A0710927B071092FE |
:10681000700710927107109272071092730780919F |
:10682000150490911604A0911704B0911804809358 |
:10683000190490931A04A0931B04B0931C04809134 |
:106840001D0490911E04A0911F04B0912004809318 |
:10685000210490932204A0932304B0932404109263 |
:10686000D6031092D5031092510410925004109246 |
:106870004F0410924E040C945A2880938C07E2E146 |
:10688000CA5C0C948D3B81E08093250752E05093C5 |
:10689000260743E04093270774E07093280765E0DC |
:1068A0006093290786E080932A0787E080932B076F |
:1068B00098E090932C0780EC80932D078EE18093D5 |
:1068C0002E078BEF809330073AE03093310722E3B5 |
:1068D00020932F07209333075093320740933407B8 |
:1068E00010923507909336078FE0809337078AEF31 |
:1068F000809338078AE18093390780E880933A07CC |
:1069000088EC80933B078FEA80933C078EE5809369 |
:106910003D0783E280933E0784E180933F07109216 |
:1069200040073093410780E5809342071092430768 |
:10693000109244071092450710925507109256077F |
:10694000109257071092580794E69093460788E2F2 |
:106950008093470710925A072093480786E980934F |
:10696000490760934A0720934B078AE580934C07B9 |
:1069700020934D071092590790934E0730934F077D |
:106980009093500790935107909352077093530739 |
:1069900020935407AFE5B7E0ECE6F3E08CE001901C |
:1069A0000D928150E1F7089581E08093250792E0F0 |
:1069B0009093260783E08093270744E040932807BD |
:1069C00055E05093290786E080932A0787E080935B |
:1069D0002B0788E080932C0780E480932D078EE1BD |
:1069E00080932E078BEF809330073AE03093310786 |
:1069F00022E320932F07209333079093320740938D |
:106A0000340710923507309336078FE080933707AD |
:106A10008AEF809338078AE18093390780E8809372 |
:106A20003A078FEA80933B0780933C078EE580937B |
:106A30003D0783E280933E0784E180933F071092F5 |
:106A4000400780E28093410780E5809342071092DF |
:106A50004307109244071092450710925507109271 |
:106A60005607109257071092580794E690934607DE |
:106A700088E28093470710925A072093480786E9D7 |
:106A80008093490750934A0720934B078AE58093E8 |
:106A90004C0720934D071092590790934E0730935F |
:106AA0004F0790935007909351079093520740934C |
:106AB00053078BE480935407AFE5B7E0E6E7F3E0D4 |
:106AC0008CE001900D928150E1F7089581E0809370 |
:106AD000250782E08093260783E08093270734E030 |
:106AE0003093280765E06093290786E080932A07A2 |
:106AF00087E080932B0798E090932C0780E48093A5 |
:106B00002D078EE180932E078BEF809330075AE09C |
:106B10005093310722E320932F07209333073093BC |
:106B2000320730933407909335078EE08093360711 |
:106B30008FE0809337078AEF809338078AE180934C |
:106B4000390790E890933A0788E780933B0746E936 |
:106B500040933C078EE580933D0783E280933E0798 |
:106B600084E180933F071092400780E280934107C1 |
:106B700090934207109243071092440710924507E2 |
:106B80001092550710925607109257071092580707 |
:106B900094E69093460788E28093470710925A073D |
:106BA000209348074093490760934A0720934B0777 |
:106BB0008AE580934C0720934D07109259079093D4 |
:106BC0004E0750934F07909350079093510720938F |
:106BD00052073093530790935407AFE5B7E0EEE7C1 |
:106BE000F3E08CE001900D928150E1F708958091DF |
:106BF000B1049091B204A091B304B091B404809315 |
:106C0000B9049093BA04A093BB04B093BC048091E0 |
:106C1000B5049091B604A091B704B091B8048093E4 |
:106C2000BD049093BE04A093BF04B093C004089524 |
:106C30001092AE041092AD041092B0041092AF0402 |
:106C400008951F920F920FB60F9211242F933F9326 |
:106C50004F938F939F938091B307833019F08430C3 |
:106C6000A1F508C08EB58093C1041EBC84E080935A |
:106C7000B3072BC08091C1049927382F22278EB5E6 |
:106C80009927282B392BC9018D509E4F875E934041 |
:106C9000D0F48091B607853019F0863069F406C0CB |
:106CA0003093B8072093B70786E00BC03093BA073C |
:106CB0002093B90787E005C03093BC072093BB073A |
:106CC00085E08093B6071092B3079F918F914F9103 |
:106CD0003F912F910F900FBE0F901F901895AAE033 |
:106CE000B0E0E5E7F6E30C94713BA0904407BB24C9 |
:106CF00033E0AA0CBB1C3A95E1F7CC24DD2460916B |
:106D0000F5037091F6038091F7039091F803A601C3 |
:106D100095010E94563B79018A01FF24E7FCF0941B |
:106D2000C7010E9422392C01C7010E9465393C012C |
:106D30006091FD037091FE038091FF039091000428 |
:106D4000A60195010E94563B79018A01FF24E7FCC8 |
:106D5000F094C7010E9422399A878987C7010E944F |
:106D600065391C016091B7077091B807E090B907C9 |
:106D7000F090BA072091AB07332727FD3095E21A30 |
:106D8000F30A0027F7FC0095102FA090BB07B090E6 |
:106D9000BC072091AC07332727FD3095A21AB30A10 |
:106DA000CC24B7FCC094DC2C2091AA07332727FD04 |
:106DB0003095621B730B882777FD8095982F882468 |
:106DC00077FC8094982CA40193010E94E23A3B0145 |
:106DD0004C0189859A85AA2797FDA095BA2F8D83A6 |
:106DE0009E83AF83B887C201AA2797FDA095BA2FCB |
:106DF00089839A83AB83BC83C801B7012D813E810F |
:106E00004F8158850E94E23A29813A814B815C8109 |
:106E10000E94E23A20E034E040E050E00E94563B1D |
:106E2000620E731E841E951E442437FC4094542C1D |
:106E3000C601B501A20191010E94E23A29813A817D |
:106E40004B815C810E94E23A20E034E040E050E077 |
:106E50000E94563B621A730A840A950AC801B70158 |
:106E6000A20191010E94E23A7B018C01C601B501A9 |
:106E70002D813E814F8158850E94E23AE60EF71E31 |
:106E8000081F191FC801B70120E034E040E050E0BE |
:106E90000E94563B79018A01C401B30120E034E02D |
:106EA00040E050E00E94563BDA01C901B7010E9460 |
:106EB00083389C0197FF05C088279927821B930B75 |
:106EC00004C088E691E0821B930BE2E1C65F0C945C |
:106ED0008D3B8091B307813041F0813018F08230D2 |
:106EE00049F51CC02A9A81E016C02A988091B607FD |
:106EF000853011F481E305C0863011F482E301C0CE |
:106F000083E38EBD88E090E00E94580C9093B50713 |
:106F10008093B40782E08093B30708958091B4070B |
:106F20009091B5070E94610C882321F01EBC83E07C |
:106F30008093B3070895A0E0B0E0E1EAF7E30C9492 |
:106F4000733B299A809100018A3011F4289801C07E |
:106F5000289AAA24BB2400E010E088249924EE2477 |
:106F6000FF2466247724CC24DD2462E3462E5524B6 |
:106F70008091B7079091B807081719072CF4009172 |
:106F8000B7071091B8070BC08091B7079091B80769 |
:106F90008A159B0524F4A090B707B090B80780919C |
:106FA000B9079091BA07E816F9062CF4E090B907F2 |
:106FB000F090BA070BC08091B9079091BA07881575 |
:106FC000990524F48090B9079090BA078091BB0787 |
:106FD0009091BC07C816D9062CF4C090BB07D0907E |
:106FE000BC070BC08091BB079091BC078615970525 |
:106FF00024F46090BB077090BC07552081F485B1E4 |
:1070000091E0892785B985B192E0892785B982E326 |
:1070100090E09093BD038093BC0352E3552E8AE029 |
:1070200090E00E94580CEC01CE010E94610C882374 |
:10703000D9F3E0912707FF27EE0FFF1FE750F94F25 |
:1070400080819181843691050CF44A94442011F09A |
:107050005A948ECFC8018A199B099093AE078093EA |
:10706000AD07C701881999099093B0078093AF07BE |
:10707000C601861997099093B2078093B107EAEA8F |
:10708000F7E0C8018A0D9B1D62E070E00E94213B81 |
:107090006093AA07C701880D991D62E070E00E9405 |
:1070A000213B6093AB07C601860D971D62E070E03F |
:1070B0000E94213B6093AC0789E0A0E7B1E0182E65 |
:1070C0000E94C73BE0E1CDB7DEB70C948F3B83ED68 |
:1070D0008CBD84B1846A84B9809100018A3019F42E |
:1070E000539A5B9802C03E9A469885E08093B60713 |
:1070F0001092B30789E0EAEAF7E0A0E7B1E0182EC2 |
:107100000E94B63B08951F93CF93DF93EC01892B28 |
:1071100031F46115710519F480E090E08FC077FDBE |
:1071200002C011E001C01FEF209729F48AE5180280 |
:10713000C001112483C0882777FD8095982F26E011 |
:10714000660F771F881F991F2A95D1F79E01442744 |
:1071500037FD4095542F0E94563BF90137FF03C07D |
:10716000F095E195FF4F41E0EA35F40734F4E5503E |
:10717000FB4F8491282F332747C05CE1E73AF5079E |
:107180001CF02AE530E040C089E0ED38F8071CF03B |
:1071900029E530E039C045E0EA3BF4071CF028E57A |
:1071A00030E032C054E0E731F5071CF027E530E06D |
:1071B0002BC083E0EE32F8071CF026E530E024C057 |
:1071C00042E0E939F4071CF025E530E01DC052E04B |
:1071D000E233F5071CF024E530E016C081E0E73E1D |
:1071E000F8071CF023E530E00FC041E0ED3AF4076A |
:1071F0001CF022E530E008C0EF57F1401CF021E51B |
:1072000030E002C020E530E01C161D066CF4812F32 |
:10721000992787FD9095AC01249FC001259F900D73 |
:10722000349F900D11240AC011162CF484EB90E0C9 |
:10723000821B930B03C0C901845B9040DF91CF9107 |
:107240001F910895FC0197FD03C041E050E005C087 |
:10725000F095E195FF4F4FEF5FEFEB35F1055CF0F7 |
:10726000CF018B5590408A35910540F484EB90E036 |
:107270008E1B9F0BFC0121E030E010C0CF01855B2D |
:1072800090408A35910518F4E45BF04005C088E62B |
:1072900091E08E1B9F0BFC012FEF3FEFEE0FFF1FC6 |
:1072A000EB5AF94F85919491BC01629FC001639F95 |
:1072B000900D729F900D11249C01429FC001439F2D |
:1072C000900D529F900D112408952AE530E0281B5F |
:1072D000390BC9010E9422390895FC0141505040E8 |
:1072E00030F001900616D1F73197CF010895882725 |
:1072F000992708955058192EEFD001D0D2C0BA174F |
:107300006207730784079507B1F188F40EF41094AF |
:107310000B2EBA2FA02D062E622F202D072E732F95 |
:10732000302D082E842F402D092E952F502DFF270C |
:107330005523B9F0591B49F0573E98F046953795BB |
:107340002795A795F0405395C9F776F0BA0F621FBD |
:10735000731F841F30F4879577956795B795F04034 |
:10736000939517FA0F2E0895BF1BBB27BA0B620B1C |
:10737000730B840BF6CFDEF6DBC0AED001D091C02C |
:10738000552359F0992369F09F575F57951B33F4A4 |
:1073900042F4903811F4915805C09BC091589F3F1A |
:1073A00009F4C6C0BB27112462177307840730F4A1 |
:1073B000660F771F881FBB1F915098F311D00F9253 |
:1073C0000FD00F920DD0A0E82617370748071B06ED |
:1073D00009F0A048BA2F602D7F918F910024089565 |
:1073E000A0E80024621773078407B10528F0621B28 |
:1073F000730B840BB1090A2A660F771F881FBB1F06 |
:10740000A69581F7089597FB73D09F3738F0FEE972 |
:10741000F91B982F872F762F6B2F05C086C0969566 |
:10742000879577956795F150D0F73EF490958095C4 |
:10743000709561957F4F8F4F9F4F0895E89403C0DB |
:1074400097FB0EF4F3DFB62F672F782F892F9EE975 |
:10745000002427C00ED05EF004C00BD026F001C07F |
:1074600008D019F020F48FEF089580E0089581E0AE |
:10747000089597FB092E052600F8689430D0E8940B |
:1074800007FC07C0621773078407950721F008F40B |
:1074900000940794989408959A95BB0F661F771FE0 |
:1074A000881F11249923A1F08823B2F79F3F59F038 |
:1074B000BB0F48F421F4002011F460FF04C06F5F9B |
:1074C0007F4F8F4F9F4F881F9795879597F9089506 |
:1074D0002CC09FEF80EC0895052E092607FA440F73 |
:1074E000551F5F3F79F0AA27A51708F051E047958F |
:1074F000880F991F9F3F31F0BB27B91708F091E023 |
:10750000879508959F919F911124E3CF97FB880F52 |
:10751000991F9F3F31F0BB27B91708F091E087957D |
:1075200008959F919F911124D4CF662777278827AC |
:1075300099270895D1DF01D0B4CF992339F055238D |
:1075400029F09F575F57950F13F49AF1F1CF915897 |
:107550009F3FE1F3629FA12D0F92BB27639FA00D78 |
:10756000B11DEE27729FA00DB11DEE1FAF93AA278C |
:10757000649FB00DE11D739FB00DE11DAA1F66272A |
:10758000829FB00DE11DA61F5527749FE00DA11D20 |
:10759000551F839FE00DA11D561F849FA00D511DF7 |
:1075A000852F7A2F6E2F1F900F9088231AF49395B2 |
:1075B00039F48FCF000C111CBB1F661F771F881F6B |
:1075C00001280895629FD001739FF001829FE00D12 |
:1075D000F11D649FE00DF11D929FF00D839FF00D52 |
:1075E000749FF00D659FF00D9927729FB00DE11DFE |
:1075F000F91F639FB00DE11DF91FBD01CF011124DB |
:107600000895991B79E004C0991F961708F0961BFE |
:10761000881F7A95C9F780950895AA1BBB1B51E175 |
:1076200007C0AA1FBB1FA617B70710F0A61BB70BF2 |
:10763000881F991F5A95A9F780959095BC01CD0197 |
:10764000089597FB092E07260AD077FD04D0E5DFC1 |
:1076500006D000201AF4709561957F4F0895F6F7D3 |
:10766000909581959F4F0895A1E21A2EAA1BBB1BEE |
:10767000FD010DC0AA1FBB1FEE1FFF1FA217B307FE |
:10768000E407F50720F0A21BB30BE40BF50B661F14 |
:10769000771F881F991F1A9469F7609570958095D8 |
:1076A00090959B01AC01BD01CF01089597FB092E78 |
:1076B00005260ED057FD04D0D7DF0AD0001C38F4C1 |
:1076C00050954095309521953F4F4F4F5F4F08950E |
:1076D000F6F790958095709561957F4F8F4F9F4FEE |
:1076E00008952F923F924F925F926F927F928F9266 |
:1076F0009F92AF92BF92CF92DF92EF92FF920F9341 |
:107700001F93CF93DF93CDB7DEB7CA1BDB0B0FB64A |
:10771000F894DEBF0FBECDBF09942A883988488807 |
:107720005F846E847D848C849B84AA84B984C8849D |
:10773000DF80EE80FD800C811B81AA81B981CE0F94 |
:10774000D11D0FB6F894DEBF0FBECDBFED01089579 |
:10775000EE0FFF1F0590F491E02D0994F999FECFEB |
:10776000B2BDA1BDF89A119600B40895F7DF019259 |
:107770001A94E1F70895F999FECFB2BDA1BD00BCFE |
:1077800011960FB6F894FA9AF99A0FBE08950190DF |
:0A779000F2DF1A94E1F70895FFCF2D |
:10779A000A01FF64496E74656772616C4E69636BB6 |
:1077AA0020202020496E74656772616C526F6C6C80 |
:1077BA00202020204163634E69636B202020202013 |
:1077CA0020202020416363526F6C6C2020202020EF |
:1077DA00202020204779726F476965722020202077 |
:1077EA0020202020486F6568656E576572742020D6 |
:1077FA00202020204163635A20202020202020209E |
:10780A0020202020476173202020202020202020B3 |
:10781A00202020204B6F6D7061737356616C756503 |
:10782A00202020205370616E6E756E672020202004 |
:10783A0020202020456D7066616E67202020202060 |
:10784A0020202020416E616C6F673131202020207A |
:10785A00202020204D6F746F725F566F726E652004 |
:10786A00202020204D6F746F725F48696E74656EB8 |
:10787A00202020204D6F746F725F4C696E6B7320ED |
:10788A00202020204D6F746F725F52656368747395 |
:10789A00202020204163635F5A20202020202020BE |
:1078AA00202020204D697474656C4163634E6963BE |
:1078BA006B2020204D697474656C416363526F6C50 |
:1078CA006C202020496E74656772616C4572724E35 |
:1078DA0069636B20496E74656772616C4572725296 |
:1078EA006F6C6C204D697474656C496E744E696373 |
:1078FA006B2020204D697474656C496E74526F6CEC |
:10790A006C0920004E65757472616C4E69636B2058 |
:10791A0020202020526F6C6C4F666673657420209D |
:10792A0020202020496E74526F6C6C2A46616B7459 |
:10793A006F722020416E616C6F67323620202020E2 |
:10794A0020202020446972656B74417573676C52FC |
:10795A006F6C6C204D65737377657274526F6C6CC3 |
:10796A0020202020417573676C65696368526F6CCB |
:10797A006C202020492D4C616765526F6C6C202069 |
:10798A0020202020537469636B526F6C6C20202076 |
:10799A0020202020FFFF0A016400007D0000FF0371 |
:1079AA000102030405060708090A48616C6C6F2086 |
:1079BA0057656C7400000000000000000000000021 |
:1079CA0000000000000000000000000000000000AD |
:1079DA00000000000000000000000000000000009D |
:1079EA00000000000000000000000000000000008D |
:1079FA00000000000000000000000C0142656769F9 |
:107A0A006E6E657200004E6F726D616C000053708D |
:107A1A006F72740000640090D0030090D0030017C6 |
:107A2A00B7D13830FB103A409696020A644664ECA5 |
:027A3A00FF004B |
:00000001FF |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/FlightCtrl.aps |
---|
0,0 → 1,0 |
<AVRStudio><MANAGEMENT><ProjectName>FlightCtrl</ProjectName><Created>15-May-2007 11:20:41</Created><LastEdit>11-Oct-2007 22:58:54</LastEdit><ICON>241</ICON><ProjectType>0</ProjectType><Created>15-May-2007 11:20:41</Created><Version>4</Version><Build>4, 13, 0, 528</Build><ProjectTypeName>AVR GCC</ProjectTypeName></MANAGEMENT><CODE_CREATION><ObjectFile>default\Flight-Ctrl.elf</ObjectFile><EntryFile></EntryFile><SaveFolder>F:\SVN\MikroKopter\FlightCtrl\branches\V0.64_ZeroWarnings\</SaveFolder></CODE_CREATION><DEBUG_TARGET><CURRENT_TARGET>AVR Simulator</CURRENT_TARGET><CURRENT_PART>ATmega644.xml</CURRENT_PART><BREAKPOINTS></BREAKPOINTS><IO_EXPAND><HIDE>false</HIDE></IO_EXPAND><REGISTERNAMES><Register>R00</Register><Register>R01</Register><Register>R02</Register><Register>R03</Register><Register>R04</Register><Register>R05</Register><Register>R06</Register><Register>R07</Register><Register>R08</Register><Register>R09</Register><Register>R10</Register><Register>R11</Register><Register>R12</Register><Register>R13</Register><Register>R14</Register><Register>R15</Register><Register>R16</Register><Register>R17</Register><Register>R18</Register><Register>R19</Register><Register>R20</Register><Register>R21</Register><Register>R22</Register><Register>R23</Register><Register>R24</Register><Register>R25</Register><Register>R26</Register><Register>R27</Register><Register>R28</Register><Register>R29</Register><Register>R30</Register><Register>R31</Register></REGISTERNAMES><COM>Auto</COM><COMType>0</COMType><WATCHNUM>0</WATCHNUM><WATCHNAMES><Pane0></Pane0><Pane1></Pane1><Pane2></Pane2><Pane3></Pane3></WATCHNAMES><BreakOnTrcaeFull>0</BreakOnTrcaeFull></DEBUG_TARGET><Debugger><Triggers></Triggers></Debugger><AVRGCCPLUGIN><FILES><SOURCEFILE>uart.c</SOURCEFILE><SOURCEFILE>analog.c</SOURCEFILE><SOURCEFILE>eeprom.c</SOURCEFILE><SOURCEFILE>fc.c</SOURCEFILE><SOURCEFILE>GPS.c</SOURCEFILE><SOURCEFILE>main.c</SOURCEFILE><SOURCEFILE>menu.c</SOURCEFILE><SOURCEFILE>printf_P.c</SOURCEFILE><SOURCEFILE>rc.c</SOURCEFILE><SOURCEFILE>timer0.c</SOURCEFILE><SOURCEFILE>twimaster.c</SOURCEFILE><HEADERFILE>uart.h</HEADERFILE><HEADERFILE>_Settings.h</HEADERFILE><HEADERFILE>analog.h</HEADERFILE><HEADERFILE>fc.h</HEADERFILE><HEADERFILE>gps.h</HEADERFILE><HEADERFILE>main.h</HEADERFILE><HEADERFILE>menu.h</HEADERFILE><HEADERFILE>old_macros.h</HEADERFILE><HEADERFILE>printf_P.h</HEADERFILE><HEADERFILE>rc.h</HEADERFILE><HEADERFILE>Settings.h</HEADERFILE><HEADERFILE>timer0.h</HEADERFILE><HEADERFILE>twimaster.h</HEADERFILE></FILES><CONFIGS><CONFIG><NAME>default</NAME><USESEXTERNALMAKEFILE>NO</USESEXTERNALMAKEFILE><EXTERNALMAKEFILE></EXTERNALMAKEFILE><PART>atmega644</PART><HEX>1</HEX><LIST>1</LIST><MAP>1</MAP><OUTPUTFILENAME>Flight-Ctrl.elf</OUTPUTFILENAME><OUTPUTDIR>default\</OUTPUTDIR><ISDIRTY>1</ISDIRTY><OPTIONS><OPTION><FILE>GPS.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>analog.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>eeprom.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>fc.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>main.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>menu.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>printf_P.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>rc.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>timer0.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>twimaster.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>uart.c</FILE><OPTIONLIST></OPTIONLIST></OPTION></OPTIONS><INCDIRS/><LIBDIRS/><LIBS><LIB>libc.a</LIB><LIB>libm.a</LIB></LIBS><LINKOBJECTS/><OPTIONSFORALL>-Wall -gdwarf-2 -Wstrict-prototypes -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -DVERSION_HAUPTVERSION=0 -DVERSION_NEBENVERSION=64 -DVERSION_KOMPATIBEL=5</OPTIONSFORALL><LINKEROPTIONS></LINKEROPTIONS><SEGMENTS/></CONFIG></CONFIGS><LASTCONFIG>default</LASTCONFIG><USES_WINAVR>1</USES_WINAVR><GCC_LOC>C:\Program Files\WinAVR\bin\avr-gcc.exe</GCC_LOC><MAKE_LOC>C:\Program Files\WinAVR\utils\bin\make.exe</MAKE_LOC></AVRGCCPLUGIN><IOView><usergroups/></IOView><Files><File00000><FileId>00000</FileId><FileName>main.c</FileName><Status>1</Status></File00000><File00001><FileId>00001</FileId><FileName>uart.c</FileName><Status>1</Status></File00001><File00002><FileId>00002</FileId><FileName>menu.c</FileName><Status>1</Status></File00002><File00003><FileId>00003</FileId><FileName>timer0.c</FileName><Status>1</Status></File00003><File00004><FileId>00004</FileId><FileName>fc.c</FileName><Status>1</Status></File00004><File00005><FileId>00005</FileId><FileName>fc.h</FileName><Status>1</Status></File00005><File00006><FileId>00006</FileId><FileName>menu.h</FileName><Status>1</Status></File00006><File00007><FileId>00007</FileId><FileName>TWIMASTER.C</FileName><Status>1</Status></File00007><File00008><FileId>00008</FileId><FileName>twimaster.h</FileName><Status>1</Status></File00008><File00009><FileId>00009</FileId><FileName>uart.h</FileName><Status>1</Status></File00009><File00010><FileId>00010</FileId><FileName>_Settings.h</FileName><Status>1</Status></File00010><File00011><FileId>00011</FileId><FileName>analog.h</FileName><Status>1</Status></File00011><File00012><FileId>00012</FileId><FileName>gps.h</FileName><Status>1</Status></File00012><File00013><FileId>00013</FileId><FileName>main.h</FileName><Status>1</Status></File00013><File00014><FileId>00014</FileId><FileName>old_macros.h</FileName><Status>1</Status></File00014><File00015><FileId>00015</FileId><FileName>printf_P.h</FileName><Status>1</Status></File00015><File00016><FileId>00016</FileId><FileName>rc.h</FileName><Status>1</Status></File00016><File00017><FileId>00017</FileId><FileName>Settings.h</FileName><Status>1</Status></File00017><File00018><FileId>00018</FileId><FileName>timer0.h</FileName><Status>1</Status></File00018></Files><Events><Bookmarks></Bookmarks></Events><Trace><Filters></Filters></Trace></AVRStudio> |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/GPS.c |
---|
0,0 → 1,30 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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" |
signed int GPS_Nick = 0; |
signed int GPS_Roll = 0; |
long GpsAktuell_X = 0; |
long GpsAktuell_Y = 0; |
long GpsZiel_X = 0; |
long GpsZiel_Y = 0; |
void GPS_Neutral(void) |
{ |
GpsZiel_X = GpsAktuell_X; |
GpsZiel_Y = GpsAktuell_Y; |
} |
void GPS_BerechneZielrichtung(void) |
{ |
GPS_Nick = 0; |
GPS_Roll = 0; |
} |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/License.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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/Readme.pdf |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/Settings.h |
---|
--- V0.67g/trunc/_Settings.h (nonexistent) |
+++ V0.67g/trunc/_Settings.h (revision 603) |
@@ -0,0 +1,50 @@ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Testmodi |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define MOTOR_OFF 0 |
+#define MOTOR_TEST 0 |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Abstimmung |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define ACC_AMPLIFY 12 |
+#define FAKTOR_P 1 |
+#define FAKTOR_I 0.0001 |
+ |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Debug-Interface |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define SIO_DEBUG 1 // Soll der Debugger aktiviert sein? |
+#define MIN_DEBUG_INTERVALL 500 // in diesem Intervall werden Degugdaten 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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/analog.c |
---|
0,0 → 1,147 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 = acc_neutral.Y - ADC; |
AdWertAccRoll = Aktuell_ay; |
kanal = 7; |
break; |
case 5: |
Aktuell_ax = ADC - acc_neutral.X; |
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; |
//AdWertNick = 0; |
//AdWertNick += Poti2; |
kanal = 5; |
break; |
case 9: |
AdWertAccHoch = (signed int) ADC - acc_neutral.Z; |
AdWertAccHoch += abs(Aktuell_ay) / 4 + abs(Aktuell_ax) / 4; |
if(AdWertAccHoch > 1) |
{ |
if(acc_neutral.Z < 800) acc_neutral.Z+= 0.02; |
} |
else if(AdWertAccHoch < -1) |
{ |
if(acc_neutral.Z > 600) acc_neutral.Z-= 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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/compass.c |
---|
0,0 → 1,243 |
/* |
Copyright 2007, Niklas Nold |
This program (files compass.c and compass.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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
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 |
*/ |
#include "main.h" |
struct MM3_calib_struct ee_calib EEMEM; // Reservierung im EEPROM |
struct MM3_working_struct MM3; |
struct MM3_calib_struct MM3_calib; |
//############################################################################ |
// Initialisierung |
void init_MM3(void) |
//############################################################################ |
{ |
// SPI-Schnittstelle initialisieren |
SPCR = (1<<SPIE)|(1<<SPE)|(1<<MSTR)|(1<<SPR1)|(1<<SPR0); // Interrupt an, Master, 156 kHz Oszillator |
DDRB |= (1<<PB7)|(1<<PB5)|(1<<PB2); // J8, MOSI, SCK Ausgang |
if(PlatinenVersion == 10) |
{ |
DDRD |= (1<<PD3); // PD3 als Ausgang |
PORTD &= ~(1<<PD3); // J5 permanent auf Low |
} |
else |
{ |
DDRC |= (1<<PC6); // PC6 als Ausgang |
PORTC &= ~(1<<PC6); // J9 permanent auf Low |
} |
// Init Statemachine |
MM3.AXIS = MM3_X; |
MM3.STATE = MM3_RESET; |
// Kalibrierung aus dem EEprom lesen |
eeprom_read_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Wird in der SIGNAL (SIG_OVERFLOW0) aufgerufen |
void timer0_MM3(void) |
//############################################################################ |
{ |
switch (MM3.STATE) |
{ |
case MM3_RESET: |
PORTB |= (1<<PB2); // J8 auf High, MM3 Reset |
MM3.STATE = MM3_START_TRANSFER; |
return; |
case MM3_START_TRANSFER: |
PORTB &= ~(1<<PB2); // J8 auf Low (war ~125 µs auf High) |
if (MM3.AXIS == MM3_X) SPDR = 0x31; // Schreiben ins SPDR löst automatisch SPI-Übertragung (MOSI und MISO) aus |
else if (MM3.AXIS == MM3_Y) SPDR = 0x32; // Micromag Period Select ist auf 256 (0x30) |
else SPDR = 0x33; //if (MM3.AXIS == MM3_Z) // 1: x-Achse, 2: Y-Achse, 3: Z-Achse |
MM3.DRDY = SetDelay(8); // Laut Datenblatt max. Zeit bis Messung fertig (bei PS 256 eigentlich 4 ms) |
MM3.STATE = MM3_WAIT_DRDY; |
return; |
case MM3_WAIT_DRDY: |
if (CheckDelay(MM3.DRDY)) {SPDR = 0x00;MM3.STATE = MM3_DRDY;} // Irgendwas ins SPDR, damit Übertragung ausgelöst wird, wenn Wartezeit vorbei |
return; // Jetzt gehts weiter in SIGNAL (SIG_SPI) |
} |
} |
//############################################################################ |
// SPI byte ready |
SIGNAL (SIG_SPI) |
//############################################################################ |
{ |
static char tmp; |
int wert; |
switch (MM3.STATE) |
{ |
case MM3_DRDY: // 1. Byte ist da, zwischenspeichern |
tmp = SPDR; |
SPDR = 0x00; // Übertragung von 2. Byte auslösen |
MM3.STATE = MM3_BYTE2; |
return; |
case MM3_BYTE2: // 2. Byte der entsprechenden Achse ist da |
wert = tmp; |
wert <<= 8; // 1. Byte an MSB-Stelle rücken |
wert |= SPDR; // 2. Byte dranpappen |
if(abs(wert) < Max_Axis_Value) // Spikes filtern. Zuweisung nur, wenn Max-Wert nicht überschritten |
switch (MM3.AXIS) |
{ |
case MM3_X: |
MM3.x_axis = wert; |
MM3.AXIS = MM3_Y; |
break; |
case MM3_Y: |
MM3.y_axis = wert; |
MM3.AXIS = MM3_Z; |
break; |
default: //case MM3_Z: |
MM3.z_axis = wert; |
MM3.AXIS = MM3_X; |
} |
MM3.STATE = MM3_RESET; |
} |
} |
//############################################################################ |
// Kompass kalibrieren |
void calib_MM3(void) |
//############################################################################ |
{ |
signed int x_min=0,x_max=0,y_min=0,y_max=0,z_min=0,z_max=0; |
uint8_t measurement=50,beeper=0; |
unsigned int timer; |
GRN_ON; |
ROT_OFF; |
while (measurement) |
{ |
//H_earth = MM3.x_axis*MM3.x_axis + MM3.y_axis*MM3.y_axis + MM3.z_axis*MM3.z_axis; |
if (MM3.x_axis > x_max) x_max = MM3.x_axis; |
else if (MM3.x_axis < x_min) x_min = MM3.x_axis; |
if (MM3.y_axis > y_max) y_max = MM3.y_axis; |
else if (MM3.y_axis < y_min) y_min = MM3.y_axis; |
if (MM3.z_axis > z_max) z_max = MM3.z_axis; |
else if (MM3.z_axis < z_min) z_min = MM3.z_axis; |
if (!beeper) |
{ |
ROT_FLASH; |
GRN_FLASH; |
beeptime = 50; |
beeper = 50; |
} |
beeper--; |
// Schleife mit 100 Hz |
timer = SetDelay(10); |
while(!CheckDelay(timer)); |
// Wenn Gas zurück genommen wird, Kalibrierung mit 1/2 Sekunde Verzögerung beenden |
if (PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] < 100) measurement--; |
} |
// Wertebereich der Achsen |
MM3_calib.X_range = (x_max - x_min); |
MM3_calib.Y_range = (y_max - y_min); |
MM3_calib.Z_range = (z_max - z_min); |
// Offset der Achsen |
MM3_calib.X_off = (x_max + x_min) / 2; |
MM3_calib.Y_off = (y_max + y_min) / 2; |
MM3_calib.Z_off = (z_max + z_min) / 2; |
// und im EEProm abspeichern |
eeprom_write_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Neigungskompensierung und Berechnung der Ausrichtung |
int heading_MM3(void) |
//############################################################################ |
{ |
signed int sin_nick, cos_nick, sin_roll, cos_roll; |
long x_axis, y_axis, z_axis; |
long x_corr, y_corr; |
signed int heading; |
int8_t nicktilt,rolltilt; |
unsigned int div_faktor; |
div_faktor = (uint16_t)EE_Parameter.UserParam3 * 8; |
// Berechung von sinus und cosinus |
nicktilt = (IntegralNick/div_faktor); |
sin_nick = sin_i(nicktilt); |
cos_nick = cos_i(nicktilt); |
rolltilt = (IntegralRoll/div_faktor); |
sin_roll = sin_i(rolltilt); |
cos_roll = cos_i(rolltilt); |
// Offset |
x_axis = (MM3.x_axis - MM3_calib.X_off); |
y_axis = (MM3.y_axis - MM3_calib.Y_off); |
z_axis = (MM3.z_axis - MM3_calib.Z_off); |
/* |
// Normierung Wertebereich |
if ((MM3_calib.X_range > MM3_calib.Y_range) && (MM3_calib.X_range > MM3_calib.Z_range)) |
{ |
y_axis = (y_axis * MM3_calib.X_range) / MM3_calib.Y_range; |
z_axis = (z_axis * MM3_calib.X_range) / MM3_calib.Z_range; |
} |
else if ((MM3_calib.Y_range > MM3_calib.X_range) && (MM3_calib.Y_range > MM3_calib.Z_range)) |
{ |
x_axis = (x_axis * MM3_calib.Y_range) / MM3_calib.X_range; |
z_axis = (z_axis * MM3_calib.Y_range) / MM3_calib.Z_range; |
} |
else //if ((MM3_calib.Z_range > MM3_calib.X_range) && (MM3_calib.Z_range > MM3_calib.Y_range)) |
{ |
x_axis = (x_axis * MM3_calib.Z_range) / MM3_calib.X_range; |
y_axis = (y_axis * MM3_calib.Z_range) / MM3_calib.Y_range; |
} |
*/ |
// Neigungskompensierung |
x_corr = x_axis * cos_nick; |
x_corr += (y_axis * sin_roll * sin_nick) /1024; |
x_corr -= (z_axis * cos_roll * sin_nick) /1024; |
x_corr /= 1024; |
y_corr = y_axis * cos_roll; |
y_corr += z_axis * sin_roll; |
y_corr /= 1024; |
// Winkelberechnung |
heading = atan2_i(x_corr, y_corr); |
if (heading < 0) heading = -heading; |
else heading = 360 - heading; |
return (heading); |
} |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/compass.h |
---|
0,0 → 1,44 |
struct MM3_working_struct |
{ |
uint8_t STATE; |
unsigned int DRDY; |
uint8_t AXIS; |
volatile signed int x_axis; |
volatile signed int y_axis; |
volatile signed int z_axis; |
}; |
struct MM3_calib_struct |
{ |
int8_t X_off; |
int8_t Y_off; |
int8_t Z_off; |
uint16_t X_range; |
uint16_t Y_range; |
uint16_t Z_range; |
}; |
extern struct MM3_working_struct MM3; |
extern struct MM3_calib_struct MM3_calib; |
void init_MM3(void); |
void timer0_MM3(void); |
void calib_MM3(void); |
int heading_MM3(void); |
#define Max_Axis_Value 500 |
// Die Werte der Statemachine |
#define MM3_RESET 0 |
#define MM3_START_TRANSFER 1 |
#define MM3_WAIT_DRDY 2 |
#define MM3_DRDY 3 |
#define MM3_BYTE2 4 |
#define MM3_X 5 |
#define MM3_Y 6 |
#define MM3_Z 7 |
#define MM3_TILT 8 |
#define MM3_IDLE 9 |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/eeprom.c |
---|
0,0 → 1,182 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 8; //8 // Wert : 0-64 |
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 = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // 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 = 32 * 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 / 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 = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // 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 = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // 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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/fc.c |
---|
0,0 → 1,1117 |
/*####################################################################################### |
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. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
#include "eeprom.c" |
unsigned char h,m,s; |
volatile unsigned int I2CTimeout = 100; |
int MesswertNick,MesswertRoll,MesswertGier; |
int AdNeutralNick = 0,AdNeutralRoll = 0,AdNeutralGier = 0,StartNeutralRoll = 0,StartNeutralNick = 0; |
int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
long IntegralNick = 0,IntegralNick2 = 0; |
long IntegralRoll = 0,IntegralRoll2 = 0; |
long IntegralAccNick = 0,IntegralAccRoll = 0,IntegralAccZ = 0; |
long Integral_Gier = 0; |
long Mess_IntegralNick = 0,Mess_IntegralNick2 = 0; |
long Mess_IntegralRoll = 0,Mess_IntegralRoll2 = 0; |
long Mess_Integral_Gier = 0,Mess_Integral_Gier2 = 0; |
long MittelIntegralNick,MittelIntegralRoll,MittelIntegralNick2,MittelIntegralRoll2; |
volatile long Mess_Integral_Hoch = 0; |
int KompassValue = 0; |
int KompassStartwert = 0; |
int KompassRichtung = 0; |
uint8_t updKompass = 0; |
unsigned char MAX_GAS,MIN_GAS; |
unsigned char Notlandung = 0; |
unsigned char HoehenReglerAktiv = 0; |
long Umschlag180Nick = 250000L, Umschlag180Roll = 250000L; |
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; |
struct acc_neutral_struct ee_acc_neutral EEMEM; // Reservierung im EEPROM |
struct acc_neutral_struct acc_neutral; |
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); |
} |
} |
//############################################################################ |
// Neutrallage kalibrieren und im EEPROM abspeichern |
void calib_acc(void) |
//############################################################################ |
{ |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
CalibrierMittelwert(); |
Delay_ms_Mess(100); |
CalibrierMittelwert(); |
acc_neutral.X = abs(Mittelwert_AccNick) / ACC_AMPLIFY; |
acc_neutral.Y = abs(Mittelwert_AccRoll) / ACC_AMPLIFY; |
acc_neutral.Z = Aktuell_az; |
eeprom_write_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
} |
//############################################################################ |
// Nullwerte ermitteln |
void SetNeutral(void) |
//############################################################################ |
{ |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 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; |
eeprom_read_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
Mess_IntegralNick = 0; |
Mess_IntegralNick2 = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralRoll2 = 0; |
Mess_Integral_Gier = 0; |
MesswertNick = 0; |
MesswertRoll = 0; |
MesswertGier = 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; |
} |
//############################################################################ |
// 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 - acc_neutral.Z; |
// Gier ++++++++++++++++++++++++++++++++++++++++++++++++ |
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 = 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(); |
GRN_ON; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gaswert ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GasMischanteil = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + 120; |
if(GasMischanteil > MAX_GAS - 20) GasMischanteil = MAX_GAS - 20; |
if(GasMischanteil < 0) GasMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang 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; |
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 |
} |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
SetNeutral(); |
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) |
{ |
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; |
} |
} |
else delay_einschalten = 0; |
//Auf Neutralwerte setzen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Auschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) |
{ |
if(++delay_ausschalten > 200) // nicht sofort |
{ |
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; |
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; |
if(cnt > EE_Parameter.Driftkomp) cnt = EE_Parameter.Driftkomp; |
if(IntegralFehlerNick > FEHLER_LIMIT) AdNeutralNick += cnt; |
if(IntegralFehlerNick < -FEHLER_LIMIT) AdNeutralNick -= cnt; |
// 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; |
} |
DebugOut.Analog[27] = ausgleichRoll; |
if(cnt > EE_Parameter.Driftkomp) cnt = EE_Parameter.Driftkomp; |
//if(cnt > 1) beeptime = 50; |
if(IntegralFehlerRoll > FEHLER_LIMIT) AdNeutralRoll += cnt; |
if(IntegralFehlerRoll < -FEHLER_LIMIT) AdNeutralRoll -= cnt; |
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; |
} |
//DebugOut.Analog[31] = StickRoll / (26*IntegralFaktor); |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// 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(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
{ |
int w,v; |
if (!updKompass--) // Aufruf mit ~10 Hz |
{ |
KompassValue = heading_MM3(); |
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
updKompass = 50; |
} |
w = abs(IntegralNick /512); // mit zunehmender Neigung den Einfluss drosseln |
v = abs(IntegralRoll /512); |
if(v > w) w = v; // grösste Neigung ermitteln |
if(w < 35 && NeueKompassRichtungMerken) |
{ |
KompassStartwert = KompassValue; |
NeueKompassRichtungMerken = 0; |
} |
w = (w * Parameter_KompassWirkung) / 64; // auf die Wirkung normieren |
w = Parameter_KompassWirkung - w; // Wirkung ggf drosseln |
if(w > 0) |
{ |
Mess_Integral_Gier += (KompassRichtung * w) / 32; // nach Kompass ausrichten |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Debugwerte zuordnen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!TimerWerteausgabe--) |
{ |
TimerWerteausgabe = 24; |
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] = UBat; |
DebugOut.Analog[10] = SenderOkay; |
DebugOut.Analog[16] = Mittelwert_AccHoch; |
/* 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)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)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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/fc.h |
---|
0,0 → 1,153 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
#ifndef _FC_H |
#define _FC_H |
extern volatile unsigned int I2CTimeout; |
extern unsigned char Sekunde,Minute; |
extern long Mess_IntegralNick,Mess_IntegralNick2; |
extern long Mess_IntegralRoll,Mess_IntegralRoll2; |
extern volatile long Mess_Integral_Hoch; |
extern long Mess_Integral_Gier,Mess_Integral_Gier2; |
extern int KompassValue; |
extern int KompassStartwert; |
extern int KompassRichtung; |
extern long IntegralNick,IntegralNick2; |
extern long IntegralRoll,IntegralRoll2; |
extern long IntegralAccNick,IntegralAccRoll,IntegralAccZ; |
extern long Integral_Gier; |
extern int HoehenWert; |
extern int SollHoehe; |
extern int MesswertNick,MesswertRoll,MesswertGier; |
extern int AdNeutralNick,AdNeutralRoll,AdNeutralGier, Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
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; |
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 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); |
extern void DefaultKonstanten3(void); |
struct acc_neutral_struct |
{ |
volatile int X; |
volatile int Y; |
volatile float Z; |
}; |
extern struct acc_neutral_struct acc_neutral; |
extern void calib_acc(void); |
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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/flight.pnproj |
---|
0,0 → 1,0 |
<Project name="Flight-Ctrl"><File path="uart.h"></File><File path="main.c"></File><File path="main.h"></File><File path="makefile"></File><File path="uart.c"></File><File path="printf_P.h"></File><File path="printf_P.c"></File><File path="timer0.c"></File><File path="timer0.h"></File><File path="old_macros.h"></File><File path="twimaster.c"></File><File path="version.txt"></File><File path="twimaster.h"></File><File path="rc.c"></File><File path="rc.h"></File><File path="fc.h"></File><File path="fc.c"></File><File path="menu.h"></File><File path="menu.c"></File><File path="_Settings.h"></File><File path="analog.c"></File><File path="analog.h"></File><File path="GPS.c"></File><File path="gps.h"></File><File path="License.txt"></File><File path="eeprom.c"></File><File path="compass.c"></File><File path="compass.h"></File><File path="mymath.c"></File><File path="mymath.h"></File></Project> |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/flight.pnps |
---|
0,0 → 1,0 |
<pd><ViewState><e p="Flight-Ctrl" x="true"></e></ViewState></pd> |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/gps.h |
---|
0,0 → 1,14 |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Roll; |
void GPS_Neutral(void); |
void GPS_BerechneZielrichtung(void); |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/main.c |
---|
0,0 → 1,267 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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" |
// Reservierung im EEPROM |
unsigned char EEPromArray[10] EEMEM; |
struct mk_param_struct EEParameterArray[5] 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; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_read_block(buffer, &EEParameterArray[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; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_write_block(buffer, &EEParameterArray[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; |
DDRC = 0x81; // SCL |
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(); |
init_MM3(); |
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], sizeof(struct mk_param_struct)); |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], 3); // default-Setting |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], EE_DATENREVISION); |
calib_acc(); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
printf("\n\rBenutze Parametersatz %d", GetActiveParamSetNumber()); |
//kurze Wartezeit (sonst reagiert die "Kompass kalibrieren?"-Abfrage nicht |
timer = SetDelay(500); |
while(!CheckDelay(timer)); |
//Kompass kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 100) |
{ |
printf("\n\rKalibriere Kompass"); |
calib_MM3(); |
} |
//Neutrallage kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -100) |
{ |
printf("\n\rKalibriere Neutrallage"); |
calib_acc(); |
} |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
printf("\n\rAbgleich Luftdrucksensor.."); |
timer = SetDelay(1000); |
SucheLuftruckOffset(); |
while (!CheckDelay(timer)); |
printf("OK\n\r"); |
} |
SetNeutral(); |
ROT_OFF; |
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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/main.h |
---|
0,0 → 1,96 |
#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 |
#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 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 unsigned char SenderOkay; |
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 "compass.h" |
#include "mymath.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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/makefile |
---|
0,0 → 1,419 |
#-------------------------------------------------------------------- |
# MCU name |
MCU = atmega644 |
F_CPU = 20000000 |
#------------------------------------------------------------------- |
HAUPT_VERSION = 0 |
NEBEN_VERSION = 67 |
VERSION_INDEX = 6 |
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 |
ifeq ($(VERSION_INDEX), 6) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)g |
endif |
ifeq ($(VERSION_INDEX), 7) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)h |
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 |
SRC += compass.c mymath.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 \ |
-mtiny-stack -mcall-prologues \ |
-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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/menu.c |
---|
0,0 → 1,139 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 = 12,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,acc_neutral.X); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AdWertAccRoll,acc_neutral.Y); |
LCD_printfxy(0,3,"Hoch %4i (%3i)",Mittelwert_AccHoch/*accumulate_AccHoch / messanzahl_AccHoch*/,(int)acc_neutral.Z); |
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; |
case 11: |
LCD_printfxy(0,0,"MM3 Off"); |
LCD_printfxy(0,1,"X_Offset: %3i",MM3_calib.X_off); |
LCD_printfxy(0,2,"Y_Offset: %3i",MM3_calib.Y_off); |
LCD_printfxy(0,3,"Z_Offset: %3i",MM3_calib.Z_off); |
break; |
case 12: |
LCD_printfxy(0,0,"MM3 Range"); |
LCD_printfxy(0,1,"X_Range: %4i",MM3_calib.X_range); |
LCD_printfxy(0,2,"Y_Range: %4i",MM3_calib.Y_range); |
LCD_printfxy(0,3,"Z_Range: %4i",MM3_calib.Z_range); |
break; |
default: MaxMenue = MenuePunkt - 1; |
MenuePunkt = 0; |
break; |
} |
RemoteTasten = 0; |
} |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/mymath.c |
---|
0,0 → 1,110 |
/* |
Copyright 2007, Niklas Nold |
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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
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 |
*/ |
#include "main.h" |
const uint8_t pgm_atan[346] PROGMEM = {0,1,2,3,4,4,5,6,7,8,9,10,11,11,12,13,14,15,16,17,17,18,19,20,21,21,22,23,24,24,25,26,27,27,28,29,29,30,31,31,32,33,33,34,35,35,36,36,37,37,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,45,46,46,47,47,48,48,48,49,49,50,50,50,51,51,51,52,52,52,53,53,53,54,54,54,55,55,55,55,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,60,61,61,61,61,62,62,62,62,62,63,63,63,63,63,63,64,64,64,64,64,64,65,65,65,65,65,65,66,66,66,66,66,66,66,67,67,67,67,67,67,67,68,68,68,68,68,68,68,68,69,69,69,69,69,69,69,69,69,70,70,70,70,70,70,70,70,70,71,71,71,71,71,71,71,71,71,71,71,72,72,72,72,72,72,72,72,72,72,72,73,73,73,73,73,73,73,73,73,73,73,73,73,73,74,74,74,74,74,74,74,74,74,74,74,74,74,74,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79}; |
//############################################################################ |
// Arkustangens2 im Gradmaß |
signed int atan2_i(signed int x, signed int y) |
//############################################################################ |
{ |
int i,angle; |
int8_t m; |
if (!x && !y) return 0; //atan2 = 0 für x und y = 0 |
if (y < 0) m=-1; |
else m=1; |
if (!x) return (90*m); // atan2 = 90° für x = 0 |
i = abs(((long)y*64) / x); // Berechne i für die Lookup table (Schrittweite atan(x) ist 0,015625 -> y *64) |
if (i<346) angle = pgm_read_byte(&pgm_atan[i]); // Lookup für 1° bis 79° |
else if (i>7334) angle = 90; // Grenzwert ist 90° |
else if (i>2444) angle = 89; // 89° bis 80° über Wertebereiche |
else if (i>1465) angle = 88; |
else if (i>1046) angle = 87; |
else if (i>813) angle = 86; |
else if (i>664) angle = 85; |
else if (i>561) angle = 84; |
else if (i>486) angle = 83; |
else if (i>428) angle = 82; |
else if (i>382) angle = 81; |
else angle = 80; // (i>345) |
if (x > 0) return (angle*m); // Quadrant I und IV |
else if ((x < 0) && (m > 0)) return (-angle + 180); // Quadrant II |
else return (angle - 180); // x < 0 && y < 0 Quadrant III |
} |
const uint16_t pgm_sinus_i[91] PROGMEM = {0,18,36,54,71,89,107,125,143,160,178,195,213,230,248,265,282,299,316,333,350,367,384,400,416,433,449,465,481,496,512,527,543,558,573,587,602,616,630,644,658,672,685,698,711,724,737,749,761,773,784,796,807,818,828,839,849,859,868,878,887,896,904,912,920,928,935,943,949,956,962,968,974,979,984,989,994,998,1002,1005,1008,1011,1014,1016,1018,1020,1022,1023,1023,1024,1024}; |
//############################################################################ |
// Kosinusfunktion im Gradmaß |
signed int cos_i(signed int winkel) |
//############################################################################ |
{ |
return (sin_i(90-winkel)); |
} |
//############################################################################ |
// Sinusfunktion im Gradmaß |
signed int sin_i(signed int winkel) |
//############################################################################ |
{ |
short int m,n; |
signed int sinus; |
if (winkel < 0) |
{ |
m = -1; |
winkel = abs(winkel); |
} |
else m = +1; |
// Quadranten auswerten |
if (winkel <= 90) n=1; |
else if ((winkel > 90) && (winkel <= 180)) {winkel = 180 - winkel; n = 1;} |
else if ((winkel > 180) && (winkel <= 270)) {winkel = winkel - 180; n = -1;} |
else {winkel = 360 - winkel; n = -1;} //if ((winkel > 270) && (winkel <= 360)) |
sinus = pgm_read_word(&pgm_sinus_i[winkel]); |
return (sinus*m*n); |
} |
/* |
const uint8_t pgm_asin[201] PROGMEM = {0,0,1,1,1,1,2,2,2,3,3,3,3,4,4,4,5,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9,10,10,10,11,11,11,12,12,12,12,13,13,13,14,14,14,14,15,15,15,16,16,16,17,17,17,17,18,18,18,19,19,19,20,20,20,20,21,21,21,22,22,22,23,23,23,24,24,24,25,25,25,25,26,26,26,27,27,27,28,28,28,29,29,29,30,30,30,31,31,31,32,32,32,33,33,33,34,34,34,35,35,35,36,36,37,37,37,38,38,38,39,39,39,40,40,41,41,41,42,42,42,43,43,44,44,44,45,45,46,46,46,47,47,48,48,49,49,49,50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57,58,58,59,59,60,60,61,62,62,63,64,64,65,66,66,67,68,68,69,70,71,72,73,74,75,76,77,79,80,82,84,90}; |
//############################################################################ |
// Akurssinusfunktion im Gradmaß |
int8_t asin_i(signed int i) |
//############################################################################ |
{ |
signed char m; |
if (i < 0) {m=-1;i=abs(i);} |
else m=1; |
i %= 200; |
return (pgm_read_byte(&pgm_asin[i]) * m); |
} |
*/ |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/mymath.h |
---|
0,0 → 1,8 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
extern int atan2_i(signed int x, signed int y); |
extern signed int cos_i(signed int winkel); |
extern signed int sin_i(signed int winkel); |
//extern int8_t asin_i(signed int i); |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/timer0.c |
---|
0,0 → 1,145 |
#include "main.h" |
volatile unsigned int CountMilliseconds = 0; |
volatile unsigned char UpdateMotor = 0; |
volatile unsigned int beeptime = 0; |
unsigned int BeepMuster = 0xffff; |
int ServoValue = 0; |
enum { |
STOP = 0, |
CK = 1, |
CK8 = 2, |
CK64 = 3, |
CK256 = 4, |
CK1024 = 5, |
T0_FALLING_EDGE = 6, |
T0_RISING_EDGE = 7 |
}; |
SIGNAL (SIG_OVERFLOW0) // 9,8kHz |
{ |
static unsigned char cnt_1ms = 1,cnt = 0; |
unsigned char pieper_ein = 0; |
// TCNT0 -= 250;//TIMER_RELOAD_VALUE; |
if(!cnt--) |
{ |
cnt = 10; |
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) timer0_MM3(); // Kompass auslesen |
} |
void Timer_Init(void) |
{ |
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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/timer0.h |
---|
0,0 → 1,15 |
#define TIMER_TEILER CK8 |
#define TIMER_RELOAD_VALUE 250 |
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 int ServoValue; |
extern unsigned int BeepMuster; |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/twimaster.c |
---|
0,0 → 1,134 |
/*############################################################################ |
############################################################################*/ |
#include "main.h" |
unsigned char twi_state = 0; |
unsigned char motor = 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 |
void i2c_start(void) |
//############################################################################ |
{ |
TWCR = (1<<TWSTA) | (1<<TWEN) | (1<<TWINT) | (1<<TWIE); |
} |
//############################################################################ |
//Stop 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); |
} |
//############################################################################ |
//Write to I2C |
void i2c_write_byte(char byte) |
//############################################################################ |
{ |
TWDR = byte; |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
} |
//############################################################################ |
// I2C receive byte and send ACK |
void i2c_receive_byte(void) |
//############################################################################ |
{ |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE) | (1<<TWEA); |
} |
//############################################################################ |
// I2C receive last byte and send NOT ACK |
void i2c_receive_last_byte(void) |
//############################################################################ |
{ |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
} |
//############################################################################ |
//Start I2C |
SIGNAL (TWI_vect) |
//############################################################################ |
{ |
static unsigned char motorread = 0; |
switch (twi_state++) // First i2c_start from SendMotorData() |
{ |
// Master Transmit |
case 0: // Address Slave SL+W |
i2c_write_byte(0x52+(motor*2)); |
break; |
case 1: // Send Data |
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: // Repeat case 0+1 for all Slaves |
if (motor < 4) twi_state = 0; |
i2c_start(); // Repeated start -> switch salve or switch Master Transmit -> Master Receive |
break; |
// Master Receive |
case 3: // Address Slave SL+R |
i2c_write_byte(0x53+(motorread*2)); |
break; |
case 4: //1. Byte vom Motor übertragen |
i2c_receive_byte(); |
break; |
case 5: // 1. Byte lesen und 2. Byte übertragen |
motor_rx[motorread] = TWDR; |
i2c_receive_last_byte(); |
break; |
case 6: //2. Byte lesen |
motor_rx[motorread+4] = TWDR; |
motorread++; |
if (motorread > 3) motorread=0; |
default: |
i2c_stop(); |
twi_state = 0; |
I2CTimeout = 10; |
motor = 0; |
} |
} |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/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 void i2c_start (void); // Start I2C |
extern void i2c_stop (void); // Stop I2C |
extern void i2c_write_byte (char byte); // 1 Byte schreiben |
extern void i2c_reset(void); |
#endif |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/uart.c |
---|
0,0 → 1,392 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 char SendeBuffer[MAX_SENDE_BUFF]; |
unsigned 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; |
const unsigned char ANALOG_TEXT[32][16] = |
{ |
//1234567890123456 |
"IntegralNick ", //0 |
"IntegralRoll ", |
"AccNick ", |
"AccRoll ", |
"GyroGier ", |
"HoehenWert ", //5 |
"AccZ ", |
"Gas ", |
"KompassValue ", |
"Spannung ", |
"Empfang ", //10 |
"Analog11 ", |
"Motor_Vorne ", |
"Motor_Hinten ", |
"Motor_Links ", |
"Motor_Rechts ", //15 |
"Acc_Z ", |
"MittelAccNick ", |
"MittelAccRoll ", |
"IntegralErrNick ", |
"IntegralErrRoll ", //20 |
"MittelIntNick ", |
"MittelIntRoll ", |
"NeutralNick ", |
"RollOffset ", |
"IntRoll*Faktor ", //25 |
"Analog26 ", |
"DirektAusglRoll ", |
"MesswertRoll ", |
"AusgleichRoll ", |
"I-LageRoll ", //30 |
"StickRoll " |
}; |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ 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; |
unsigned char crc1,crc2; |
static unsigned char buf_ptr = 0; |
//unsigned char CrcOkay /*= 0 Initialisierung nicht notwendig */; |
unsigned char SioTmp /* = 0 Initialisierung nicht notwendig */; |
SioTmp = UDR; |
if(buf_ptr == 0) |
{ |
if(SioTmp == '#' && !NeuerDatensatzEmpfangen) buf_ptr = 1; // Startzeichen und Daten schon verarbeitet |
RxdBuffer[0] = SioTmp; |
crc = SioTmp; |
} |
#if 0 |
else if ((buf_ptr == 1) // Adresse auswerten |
{ |
RxdBuffer[buf_ptr++] = SioTmp; |
crc += SioTmp; |
} |
#endif |
else if (/*(buf_ptr > 0) && */(buf_ptr < MAX_EMPFANGS_BUFF)) |
{ // Eingangsdaten sammeln |
if(SioTmp != '\r') |
{ |
RxdBuffer[buf_ptr++] = SioTmp; |
crc += SioTmp; |
} |
else |
{ |
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])) |
{ |
if(!NeuerDatensatzEmpfangen) // Datensatz schon verarbeitet |
{ |
NeuerDatensatzEmpfangen = 1; |
AnzahlEmpfangsBytes = buf_ptr; |
RxdBuffer[buf_ptr] = '\r'; |
if(RxdBuffer[2] == 'R') wdt_enable(WDTO_250MS); // Reset-Commando |
} |
} |
else {CntCrcError++;} |
buf_ptr = 0; |
} |
} |
else |
{ |
buf_ptr = 0; |
} |
} |
// -------------------------------------------------------------------------- |
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], sizeof(struct mk_param_struct)); |
SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
} |
else |
SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
break; |
case 'l': |
case 'm': |
case 'n': |
case 'o': |
case 'p': // Parametersatz speichern |
Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct),3,AnzahlEmpfangsBytes); |
WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
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) |
{ |
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; |
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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/uart.h |
---|
0,0 → 1,101 |
#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 |
void BearbeiteRxDaten(void); |
extern unsigned char DebugGetAnforderung; |
extern unsigned char SendeBuffer[MAX_SENDE_BUFF]; |
extern unsigned 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/MicroMag3_Nick666/Festkomma/V0.67g/trunc/version.txt |
---|
0,0 → 1,107 |
------- |
V0.53 27.04.2007 H.Buss |
- erste öffentliche Version |
V0.53b 29.04.2007 H.Buss |
- der FAKTOR_I war versehentlich auf Null, dann liegt der MikroKopter nicht so hart in der Luft |
V0.53c 29.04.2007 H.Buss |
- es gib ein Menü, in dem die Werte der Kanäle nach Nick, Roll, Gas,... sortiert sind. |
Die angezeigten Werte waren nicht die Werte der Funke |
V0.54 01.05.2007 H.Buss |
- die Paramtersätze können jetzt vor dem Start ausgewählt werden |
Dazu wird beim Kalibrieren der Messwerte (Gashebel oben links) der Nick-Rollhebel abgefragt: |
2 3 4 |
1 x 5 |
- - - |
Bedeutet: Nick-Rollhebel Links Mitte = Setting:1 Links Oben = Setting:2 usw. |
- der Faktor_I für den Hauptregler ist hinzugekommen. Im Heading-Hold-Modus sollte er vergössert werden, was Stabilität bringt |
V0.55 14.05.2007 H.Buss |
- es können nun Servos an J3,J4,J5 mit den Kanälen 5-7 gesteuert werden |
V0.56 14.05.2007 H.Buss |
- es gab Probleme mit Funken, die mehr als 8 Kanäle haben, wenn mehrere Kanäle dann auf Null waren |
- Funken, die nicht bis +-120 aussteuern können, sollten jetzt auch gehen |
V0.57 24.05.2007 H.Buss |
- Der Höhenregler kann nun auch mittels Schalter bedient werden |
- Bug im Gier-Algorithmus behoben; Schnelles Gieren fürhrte dazu, dass der MK zu weit gedreht hat |
- Kompass-Einfluss dämpfen bei Neigung |
- Man kann zwischen Kompass FIX (Richtung beim Kalibrieren) und Variabel (einstellbar per Gier) wählen |
- Der Motortest vom Kopter-Tool geht jetzt |
- Man kann den Parametersätzen einen Namen geben |
- Das Kamerasetting ist unter Setting 2 defaultmässig integriert |
V0.58 30.05.2007 H.Buss |
- Der Höhenregler-Algorithmus wird nun umgangen, wenn der Höhenreglerschalter aus ist |
V0.60 17.08.2007 H.Buss |
- "Schwindel-Bug" behoben |
- Die Poti-Werte werden jetzt auf Unterlauf (<0) überprüft |
- Poti4 zugefügt |
- Es werden jetzt 8 Kanäle ausgewertet |
- Kamera-Servo (an J7) |
- Die Settings müssen überschrieben werden |
V0.61 - V0.63 H.Buss 27.09.2007 |
- Poti 4 und Kanal 8 werden im Menü angezeigt |
- ein paar Kleinigkeiten bei den DefaultKonstanten2 bereinigt |
- Analog.c: Aktuell_ax korrigiert |
- auf 32 Debug-Kanäle erweitert |
- Loopings sind jetzt möglich und einzeln im KopterTool freischaltbar |
- leichte Anpassungen im Gier - Geschwindigkeit und Drift |
- die Hardwareversion V1.1 wird erkannt und das Programm stellt sich auf die geänderte Gyroverstärkung und die geänderten Portpins ein |
- die Software startet nach dem Einschalten schneller, weil der Luftdruckoffset schneller gefunden wird |
- die PPM-Ausgänge liegen wieder an den Pins an |
- Details an der Sensordatenverarbeitung -> es fliegt sich geringfügig anders |
- der MK ist bei wenig Gas nicht mehr so giftig -> soll das Landen vereinfachen |
- I2C-Bus läuft jetzt sicher nach einer Störung wieder an |
- Sticksignale werden präziser ausgewertet |
- Stick-Kanäle werden ans Kopter-Tool übertragen |
- Es muss die Version V1.47 des Kopter-Tool verwendet werden |
- Die Settings werden auf Default zurückgesetzt |
- am Piepen kann man die Fehlerart unterscheiden |
1. einzelnes Piepen beim Einschalten und Kalibrieren |
2. langsames Intervall mindestens 1 Sek -> Empfangsausfall |
3. schnelleres Intervall mindestens 1 Sek -> Akku |
4. sehr schnelles Intervall mindestens 1 Sek -> Kommunikation zu den Reglern gestört |
V0.64 H.Buss 30.09.2007 |
- beim Gieren wurden die Achsen nicht hart genug geregelt |
V0.65a H.Buss 15.10.2007 |
- Integral im Mischer wieder integriert |
- Feinabstimmung im ACC/Gyro Abgleich -> 1/32 & 100 |
- ACC/Gyro Abgleich auch bei HH |
V0.66a H.Buss 3.11.2007 |
- Messwertverarbeitung aus dem Analog-Interrupt entfernt |
- Analogmessung hängt jetzt am FC-Timing |
- Looping-Stick-Hysterese eingebaut |
- Looping-180°-Umschlag einstellbar |
- Achsenkopplung: Gierbewegung verkoppelt Nick und Roll |
- Lageregelung nach ACC-Sensor verbessert |
- zusätzlicher I-Anteil in der Lageregelung verbessert die Neutrallage |
- Gyrodriftkompensation überarbeitet |
- Bug in der Gier-Stick-Berechnung behoben |
- Gyro-Messung auf 1kHz beschleunigt |
V0.67a H.Buss 16.11.2007 |
- der Hauptregler-I-Anteil wirkt jetzt nur noch auf den Winkel (ausser im HH-Mode) |
- Gyro-Acc-Abgleich jetzt wieder in jedem Zyklus |
- Feinabstimmung |
- Beim HH-Modus gab es noch Bugs |
V0.67e H.Buss 29.11.2007 |
- Parameter: Dynamic Stability und Driftfaktor eingeführt |
- Die Namen der Analogwerte werden jetzt zum Koptertool übertragen |
- Kompatibilität zum Koptertool erhöht |
V0.67f H.Buss 04.12.2007 |
- Giersteuerwert im Mischer auf Gas/2 begrenzt |
- Die Analogwerte des ACC-Sensors können dauerhaft im EEPROM gespeichert werden |
- Das Integral des Hauptreglers wird jetzt linear entladen und nicht mehr proportional |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/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/MicroMag3_Nick666/Festkomma/V0.67g/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/MicroMag3_Nick666/Festkomma/V0.67g/uart.c |
---|
0,0 → 1,388 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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; |
const unsigned char ANALOG_TEXT[32][16] = |
{ |
//1234567890123456 |
"IntegralNick ", //0 |
"IntegralRoll ", |
"AccNick ", |
"AccRoll ", |
"GyroGier ", |
"HoehenWert ", //5 |
"AccZ ", |
"Gas ", |
"KompassValue ", |
"Spannung ", |
"Empfang ", //10 |
"Analog11 ", |
"Motor_Vorne ", |
"Motor_Hinten ", |
"Motor_Links ", |
"Motor_Rechts ", //15 |
"Acc_Z ", |
"MittelAccNick ", |
"MittelAccRoll ", |
"IntegralErrNick ", |
"IntegralErrRoll ", //20 |
"MittelIntNick ", |
"MittelIntRoll ", |
"NeutralNick ", |
"RollOffset ", |
"IntRoll*Faktor ", //25 |
"Analog26 ", |
"DirektAusglRoll ", |
"MesswertRoll ", |
"AusgleichRoll ", |
"I-LageRoll ", //30 |
"StickRoll " |
}; |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ 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; |
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], sizeof(struct mk_param_struct)); |
SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
} |
else |
SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
break; |
case 'l': |
case 'm': |
case 'n': |
case 'o': |
case 'p': // Parametersatz speichern |
Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct),3,AnzahlEmpfangsBytes); |
WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
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) |
{ |
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; |
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/MicroMag3_Nick666/Festkomma/V0.67g/uart.h |
---|
0,0 → 1,100 |
#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 |
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/MicroMag3_Nick666/Festkomma/V0.67g/version.txt |
---|
0,0 → 1,107 |
------- |
V0.53 27.04.2007 H.Buss |
- erste öffentliche Version |
V0.53b 29.04.2007 H.Buss |
- der FAKTOR_I war versehentlich auf Null, dann liegt der MikroKopter nicht so hart in der Luft |
V0.53c 29.04.2007 H.Buss |
- es gib ein Menü, in dem die Werte der Kanäle nach Nick, Roll, Gas,... sortiert sind. |
Die angezeigten Werte waren nicht die Werte der Funke |
V0.54 01.05.2007 H.Buss |
- die Paramtersätze können jetzt vor dem Start ausgewählt werden |
Dazu wird beim Kalibrieren der Messwerte (Gashebel oben links) der Nick-Rollhebel abgefragt: |
2 3 4 |
1 x 5 |
- - - |
Bedeutet: Nick-Rollhebel Links Mitte = Setting:1 Links Oben = Setting:2 usw. |
- der Faktor_I für den Hauptregler ist hinzugekommen. Im Heading-Hold-Modus sollte er vergössert werden, was Stabilität bringt |
V0.55 14.05.2007 H.Buss |
- es können nun Servos an J3,J4,J5 mit den Kanälen 5-7 gesteuert werden |
V0.56 14.05.2007 H.Buss |
- es gab Probleme mit Funken, die mehr als 8 Kanäle haben, wenn mehrere Kanäle dann auf Null waren |
- Funken, die nicht bis +-120 aussteuern können, sollten jetzt auch gehen |
V0.57 24.05.2007 H.Buss |
- Der Höhenregler kann nun auch mittels Schalter bedient werden |
- Bug im Gier-Algorithmus behoben; Schnelles Gieren fürhrte dazu, dass der MK zu weit gedreht hat |
- Kompass-Einfluss dämpfen bei Neigung |
- Man kann zwischen Kompass FIX (Richtung beim Kalibrieren) und Variabel (einstellbar per Gier) wählen |
- Der Motortest vom Kopter-Tool geht jetzt |
- Man kann den Parametersätzen einen Namen geben |
- Das Kamerasetting ist unter Setting 2 defaultmässig integriert |
V0.58 30.05.2007 H.Buss |
- Der Höhenregler-Algorithmus wird nun umgangen, wenn der Höhenreglerschalter aus ist |
V0.60 17.08.2007 H.Buss |
- "Schwindel-Bug" behoben |
- Die Poti-Werte werden jetzt auf Unterlauf (<0) überprüft |
- Poti4 zugefügt |
- Es werden jetzt 8 Kanäle ausgewertet |
- Kamera-Servo (an J7) |
- Die Settings müssen überschrieben werden |
V0.61 - V0.63 H.Buss 27.09.2007 |
- Poti 4 und Kanal 8 werden im Menü angezeigt |
- ein paar Kleinigkeiten bei den DefaultKonstanten2 bereinigt |
- Analog.c: Aktuell_ax korrigiert |
- auf 32 Debug-Kanäle erweitert |
- Loopings sind jetzt möglich und einzeln im KopterTool freischaltbar |
- leichte Anpassungen im Gier - Geschwindigkeit und Drift |
- die Hardwareversion V1.1 wird erkannt und das Programm stellt sich auf die geänderte Gyroverstärkung und die geänderten Portpins ein |
- die Software startet nach dem Einschalten schneller, weil der Luftdruckoffset schneller gefunden wird |
- die PPM-Ausgänge liegen wieder an den Pins an |
- Details an der Sensordatenverarbeitung -> es fliegt sich geringfügig anders |
- der MK ist bei wenig Gas nicht mehr so giftig -> soll das Landen vereinfachen |
- I2C-Bus läuft jetzt sicher nach einer Störung wieder an |
- Sticksignale werden präziser ausgewertet |
- Stick-Kanäle werden ans Kopter-Tool übertragen |
- Es muss die Version V1.47 des Kopter-Tool verwendet werden |
- Die Settings werden auf Default zurückgesetzt |
- am Piepen kann man die Fehlerart unterscheiden |
1. einzelnes Piepen beim Einschalten und Kalibrieren |
2. langsames Intervall mindestens 1 Sek -> Empfangsausfall |
3. schnelleres Intervall mindestens 1 Sek -> Akku |
4. sehr schnelles Intervall mindestens 1 Sek -> Kommunikation zu den Reglern gestört |
V0.64 H.Buss 30.09.2007 |
- beim Gieren wurden die Achsen nicht hart genug geregelt |
V0.65a H.Buss 15.10.2007 |
- Integral im Mischer wieder integriert |
- Feinabstimmung im ACC/Gyro Abgleich -> 1/32 & 100 |
- ACC/Gyro Abgleich auch bei HH |
V0.66a H.Buss 3.11.2007 |
- Messwertverarbeitung aus dem Analog-Interrupt entfernt |
- Analogmessung hängt jetzt am FC-Timing |
- Looping-Stick-Hysterese eingebaut |
- Looping-180°-Umschlag einstellbar |
- Achsenkopplung: Gierbewegung verkoppelt Nick und Roll |
- Lageregelung nach ACC-Sensor verbessert |
- zusätzlicher I-Anteil in der Lageregelung verbessert die Neutrallage |
- Gyrodriftkompensation überarbeitet |
- Bug in der Gier-Stick-Berechnung behoben |
- Gyro-Messung auf 1kHz beschleunigt |
V0.67a H.Buss 16.11.2007 |
- der Hauptregler-I-Anteil wirkt jetzt nur noch auf den Winkel (ausser im HH-Mode) |
- Gyro-Acc-Abgleich jetzt wieder in jedem Zyklus |
- Feinabstimmung |
- Beim HH-Modus gab es noch Bugs |
V0.67e H.Buss 29.11.2007 |
- Parameter: Dynamic Stability und Driftfaktor eingeführt |
- Die Namen der Analogwerte werden jetzt zum Koptertool übertragen |
- Kompatibilität zum Koptertool erhöht |
V0.67f H.Buss 04.12.2007 |
- Giersteuerwert im Mischer auf Gas/2 begrenzt |
- Die Analogwerte des ACC-Sensors können dauerhaft im EEPROM gespeichert werden |
- Das Integral des Hauptreglers wird jetzt linear entladen und nicht mehr proportional |
/branches/MicroMag3_Nick666/Festkomma/v0.60/COPYING |
---|
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/MicroMag3_Nick666/Festkomma/v0.60/COPYING.LESSER |
---|
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/MicroMag3_Nick666/Festkomma/v0.60/Flight-Ctrl_MEGA644_V0_60_MM3.hex |
---|
0,0 → 1,1484 |
:100000000C9455030C9472030C9472030C947203B9 |
:100010000C9472030C9472030C9472030C9472038C |
:100020000C9472030C94960B0C9472030C94720350 |
:100030000C94DF140C9472030C9472030C947203EE |
:100040000C9472030C9472030C94390C0C94782861 |
:100050000C9497050C9472030C9461050C94720334 |
:100060000C94B20C0C9472030C944C140C94720308 |
:100070000E08880888088808400821088808880829 |
:1000800088086C086C086C086C086C0844088808C0 |
:100090008808330888083C08DB0C2D0D860DE10D1F |
:1000A000FE0D210E470E2E0F6D10A11002115811DA |
:1000B000A6111F127912DA12FE1234137013AE1346 |
:1000C000E7130A0A0D004E65757472616C0048658D |
:1000D0006164696E67486F6C64000A0D53746575DE |
:1000E0006572756E673A20004F4B0A0D000A0D418C |
:1000F00062676C65696368204C75667464727563C9 |
:100100006B73656E736F722E2E000A0D4B616C69F6 |
:10011000627269657265204E65757472616C6C619E |
:100120006765000A0D4B616C6962726965726520D2 |
:100130004B6F6D70617373000A0D42656E75747A52 |
:100140006520506172616D657465727361747A20A7 |
:100150002564000A0D496E69742E20454550524FA2 |
:100160004D3A2047656E6572696572652044656623 |
:1001700061756C742D506172616D657465722E2E9F |
:100180002E000A0D3D3D3D3D3D3D3D3D3D3D3D3D4E |
:100190003D3D3D3D3D3D3D3D3D3D3D3D3D3D3D3D8F |
:1001A0003D3D000A0D466C69676874436F6E74725A |
:1001B0006F6C205625642E256420002E005A5F5255 |
:1001C000616E67653A202025346900595F52616E7F |
:1001D00067653A202025346900585F52616E676573 |
:1001E0003A2020253469004D4D332052616E6765F9 |
:1001F000005A5F4F66667365743A202025336900A4 |
:10020000595F4F66667365743A202025336900583C |
:100210005F4F66667365743A2020253369004D4D43 |
:1002200033204F66660052616E67653A2533692D4B |
:10023000253369005374656C6C756E673A202533FD |
:100240006900536574706F696E74202025336900EE |
:10025000536572766F202000506F7469343A202005 |
:1002600025336900506F7469333A202025336900C3 |
:10027000506F7469323A202025336900506F7469D9 |
:10028000313A20202533690053746172743A20207A |
:10029000202020253569004D657373776572743AA7 |
:1002A0002020253569005269636874756E673A20AD |
:1002B00020253569004B6F6D7061737320202020FD |
:1002C00020202000456D70662E506567656C3A25CC |
:1002D0003569005370616E6E756E673A2020253562 |
:1002E0006900486F6368202534692028253369290F |
:1002F00000526F6C6C202534692028253369290051 |
:100300004E69636B20253469202825336929004113 |
:100310004343202D2053656E736F720047696572E9 |
:100320002025346920282533692900526F6C6C2000 |
:10033000253469202825336929004E69636B2025FF |
:100340003469202825336929004779726F202D20D0 |
:1003500053656E736F720050333A25346920204B19 |
:10036000616EE46C65200050313A253469202050DC |
:10037000323A253469200047733A253469202047F2 |
:10038000693A25346920004E693A253469202052A3 |
:100390006F3A25346920004B373A25346920204BC9 |
:1003A000616EE46C6520004B353A25346920204BA2 |
:1003B000363A25346920004B333A25346920204BE6 |
:1003C000343A25346920004B313A25346920204BDA |
:1003D000323A25346920004B6F6D706173733A2097 |
:1003E000202025356900526F6C6C3A202020202097 |
:1003F00020253569004E69636B3A2020202020209B |
:1004000025356900616B742E204C6167650048F6E4 |
:1004100068656E726567656C756E67004B65696EC1 |
:100420006520004F66662020202020203A202535B8 |
:1004300069004C756674647275636B3A2025356982 |
:1004400000536F6C6C486F6568653A20253569000C |
:10045000486F6568653A20202020202535690028EE |
:10046000632920486F6C676572204275737300536F |
:10047000657474696E673A20256420005625642EE1 |
:100480002564002B2B204D696B726F4B6F70746568 |
:1004900072202B2B005B25695D0000010203040420 |
:1004A00005060708090A0B0B0C0D0E0F101111128F |
:1004B0001314151516171818191A1B1B1C1D1D1EB1 |
:1004C0001F1F2021212223232424252526272728F6 |
:1004D0002829292A2A2B2B2C2C2D2D2D2E2E2F2F5F |
:1004E00030303031313232323333333434343535E5 |
:1004F0003536363637373737383838393939393A83 |
:100500003A3A3A3B3B3B3B3C3C3C3C3C3D3D3D3D31 |
:100510003E3E3E3E3E3F3F3F3F3F3F4040404040EB |
:1005200040414141414141424242424242424343B1 |
:10053000434343434344444444444444444545457D |
:100540004545454545454646464646464646464750 |
:100550004747474747474747474748484848484825 |
:100560004848484848494949494949494949494900 |
:100570004949494A4A4A4A4A4A4A4A4A4A4A4A4ADE |
:100580004A4B4B4B4B4B4B4B4B4B4B4B4B4B4B4BBC |
:100590004B4B4C4C4C4C4C4C4C4C4C4C4C4C4C4C9D |
:1005A0004C4C4C4C4C4D4D4D4D4D4D4D4D4D4D4D80 |
:1005B0004D4D4D4D4D4D4D4D4D4D4D4E4E4E4E4E66 |
:1005C0004E4E4E4E4E4E4E4E4E4E4E4E4E4E4E4E4B |
:1005D0004E4E4E4E4E4F4F4F4F4F4F4F4F4F4F4F30 |
:1005E0004F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F1B |
:1005F0004F4F4F4F000012002400360047005900B3 |
:100600006B007D008F00A000B200C300D500E600A3 |
:10061000F80009011A012B013C014D015E016F0137 |
:1006200080019001A001B101C101D101E101F001FE |
:1006300000020F021F022E023D024B025A02680204 |
:10064000760284029202A002AD02BA02C702D4026C |
:10065000E102ED02F902050310031C032703320334 |
:100660003C03470351035B0364036E03770380037A |
:10067000880390039803A003A703AF03B503BC034B |
:10068000C203C803CE03D303D803DD03E203E603AA |
:10069000EA03ED03F003F303F603F803FA03FC03A4 |
:1006A000FE03FF03FF030004000411241FBECFEF6D |
:1006B000D0E1DEBFCDBF11E0A0E0B1E0E4E1FCE5B8 |
:1006C00002C005900D92AC38B107D9F715E0ACE83F |
:1006D000B1E001C01D92AC32B107E1F70E94AA035C |
:1006E0000C94092E0C940000A2E0B0E00E94EB2DC7 |
:1006F000802D99270895FB01863008F085E0282F8A |
:100700002150842F9927AAE32A9FD0011124A65FA4 |
:10071000BF4F019724F001900E94F82DFACFA2E07C |
:10072000B0E0022E0E94F82D0895FB01282F86309C |
:1007300008F025E0842F99272150AAE32A9FD001B1 |
:100740001124A65FBF4F019724F00E94EB2D019268 |
:10075000FACF08950F931F93CF93DF9381E087B96A |
:100760008FEF88B98BE184B9289A8EE38AB9579ABA |
:1007700087EF8BB984B7877F84BF809160008861E1 |
:10078000809360001092600088EE93E09093A70140 |
:100790008093A60110921D0210921C0210929A04DE |
:1007A0001092990410921B0210921A0210921902D0 |
:1007B0001092180228980E94640B0E9467070E94FA |
:1007C000CA140E94AC0C0E9430140E94B82A78947B |
:1007D0001092A8038CE38093A90384E08093AA037A |
:1007E0008CE390E09F938F931F921F9283EA91E096 |
:1007F0009F938F931F920E94E70882E891E09F9356 |
:100800008F931F920E94E708299AA1E0B0E00E940E |
:10081000EB2D802D2DB73EB7265F3F4F2DBF8A3081 |
:10082000B9F183E591E09F938F931F920E94E708AF |
:100830000E942D1C4AE361EC74E080E00E947B037F |
:1008400001E00F900F900F90023049F40E94C01BFE |
:100850004AE361EC74E082E00E947B0303E04AE338 |
:1008600061EC74E0802F0E947B030F5F063060F321 |
:1008700081E022E030E0D901082E0E94F82D8AE0C4 |
:1008800021503040D901082E0E94F82D0E94B71D3A |
:1008900002E010E0D8010E94EB2D802D4AE361ECCC |
:1008A00074E00E949503D8010E94EB2D802D9927BA |
:1008B0009F938F9388E391E09F938F931F920E9461 |
:1008C000E70884EF91E00E94810BEC010F900F90FC |
:1008D0000F900F900F90CE010E948A0B8823D9F3BE |
:1008E000E091C304FF27EE0FFF1FEB56FB4F808103 |
:1008F000918185369105C4F0E091C404FF27EE0F85 |
:10090000FF1FEB56FB4F808191818536910564F086 |
:1009100083E291E09F938F931F920E94E7080E94C9 |
:10092000F2290F900F900F90E091C304FF27EE0F74 |
:10093000FF1FEB56FB4F8081918185369105C4F0F6 |
:10094000E091C404FF27EE0FFF1FEB56FB4F8081A1 |
:1009500091818C599F4F64F48AE091E09F938F932B |
:100960001F920E94E7080E94B71D0F900F900F90F2 |
:100970008091C90480FF20C08DEE90E09F938F93FB |
:100980001F920E94E70884EC99E00E94810BEC0121 |
:100990000E94C80F0F900F900F90CE010E948A0BFB |
:1009A0008823D9F388EE90E09F938F931F920E9443 |
:1009B000E7080F900F900F900E94E51C289880ED9B |
:1009C00097E09093A7018093A60188EE93E090931F |
:1009D000A3038093A20385E580939D038AED90E0B5 |
:1009E0009F938F931F920E94E7088091C9040F90F4 |
:1009F0000F900F9082FF03C08EEC90E002C086EC57 |
:100A000090E09F938F931F920E94E7080F900F90A2 |
:100A10000F9082EC90E09F938F931F920E94E708C3 |
:100A20000E940C100F900F900F908091A5018823C9 |
:100A300079F11092A5010E94301E0E949E1C2898F8 |
:100A400080910101882319F08150809301018091E8 |
:100A50001702882329F08091170281508093170292 |
:100A600020910401309105018091D904992728171C |
:100A7000390734F480ED97E09093A7018093A601A5 |
:100A80008091CF01882319F40E94301401C0289866 |
:100A90000E9482070E94F00780E090E00E948A0B8B |
:100AA000882319F280911E02882329F088B190E1F1 |
:100AB000892788B901C0449884EF91E00E94810B96 |
:100AC000B4CF1F920F920FB60F9211248F939F9362 |
:100AD000EF93FF93809100018823E1F48091A101BD |
:100AE0009091A20101969093A2018093A101FC0133 |
:100AF000E159FD4FE081ED3019F08639910539F467 |
:100B00001092A2011092A10181E080930001E09374 |
:100B1000C60004C01092A2011092A101FF91EF91B2 |
:100B20009F918F910F900FBE0F901F9018951F925D |
:100B30000F920FB60F9211242F933F934F938F93E1 |
:100B40009F93AF93BF93CF93DF93EF93FF938091E6 |
:100B5000C6008093900140919C01463910F010929C |
:100B60009B01809190018D3009F05CC080919B01C8 |
:100B7000823009F057C010929B01A42FBB27FD01C2 |
:100B8000E055FC4F3081ED01CF54DC4F288180913E |
:100B90009F019091A001831B9109821B91099F7075 |
:100BA0009093A00180939F019C0196E03695279534 |
:100BB0009A95E1F7235C20939E01982F9F73935C95 |
:100BC00090939D018081281729F48881981711F44A |
:100BD00091E006C0809193018F5F8093930190E034 |
:100BE00080919101882309F064C0992309F461C0C0 |
:100BF00081E08093910140939401AE54BC4F8DE00D |
:100C00008C938091B403823509F053C088E190E061 |
:100C10002CE00FB6F894A895809360000FBE209347 |
:100C2000600047C080919B018130D9F0813018F07D |
:100C30008230E9F530C080919001833239F480919F |
:100C40009101882319F481E080939B0180919001A8 |
:100C50008093B20381E080939C0180919001992759 |
:100C600015C082E080939B01E42FFF2780919001C3 |
:100C7000EE54FC4F80834F5F40939C012091900184 |
:100C800080919F019091A001820F911D9093A001EE |
:100C900080939F010EC0E42FFF2780919001EE54B6 |
:100CA000FC4F8083463938F310929B01E7CF1092B6 |
:100CB0009B01FF91EF91DF91CF91BF91AF919F91F8 |
:100CC0008F914F913F912F910F900FBE0F901F90DA |
:100CD0001895DC0120E030E040E050E0EFE6F2E083 |
:100CE00005C08191280F311D4F5F5F4F4A175B0789 |
:100CF000C1F73F70C90136E0969587953A95E1F7BF |
:100D0000835CFD01E159FD4F808311962F73235CB5 |
:100D1000FD01E159FD4F2083A059BD4F8DE08C931B |
:100D20001092000180916F028093C6000895EF92A7 |
:100D3000FF920F931F93CF93DF937A01722F93E269 |
:100D400090936F02609370028093710203E010E051 |
:100D500060E0A2E7B2E046C0F701E60FF11D908126 |
:100D60006F5F715019F4E0E040E00FC0F701E60F4B |
:100D7000F11D40816F5F715011F4E0E006C0F70192 |
:100D8000E60FF11DE0816F5F7150892F8695869582 |
:100D9000835C8C935527892F99278370907024E06A |
:100DA000880F991F2A95E1F79A0194E036952795C7 |
:100DB0009A95E1F7822B835CED0189834F70507027 |
:100DC000440F551F440F551F8E2F8295869586958B |
:100DD0008370842B835C8A83EF73E35CEB830C5F0B |
:100DE0001F4F1496772309F0B7CFC8010E946906F8 |
:100DF000E6E0CDB7DEB70C94D62D1F93CF93DF93EB |
:100E0000EC0170E0A22FBB27129748C0E42FFF2708 |
:100E1000EE54FC4F30814F5FE42FFF27EE54FC4F20 |
:100E200050814F5FE42FFF27EE54FC4F10814F5F3E |
:100E3000E42FFF27EE54FC4F20814F5F842F99272A |
:100E4000A817B90774F15D53FE01E70FF11D3D537B |
:100E5000330F330F852F82958F70382B308361309D |
:100E600001F1912F9D537F5FFE01E70FF11D71503E |
:100E70005295507F892F86958695582B50836350C5 |
:100E80006F3F79F07E5FFE01E70FF11D9295990F9C |
:100E9000990F907C2D53922B90837F5F662309F0EE |
:100EA000B5CFDF91CF911F9108951F93182F8A30EE |
:100EB00019F48DE00E9455078091C00085FFFCCF9A |
:100EC0001093C60080E090E01F9108950895E1EC32 |
:100ED000F0E088E18083A0ECB0E08C9182608C939C |
:100EE0008081806880838081806480838AE28093AF |
:100EF000C40088EC90E00E94810B90939C03809347 |
:100F00009B03089580910001882309F468C08091B3 |
:100F10008C01882371F080910001882351F02BE02F |
:100F20004DE953E060916E0287E40E9497061092AB |
:100F30008C0180919B0390919C030E948A0B8823D3 |
:100F400021F480918E018823B1F0809100018823E3 |
:100F500091F022E348E454E060916E0284E40E9440 |
:100F6000970610928E018AEF90E00E94810B909379 |
:100F70009C0380939B0380918D018823F1F08091E5 |
:100F800000018823D1F00E94151010928D018091EC |
:100F90009A018F5F80939A01843011F410929A0124 |
:100FA00080919A0144E1849FA00111244A5E5E4F22 |
:100FB00024E160E0805D0E94970680918F01882384 |
:100FC00071F080910001882351F02AE048EA53E053 |
:100FD00060916E0286E50E94970610928F01089537 |
:100FE000A2E0B0E0E6EFF7E00C94BD2D8091910116 |
:100FF000882309F48FC08FEF809301018091B4039F |
:101000009927AA27BB27FC01E356F040E431F105FC |
:1010100008F07EC0E85CFF4F0C94E52D2091940110 |
:1010200043E06BE08DE993E00E94FD068091C601EC |
:1010300090919F03892B8093C60181E080938E015C |
:1010400067C02091940143E062E0CE0101960E94C6 |
:10105000FD068091C6019981892B8093C60181E0AC |
:1010600080938D0155C02091940143E064E086E9AE |
:1010700091E00E94FD064CC081E080938F0148C042 |
:1010800081E080938C0144C02091940143E062E0B0 |
:10109000CE0101960E94FD0689818F3F89F086303E |
:1010A00010F085E089834AE361EC74E089810E9455 |
:1010B000950389812AE341EC54E060916E0208C0F7 |
:1010C00010916E020E9474032AE341EC54E0612FF8 |
:1010D000855B0E9497061CC02091940143E06AE35F |
:1010E00081EC94E00E94FD068091B4034AE361EC38 |
:1010F00074E08B560E947B038091B4038B56A2E070 |
:10110000B0E0082E0E94F82D0E9474030E941B1E5E |
:1011100010929101E3E0CE5F0C94D92D982F80912D |
:101120007A04813069F48091C501E82FFF27EA5ED7 |
:10113000FE4F90838F5F8093C50121E030E005C0B2 |
:10114000892F0E945507282F3327C90108951F931F |
:10115000182F04C080E30E948E0811501116D4F39A |
:101160001F9108951F93182F04C080E20E948E08DB |
:1011700011501116D4F31F9108950F931F93CF931D |
:10118000DF938C01EB0108C0F8010F5F1F4FE49162 |
:101190008E2F0E948E0821972097B1F7DF91CF9173 |
:1011A0001F910F9108950F931F93CF93DF938C019D |
:1011B000EB0106C0F80181918F010E948E082197F2 |
:1011C0002097C1F7DF91CF911F910F910895A3E36D |
:1011D000B0E0EDEEF8E00C94AE2D29968FAD299796 |
:1011E00080937A04CE01855B9F4F9D838C832B96E1 |
:1011F0008EAD9FAD2B979FA78EA72224332421016C |
:1012000002C0130124010EA51FA502C00F5F1F4FCE |
:10121000F801F490FF2019F0F5E2FF16B9F7B801D4 |
:101220008EA59FA5681B790B11F00E94BD08FF20B9 |
:1012300009F446C20F5F1F4F1FA70EA71982AC818A |
:10124000BD811BAA1AAA9FEF99ABEEA5FFA5CF01FE |
:1012500001969FA78EA7B49095E7B91621F08B2D24 |
:101260008062883789F4EBA9E0FF07C02D903D909C |
:101270004D905C901397149607C08D919C91119797 |
:101280001C01442455241296F0E2BF1621F48981F2 |
:101290008823D9F685C083E2B81609F483C09AE2A0 |
:1012A000B91621F0EDE2BE1669F408C0FD011296F0 |
:1012B000E081EAABE7FFC9CFE195EAABFBA9F061BA |
:1012C000FF7D72C08BE2B81609F46AC09EE2B916BF |
:1012D000B1F52EA53FA52F5F3F4FEEA5FFA5849149 |
:1012E0008A3221F0B82E20E030E01BC0FD011296BA |
:1012F0004081518157FF02C04FEF5FEF49AB3FA7DD |
:101300002EA7A3CFC90143E0880F991F4A95E1F7A3 |
:10131000220F331F280F391F2B0D311D2053304052 |
:10132000B49031968B2D80538A3060F3FFA7EEA7DF |
:10133000A90137FF02C04FEF5FEF49AB8DCFF0E35C |
:10134000BF1631F48BA984FD80CF80628BAB7DCF3B |
:101350008B2D81538930E8F420E030E0C90113E09F |
:10136000880F991F1A95E1F7220F331F280F391F95 |
:101370002B0D311D20533040EEA5FFA5CF01019666 |
:101380009FA78EA7B4908B2D80538A3038F32AAB59 |
:1013900063CF98E6B91651F4EBA9E460EBAB55CFF7 |
:1013A000B98253CFFBA9F860FBAB4FCF8CE6B816E0 |
:1013B00021F49BA991609BAB48CFBD83AC83E3E64E |
:1013C000BE1639F41296BD83AC8312978C918E832E |
:1013D0001CC1F4E4BF1639F084E6B81639F099E67A |
:1013E000B91659F503C0EBA9E160EBABFBA9F0FF1F |
:1013F00008C01496BD83AC835E904E903E902E90B4 |
:101400000AC01296BD83AC839E918E911C01442428 |
:1014100037FC4094542C57FC03C08AE088AB96C03C |
:101420005094409430942094211C311C411C511C38 |
:101430008DE289839AE098AB89C0EFE4BE1629F06B |
:10144000FFE6BF1639F488E065C09BA991609BABAD |
:10145000E8E05AC0F0E7BF1681F41296BD83AC8372 |
:101460009E918E911C01442455248BA980648BABE2 |
:1014700090E198ABE8E7BE2E68C0E3E7BE16E9F559 |
:101480001296BD83AC83DE90CE90C114D10489F452 |
:1014900088E28E838EE68F8385E788878CE689874E |
:1014A0008A8789E28B871C8676E0C72ED12CCC0EEA |
:1014B000DD1EF9A9F7FD13C04F2F552747FD5095A5 |
:1014C00060E070E0C6010E94B62B009711F419A9E4 |
:1014D0000DC08C1919A981174CF4182F07C0F601FB |
:1014E00001900020E9F731971E2F1C191982420143 |
:1014F000310163E7B62E40E094C085E5B81631F0BF |
:1015000095E7B91649F4EAE0E8AB1FC0FBA9F16022 |
:10151000FBAB8AE088AB19C098E5B91621F0E8E783 |
:10152000BE1609F06EC0FBA9F3FD02C080E1F2CF48 |
:10153000211431044104510419F490E198AB05C021 |
:10154000EBA9E064EBABF0E1F8AB198289A987FD68 |
:1015500003C09BA99F7D9BAB21143104410451041E |
:1015600061F4E9A9EE2349F46624772443015EE29D |
:10157000C52ED12CCC0EDD1E3EC04EE2C42ED12C89 |
:10158000CC0EDD1EF8A9EF2EFF2400271127C20183 |
:10159000B101A80197010E94712D6A3020F430E357 |
:1015A000A32EA60E08C027E5A22EA60E88E5B81623 |
:1015B00011F49FEDA922F601A2926F01C201B101BF |
:1015C000A80197010E94712D39014A012E143F0490 |
:1015D0004006510618F019012A01D9CFF8A9F830B0 |
:1015E00051F48BA983FF07C090E3A91621F080E393 |
:1015F000F60182936F01CE018C19182F125D49A953 |
:1016000010C0BB2009F45CC0BE82198242013101C6 |
:1016100000E096E0C92ED12CCC0EDD1E11E021E0B9 |
:1016200005C0212F042F011B07FD00E089818823BD |
:1016300019F0812F8F5F07C09BA996FD02C0812FF3 |
:1016400002C0822F8E5FA82EA00EEBA9EE2EFF24E3 |
:1016500080E3482E512C4E205F204114510421F488 |
:101660008AA98A190E94B2088981882329F061E039 |
:1016700070E0CE01019609C0E6FE09C080E38A83CE |
:10168000BB8262E070E0CE0102960E94D308F0E2D5 |
:101690004F16510421F48AA98A190E94A708802FA5 |
:1016A0000E94A708612F772767FD7095C6010E94E9 |
:1016B000D308E4FEA6CD8AA98A190E94B208A1CD5A |
:1016C000E2E1CD5C0C94CA2D82E085BD83EA84BD45 |
:1016D00017BC88E788BD83EC8093B00086E08093D8 |
:1016E000B100E0E7F0E0808182608083EEE6F0E028 |
:1016F0008081816080838AE08093B3001092B20081 |
:1017000008952091A3013091A4012F5F3F4F820FD4 |
:10171000931F08952091A3013091A401821B930B84 |
:10172000892F992786958074992708951F920F9283 |
:101730000FB60F921124EF92FF920F931F932F93E6 |
:101740003F934F935F936F937F938F939F93AF9349 |
:10175000BF93CF93DF93EF93FF938091020181506A |
:10176000809302018F3F09F069C083E88093B00045 |
:1017700080918901C82FDD27D093A901C093A801CA |
:101780008091E704E090E3042091D6013091D701E5 |
:101790004091D8015091D90180FF18C0FF24002743 |
:1017A0001127CA01B90120E830E040E050E00E9472 |
:1017B000932DC801B7010E942B2D20E032E040E0BC |
:1017C00050E00E94932DC20FD31F17C0FF240027A3 |
:1017D0001127CA01B90120E830E040E050E00E9442 |
:1017E000932DC801B7010E942B2D20E032E040E08C |
:1017F00050E00E94932DC21BD30BD093A901C0933C |
:10180000A8012091A8013091A9018091E4049927B1 |
:101810002817390734F08091E50499278217930738 |
:1018200024F49093A9018093A8018091A80180934A |
:10183000B3008091E6048093020104C083E08093AA |
:10184000B0005F98FF91EF91DF91CF91BF91AF9181 |
:101850009F918F917F916F915F914F913F912F91C8 |
:101860001F910F91FF90EF900F900FBE0F901F9060 |
:1018700018951F920F920FB60F9211242F933F933A |
:101880004F935F936F937F938F939F93AF93BF9388 |
:10189000EF93FF938091AA0181508093AA018F3F1B |
:1018A00001F58AE08093AA01809103018F5F817026 |
:1018B00080930301882319F481E08093A50180912E |
:1018C000A3019091A40101969093A4018093A30198 |
:1018D0008091CF01882329F08091CF01815080939E |
:1018E000CF018091A6019091A701029758F08091B5 |
:1018F000A6019091A70101979093A7018093A6015B |
:101900005A9A01C05A988091C90483FF02C00E946C |
:10191000C029FF91EF91BF91AF919F918F917F91DE |
:101920006F915F914F913F912F910F900FBE0F904C |
:101930001F9018952091A3013091A4012F5F3F4F74 |
:10194000280F391F8091A3019091A401A901481B80 |
:10195000590B57FFF7CF089510927C008FEC8093BE |
:101960007A0008951F920F920FB60F921124EF92F2 |
:10197000FF920F931F932F933F934F935F936F9318 |
:101980007F938F939F93AF93BF93CF93DF93EF9307 |
:10199000FF9310927A008091C1018F5F8093C10103 |
:1019A0008150E82FFF27E830F10508F0CFC2E45B53 |
:1019B000FF4F0C94E52D2091D4013091D5018091F9 |
:1019C000780090917900281B390B8091AF0190919C |
:1019D000B001820F931F9093B0018093AF0180916B |
:1019E000B9018F5F8093B9018091FA019091FB0159 |
:1019F000A091FC01B091FD01442737FD4095542F83 |
:101A0000820F931FA41FB51F8093FA019093FB01CF |
:101A1000A093FC01B093FD018091FE019091FF0124 |
:101A2000A0910002B0910102820F931FA41FB51F65 |
:101A30008093FE019093FF01A0930002B0930102F6 |
:101A400081E08093C2018091BF019091C001019615 |
:101A50009093C0018093BF017DC260917800709126 |
:101A600079008091D2019091D301681B790B80910C |
:101A7000F2019091F301A091F401B091F5019B0165 |
:101A8000442737FD4095542F820F931FA41FB51F85 |
:101A90008093F2019093F301A093F401B093F501C8 |
:101AA0008091F6019091F701A091F801B091F901B0 |
:101AB000820F931FA41FB51F8093F6019093F70127 |
:101AC000A093F801B093F90180917800909179008A |
:101AD0000A9710F464E47DEF80917800909179008A |
:101AE000895E934010F06CEB72E08091AD019091B3 |
:101AF000AE01860F971F9093AE018093AD01809148 |
:101B0000B8018F5F8093B80182E058C0609178007F |
:101B1000709179008091D0019091D101681B790B6F |
:101B20008091EA019091EB01A091EC01B091ED015F |
:101B30009B01442737FD4095542F820F931FA41F0C |
:101B4000B51F8093EA019093EB01A093EC01B09351 |
:101B5000ED018091EE019091EF01A091F001B09123 |
:101B6000F101820F931FA41FB51F8093EE01909384 |
:101B7000EF01A093F001B093F10180917800909172 |
:101B800079000A9710F464E47DEF809178009091D9 |
:101B90007900895E934010F06CEB72E08091AB01AC |
:101BA0009091AC01860F971F9093AC018093AB018D |
:101BB0008091B7018F5F8093B70184E08093C20169 |
:101BC000C9C1409104015091050180917800909124 |
:101BD00079009A01220F331F240F351F63E070E054 |
:101BE0000E944A2D260F371F369527953695279543 |
:101BF000309305012093040186E0E0CF8091080531 |
:101C0000909109052091780030917900821B930B07 |
:101C100090937C0480937B048091B1019091B201F8 |
:101C200020917B0430917C04820F931F9093B2012A |
:101C30008093B1018091BB018F5F8093BB0187E0EE |
:101C4000BDCF809178009091790020910605309168 |
:101C50000705821B930B90938704809386048091E1 |
:101C6000B3019091B4012091860430918704820FD2 |
:101C7000931F9093B4018093B3018091BA018F5F59 |
:101C80008093BA0185E08093C20186E0E4C0609150 |
:101C9000780070917900E0900A05F0900B050091B2 |
:101CA0000C0510910D05882777FD8095982F0E94CF |
:101CB000692CA80197010E94C32B0E944C2C7093A1 |
:101CC000B6016093B5012091B5013091B601E09164 |
:101CD0007B04F0917C04809186049091870497FFA7 |
:101CE00003C0909581959F4F64E070E00E945E2D47 |
:101CF000EB01CF01F7FF03C0909581959F4F64E002 |
:101D000070E00E945E2D260F371F2C0F3D1F309371 |
:101D1000B6012093B5018091B5019091B60102976B |
:101D200004F160910A0570910B0580910C0590916A |
:101D30000D0520E030E048E454E40E94732C882331 |
:101D40000CF03CC060910A0570910B0580910C0568 |
:101D500090910D052AE037ED43EA5CE30E94C42B25 |
:101D600025C08091B5019091B6018F5F9F4F34F5EA |
:101D700060910A0570910B0580910C0590910D05FD |
:101D800020E030E046E154E40E94762C1816B4F4CA |
:101D900060910A0570910B0580910C0590910D05DD |
:101DA0002AE037ED43EA5CE30E94C32B60930A0507 |
:101DB00070930B0580930C0590930D0581E0809343 |
:101DC000BC01809178009091790090937E0480937B |
:101DD0007D0420910202309103024091040250914F |
:101DE00005028091B5019091B601AA2797FDA095B3 |
:101DF000BA2F280F391F4A1F5B1F2093020230930E |
:101E000003024093040250930502E0900202F09016 |
:101E10000302009104021091050260910202709188 |
:101E20000302809104029091050220E034E040E03A |
:101E300050E00E94932DE21AF30A040B150BE09276 |
:101E40000202F0920302009304021093050283E061 |
:101E50008093C20187E08093C1017CC080918B0494 |
:101E600090918C042091780030917900820F931F1B |
:101E700090938C0480938B04809183048F5F809374 |
:101E8000830480918304853008F460C080917800D9 |
:101E90009091790090930B0180930A011092830432 |
:101EA00080917F049091800420918B0430918C0468 |
:101EB000821B930B20911F0230912002821B930BF7 |
:101EC0009093BE018093BD0160918B0470918C044E |
:101ED000E0900601F09007010091080110910901BE |
:101EE000882777FD8095982FA8019701220F331F2F |
:101EF000441F551F2E0D3F1D401F511F620F731FA2 |
:101F0000841F951F24E030E040E050E00E94932DB4 |
:101F10002093060130930701409308015093090173 |
:101F200020917F04309180048091060190910701F7 |
:101F3000A0910801B0910901281B390B30932002B0 |
:101F400020931F0210928C0410928B041092C201F5 |
:101F50001092C1018091C20180937C008FEC80932C |
:101F60007A00FF91EF91DF91CF91BF91AF919F9157 |
:101F70008F917F916F915F914F913F912F911F9121 |
:101F80000F91FF90EF900F900FBE0F901F9018953C |
:101F9000CF93DF93A3E0B0E00E94EB2D802DC82FFC |
:101FA000DD27C531D10508F02A97C7BD84E690E04A |
:101FB0000E949A0C80910A0190910B0182559340E6 |
:101FC000D0F4C0E0D0E017C0C7BD82E390E00E942B |
:101FD0009A0C8BEB91E09F938F931F920E94E708DE |
:101FE00080910A0190910B010F900F900F908458EF |
:101FF000934020F02196CA3FD10530F3A3E0B0E032 |
:102000000C2E0E94F82DC093880488EC90E00E946A |
:102010009A0CDF91CF910895E6E1F1E080E281939F |
:1020200091E0E636F907D9F70895FF920F931F93D1 |
:102030008091C601282F3327C90181709070682FC5 |
:10204000882391F08091C701882311F0815002C04C |
:10205000809166018093C701E6E1F1E080E281931F |
:1020600091E0E636F907D9F7A9014270507021FFD7 |
:102070000DC08091C7018F5F8093C701E6E1F1E059 |
:1020800080E2819391E0E636F907D9F7662321F0E3 |
:10209000452B11F01092C70181E18093C501809119 |
:1020A000C70199279F938F9385E994E09F938F931E |
:1020B00081E08F930E94E7088091C7010F900F90F5 |
:1020C0000F900F900F90E82FFF27ED30F10508F0EB |
:1020D000BCC3EC5AFF4F0C94E52D1092C50183E868 |
:1020E00094E09F938F9311E01F930E94E70884E18F |
:1020F0008093C5018CE390E09F938F931F921F9272 |
:102100008CE794E09F938F931F930E94E70888E2E7 |
:102110008093C5010E94740399279F938F938FE644 |
:1021200094E09F938F931F930E94E7088CE3809322 |
:10213000C5018FE594E09F938F931F930E94E7085A |
:1021400080C38091C90480FF44C01092C501809172 |
:102150001F02909120029F938F9380E594E09F93BC |
:102160008F9311E01F930E94E70884E18093C501DB |
:1021700080912102909122029F938F9381E494E0B9 |
:102180009F938F931F930E94E70888E28093C50175 |
:1021900080910A0190910B019F938F9382E394E0C9 |
:1021A0009F938F931F930E94E7088CE38093C50150 |
:1021B0008091880499279F938F9383E294E09F9363 |
:1021C0008F931F930E94E7088DB79EB744968DBFEB |
:1021D00041C384E18093C5018CE194E09F938F9388 |
:1021E00011E01F930E94E70888E28093C5018EE00A |
:1021F00094E09F938F931F930E94E7088DB79EB73B |
:102200000696E5CF1092C50184E094E09F938F93EA |
:1022100011E01F930E94E70884E18093C50160915B |
:10222000D6017091D7018091D8019091D90120E019 |
:1022300034E040E050E00E94932D5F934F933F9332 |
:102240002F9385EF93E09F938F931F930E94E7084E |
:1022500088E28093C5016091DE017091DF01809179 |
:10226000E0019091E10120E034E040E050E00E9484 |
:10227000932D5F934F933F932F9386EE93E09F931D |
:102280008F931F930E94E7088CE38093C501809190 |
:102290000602909107029F938F9387ED93E09F939F |
:1022A0008F931F930E94E7088DB79EB746968FCFF6 |
:1022B0001092C5018091990490919A0420919704FD |
:1022C000309198049F938F933F932F9387EC93E0E3 |
:1022D0009F938F9311E01F930E94E70884E18093FE |
:1022E000C50180919D0490919E0420919B043091A2 |
:1022F0009C049F938F933F932F9387EB93E09F933F |
:102300008F931F930E94E70888E28093C501809114 |
:10231000A1049091A20420919F043091A0049F9366 |
:102320008F933F932F9387EA93E09F938F931F930D |
:102330000E94E7088CE38093C5018091A3049091EB |
:10234000A4049F938F9387E993E070C01092C50116 |
:10235000E091C204FF27EE0FFF1FEB56FB4F2081D9 |
:102360003181E091C104FF27EE0FFF1FEB56FB4FB9 |
:10237000808191813F932F939F938F9387E893E080 |
:102380009F938F9311E01F930E94E70884E180934D |
:10239000C501E091C404FF27EE0FFF1FEB56FB4F72 |
:1023A00020813181E091C304FF27EE0FFF1FEB5620 |
:1023B000FB4F808191813F932F939F938F9387E76A |
:1023C00093E09F938F931F930E94E70888E2809386 |
:1023D000C501E091C604FF27EE0FFF1FEB56FB4F30 |
:1023E00020813181E091C504FF27EE0FFF1FEB56DE |
:1023F000FB4F808191813F932F939F938F9387E62B |
:1024000093E09F938F931F930E94E7088CE3809340 |
:10241000C501E091C704FF27EE0FFF1FEB56FB4FEE |
:10242000808191819F938F9387E593E09F938F9312 |
:102430001F930E94E7088DB79EB74A96C8CE1092A8 |
:10244000C50189E493E09F938F9311E01F930E944D |
:10245000E70884E18093C5012091D0013091D1013A |
:102460008091AB019091AC016091B7013F932F93A4 |
:1024700077270E945E2D7F936F938AE393E09F936B |
:102480008F931F930E94E70888E28093C5012091F3 |
:10249000D2013091D3018091AD019091AE01609154 |
:1024A000B8013F932F9377270E945E2D7F936F9300 |
:1024B0008BE293E09F938F931F930E94E7088CE336 |
:1024C0008093C5012091D4013091D5018091AF0155 |
:1024D0009091B0016091B9013F932F9377270E94AB |
:1024E0005E2D7F936F938CE193E09F938F931F9367 |
:1024F0005BC01092C5018FE093E09F938F9381E0C2 |
:10250000F82EFF920E94E70884E18093C501209194 |
:102510000605309107058091B3019091B401609157 |
:10252000BA013F932F9377270E945E2D7F936F937D |
:1025300080E093E09F938F93FF920E94E70888E2E8 |
:102540008093C50120910805309109058091B10162 |
:102550009091B2016091BB013F932F9377270E9426 |
:102560005E2D7F936F9381EF92E09F938F93FF9205 |
:102570000E94E7088CE38093C50160910A05709181 |
:102580000B0580910C0590910D0500917D04109133 |
:102590007E040E944C2C7F936F931F930F9382EEC7 |
:1025A00092E09F938F93FF920E94E7088DB79EB7AA |
:1025B00048960DCE84E18093C501809104019091ED |
:1025C00005019F938F9383ED92E09F938F9311E08A |
:1025D0001F930E94E70888E28093C501809117024B |
:1025E00099279F938F9384EC92E09F938F931F93EF |
:1025F0000E94E7088DB79EB70A96E9CD1092C501F3 |
:1026000085EB92E09F938F9311E01F930E94E70860 |
:1026100084E18093C50180910A0290910B029F93FF |
:102620008F9386EA92E09F938F931F930E94E7080F |
:1026300088E28093C50180910602909107029F93E2 |
:102640008F9387E992E09F938F931F930E94E708EF |
:102650008CE38093C50180910802909109029F93B9 |
:102660008F9388E892E0E8C01092C50180910F0234 |
:10267000909110029F938F938CE792E09F938F939A |
:1026800011E01F930E94E70884E18093C5018091C7 |
:102690001102909112029F938F9380E792E09F9393 |
:1026A0008F931F930E94E70888E28093C501809171 |
:1026B0001302909114029F938F9384E692E09F936C |
:1026C0008F931F930E94E7088CE38093C50180914C |
:1026D0001502909116029F938F9388E592E06FCD3B |
:1026E0001092C50180E592E09F938F9311E01F93B4 |
:1026F0000E94E70884E18093C501809189019927B0 |
:102700009F938F9382E492E09F938F931F930E94F5 |
:10271000E70888E28093C5018091A8019091A90102 |
:102720009F938F9384E392E09F938F931F930E94D4 |
:10273000E7088CE38093C5018091E50499279F9376 |
:102740008F938091E40499279F938F9386E292E080 |
:102750009F938F931F930E94E70836CD1092C50177 |
:102760008EE192E09F938F9311E01F930E94E70800 |
:1027700084E18093C50180911905992787FD909583 |
:102780009F938F938FE092E09F938F931F930E946C |
:10279000E70888E28093C50180911A05992787FD93 |
:1027A00090959F938F9380E092E09F938F931F93D8 |
:1027B0000E94E7088CE38093C50180911B0599274F |
:1027C00087FD90959F938F9381EF91E035C0109294 |
:1027D000C50187EE91E09F938F9311E01F930E94B4 |
:1027E000E70884E18093C50180911C0590911D0547 |
:1027F0009F938F9389ED91E09F938F931F930E94F6 |
:10280000E70888E28093C50180911E0590911F051D |
:102810009F938F938BEC91E09F938F931F930E94D4 |
:10282000E7088CE38093C5018091200590912105F4 |
:102830009F938F938DEB91E09F938F931F930E94B3 |
:10284000E7088DB79EB74296C2CC8150809366014F |
:102850001092C7011092C6011F910F91FF90089529 |
:102860001092B9008AE28093B800089585EA8093B7 |
:10287000BC00089584E98093BC0008958093BB0058 |
:1028800085E88093BC00089585EC8093BC00089592 |
:1028900085E88093BC0008951F920F920FB60F92A7 |
:1028A00011248F939F93EF93FF938091C8018F5FC3 |
:1028B0008093C80181508330E9F1843028F481305D |
:1028C00081F0823078F508C08530D9F18530B8F1D3 |
:1028D000863009F04FC03EC08091C901880F8E5AE2 |
:1028E00012C08091C9018F5F8093C90181508130EE |
:1028F00081F0813030F0823079F0833009F041C0CE |
:102900000EC0809160028093BB0085E88093BC007C |
:1029100038C080916102F7CF80916402F4CF80913A |
:102920006502F1CF8091C901843010F41092C80182 |
:1029300085EAECCF8091CA01880F8D5AE4CF85ECEF |
:10294000E5CFE091CA01FF278091BB00E357FB4F21 |
:102950008083DBCF8091CA01E82FFF279091BB00D5 |
:10296000EF56FB4F90838F5F8093CA01843010F045 |
:102970001092CA0184E98093BC001092C8011092A1 |
:10298000C901FF91EF919F918F910F900FBE0F9012 |
:102990001F90189583EC80938100EFE6F0E0808132 |
:1029A000806280831092D5011092D4011092D301DD |
:1029B0001092D2011092D1011092D00108951F926D |
:1029C0000F920FB60F9211240F931F932F933F93E3 |
:1029D0004F935F936F937F938F939F93AF93BF9327 |
:1029E000CF93DF93EF93FF93209186003091870080 |
:1029F0008091CD019091CE01281B390B80918600EA |
:102A0000909187009093CE018093CD01C9018D5D97 |
:102A100095408356994148F481E090E09093CC0131 |
:102A20008093CB011092670154C0C091CB01D0912B |
:102A3000CC01CA30D1050CF04CC0C9018B5F90406D |
:102A4000845B914008F040C0A901425D5140FE0105 |
:102A5000EE0FFF1FEB56FB4F80819181FA01E81BBF |
:102A6000F90BCF01F7FF03C0909581959F4F069713 |
:102A70004CF480911702883C28F480911702865FFD |
:102A800080931702FE01EE0FFF1F8F010B561B4FA5 |
:102A9000D8012D913C91C901880F991F820F931F76 |
:102AA000840F951F64E070E00E945E2DD8018D9127 |
:102AB0009C9111979B01281B390BE555FB4F3183E6 |
:102AC000208311967C936E932196D093CC01C09372 |
:102AD000CB01FF91EF91DF91CF91BF91AF919F918A |
:102AE0008F917F916F915F914F913F912F911F91A6 |
:102AF0000F910F900FBE0F901F901895AF92BF923D |
:102B0000CF92DF92EF92FF920F931F9310927A0071 |
:102B10008091B701882369F08091AB019091AC015D |
:102B20006091B70177270E945E2D7093FE04609339 |
:102B3000FD048091B801882369F08091AD019091E6 |
:102B4000AE016091B80177270E945E2D7093FC045E |
:102B50006093FB048091B901882369F08091AF01F3 |
:102B60009091B0016091B90177270E945E2D70931A |
:102B70001205609311058091BA018823D9F1609103 |
:102B8000B3017091B4012091BA01E0900E05F0906C |
:102B90000F050027F7FC0095102F5701680183E00F |
:102BA000AA0CBB1CCC1CDD1C8A95D1F7AE18BF0843 |
:102BB000C00AD10A882777FD8095982FB4E0660F68 |
:102BC000771F881F991FBA95D1F7332744275527B8 |
:102BD0000E94932DA20EB31EC41ED51EC601B501C0 |
:102BE00028E030E040E050E00E94932D30930F0544 |
:102BF00020930E058091BB018823D9F16091B1012A |
:102C00007091B2012091BB01E0901705F09018057A |
:102C10000027F7FC0095102F57016801A3E0AA0CCC |
:102C2000BB1CCC1CDD1CAA95D1F7AE18BF08C00A8E |
:102C3000D10A882777FD8095982FF4E0660F771FDB |
:102C4000881F991FFA95D1F73327442755270E94EB |
:102C5000932DA20EB31EC41ED51EC601B50128E0D9 |
:102C600030E040E050E00E94932D3093180520930F |
:102C700017058091BC018823A1F16091B501709185 |
:102C8000B6012091BC01E0900005F09001050027FD |
:102C9000F7FC0095102F57016801E3E0AA0CBB1C5C |
:102CA000CC1CDD1CEA95D1F7AE18BF08C00AD10ACA |
:102CB000882777FD8095982F3327442755270E9432 |
:102CC000932DA20EB31EC41ED51EC601B50128E069 |
:102CD00030E040E050E00E94932D309301052093B6 |
:102CE00000051092AC011092AB011092B701109246 |
:102CF000AE011092AD011092B8011092B001109285 |
:102D0000AF011092B9011092B2011092B10110926C |
:102D1000BB011092B4011092B3011092BA0110924B |
:102D2000B6011092B5011092BC018091FA01909108 |
:102D3000FB01A091FC01B091FD018093E60190930D |
:102D4000E701A093E801B093E9018091EA01909135 |
:102D5000EB01A091EC01B091ED018093D60190932D |
:102D6000D701A093D801B093D9018091F20190913D |
:102D7000F301A091F401B091F5018093DE019093ED |
:102D8000DF01A093E001B093E1018091EE01909109 |
:102D9000EF01A091F001B091F1018093DA019093DD |
:102DA000DB01A093DC01B093DD018091F6019091ED |
:102DB000F701A091F801B091F9018093E20190939D |
:102DC000E301A093E401B093E5018FEC80937A00D6 |
:102DD00020910F02309110028091C504E82FFF2747 |
:102DE000EE0FFF1FEB56FB4F8081918182599F4F61 |
:102DF000281739071CF42F5F3F4F0CC08081918149 |
:102E000082599F4F821793074CF42115310531F0F9 |
:102E1000215030403093100220930F022091110274 |
:102E2000309112028091C604E82FFF27EE0FFF1F9A |
:102E3000EB56FB4F8081918182599F4F28173907AC |
:102E40001CF42F5F3F4F0CC08081918182599F4FAE |
:102E5000821793074CF42115310531F02150304091 |
:102E60003093120220931102209113023091140228 |
:102E70008091C704E82FFF27EE0FFF1FEB56FB4F93 |
:102E80008081918182599F4F281739071CF42F5F49 |
:102E90003F4F0CC08081918182599F4F82179307C9 |
:102EA0004CF42115310531F021503040309314029B |
:102EB0002093130220911502309116028091C804CC |
:102EC000E82FFF27EE0FFF1FEB56FB4F808191810C |
:102ED00082599F4F281739071CF42F5F3F4F0CC0B2 |
:102EE0008081918182599F4F821793074CF421155D |
:102EF000310531F0215030403093160220931502F5 |
:102F000080910F029091100297FF05C0109210025D |
:102F100010920F020AC08F3F910539F034F08FEF05 |
:102F200090E09093100280930F0280911102909193 |
:102F3000120297FF05C010921202109211020AC0ED |
:102F40008F3F910539F034F08FEF90E090931202AB |
:102F500080931102809113029091140297FF05C093 |
:102F600010921402109213020AC08F3F910539F09B |
:102F700034F08FEF90E090931402809313028091CD |
:102F800015029091160297FF05C01092160210923A |
:102F900015020AC08F3F910539F034F08FEF90E0B1 |
:102FA00090931602809315021F910F91FF90EF905E |
:102FB000DF90CF90BF90AF90089510927A008091EB |
:102FC000B701882369F08091AB019091AC016091C9 |
:102FD000B70177270E945E2D7093FE046093FD0475 |
:102FE0008091B801882369F08091AD019091AE0184 |
:102FF0006091B80177270E945E2D7093FC04609366 |
:10300000FB048091B901882369F08091AF01909110 |
:10301000B0016091B90177270E945E2D709312056F |
:10302000609311058091BA018823D1F06091B301BA |
:103030007091B4012091BA01882777FD8095982F6F |
:10304000F4E0660F771F881F991FFA95D1F7332791 |
:10305000442755270E94932D30930F0520930E058A |
:103060008091BB018823D1F06091B1017091B201D0 |
:103070002091BB01882777FD8095982FE4E0660FAB |
:10308000771F881F991FEA95D1F7332744275527C3 |
:103090000E94932D30931805209317058091BC0151 |
:1030A000882369F08091B5019091B6016091BC01CF |
:1030B00077270E945E2D70930105609300051092A2 |
:1030C000AC011092AB011092B7011092AE011092B8 |
:1030D000AD011092B8011092B0011092AF011092A0 |
:1030E000B9011092B2011092B1011092BB0110927D |
:1030F000B4011092B3011092BA011092B60110926D |
:10310000B5011092BC018FEC80937A0020910F02E0 |
:10311000309110028091C504E82FFF27EE0FFF1FAA |
:10312000EB56FB4F8081918182599F4F28173907B9 |
:103130001CF42F5F3F4F0CC08081918182599F4FBB |
:10314000821793074CF42115310531F0215030409E |
:103150003093100220930F0220911102309112023D |
:103160008091C604E82FFF27EE0FFF1FEB56FB4FA1 |
:103170008081918182599F4F281739071CF42F5F56 |
:103180003F4F0CC08081918182599F4F82179307D6 |
:103190004CF42115310531F02150304030931202AA |
:1031A0002093110220911302309114028091C704E0 |
:1031B000E82FFF27EE0FFF1FEB56FB4F8081918119 |
:1031C00082599F4F281739071CF42F5F3F4F0CC0BF |
:1031D0008081918182599F4F821793074CF421156A |
:1031E000310531F021503040309314022093130206 |
:1031F00020911502309116028091C804E82FFF2714 |
:10320000EE0FFF1FEB56FB4F8081918182599F4F3C |
:10321000281739071CF42F5F3F4F0CC08081918124 |
:1032200082599F4F821793074CF42115310531F0D5 |
:1032300021503040309316022093150280910F02E6 |
:103240009091100297FF05C01092100210920F0289 |
:103250000AC08F3F910539F034F08FEF90E09093E2 |
:10326000100280930F02809111029091120297FF39 |
:1032700005C010921202109211020AC08F3F9105F0 |
:1032800039F034F08FEF90E09093120280931102A6 |
:10329000809113029091140297FF05C010921402BE |
:1032A000109213020AC08F3F910539F034F08FEF6E |
:1032B00090E09093140280931302809115029091F4 |
:1032C000160297FF05C0109216021092150208957B |
:1032D0008F3F910539F034F08FEF90E09093160214 |
:1032E0008093150208951F938091CC048B3F98F032 |
:1032F0008B3F19F480910F020EC08C3F19F480911E |
:10330000110209C08D3F19F48091130204C08E3F51 |
:1033100021F480911502809381018091810188239D |
:1033200019F41092810104C08F3F11F48093810140 |
:103330008091CB048B3F98F08B3F19F480910F0262 |
:103340000EC08C3F19F48091110209C08D3F19F411 |
:103350008091130204C08E3F21F480911502809366 |
:10336000800180918001882319F41092800105C0AA |
:10337000843618F084E6809380018091CD048B3FE1 |
:1033800098F08B3F19F480910F020EC08C3F19F416 |
:103390008091110209C08D3F19F48091130204C07D |
:1033A0008E3F21F4809115028093820180918201E9 |
:1033B000882319F41092820105C0843618F084E63F |
:1033C000809382018091CF048B3F98F08B3F19F45A |
:1033D00080910F020EC08C3F19F48091110209C038 |
:1033E0008D3F19F48091130204C08E3F21F4809127 |
:1033F00015028093830180918301882319F4109230 |
:10340000830104C08F3F11F4809383018091D6041F |
:103410008B3F98F08B3F19F480910F020EC08C3FC8 |
:1034200019F48091110209C08D3F19F480911302A3 |
:1034300004C08E3F21F48091150280938401809115 |
:103440008401882319F41092840104C08F3F11F481 |
:10345000809384018091D7048B3F98F08B3F19F4BF |
:1034600080910F020EC08C3F19F48091110209C0A7 |
:103470008D3F19F48091130204C08E3F21F4809196 |
:10348000150280938501809185018B3010F48AE0CC |
:1034900002C08F3F11F4809385018091D8048B3F47 |
:1034A00098F08B3F19F480910F020EC08C3F19F4F5 |
:1034B0008091110209C08D3F19F48091130204C05C |
:1034C0008E3F21F4809115028093860180918601C0 |
:1034D000882319F41092860104C08F3F11F4809361 |
:1034E00086018091DD048B3F98F08B3F19F4809129 |
:1034F0000F020EC08C3F19F48091110209C08D3F5C |
:1035000019F48091130204C08E3F21F480911502BA |
:103510008093880180918801882319F41092880192 |
:1035200004C08F3F11F4809388018091DE048B3FAB |
:1035300098F08B3F19F480910F020EC08C3F19F464 |
:103540008091110209C08D3F19F48091130204C0CB |
:103550008E3F21F4809115028093230280912302F3 |
:10356000882319F41092230204C08F3F11F4809332 |
:1035700023028091DF048B3F98F08B3F19F48091F8 |
:103580000F020EC08C3F19F48091110209C08D3FCB |
:1035900019F48091130204C08E3F21F4809115022A |
:1035A0008093240280912402882319F4109224022B |
:1035B00004C08F3F11F4809324028091E0048B3F7C |
:1035C00098F08B3F19F480910F020EC08C3F19F4D4 |
:1035D0008091110209C08D3F19F48091130204C03B |
:1035E0008E3F21F48091150280932502809125025F |
:1035F000882319F41092250204C08F3F11F48093A0 |
:1036000025028091E1048B3F98F08B3F19F4809163 |
:103610000F020EC08C3F19F48091110209C08D3F3A |
:1036200019F48091130204C08E3F21F48091150299 |
:103630008093260280912602882319F41092260294 |
:1036400004C08F3F11F4809326029091E2049B3FC7 |
:10365000B0F09B3F19F480910F0204C09C3F29F405 |
:1036600080911102809389010CC09D3F19F48091D3 |
:103670001302F8CF9E3F29F480911502F3CF909367 |
:10368000890180918901882319F41092890104C06D |
:103690008F3F11F4809389019B3FB0F09B3F19F459 |
:1036A00080910F0204C09C3F29F480911102809305 |
:1036B00089010CC09D3F19F480911302F8CF9E3F01 |
:1036C00029F480911502F3CF9093890180918901AB |
:1036D000882319F41092890104C08F3F11F480935C |
:1036E00089019B3FB0F09B3F19F480910F0204C009 |
:1036F0009C3F29F480911102809389010CC09D3F69 |
:1037000019F480911302F8CF9E3F29F4809115029D |
:10371000F3CF9093890180918901882319F4109245 |
:10372000890104C08F3F11F48093890110918801B1 |
:10373000612F772767FD7095872F972F0E94692C3F |
:1037400017FF06C020E030E040E853E40E94C42B9D |
:1037500027E137EB41ED58E30E94E32C60937C01B5 |
:1037600070937D0180937E0190937F018091D404BA |
:10377000809310058091D3048093FF041F910895D6 |
:1037800081E08093C10442E04093C20483E08093CF |
:10379000C30494E09093C40435E03093C50486E0FC |
:1037A0008093C60487E08093C7041092C9048EE119 |
:1037B0008093CA048BEF8093CC048AE08093CD047D |
:1037C00022E32093CB042093CF044093CE04909324 |
:1037D000D0041092D10490E19093D2048FE08093B2 |
:1037E000D3048AEF8093D4048AE18093D504909324 |
:1037F000D6048FEA8093D7048093D8048AE5809317 |
:10380000D90483E28093DA0484E18093DB0410928C |
:10381000DC043093DD0482EB8093DE041092DF043D |
:103820001092E0041092E10484E68093E20488E2BE |
:103830008093E3041092E7042093E40486E98093E4 |
:10384000E5043093E604AFEEB4E0E8E6F1E08CE0A6 |
:1038500001900D928150E1F7089581E08093C104B9 |
:1038600052E05093C20483E08093C30444E0409349 |
:10387000C40435E03093C50486E08093C60487E035 |
:103880008093C70428E02093C8041092C9049EE1E5 |
:103890009093CA048BEF8093CC048AE08093CD048C |
:1038A00086E48093CB049093CF045093CE0440934E |
:1038B000D0042093D10490E19093D2048FE08093C0 |
:1038C000D3048AEF8093D4048AE18093D504909343 |
:1038D000D60488E78093D70496E99093D8048AE5C4 |
:1038E0008093D90483E28093DA0484E18093DB043B |
:1038F0001092DC043093DD0482EB8093DE0410929E |
:10390000DF041092E0041092E10484E68093E20464 |
:1039100088E28093E3041092E70482E38093E40456 |
:103920009093E5043093E604AFEEB4E0E0E7F1E015 |
:103930008CE001900D928150E1F7089580911E0274 |
:10394000882301F5109261021092600210926402C5 |
:103950001092650280919601882311F08093600295 |
:1039600080919701882311F08093610280919801E2 |
:10397000882311F08093650280919901882311F0CA |
:1039800080936402809160029927909373048093DE |
:103990007204809161029927909375048093740456 |
:1039A00080916502992790937704809376048091A3 |
:1039B0006402992790937904809378041092C80147 |
:1039C0001092C9010E9436140895CF93DF9310928C |
:1039D000070510920605109209051092080580E06F |
:1039E00090E0A0E0B0E080930A0590930B05A093CF |
:1039F0000C05B0930D051092D1011092D0011092D8 |
:103A0000D3011092D2011092D5011092D4010E94DC |
:103A1000DD1785E090E00E94810BEC01CE010E9451 |
:103A20008A0B8823D9F30E94DD178091C90480FF97 |
:103A300010C080910A0190910B01875B934038F48C |
:103A400080910A0190910B018E5E924010F40E94C9 |
:103A5000C80F8091FD049091FE0497FF03C09095DC |
:103A600081959F4F9093D1018093D0018091FB0469 |
:103A70009091FC0497FF03C0909581959F4F909380 |
:103A8000D3018093D201809111059091120597FF87 |
:103A900003C0909581959F4F9093D5018093D40159 |
:103AA00088E0E6E0F5E0ACE2B1E0182E0E94F32DEC |
:103AB0001092EA011092EB011092EC011092ED01CC |
:103AC0001092EE011092EF011092F0011092F101AC |
:103AD0001092F2011092F3011092F4011092F5018C |
:103AE0001092F6011092F7011092F8011092F9016C |
:103AF0001092FA011092FB011092FC011092FD014C |
:103B00001092FE041092FD041092FC041092FB042B |
:103B100010921205109211058091060190910701F3 |
:103B2000A0910801B09109019093800480937F04D3 |
:103B30001092BE011092BD01109202021092030277 |
:103B400010920402109205028091060290910702E1 |
:103B500090930902809308020E944E2882E390E02D |
:103B60009093A7018093A601DF91CF910895CF9301 |
:103B7000DF93109207051092060510920905109226 |
:103B8000080580E090E0A0E0B0E080930A05909303 |
:103B90000B05A0930C05B0930D050E94DD1785E081 |
:103BA00090E00E94810BEC01CE010E948A0B8823D9 |
:103BB000D9F30E94DD1780910E0590910F0597FFB4 |
:103BC00003C0909581959F4F60E170E00E945E2D4B |
:103BD000C6E0D5E070930705609306058091170550 |
:103BE0009091180597FF03C0909581959F4F60E1D4 |
:103BF00070E00E945E2D7093090560930805609146 |
:103C00007D0470917E04882777FD8095982F0E940F |
:103C1000692C60930A0570930B0580930C059093B3 |
:103C20000D0588E0ACE2B1E0FE01182E0E94042EE2 |
:103C3000DF91CF9108951F93182F0EC080911E021F |
:103C4000882361F484E690E09093A7018093A60115 |
:103C50008AEF90E00E949A0C115080F71F9108950E |
:103C6000A6E0B0E0E6E3FEE10C94AE2D0E947E15E6 |
:103C7000299AE091C304FF27EE0FFF1FEB56FB4F7D |
:103C80004080518048E750E0440E551E57FE02C068 |
:103C90004424552480911702843608F048C080914E |
:103CA0000101882331F484EF91E09093A701809380 |
:103CB000A60180912F0290913002009731F0019778 |
:103CC0009093300280932F0204C010921E02109233 |
:103CD0000D02289A80912A0290912B02815D9740D3 |
:103CE00018F18091DA04482E552481E080930D026A |
:103CF000E091C104FF27EE0FFF1FEB56FB4F11822F |
:103D00001082E091C204FF27EE0FFF1FEB56FB4F1E |
:103D100011821082E091C404FF27EE0FFF1FEB56C3 |
:103D2000FB4F11821082CBC110921E02C8C180913C |
:103D300017028D3808F4C3C110920D028091DB0484 |
:103D400022E3829FC00111249093300280932F02BE |
:103D500069E2461651046CF080912A0290912B0280 |
:103D60007FEF8F3F970781F1019690932B0280930D |
:103D70002A0280912A0290912B02883C910520F022 |
:103D800088E24816510404F510924502109246024A |
:103D90001092470210924802109241021092420281 |
:103DA00010924302109244021092FA011092FB0109 |
:103DB0001092FC011092FD011092FE011092FF0181 |
:103DC000109200021092010299EC491651040CF471 |
:103DD000D6C080911E02882309F071C1E091C4040D |
:103DE000FF27EE0FFF1FEB56FB4F808191818C3434 |
:103DF00091050CF4C1C080912E028F5F80932E023A |
:103E0000893C08F45CC129980E94E51C10921E02AE |
:103E100010922E0210922B0210922A028091C1045D |
:103E2000282F3327F901EE0FFF1FEB56FB4F808140 |
:103E30009181873491059CF4E091C204FF27EE0F35 |
:103E4000FF1FEB56FB4F0190F081E02DF7FF03C001 |
:103E5000F095E195FF4FE734F1050CF46CC08091CB |
:103E6000C204682F7727DB01AA0FBB1FAB56BB4FDD |
:103E70008D919C911197873491053CF0F901EE0FDB |
:103E8000FF1FEB56FB4F808191818D919C91873470 |
:103E9000910564F0F901EE0FFF1FEB56FB4F808197 |
:103EA00091818734910514F042E001C041E0FB01AB |
:103EB000EE0FFF1FEB56FB4F8081918186349105F9 |
:103EC0005CF4F901EE0FFF1FEB56FB4F80819181EF |
:103ED000873491050CF043E0FB01EE0FFF1FEB561A |
:103EE000FB4F808191818A5B9F4F5CF4F901EE0F5B |
:103EF000FF1FEB56FB4F80819181873491050CF0B9 |
:103F000044E0660F771F6B567B4FFB0180819181E8 |
:103F10008A5B9F4F5CF4220F331F2B563B4FD90116 |
:103F20008D919C91863491050CF445E0A2E0B0E0BF |
:103F3000042E0E94F82D0E9474034AE361EC74E0A1 |
:103F40000E9495030E9474030E941B1E8091C90465 |
:103F500080FFB5C080910A0190910B01875B93406F |
:103F600040F480910A0190910B018E5E924008F01E |
:103F7000A6C00E94C80FA3C010922E02A0C0F3E2F8 |
:103F80004F1651040CF09BC08091C404482F552754 |
:103F9000FA01EE0FFF1FEB56FB4F80819181855B8D |
:103FA0009F4F0CF06DC080912D028F5F80932D028A |
:103FB000893C08F467C088EC80932D0281E090E092 |
:103FC00090932B0280932A0281E080931E0210922C |
:103FD0003D0210923E0210923F0210924002109257 |
:103FE000FA011092FB011092FC011092FD01109257 |
:103FF000FE011092FF011092000210920102109235 |
:10400000EA011092EB011092EC011092ED01109276 |
:10401000F2011092F3011092F4011092F5018091D7 |
:10402000D6019091D701A091D801B091D901809388 |
:10403000EE019093EF01A093F001B093F101809114 |
:10404000DE019091DF01A091E001B091E101809348 |
:10405000F6019093F701A093F801B093F901109243 |
:1040600045021092460210924702109248021092A6 |
:10407000410210924202109243021092440202C086 |
:1040800010922D02440F551F4B565B4FDA018D9154 |
:104090009C918C3491058CF080912C028F5F8093E1 |
:1040A0002C02893C60F010921E0288EC80932C0256 |
:1040B00010922B0210922A0202C010922C028091C0 |
:1040C0006701815080936701809167018F3F29F0DC |
:1040D00080910D02882309F412C10E947319E091A6 |
:1040E000C104FF27EE0FFF1FDF01AB56BB4F8D91C1 |
:1040F0009C916091D0047727E555FB4F2081318159 |
:104100004091D1045527FC01E69FC001E79F900D27 |
:10411000F69F900D1124D901A49F9001A59F300D09 |
:10412000B49F300D1124820F931F90931902809336 |
:104130001802E091C204FF27EE0FFF1FDF01AB560C |
:10414000BB4F8D919C91E555FB4F20813181FC0146 |
:10415000E69FC001E79F900DF69F900D1124B901D5 |
:10416000649F9001659F300D749F300D1124820F64 |
:10417000931F90931B0280931A02E091C404FF27BF |
:10418000EE0FFF1FEB56FB4F80819181909581953B |
:104190009F4F90931D0280931C0210918501612F07 |
:1041A000772767FD7095872F972F0E94692C17FF3F |
:1041B00006C020E030E040E853E40E94C42B20E039 |
:1041C00030E040E251E40E94C42B20E030E040E8BF |
:1041D0005BE30E94E32C5B016C0160931305709319 |
:1041E0001405809315059093160510918601612F93 |
:1041F000772767FD7095872F972F0E94692C17FFEF |
:1042000006C020E030E040E853E40E94C42B20E0E8 |
:1042100030EE4BE257E40E94062C60930205709347 |
:10422000030580930405909305058091C90482FFDE |
:104230000CC080E090E0A0E0B0E080930205909395 |
:104240000305A0930405B093050520E030E040E0AD |
:1042500050E0C601B5010E94732C882364F480E00D |
:1042600090E0A0E0B0E08093130590931405A09334 |
:104270001505B093160520E030E040E050E0609175 |
:1042800002057091030580910405909105050E9437 |
:10429000732C882364F480E090E0A0E0B0E0809389 |
:1042A000020590930305A0930405B0930505809142 |
:1042B0000D02882321F110921D0210921C0210920F |
:1042C00019021092180210921B0210921A028DEC21 |
:1042D0009CECACECBDE38093130590931405A09384 |
:1042E0001505B09316058AE097EDA3EABBE380932A |
:1042F000020590930305A0930405B09305058091F2 |
:10430000BF019091C0018D54914008F477C0A090F6 |
:10431000D601B090D701C090D801D090D90180913A |
:10432000DA019091DB018A199B0990933402809302 |
:1043300033024091DE015091DF016091E001709104 |
:10434000E1012091E2013091E301241B350B309310 |
:104350003202209331021092C0011092BF01873ABD |
:10436000910534F08091D0019091D101019608C05F |
:104370008A559F4F4CF48091D0019091D1010197C3 |
:104380009093D1018093D001273A310534F0809188 |
:10439000D2019091D301019608C02A553F4F4CF4A9 |
:1043A0008091D2019091D30101979093D301809392 |
:1043B000D20110927A00A092EE01B092EF01C09269 |
:1043C000F001D092F1014093F6015093F701609310 |
:1043D000F8017093F9018091E6019091E701A091B5 |
:1043E000E801B091E9018093FE019093FF01A09351 |
:1043F0000002B09301028FEC80937A00E090D50424 |
:10440000FF24002711276091D6017091D701809178 |
:10441000D8019091D901A80197010E94932D809114 |
:104420000E0590910F05AA2797FDA095BA2F281B7E |
:10443000390B4A0B5B0BCA01B90120E130E040E0C7 |
:1044400050E00E94932D59016A0120933902309364 |
:104450003A0240933B0250933C026091DE0170911E |
:10446000DF018091E0019091E101A80197010E9494 |
:10447000932D8091170590911805AA2797FDA09577 |
:10448000BA2F281B390B4A0B5B0BCA01B90120E17B |
:1044900030E040E050E00E94932D209335023093AD |
:1044A00036024093370250933802E5EFAE16E1E052 |
:1044B000BE06E0E0CE06E0E0DE062CF084EF91E000 |
:1044C000A0E0B0E00DC0FCE0AF16FEEFBF06FFEFCE |
:1044D000CF06FFEFDF0664F48CE09EEFAFEFBFEF97 |
:1044E0008093390290933A02A0933B02B0933C022E |
:1044F000253F61E0360760E0460760E056072CF094 |
:1045000084EF91E0A0E0B0E009C02C503E4F4F4F47 |
:104510005F4F64F48CE09EEFAFEFBFEF8093350206 |
:1045200090933602A0933702B093380210927A002B |
:104530008091EA019091EB01A091EC01B091ED0125 |
:104540002091390230913A0240913B0250913C0255 |
:10455000821B930BA40BB50B8093EA019093EB01A4 |
:10456000A093EC01B093ED018091F2019091F301E1 |
:10457000A091F401B091F5012091350230913602FD |
:104580004091370250913802821B930BA40BB50B5C |
:104590008093F2019093F301A093F401B093F5019D |
:1045A00080901C0290901D02540197FE04C0AA2422 |
:1045B000BB24A818B90885E1A816B1043CF0809185 |
:1045C000C90484FD03C081E080938A01E090D20495 |
:1045D000CC24B7FCC094DC2CB401882777FD8095EF |
:1045E000982F2E2D3327442755270E942B2D9B01D2 |
:1045F000AC01C601B5010E942B2D20E032E040E065 |
:1046000050E00E94932D89019A01FF24E89CC0018B |
:10461000E99C900DF89C900D112464E070E00E94DC |
:104620005E2D600F711F882777FD8095982F60930E |
:104630003D0270933E0280933F029093400220918E |
:10464000FA013091FB014091FC015091FD01261BC4 |
:10465000370B480B590B2093FA013093FB01409321 |
:10466000FC015093FD018091FA019091FB01A09112 |
:10467000FC01B091FD018155934CA040B04064F025 |
:1046800080E593ECA0E0B0E08093FA019093FB0109 |
:10469000A093FC01B093FD018091FA019091FB0180 |
:1046A000A091FC01B091FD01805B9C43AF4FBF4FD7 |
:1046B00064F480EB9CE3AFEFBFEF8093FA0190933B |
:1046C000FB01A093FC01B093FD018FEC80937A0075 |
:1046D0008091C90483FFA0C080910C028150809317 |
:1046E0000C028F3FD9F40E94C62890930702809352 |
:1046F00006022091080230910902821B930B845E0E |
:104700009D4F68E671E00E945E2D845B904090931F |
:104710000B0280930A0282E380930C026091D6011F |
:104720007091D7018091D8019091D90120E032E0B9 |
:1047300040E050E00E94932D890137FF03C010959F |
:1047400001951F4F6091DE017091DF018091E001C2 |
:104750009091E10120E032E040E050E00E94932D92 |
:10476000B90137FF03C0709561957F4F60177107DE |
:104770000CF4B8016332710574F480918A018823C6 |
:1047800051F0809106029091070290930902809364 |
:10479000080210928A01209184013327629FC00190 |
:1047A000639F900D729F900D112460E470E00E9451 |
:1047B0005E2DA901461B570B141615066CF51092B9 |
:1047C0007A000091FA011091FB012091FC013091D7 |
:1047D000FD0180910A0290910B02BC01469FC0012D |
:1047E000479F900D569F900D112460E270E00E944B |
:1047F0005E2D882777FD8095982F060F171F281F9D |
:10480000391F0093FA011093FB012093FC013093B0 |
:10481000FD018FEC80937A00809159048F5F809323 |
:104820005904809127028150809327028F3F09F01D |
:104830007EC081E380932702E090D504FF24002707 |
:1048400011276091D6017091D7018091D801909184 |
:10485000D901A80197010E94932D30935B04209306 |
:104860005A046091DE017091DF018091E001909126 |
:10487000E101A80197010E94932D30935D042093DC |
:104880005C0480910E0590910F0590935F048093D6 |
:104890005E048091170590911805909361048093B0 |
:1048A00060048091110590911205909363048093A8 |
:1048B000620480911F02909120029093650480937E |
:1048C000640460910202709103028091040290914D |
:1048D000050220E032E040E050E00E94932D30934A |
:1048E00067042093660450926904409268048091A2 |
:1048F00006029091070290936B0480936A04809162 |
:1049000026059091270590936D0480936C04809107 |
:1049100028059091290590936F0480936E048091EF |
:104920002A0590912B0590937104809370046090F8 |
:104930000205709003058090040590900505A090F5 |
:104940001305B0901405C0901505D0901605609120 |
:10495000D6017091D7018091D8019091D9010E9420 |
:10496000692CA40193010E94E32C7B018C016091CE |
:10497000FD047091FE04882777FD8095982F0E9492 |
:10498000692CA60195010E94E32C9B01AC01C80192 |
:10499000B7010E94C42B0E944C2C1B017093FE0493 |
:1049A0006093FD046091DE017091DF018091E00170 |
:1049B0009091E1010E94692CA40193010E94E32CD3 |
:1049C0007B018C016091FB047091FC04882777FDCA |
:1049D0008095982F0E94692CA60195010E94E32CD6 |
:1049E0009B01AC01C801B7010E94C42B0E944C2C52 |
:1049F0007E836D837093FC046093FB0460911105CA |
:104A000070911205882777FD8095982F0E94692C58 |
:104A10007B018C0120E030E040E05FE3C601B5019E |
:104A20000E94E32C9B01AC01C801B7010E94E32C5A |
:104A30007B018C016091E6017091E7018091E801B2 |
:104A40009091E9010E94692CA40193010E94E32C3A |
:104A50009B01AC01C801B7010E94C42B0E944C2CE1 |
:104A60009B01709312056093110571E0271678E0A1 |
:104A700037061CF080E098E007C080E0281688EF39 |
:104A8000380634F480E098EF9093FE048093FD04A0 |
:104A9000AD81BE81A150B8401CF080E098E007C015 |
:104AA0004D815E814050584F34F480E098EF9093F0 |
:104AB000FC048093FB0478E0213037071CF080E091 |
:104AC00098E005C02050384F34F480E098EF909380 |
:104AD0001205809311058091C904992780FFBEC0FB |
:104AE0002091810181FF0EC02233B0F480911F021A |
:104AF0009091200244979093220280932102109279 |
:104B00000E020DC08091CE04289FC001112444974D |
:104B1000909322028093210281E080930E02809183 |
:104B20000D02882321F0109222021092210220917E |
:104B30001F0230912002409121025091220242171F |
:104B400053070CF08BC080910E02882309F486C0B5 |
:104B5000241B350B809182019927DC012A9FC0011B |
:104B60002B9F900D3A9F900D112460E170E00E9400 |
:104B70005E2D8201061B170B2091BD013091BE01F5 |
:104B8000809180019927FC012E9FC0012F9F900DDD |
:104B90003E9F900D112468E070E00E945E2D061B80 |
:104BA000170B6091020270910302809104029091B0 |
:104BB000050220E032E040E050E00E94932DCA015F |
:104BC000B901209183013327442755270E942B2DBB |
:104BD00020E230E040E050E00E94932DFFEF2E3CB9 |
:104BE0003F0714F42EEC3FEF8091280290912902A8 |
:104BF000AC0164E0440F551F6A95E1F7481B590B5F |
:104C00002333310514F022E330E0021B130BCA01F9 |
:104C1000800F911F60E170E00E945E2D7093290269 |
:104C2000609328028091CA049927681779073CF499 |
:104C3000481659065CF090932902809328028091CF |
:104C40002802909129024816590624F4509229020C |
:104C5000409228024090280250902902C0901105ED |
:104C6000D090120580913D0290913E02C81AD90A57 |
:104C700025E6C216D10424F014E6C12ED12C09C0B9 |
:104C80004CE9C4164FEFD40624F4BCE9CB2EBFEF99 |
:104C9000DB2E609178017091790180917A01909179 |
:104CA0007B0169837A838B839C83209118023091E6 |
:104CB00019028091490290914A02281B390B609198 |
:104CC000FD047091FE04621B730B882777FD8095AD |
:104CD000982F0E94692C9B01AC0169817A818B819C |
:104CE0009C810E94E32C0E944C2CFB017093630278 |
:104CF000609362028B01222717FD2095322F80914D |
:104D0000450290914602A0914702B0914802080FD7 |
:104D1000191F2A1F3B1F0093450210934602209340 |
:104D20004702309348021016110612061306ACF41F |
:104D3000C80117FF03C0909581959F4F60E071E017 |
:104D40000E945E2D6F5F7F4F882777FD8095982F9B |
:104D5000061B170B280B390B14C0C80117FF03C023 |
:104D6000909581959F4F60E071E00E945E2D6F5F8E |
:104D70007F4F882777FD8095982F060F171F281FD4 |
:104D8000391F009345021093460220934702309347 |
:104D900048028091450290914602A0914702B0914D |
:104DA000480281387EE3970770E0A70770E0B707F5 |
:104DB0002CF080E89EE3A0E0B0E009C08058914C60 |
:104DC000AF4FBF4F64F480E891ECAFEFBFEF80933B |
:104DD000450290934602A0934702B0934802809008 |
:104DE0007C0190907D01A0907E01B0907F01BF0179 |
:104DF000882777FD8095982F0E94692C7B018C0174 |
:104E0000609145027091460280914702909148025C |
:104E10000E94692C9B01AC01C501B4010E94E32CE6 |
:104E20009B01AC01C801B7010E94C42B0E944C2C0D |
:104E30009601260F371F240D351D66244AE04416BF |
:104E4000510414F4A1E06A2E37FD02C0662019F067 |
:104E500040E050E008C080911005482F55272417E6 |
:104E600035070CF4A9018091FF04282E3324910109 |
:104E7000241635060CF49A0120936002C201861BA9 |
:104E8000970BBC016C0D7D1D77FD02C0662019F0EB |
:104E900080E090E007C08091100599276817790796 |
:104EA0000CF4CB019101281639060CF49C012093D7 |
:104EB000610220911A0230911B0280914B02909165 |
:104EC0004C02281B390B6091FB047091FC04621B9F |
:104ED000730B882777FD8095982F0E94692C9B0182 |
:104EE000AC0169817A818B819C810E94E32C0E94B4 |
:104EF0004C2CFB0170935F0260935E028B012227B2 |
:104F000017FD2095322F8091410290914202A0918D |
:104F10004302B0914402080F191F2A1F3B1F009340 |
:104F20004102109342022093430230934402101630 |
:104F3000110612061306ACF4C80117FF03C09095C2 |
:104F400081959F4F60E071E00E945E2D6F5F7F4F03 |
:104F5000882777FD8095982F061B170B280B390B98 |
:104F600014C0C80117FF03C0909581959F4F60E062 |
:104F700071E00E945E2D6F5F7F4F882777FD8095DF |
:104F8000982F060F171F281F391F009341021093F7 |
:104F90004202209343023093440280914102909157 |
:104FA0004202A0914302B091440281382EE392075D |
:104FB00020E0A20720E0B2072CF080E89EE3A0E00A |
:104FC000B0E009C08058914CAF4FBF4F64F480E807 |
:104FD00091ECAFEFBFEF8093410290934202A09318 |
:104FE0004302B0934402BF01882777FD8095982F34 |
:104FF0000E94692C7B018C016091410270914202F8 |
:1050000080914302909144020E94692C9B01AC0163 |
:10501000C501B4010E94E32C9B01AC01C801B7019A |
:105020000E94C42B0E944C2C9201260F371F2C1972 |
:105030003D0937FD02C0662019F040E050E008C08D |
:1050400080911005482F5527241735070CF4A90126 |
:105050009101241635060CF49A0120936502461A34 |
:10506000570AB2016C197D0977FD02C0662019F05C |
:1050700020E030E008C080911005282F3327621708 |
:1050800073070CF49B01C101221633060CF4C9010D |
:1050900080936402E2E1CA5F0C94CA2D80914D02B4 |
:1050A00090914E02A0914F02B09150028093550210 |
:1050B00090935602A0935702B093580280915102E8 |
:1050C00090915202A0915302B091540280935902E0 |
:1050D00090935A02A0935B02B0935C0208951092E1 |
:1050E0004A021092490210924C0210924B0208950B |
:1050F0001F920F920FB60F9211242F933F934F934D |
:105100008F939F9380912205833019F08430A1F50D |
:1051100008C08EB580935D021EBC84E0809322059A |
:105120002BC080915D029927382F22278EB59927B1 |
:10513000282B392BC9018D509E4F875E9340D0F4A8 |
:1051400080912505853019F0863069F406C03093CA |
:1051500027052093260586E00BC030932905209370 |
:10516000280587E005C030932B0520932A0585E0AC |
:1051700080932505109222059F918F914F913F9129 |
:105180002F910F900FBE0F901F901895AAE0B0E0DE |
:10519000ECECF8E20C94AE2DA090DE04BB2433E0DE |
:1051A000AA0CBB1C3A95E1F7CC24DD246091D60112 |
:1051B0007091D7018091D8019091D901A6019501F4 |
:1051C0000E94932D79018A01FF24E7FCF094C70126 |
:1051D0000E946B2B2C01C7010E94AE2B3C016091F9 |
:1051E000DE017091DF018091E0019091E101A60163 |
:1051F00095010E94932D79018A01FF24E7FCF09428 |
:10520000C7010E946B2B9A878987C7010E94AE2B2A |
:105210001C016091260570912705E0902805F0900B |
:10522000290520911A05332727FD3095E21AF30A44 |
:105230000027F7FC0095102FA0902A05B0902B05B1 |
:1052400020911B05332727FD3095A21AB30ACC24E1 |
:10525000B7FCC094DC2C20911905332727FD30952D |
:10526000621B730B882777FD8095982F882477FC25 |
:105270008094982CA40193010E942B2D3B014C019A |
:1052800089859A85AA2797FDA095BA2F8D839E833D |
:10529000AF83B887C201AA2797FDA095BA2F89834B |
:1052A0009A83AB83BC83C801B7012D813E814F81B6 |
:1052B00058850E942B2D29813A814B815C810E9467 |
:1052C0002B2D20E034E040E050E00E94932D620E50 |
:1052D000731E841E951E442437FC4094542CC60132 |
:1052E000B501A20191010E942B2D29813A814B81A8 |
:1052F0005C810E942B2D20E034E040E050E00E94D1 |
:10530000932D621A730A840A950AC801B701A20193 |
:1053100091010E942B2D7B018C01C601B5012D81CD |
:105320003E814F8158850E942B2DE60EF71E081FE7 |
:10533000191FC801B70120E034E040E050E00E94AE |
:10534000932D79018A01C401B30120E034E040E0EB |
:1053500050E00E94932DDA01C901B7010E94CC2AC6 |
:105360009C0197FF05C088279927821B930B04C0D7 |
:1053700088E691E0821B930BE2E1C65F0C94CA2D94 |
:1053800080912205813041F0813018F0823049F55A |
:105390001CC02A9A81E016C02A9880912505853084 |
:1053A00011F481E305C0863011F482E301C083E388 |
:1053B0008EBD88E090E00E94810B9093240580933D |
:1053C000230582E080932205089580912305909122 |
:1053D00024050E948A0B882321F01EBC83E0809361 |
:1053E00022050895A0E0B0E0E8EFF9E20C94B02DBA |
:1053F000299A2898EE24FF2400E010E0AA24BB2478 |
:10540000CC24DD24662477248824992462E3462E64 |
:1054100055248091260590912705081719072CF42B |
:1054200000912605109127050BC0809126059091CB |
:1054300027058E159F0524F4E0902605F09027059A |
:105440008091280590912905C816D9062CF4C090A2 |
:105450002805D09029050BC0809128059091290539 |
:105460008A159B0524F4A0902805B0902905809109 |
:105470002A0590912B05881699062CF480902A0510 |
:1054800090902B050BC080912A0590912B058615D5 |
:10549000970524F460902A0570902B05552081F41F |
:1054A00085B191E0892785B985B192E0892785B9D1 |
:1054B00082E390E09093A7018093A60152E3552EDA |
:1054C0008AE090E00E94810BEC01CE010E948A0BE1 |
:1054D0008823D9F3E091C304FF27EE0FFF1FEB569B |
:1054E000FB4F80819181843691050CF44A944420CD |
:1054F00011F05A948ECFC8018E199F0990931D0503 |
:1055000080931C05C6018A199B0990931F058093FF |
:105510001E05C401861997099093210580932005E3 |
:10552000E9E1F5E0C8018E0D9F1D62E070E00E9488 |
:105530005E2D60931905C6018A0D9B1D62E070E027 |
:105540000E945E2D60931A05C401860D971D62E0CE |
:1055500070E00E945E2D60931B0589E0A4E3B1E03A |
:10556000182E0E94042EE0E1CDB7DEB70C94CC2DAE |
:1055700083ED8CBD84B1846A84B95B9885E08093A7 |
:1055800025051092220589E0E9E1F5E0A4E3B1E008 |
:10559000182E0E94F32D08951F93CF93DF93EC01F3 |
:1055A000892B31F46115710519F480E090E08FC00A |
:1055B00077FD02C011E001C01FEF209729F48AE5B2 |
:1055C0001802C001112483C0882777FD8095982F89 |
:1055D00026E0660F771F881F991F2A95D1F79E0135 |
:1055E000442737FD4095542F0E94932DF90137FF32 |
:1055F00003C0F095E195FF4F41E0EA35F40734F43C |
:10560000E656FB4F8491282F332747C05CE1E73AE9 |
:10561000F5071CF02AE530E040C089E0ED38F807D6 |
:105620001CF029E530E039C045E0EA3BF4071CF006 |
:1056300028E530E032C054E0E731F5071CF027E5FB |
:1056400030E02BC083E0EE32F8071CF026E530E0B6 |
:1056500024C042E0E939F4071CF025E530E01DC024 |
:1056600052E0E233F5071CF024E530E016C081E09B |
:10567000E73EF8071CF023E530E00FC041E0ED3ACB |
:10568000F4071CF022E530E008C0EF57F1401CF0B1 |
:1056900021E530E002C020E530E01C161D066CF468 |
:1056A000812F992787FD9095AC01249FC001259FEC |
:1056B000900D349F900D11240AC011162CF484EB28 |
:1056C00090E0821B930B03C0C901845B9040DF9183 |
:1056D000CF911F910895FC0197FD03C041E050E078 |
:1056E00005C0F095E195FF4F4FEF5FEFEB35F1050A |
:1056F0005CF0CF018B5590408A35910540F484EBE6 |
:1057000090E08E1B9F0BFC0121E030E010C0CF0128 |
:10571000855B90408A35910518F4E45BF04005C044 |
:1057200088E691E08E1B9F0BFC012FEF3FEFEE0F01 |
:10573000FF1FEC50FA4F85919491BC01629FC0010C |
:10574000639F900D729F900D11249C01429FC00198 |
:10575000439F900D529F900D112408952AE530E04B |
:10576000281B390BC9010E946B2B0895FC01415085 |
:10577000504030F001900616D1F73197CF010895CF |
:105780008827992708955058192EEFD001D0D2C0FC |
:10579000BA176207730784079507B1F188F40EF40E |
:1057A00010940B2EBA2FA02D062E622F202D072E1F |
:1057B000732F302D082E842F402D092E952F502D1C |
:1057C000FF275523B9F0591B49F0573E98F04695ED |
:1057D00037952795A795F0405395C9F776F0BA0FFE |
:1057E000621F731F841F30F4879577956795B7956F |
:1057F000F040939517FA0F2E0895BF1BBB27BA0BE5 |
:10580000620B730B840BF6CFDEF6DBC0AED001D09B |
:1058100091C0552359F0992369F09F575F57951B05 |
:1058200033F442F4903811F4915805C09BC091585C |
:105830009F3F09F4C6C0BB27112462177307840772 |
:1058400030F4660F771F881FBB1F915098F311D05B |
:105850000F920FD00F920DD0A0E8261737074807F8 |
:105860001B0609F0A048BA2F602D7F918F9100246C |
:105870000895A0E80024621773078407B10528F093 |
:10588000621B730B840BB1090A2A660F771F881FEE |
:10589000BB1FA69581F7089597FB73D09F3738F00B |
:1058A000FEE9F91B982F872F762F6B2F05C086C036 |
:1058B0009695879577956795F150D0F73EF490953A |
:1058C0008095709561957F4F8F4F9F4F0895E89415 |
:1058D00003C097FB0EF4F3DFB62F672F782F892FC5 |
:1058E0009EE9002427C00ED05EF004C00BD026F045 |
:1058F00001C008D019F020F48FEF089580E00895DA |
:1059000081E0089597FB092E052600F8689430D0B1 |
:10591000E89407FC07C0621773078407950721F016 |
:1059200008F400940794989408959A95BB0F661F05 |
:10593000771F881F11249923A1F08823B2F79F3F76 |
:1059400059F0BB0F48F421F4002011F460FF04C0AB |
:105950006F5F7F4F8F4F9F4F881F9795879597F960 |
:1059600008952CC09FEF80EC0895052E092607FAB4 |
:10597000440F551F5F3F79F0AA27A51708F051E0A3 |
:105980004795880F991F9F3F31F0BB27B91708F043 |
:1059900091E0879508959F919F911124E3CF97FB04 |
:1059A000880F991F9F3F31F0BB27B91708F091E08E |
:1059B000879508959F919F911124D4CF66277727CB |
:1059C000882799270895D1DF01D0B4CF992339F0E2 |
:1059D000552329F09F575F57950F13F49AF1F1CF94 |
:1059E00091589F3FE1F3629FA12D0F92BB27639FC8 |
:1059F000A00DB11DEE27729FA00DB11DEE1FAF933C |
:105A0000AA27649FB00DE11D739FB00DE11DAA1F71 |
:105A10006627829FB00DE11DA61F5527749FE00DDC |
:105A2000A11D551F839FE00DA11D561F849FA00D32 |
:105A3000511D852F7A2F6E2F1F900F9088231AF4F7 |
:105A4000939539F48FCF000C111CBB1F661F771F75 |
:105A5000881F01280895629FD001739FF001829FE3 |
:105A6000E00DF11D649FE00DF11D929FF00D839FED |
:105A7000F00D749FF00D659FF00D9927729FB00D8A |
:105A8000E11DF91F639FB00DE11DF91FBD01CF019D |
:105A900011240895AA1BBB1B51E107C0AA1FBB1FFD |
:105AA000A617B70710F0A61BB70B881F991F5A95AA |
:105AB000A9F780959095BC01CD01089597FB092E1B |
:105AC00007260AD077FD04D0E5DF06D000201AF4BF |
:105AD000709561957F4F0895F6F7909581959F4F4A |
:105AE0000895A1E21A2EAA1BBB1BFD010DC0AA1F1F |
:105AF000BB1FEE1FFF1FA217B307E407F50720F037 |
:105B0000A21BB30BE40BF50B661F771F881F991FB1 |
:105B10001A9469F760957095809590959B01AC01FA |
:105B2000BD01CF01089597FB092E05260ED057FD24 |
:105B300004D0D7DF0AD0001C38F45095409530953A |
:105B400021953F4F4F4F5F4F0895F6F79095809501 |
:105B5000709561957F4F8F4F9F4F08952F923F9281 |
:105B60004F925F926F927F928F929F92AF92BF926D |
:105B7000CF92DF92EF92FF920F931F93CF93DF9319 |
:105B8000CDB7DEB7CA1BDB0B0FB6F894DEBF0FBE76 |
:105B9000CDBF09942A88398848885F846E847D84C3 |
:105BA0008C849B84AA84B984C884DF80EE80FD80C5 |
:105BB0000C811B81AA81B981CE0FD11D0FB6F8943B |
:105BC000DEBF0FBECDBFED010895EE0FFF1F0590A4 |
:105BD000F491E02D0994F999FECFB2BDA1BDF89AD8 |
:105BE000119600B40895F7DF01921A94E1F7089531 |
:105BF000F999FECFB2BDA1BD00BC11960FB6F894C5 |
:105C0000FA9AF99A0FBE08950190F2DF1A94E1F71B |
:045C10000895FFCF25 |
:105C140001640A016400007D0000FF030102030423 |
:105C240005060708090A48616C6C6F2057656C7497 |
:105C34000000000000000000000000000000000060 |
:105C44000000000000000000000000000000000050 |
:105C54000000000000000000000000000000000040 |
:105C64000000000000000000000000000000000030 |
:105C74000000000000000C014B616D6572610000C2 |
:105C84004E6F726D616C00000000803F17B7D13811 |
:0C5C940030FB103A403296020A64010016 |
:00000001FF |
/branches/MicroMag3_Nick666/Festkomma/v0.60/GPS.c |
---|
0,0 → 1,26 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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" |
signed int GPS_Nick = 0; |
signed int GPS_Roll = 0; |
long GpsAktuell_X = 0; |
long GpsAktuell_Y = 0; |
long GpsZiel_X = 0; |
long GpsZiel_Y = 0; |
void GPS_Neutral(void) |
{ |
GpsZiel_X = GpsAktuell_X; |
GpsZiel_Y = GpsAktuell_Y; |
} |
void GPS_BerechneZielrichtung(void) |
{ |
GPS_Nick = 0; |
GPS_Roll = 0; |
} |
/branches/MicroMag3_Nick666/Festkomma/v0.60/Settings.h |
---|
--- v0.60/_Settings.h (nonexistent) |
+++ v0.60/_Settings.h (revision 603) |
@@ -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 Degugdaten 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/MicroMag3_Nick666/Festkomma/v0.60/analog.c |
---|
0,0 → 1,155 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 AccumulateNick = 0, AccumulateRoll = 0, AccumulateGier = 0; |
volatile int accumulate_AccRoll = 0,accumulate_AccNick = 0,accumulate_AccHoch = 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<<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(100); |
if(MessLuftdruck < 850) off = 0; |
for(; off < 250;off++) |
{ |
OCR0A = off; |
Delay_ms(50); |
printf("."); |
if(MessLuftdruck < 900) break; |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET], off); |
DruckOffsetSetting = off; |
Delay_ms(200); |
} |
//####################################################################################### |
// |
SIGNAL(SIG_ADC) |
//####################################################################################### |
{ |
static unsigned char kanal=0,state = 0; |
signed int wert; |
ANALOG_OFF; |
switch(state++) |
{ |
case 0: |
wert = (signed int) AdNeutralGier - ADC; |
AccumulateGier += wert; // |
MessanzahlGier++; |
Mess_Integral_Gier += wert;// / 16; |
Mess_Integral_Gier2 += wert; |
kanal = 1; |
ZaehlMessungen++; |
break; |
case 1: |
wert = (signed int) ADC - AdNeutralRoll; |
Mess_IntegralRoll += wert; |
Mess_IntegralRoll2 += wert; |
if(ADC < 10) wert = -700; |
if(ADC > 1000) wert = +700; |
AccumulateRoll += wert; |
MessanzahlRoll++; |
kanal = 2; |
break; |
case 2: |
wert = (signed int) ADC - AdNeutralNick; |
Mess_IntegralNick += wert; |
Mess_IntegralNick2 += wert; |
if(ADC < 10) wert = -700; |
if(ADC > 1000) wert = +700; |
AccumulateNick += wert; |
MessanzahlNick++; |
kanal = 4; |
break; |
case 3: |
UBat = (3 * UBat + ADC / 3) / 4;//(UBat + ((ADC * 39) / 256) + 19) / 2; |
kanal = 6; |
break; |
case 4: |
Aktuell_ay = acc_neutral.Y - ADC; |
accumulate_AccRoll += Aktuell_ay; |
messanzahl_AccRoll++; |
kanal = 7; |
break; |
case 5: |
Aktuell_ax = ADC - acc_neutral.X; |
accumulate_AccNick += Aktuell_ax; |
messanzahl_AccNick++; |
kanal = 5; |
state = 6; |
break; |
case 6: |
accumulate_AccHoch = (signed int) ADC - acc_neutral.Z; |
accumulate_AccHoch += abs(Aktuell_ay) / 4 + abs(Aktuell_ax) / 4; |
if(accumulate_AccHoch > 1) |
{ |
if(acc_neutral.Z < 800) acc_neutral.Z+= 0.02; |
} |
else if(accumulate_AccHoch < -1) |
{ |
if(acc_neutral.Z > 600) acc_neutral.Z-= 0.02; |
} |
messanzahl_AccHoch = 1; |
Aktuell_az = ADC; |
Mess_Integral_Hoch += accumulate_AccHoch; // Integrieren |
Mess_Integral_Hoch -= Mess_Integral_Hoch / 1024; // dämpfen |
kanal = 3; |
state = 7; |
break; |
case 7: |
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; |
ANALOG_ON; |
} |
/branches/MicroMag3_Nick666/Festkomma/v0.60/analog.h |
---|
0,0 → 1,23 |
/*####################################################################################### |
#######################################################################################*/ |
extern volatile int UBat; |
extern volatile int AccumulateNick, AccumulateRoll, AccumulateGier,accumulate_AccRoll,accumulate_AccNick,accumulate_AccHoch; |
extern volatile char MessanzahlNick, MessanzahlRoll, MessanzahlGier,messanzahl_AccNick, messanzahl_AccRoll,messanzahl_AccHoch; |
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 unsigned int ReadADC(unsigned char adc_input); |
extern void ADC_Init(void); |
extern void SucheLuftruckOffset(void); |
#define ANALOG_OFF ADCSRA=0 |
#define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE) |
/branches/MicroMag3_Nick666/Festkomma/v0.60/compass.c |
---|
0,0 → 1,234 |
/* |
Copyright 2007, Niklas Nold |
This program (files compass.c and compass.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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
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 |
*/ |
#include "main.h" |
struct MM3_calib_struct ee_calib EEMEM; // Reservierung im EEPROM |
struct MM3_working_struct MM3; |
struct MM3_calib_struct MM3_calib; |
//############################################################################ |
// Initialisierung |
void init_MM3(void) |
//############################################################################ |
{ |
// SPI-Schnittstelle initialisieren |
SPCR = (1<<SPIE)|(1<<SPE)|(1<<MSTR)|(1<<SPR1)|(1<<SPR0); // Interrupt an, Master, 156 kHz Oszillator |
DDRB |= (1<<PB7)|(1<<PB5)|(1<<PB2); // J8, MOSI, SCK Ausgang |
PORTD &= ~(1<<PD3); // J5 permanent auf Low |
// Init Statemachine |
MM3.AXIS = MM3_X; |
MM3.STATE = MM3_RESET; |
// Kalibrierung aus dem EEprom lesen |
eeprom_read_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Wird in der SIGNAL (SIG_OVERFLOW0) aufgerufen |
void timer0_MM3(void) |
//############################################################################ |
{ |
switch (MM3.STATE) |
{ |
case MM3_RESET: |
PORTB |= (1<<PB2); // J8 auf High, MM3 Reset |
MM3.STATE = MM3_START_TRANSFER; |
return; |
case MM3_START_TRANSFER: |
PORTB &= ~(1<<PB2); // J8 auf Low (war ~125 µs auf High) |
if (MM3.AXIS == MM3_X) SPDR = 0x31; // Schreiben ins SPDR löst automatisch SPI-Übertragung (MOSI und MISO) aus |
else if (MM3.AXIS == MM3_Y) SPDR = 0x32; // Micromag Period Select ist auf 256 (0x30) |
else SPDR = 0x33; //if (MM3.AXIS == MM3_Z) // 1: x-Achse, 2: Y-Achse, 3: Z-Achse |
MM3.DRDY = SetDelay(8); // Laut Datenblatt max. Zeit bis Messung fertig (bei PS 256 eigentlich 4 ms) |
MM3.STATE = MM3_WAIT_DRDY; |
return; |
case MM3_WAIT_DRDY: |
if (CheckDelay(MM3.DRDY)) {SPDR = 0x00;MM3.STATE = MM3_DRDY;} // Irgendwas ins SPDR, damit Übertragung ausgelöst wird, wenn Wartezeit vorbei |
return; // Jetzt gehts weiter in SIGNAL (SIG_SPI) |
} |
} |
//############################################################################ |
// SPI byte ready |
SIGNAL (SIG_SPI) |
//############################################################################ |
{ |
static char tmp; |
int wert; |
switch (MM3.STATE) |
{ |
case MM3_DRDY: // 1. Byte ist da, zwischenspeichern |
tmp = SPDR; |
SPDR = 0x00; // Übertragung von 2. Byte auslösen |
MM3.STATE = MM3_BYTE2; |
return; |
case MM3_BYTE2: // 2. Byte der entsprechenden Achse ist da |
wert = tmp; |
wert <<= 8; // 1. Byte an MSB-Stelle rücken |
wert |= SPDR; // 2. Byte dranpappen |
if(abs(wert) < Max_Axis_Value) // Spikes filtern. Zuweisung nur, wenn Max-Wert nicht überschritten |
switch (MM3.AXIS) |
{ |
case MM3_X: |
MM3.x_axis = wert; |
MM3.AXIS = MM3_Y; |
break; |
case MM3_Y: |
MM3.y_axis = wert; |
MM3.AXIS = MM3_Z; |
break; |
default: //case MM3_Z: |
MM3.z_axis = wert; |
MM3.AXIS = MM3_X; |
} |
MM3.STATE = MM3_RESET; |
} |
} |
//############################################################################ |
// Kompass kalibrieren |
void calib_MM3(void) |
//############################################################################ |
{ |
signed int x_min=0,x_max=0,y_min=0,y_max=0,z_min=0,z_max=0; |
uint8_t measurement=50,beeper=0; |
unsigned int timer; |
GRN_ON; |
ROT_OFF; |
while (measurement) |
{ |
//H_earth = MM3.x_axis*MM3.x_axis + MM3.y_axis*MM3.y_axis + MM3.z_axis*MM3.z_axis; |
if (MM3.x_axis > x_max) x_max = MM3.x_axis; |
else if (MM3.x_axis < x_min) x_min = MM3.x_axis; |
if (MM3.y_axis > y_max) y_max = MM3.y_axis; |
else if (MM3.y_axis < y_min) y_min = MM3.y_axis; |
if (MM3.z_axis > z_max) z_max = MM3.z_axis; |
else if (MM3.z_axis < z_min) z_min = MM3.z_axis; |
if (!beeper) |
{ |
ROT_FLASH; |
GRN_FLASH; |
beeptime = 50; |
beeper = 50; |
} |
beeper--; |
// Schleife mit 100 Hz |
timer = SetDelay(10); |
while(!CheckDelay(timer)); |
// Wenn Gas zurück genommen wird, Kalibrierung mit 1/2 Sekunde Verzögerung beenden |
if (PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] < 100) measurement--; |
} |
// Wertebereich der Achsen |
MM3_calib.X_range = (x_max - x_min); |
MM3_calib.Y_range = (y_max - y_min); |
MM3_calib.Z_range = (z_max - z_min); |
// Offset der Achsen |
MM3_calib.X_off = (x_max + x_min) / 2; |
MM3_calib.Y_off = (y_max + y_min) / 2; |
MM3_calib.Z_off = (z_max + z_min) / 2; |
// und im EEProm abspeichern |
eeprom_write_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Neigungskompensierung und Berechnung der Ausrichtung |
int heading_MM3(void) |
//############################################################################ |
{ |
signed int sin_nick, cos_nick, sin_roll, cos_roll; |
long x_axis, y_axis, z_axis; |
long x_corr, y_corr; |
signed int heading; |
int8_t nicktilt,rolltilt; |
unsigned int div_faktor; |
div_faktor = (uint16_t)EE_Parameter.UserParam1 * 8; |
// Berechung von sinus und cosinus |
nicktilt = (IntegralNick/div_faktor); |
sin_nick = sin_i(nicktilt); |
cos_nick = cos_i(nicktilt); |
rolltilt = (IntegralRoll/div_faktor); |
sin_roll = sin_i(rolltilt); |
cos_roll = cos_i(rolltilt); |
// Offset |
x_axis = (MM3.x_axis - MM3_calib.X_off); |
y_axis = (MM3.y_axis - MM3_calib.Y_off); |
z_axis = (MM3.z_axis - MM3_calib.Z_off); |
/* |
// Normierung Wertebereich |
if ((MM3_calib.X_range > MM3_calib.Y_range) && (MM3_calib.X_range > MM3_calib.Z_range)) |
{ |
y_axis = (y_axis * MM3_calib.X_range) / MM3_calib.Y_range; |
z_axis = (z_axis * MM3_calib.X_range) / MM3_calib.Z_range; |
} |
else if ((MM3_calib.Y_range > MM3_calib.X_range) && (MM3_calib.Y_range > MM3_calib.Z_range)) |
{ |
x_axis = (x_axis * MM3_calib.Y_range) / MM3_calib.X_range; |
z_axis = (z_axis * MM3_calib.Y_range) / MM3_calib.Z_range; |
} |
else //if ((MM3_calib.Z_range > MM3_calib.X_range) && (MM3_calib.Z_range > MM3_calib.Y_range)) |
{ |
x_axis = (x_axis * MM3_calib.Z_range) / MM3_calib.X_range; |
y_axis = (y_axis * MM3_calib.Z_range) / MM3_calib.Y_range; |
} |
*/ |
// Neigungskompensierung |
x_corr = x_axis * cos_nick; |
x_corr += (y_axis * sin_roll * sin_nick) /1024; |
x_corr -= (z_axis * cos_roll * sin_nick) /1024; |
x_corr /= 1024; |
y_corr = y_axis * cos_roll; |
y_corr += z_axis * sin_roll; |
y_corr /= 1024; |
// Winkelberechnung |
heading = atan2_i(x_corr, y_corr); |
if (heading < 0) heading = -heading; |
else heading = 360 - heading; |
return (heading); |
} |
/branches/MicroMag3_Nick666/Festkomma/v0.60/compass.h |
---|
0,0 → 1,44 |
struct MM3_working_struct |
{ |
uint8_t STATE; |
unsigned int DRDY; |
uint8_t AXIS; |
volatile signed int x_axis; |
volatile signed int y_axis; |
volatile signed int z_axis; |
}; |
struct MM3_calib_struct |
{ |
int8_t X_off; |
int8_t Y_off; |
int8_t Z_off; |
uint16_t X_range; |
uint16_t Y_range; |
uint16_t Z_range; |
}; |
extern struct MM3_working_struct MM3; |
extern struct MM3_calib_struct MM3_calib; |
void init_MM3(void); |
void timer0_MM3(void); |
void calib_MM3(void); |
int heading_MM3(void); |
#define Max_Axis_Value 500 |
// Die Werte der Statemachine |
#define MM3_RESET 0 |
#define MM3_START_TRANSFER 1 |
#define MM3_WAIT_DRDY 2 |
#define MM3_DRDY 3 |
#define MM3_BYTE2 4 |
#define MM3_X 5 |
#define MM3_Y 6 |
#define MM3_Z 7 |
#define MM3_TILT 8 |
#define MM3_IDLE 9 |
/branches/MicroMag3_Nick666/Festkomma/v0.60/fc.c |
---|
0,0 → 1,846 |
/*####################################################################################### |
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. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
unsigned char h,m,s; |
volatile unsigned char Timeout = 0; |
int MesswertNick,MesswertRoll,MesswertGier; |
volatile int AdNeutralNick = 0,AdNeutralRoll = 0,AdNeutralGier = 0; |
int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
long IntegralNick = 0,IntegralNick2 = 0; |
long IntegralRoll = 0,IntegralRoll2 = 0; |
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 Mess_Integral_Hoch = 0; |
int KompassValue = 0; |
int KompassStartwert = 0; |
int KompassRichtung = 0; |
uint8_t updKompass = 0; |
unsigned char MAX_GAS,MIN_GAS; |
unsigned char Notlandung = 0; |
unsigned char HoehenReglerAktiv = 0; |
float GyroFaktor; |
float IntegralFaktor; |
int DiffNick,DiffRoll; |
int Poti1 = 0, Poti2 = 0, Poti3 = 0, Poti4 = 0; |
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links; |
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; |
float Kp = FAKTOR_P; |
float Ki = FAKTOR_I; |
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 = 50; // 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_ServoNickControl = 100; |
struct mk_param_struct EE_Parameter; |
struct acc_neutral_struct ee_acc_neutral EEMEM; // Reservierung im EEPROM |
struct acc_neutral_struct acc_neutral; |
void Piep(unsigned char Anzahl) |
{ |
while(Anzahl--) |
{ |
if(MotorenEin) return; //auf keinen Fall im Flug! |
beeptime = 100; |
Delay_ms(250); |
} |
} |
//############################################################################ |
// Neutrallage kalibrieren und fest im EEPROM abspeichern |
void calib_acc(void) |
//############################################################################ |
{ |
unsigned int timer; |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
CalibrierMittelwert(); |
timer = SetDelay(5); |
while (!CheckDelay(timer)); |
CalibrierMittelwert(); |
acc_neutral.X = abs(Mittelwert_AccNick) / ACC_AMPLIFY; |
acc_neutral.Y = abs(Mittelwert_AccRoll) / ACC_AMPLIFY; |
acc_neutral.Z = Aktuell_az; |
eeprom_write_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
} |
//############################################################################ |
// Nullwerte ermitteln |
void SetNeutral(void) |
//############################################################################ |
{ |
unsigned int timer; |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
AdNeutralNick = 0; |
AdNeutralRoll = 0; |
AdNeutralGier = 0; |
CalibrierMittelwert(); |
timer = SetDelay(5); |
while (!CheckDelay(timer)); |
CalibrierMittelwert(); |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
AdNeutralNick= abs(MesswertNick); |
AdNeutralRoll= abs(MesswertRoll); |
AdNeutralGier= abs(MesswertGier); |
eeprom_read_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
Mess_IntegralNick = 0; |
Mess_IntegralNick2 = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralRoll2 = 0; |
Mess_Integral_Gier = 0; |
MesswertNick = 0; |
MesswertRoll = 0; |
MesswertGier = 0; |
StartLuftdruck = Luftdruck; |
HoeheD = 0; |
Mess_Integral_Hoch = 0; |
KompassStartwert = KompassValue; |
GPS_Neutral(); |
beeptime = 50; |
} |
//############################################################################ |
// Bildet den Mittelwert aus den Messwerten |
void Mittelwert(void) |
//############################################################################ |
{ |
// ADC auschalten, damit die Werte sich nicht während der Berechnung ändern |
ANALOG_OFF; |
if(MessanzahlNick) (MesswertNick = AccumulateNick / MessanzahlNick); |
if(MessanzahlRoll) (MesswertRoll = AccumulateRoll / MessanzahlRoll); |
if(MessanzahlGier) (MesswertGier = AccumulateGier / MessanzahlGier); |
if(messanzahl_AccNick) Mittelwert_AccNick = ((long)Mittelwert_AccNick * 7 + ((ACC_AMPLIFY * (long)accumulate_AccNick) / messanzahl_AccNick)) / 8L; |
if(messanzahl_AccRoll) Mittelwert_AccRoll = ((long)Mittelwert_AccRoll * 7 + ((ACC_AMPLIFY * (long)accumulate_AccRoll) / messanzahl_AccRoll)) / 8L; |
if(messanzahl_AccHoch) Mittelwert_AccHoch = ((long)Mittelwert_AccHoch * 7 + ((long)accumulate_AccHoch) / messanzahl_AccHoch) / 8L; |
AccumulateNick = 0; MessanzahlNick = 0; |
AccumulateRoll = 0; MessanzahlRoll = 0; |
AccumulateGier = 0; MessanzahlGier = 0; |
accumulate_AccRoll = 0;messanzahl_AccRoll = 0; |
accumulate_AccNick = 0;messanzahl_AccNick = 0; |
accumulate_AccHoch = 0;messanzahl_AccHoch = 0; |
Integral_Gier = Mess_Integral_Gier; |
// Integral_Gier2 = Mess_Integral_Gier2; |
IntegralNick = Mess_IntegralNick; |
IntegralRoll = Mess_IntegralRoll; |
IntegralNick2 = Mess_IntegralNick2; |
IntegralRoll2 = Mess_IntegralRoll2; |
// ADC einschalten |
ANALOG_ON; |
/* |
//------------------------------------------------------------------------------ |
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; |
if(MessanzahlNick) (MesswertNick = AccumulateNick / MessanzahlNick); |
if(MessanzahlRoll) (MesswertRoll = AccumulateRoll / MessanzahlRoll); |
if(MessanzahlGier) (MesswertGier = AccumulateGier / MessanzahlGier); |
if(messanzahl_AccNick) Mittelwert_AccNick = ((ACC_AMPLIFY * (long)accumulate_AccNick) / messanzahl_AccNick); |
if(messanzahl_AccRoll) Mittelwert_AccRoll = (ACC_AMPLIFY * (long)accumulate_AccRoll) / messanzahl_AccRoll; |
if(messanzahl_AccHoch) Mittelwert_AccHoch = accumulate_AccHoch / messanzahl_AccHoch; |
AccumulateNick = 0; MessanzahlNick = 0; |
AccumulateRoll = 0; MessanzahlRoll = 0; |
AccumulateGier = 0; MessanzahlGier = 0; |
accumulate_AccRoll = 0;messanzahl_AccRoll = 0; |
accumulate_AccNick = 0;messanzahl_AccNick = 0; |
accumulate_AccHoch = 0;messanzahl_AccHoch = 0; |
// 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; |
} |
//############################################################################ |
// 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(); |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 = 0;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV | CFG_KOMPASS_FIX;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-32 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 70; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 30; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 2; // Wert : 0-50 |
EE_Parameter.Stick_P = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 8; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 16; // 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 = 16; // Wert : 0-250 |
EE_Parameter.Gyro_P = 120; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 150; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 90; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 5; |
EE_Parameter.UserParam1 = 178; //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.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; |
memcpy(EE_Parameter.Name, "Normal\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.GlobalConfig = 0;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-32 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 = 16; // 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 = 16; // Wert : 0-250 |
EE_Parameter.Gyro_P = 175; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 175; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 90; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 5; |
EE_Parameter.UserParam1 = 178; //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.UserParam3 = 0; //zur freien Verwendung |
EE_Parameter.UserParam4 = 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; |
memcpy(EE_Parameter.Name, "Kamera\0", 12); |
} |
//############################################################################ |
// 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_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,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 int IntegralFehlerNick = 0; |
static int 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 = 1; |
Mittelwert(); |
GRN_ON; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gaswert ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GasMischanteil = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + 120; |
if(GasMischanteil < 0) GasMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang schlecht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay < 100) |
{ |
if(!PcZugriff) beeptime = 500; |
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; |
/* Poti1 = 65; |
Poti2 = 48; |
Poti3 = 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 |
{ |
unsigned char setting; |
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) |
{ |
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], sizeof(struct mk_param_struct)); |
Piep(GetActiveParamSetNumber()); |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
} |
} |
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) |
{ |
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; |
} |
} |
else delay_einschalten = 0; |
//Auf Neutralwerte setzen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Auschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) |
{ |
if(++delay_ausschalten > 200) // nicht sofort |
{ |
MotorenEin = 0; |
delay_ausschalten = 200; |
modell_fliegt = 0; |
} |
} |
else delay_ausschalten = 0; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// neue Werte von der Funke |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!NewPpmData-- || Notlandung) |
{ |
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; |
if(EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) IntegralFaktor = 0; |
if(GyroFaktor < 0) GyroFaktor = 0; |
if(IntegralFaktor < 0) IntegralFaktor = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Bei Empfangsausfall im Flug |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(Notlandung) |
{ |
StickGier = 0; |
StickNick = 0; |
StickRoll = 0; |
GyroFaktor = 0.1; |
IntegralFaktor = 0.005; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gyro-Drift kompensieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define DRIFT_FAKTOR 3 |
if(ZaehlMessungen >= 1000 / DRIFT_FAKTOR) |
{ |
IntegralFehlerNick = IntegralNick2 - IntegralNick; |
IntegralFehlerRoll = IntegralRoll2 - IntegralRoll; |
ZaehlMessungen = 0; |
if(IntegralFehlerNick > 500/DRIFT_FAKTOR) AdNeutralNick++; |
if(IntegralFehlerNick < -500/DRIFT_FAKTOR) AdNeutralNick--; |
if(IntegralFehlerRoll > 500/DRIFT_FAKTOR) AdNeutralRoll++; |
if(IntegralFehlerRoll < -500/DRIFT_FAKTOR) AdNeutralRoll--; |
//if(Mess_Integral_Gier2 > 500/DRIFT_FAKTOR) AdNeutralGier--; |
//if(Mess_Integral_Gier2 <-500/DRIFT_FAKTOR) AdNeutralGier++; |
ANALOG_OFF; // ADC ausschalten, damit die Werte sich nicht während der Berechnung ändern |
Mess_IntegralNick2 = IntegralNick; |
Mess_IntegralRoll2 = IntegralRoll; |
Mess_Integral_Gier2 = Integral_Gier; |
ANALOG_ON; // ADC einschalten |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Integrale auf ACC-Signal abgleichen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
tmp_long = (long)(IntegralNick / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccNick) / 16; |
tmp_long2 = (long)(IntegralRoll / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccRoll) / 16; |
#define AUSGLEICH 500 |
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; |
ANALOG_OFF; // ADC ausschalten, damit die Werte sich nicht während der Berechnung ändern |
Mess_IntegralNick -= tmp_long; |
Mess_IntegralRoll -= tmp_long2; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gieren wie in .66c |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
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; |
ANALOG_ON; // ADC einschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Kompass |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
{ |
int w,v; |
if (!updKompass--) // Aufruf mit ~10 Hz |
{ |
KompassValue = heading_MM3(); |
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
updKompass = 50; |
} |
w = abs(IntegralNick /512); // mit zunehmender Neigung den Einfluss drosseln |
v = abs(IntegralRoll /512); |
if(v > w) w = v; // grösste Neigung ermitteln |
if(w < 35 && NeueKompassRichtungMerken) |
{ |
KompassStartwert = KompassValue; |
NeueKompassRichtungMerken = 0; |
} |
w = (w * Parameter_KompassWirkung) / 64; // auf die Wirkung normieren |
w = Parameter_KompassWirkung - w; // Wirkung ggf drosseln |
if(w > 0) |
{ |
ANALOG_OFF; // ADC ausschalten, damit die Werte sich nicht während der Berechnung ändern |
Mess_Integral_Gier += (KompassRichtung * w) / 32; // nach Kompass ausrichten |
ANALOG_ON; // ADC einschalten |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Debugwerte zuordnen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DebugOut.Sekunden++; |
if(!TimerWerteausgabe--) |
{ |
TimerWerteausgabe = 49; |
// DebugOut.Analog[0] = MesswertNick; |
// DebugOut.Analog[1] = MesswertRoll; |
// DebugOut.Analog[2] = MesswertGier; |
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[7] = GasMischanteil; |
DebugOut.Analog[8] = KompassValue; |
DebugOut.Analog[9] = MM3.x_axis; |
DebugOut.Analog[10] = MM3.y_axis; |
DebugOut.Analog[11] = MM3.z_axis; |
// 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 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
MesswertNick = IntegralNick * IntegralFaktor + MesswertNick * GyroFaktor; |
MesswertRoll = IntegralRoll * IntegralFaktor + MesswertRoll * GyroFaktor; |
MesswertGier = MesswertGier * (GyroFaktor/2) + Integral_Gier * 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 = Parameter_MaxHoehe * 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 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gier-Anteil |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GierMischanteil = MesswertGier - sollGier; // Regler für Gier |
if(GierMischanteil > 100) GierMischanteil = 100; |
if(GierMischanteil < -100) GierMischanteil = -100; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Nick-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffNick = Kp * (MesswertNick - (StickNick - GPS_Nick)); // Differenz bestimmen |
SummeNick += DiffNick; // I-Anteil |
if(SummeNick > 0) SummeNick-= (abs(SummeNick)/256 + 1); else SummeNick += abs(SummeNick)/256 + 1; |
if(SummeNick > 16000) SummeNick = 16000; |
if(SummeNick < -16000) SummeNick = -16000; |
pd_ergebnis = DiffNick + Ki * SummeNick; // PI-Regler für Nick |
// Motor Vorn |
motorwert = GasMischanteil + pd_ergebnis + GierMischanteil; // Mischer |
if ((motorwert < 0) | (GasMischanteil < 10)) 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) | (GasMischanteil < 10)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Hinten = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Roll-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffRoll = Kp * (MesswertRoll - (StickRoll - GPS_Roll)); // Differenz bestimmen |
SummeRoll += DiffRoll; // I-Anteil |
if(SummeRoll > 0) SummeRoll-= (abs(SummeRoll)/256 + 1); else SummeRoll += abs(SummeRoll)/256 + 1; |
if(SummeRoll > 16000) SummeRoll = 16000; |
if(SummeRoll < -16000) SummeRoll = -16000; |
pd_ergebnis = DiffRoll + Ki * SummeRoll; // PI-Regler für Roll |
// Motor Links |
motorwert = GasMischanteil + pd_ergebnis - GierMischanteil; |
if ((motorwert < 0) | (GasMischanteil < 10)) 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) | (GasMischanteil < 10)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Rechts = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++ |
} |
/branches/MicroMag3_Nick666/Festkomma/v0.60/fc.h |
---|
0,0 → 1,113 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
#ifndef _FC_H |
#define _FC_H |
extern volatile unsigned char Timeout; |
extern unsigned char Sekunde,Minute; |
extern long IntegralNick,IntegralNick2; |
extern long IntegralRoll,IntegralRoll2; |
extern long Integral_Gier; |
extern volatile long Mess_IntegralNick,Mess_IntegralNick2; |
extern volatile long Mess_IntegralRoll,Mess_IntegralRoll2; |
extern volatile long Mess_Integral_Hoch; |
extern volatile long Mess_Integral_Gier,Mess_Integral_Gier2; |
extern int KompassValue; |
extern int KompassStartwert; |
extern int KompassRichtung; |
extern int HoehenWert; |
extern int SollHoehe; |
extern int MesswertNick,MesswertRoll,MesswertGier; |
extern int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
extern volatile int AdNeutralNick,AdNeutralRoll,AdNeutralGier; |
void MotorRegler(void); |
void SendMotorData(void); |
void CalibrierMittelwert(void); |
void Mittelwert(void); |
void SetNeutral(void); |
void Piep(unsigned char Anzahl); |
void DefaultKonstanten1(void); |
void DefaultKonstanten2(void); |
unsigned char h,m,s; |
volatile unsigned char Timeout; |
int DiffNick,DiffRoll; |
extern int Poti1, Poti2, Poti3, Poti4; |
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links; |
unsigned char MotorWert[5]; |
volatile unsigned char SenderOkay; |
int StickNick,StickRoll,StickGier; |
char MotorenEin; |
extern void DefaultKonstanten(void); |
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; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
unsigned char ServoNickCompInvert; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
unsigned char Reserved[7]; |
char Name[12]; |
}; |
struct acc_neutral_struct |
{ |
volatile int X; |
volatile int Y; |
volatile float Z; |
}; |
extern struct acc_neutral_struct acc_neutral; |
extern void calib_acc(void); |
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; |
#endif //_FC_H |
/branches/MicroMag3_Nick666/Festkomma/v0.60/flight.pnproj |
---|
0,0 → 1,0 |
<Project name="Flight-Ctrl"><File path="uart.h"></File><File path="main.c"></File><File path="main.h"></File><File path="makefile"></File><File path="uart.c"></File><File path="printf_P.h"></File><File path="printf_P.c"></File><File path="timer0.c"></File><File path="timer0.h"></File><File path="old_macros.h"></File><File path="twimaster.c"></File><File path="version.txt"></File><File path="twimaster.h"></File><File path="rc.c"></File><File path="rc.h"></File><File path="fc.h"></File><File path="fc.c"></File><File path="menu.h"></File><File path="menu.c"></File><File path="_Settings.h"></File><File path="analog.c"></File><File path="analog.h"></File><File path="GPS.c"></File><File path="gps.h"></File><File path="license_buss.txt"></File><File path="mymath.c"></File><File path="mymath.h"></File><File path="compass.c"></File><File path="compass.h"></File><File path="COPYING"></File><File path="COPYING.LESSER"></File></Project> |
/branches/MicroMag3_Nick666/Festkomma/v0.60/flight.pnps |
---|
0,0 → 1,0 |
<pd><ViewState><e p="Flight-Ctrl" x="true"></e></ViewState></pd> |
/branches/MicroMag3_Nick666/Festkomma/v0.60/gps.h |
---|
0,0 → 1,4 |
extern signed int GPS_Nick; |
extern signed int GPS_Roll; |
extern void GPS_Neutral(void); |
extern void GPS_BerechneZielrichtung(void); |
/branches/MicroMag3_Nick666/Festkomma/v0.60/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/MicroMag3_Nick666/Festkomma/v0.60/main.c |
---|
0,0 → 1,236 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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" |
// Reservierung im EEPROM |
unsigned char EEPromArray[10] EEMEM; |
struct mk_param_struct EEParameterArray[5] EEMEM; |
// -- Parametersatz aus EEPROM lesen --- |
// number [0..5] |
void ReadParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if (number > 5) number = 5; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_read_block(buffer, &EEParameterArray[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; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_write_block(buffer, &EEParameterArray[number], length); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], number); // diesen Parametersatz als aktuell merken |
} |
unsigned char GetActiveParamSetNumber(void) |
{ |
return(eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET])); |
} |
//############################################################################ |
//Hauptprogramm |
int main (void) |
//############################################################################ |
{ |
unsigned int timer; |
unsigned int timer2 = 0; |
DDRC = 0x01; // SCL |
PORTC = 0xff; // Pullup SDA |
DDRB = 0x1B; // LEDs und Druckoffset |
PORTB |= (1<<PB0); // LED_Rot |
DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
DDRD |= (1<<PD7); // J7 |
PORTD = 0xF7; |
MCUSR &=~(1<<WDRF); |
WDTCSR |= (1<<WDCE)|(1<<WDE); |
WDTCSR = 0; |
beeptime = 1000; |
StickGier = 0; PPM_in[K_GAS] = 0;StickRoll = 0; StickNick = 0; |
ROT_OFF; |
Timer_Init(); |
UART_Init(); |
rc_sum_init(); |
ADC_Init(); |
i2c_init(); |
init_MM3(); |
sei(); |
VersionInfo.Hauptversion = VERSION_HAUPTVERSION; |
VersionInfo.Nebenversion = VERSION_NEBENVERSION; |
VersionInfo.PCKompatibel = VERSION_KOMPATIBEL; |
printf("\n\rFlightControl V%d.%d ", VERSION_HAUPTVERSION, VERSION_NEBENVERSION); |
printf("\n\r=============================="); |
GRN_ON; |
if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_VALID]) != 10) // seit V 0.60 |
{ |
printf("\n\rInit. EEPROM: Generiere Default-Parameter..."); |
DefaultKonstanten1(); |
for (unsigned char i=0;i<6;i++) |
{ |
if(i==2) DefaultKonstanten2(); |
WriteParameterSet(i, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], 1); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], 10); |
calib_acc(); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
printf("\n\rBenutze Parametersatz %d", GetActiveParamSetNumber()); |
//kurze Wartezeit (sonst reagiert die "Kompass kalibrieren?"-Abfrage nicht |
timer = SetDelay(500); |
while(!CheckDelay(timer)); |
//Kompass kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 100) |
{ |
printf("\n\rKalibriere Kompass"); |
calib_MM3(); |
} |
//Neutrallage kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -100) |
{ |
printf("\n\rKalibriere Neutrallage"); |
calib_acc(); |
} |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
printf("\n\rAbgleich Luftdrucksensor.."); |
timer = SetDelay(2500); |
SucheLuftruckOffset(); |
while (!CheckDelay(timer)); |
printf("OK\n\r"); |
} |
SetNeutral(); |
ROT_OFF; |
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(); |
while (1) |
{ |
if (UpdateMotor) // ReglerIntervall |
{ |
UpdateMotor=0; |
MotorRegler(); |
SendMotorData(); |
ROT_OFF; |
if(PcZugriff) PcZugriff--; |
if(SenderOkay) SenderOkay--; |
if (UBat < EE_Parameter.UnterspannungsWarnung) |
{ |
beeptime = 2000; |
} |
if(!Timeout) |
{ |
i2c_init(); |
} |
else |
{ |
ROT_OFF; |
} |
} |
if(SIO_DEBUG) |
{ |
DatenUebertragung(); |
BearbeiteRxDaten(); |
} |
else BearbeiteRxDaten(); |
if(CheckDelay(timer2)) |
{ |
if(MotorenEin) PORTC ^= 0x10; else PORTC &= ~0x10; |
timer = SetDelay(500); |
} |
} |
return (1); |
} |
/branches/MicroMag3_Nick666/Festkomma/v0.60/main.h |
---|
0,0 → 1,87 |
#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 PORTB &=~(1<<PB0) |
#define ROT_ON PORTB |= (1<<PB0) |
#define ROT_FLASH PORTB ^= (1<<PB0) |
#define GRN_OFF PORTB &=~(1<<PB1) |
#define GRN_ON PORTB |= (1<<PB1) |
#define GRN_FLASH PORTB ^= (1<<PB1) |
//#ifndef F_CPU |
//#error ################## F_CPU nicht definiert oder ungültig ############# |
//#endif |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//#define ANZ_MITTELWERT 4 |
#define EEPROM_ADR_VALID 1 |
#define EEPROM_ADR_ACTIVE_SET 2 |
#define EEPROM_ADR_LAST_OFFSET 3 |
#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 |
extern void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length); |
extern 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 "compass.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 "mymath.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/MicroMag3_Nick666/Festkomma/v0.60/makefile |
---|
0,0 → 1,393 |
#-------------------------------------------------------------------- |
# MCU name |
MCU = atmega644 |
F_CPU = 20000000 |
#------------------------------------------------------------------- |
HAUPT_VERSION = 0 |
NEBEN_VERSION = 60 |
VERSION_KOMPATIBEL = 4 # 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). |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)_MM3 |
# 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 |
SRC += compass.c mymath.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 \ |
-mtiny-stack -mcall-prologues \ |
#-Wno-pointer-sign \ |
-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) |
# 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/MicroMag3_Nick666/Festkomma/v0.60/math.d |
---|
0,0 → 1,2 |
math.o math.d : math.c main.h old_macros.h _settings.h printf_P.h compass.h \ |
timer0.h uart.h analog.h twimaster.h menu.h rc.h fc.h gps.h math.h |
/branches/MicroMag3_Nick666/Festkomma/v0.60/menu.c |
---|
0,0 → 1,129 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 = 12,MenuePunkt=0; |
if(RemoteTasten & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue; LcdClear(); } |
if(RemoteTasten & KEY2) { MenuePunkt++; LcdClear(); } |
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,"V%d.%d",VERSION_HAUPTVERSION, VERSION_NEBENVERSION); |
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 Kanäle ",PPM_in[7]); |
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 Kanäle ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]]); |
break; |
case 5: |
LCD_printfxy(0,0,"Gyro - Sensor"); |
LCD_printfxy(0,1,"Nick %4i (%3i)",AccumulateNick / MessanzahlNick, AdNeutralNick); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AccumulateRoll / MessanzahlRoll, AdNeutralRoll); |
LCD_printfxy(0,3,"Gier %4i (%3i)",AccumulateGier / MessanzahlGier, AdNeutralGier); |
break; |
case 6: |
LCD_printfxy(0,0,"ACC - Sensor"); |
LCD_printfxy(0,1,"Nick %4i (%3i)",accumulate_AccNick / messanzahl_AccNick,acc_neutral.X); |
LCD_printfxy(0,2,"Roll %4i (%3i)",accumulate_AccRoll / messanzahl_AccRoll,acc_neutral.Y); |
LCD_printfxy(0,3,"Hoch %4i (%3i)",Aktuell_az/*accumulate_AccHoch / messanzahl_AccHoch*/,(int)acc_neutral.Z); |
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; |
case 11: |
LCD_printfxy(0,0,"MM3 Off"); |
LCD_printfxy(0,1,"X_Offset: %3i",MM3_calib.X_off); |
LCD_printfxy(0,2,"Y_Offset: %3i",MM3_calib.Y_off); |
LCD_printfxy(0,3,"Z_Offset: %3i",MM3_calib.Z_off); |
break; |
case 12: |
LCD_printfxy(0,0,"MM3 Range"); |
LCD_printfxy(0,1,"X_Range: %4i",MM3_calib.X_range); |
LCD_printfxy(0,2,"Y_Range: %4i",MM3_calib.Y_range); |
LCD_printfxy(0,3,"Z_Range: %4i",MM3_calib.Z_range); |
break; |
default: MaxMenue = MenuePunkt - 1; |
MenuePunkt = 0; |
break; |
} |
RemoteTasten = 0; |
} |
/branches/MicroMag3_Nick666/Festkomma/v0.60/menu.h |
---|
0,0 → 1,7 |
void LcdClear(void); |
extern void Menu(void); |
extern char DisplayBuff[80]; |
extern unsigned char DispPtr; |
unsigned char RemoteTasten; |
/branches/MicroMag3_Nick666/Festkomma/v0.60/mymath.c |
---|
0,0 → 1,110 |
/* |
Copyright 2007, Niklas Nold |
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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
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 |
*/ |
#include "main.h" |
const uint8_t pgm_atan[346] PROGMEM = {0,1,2,3,4,4,5,6,7,8,9,10,11,11,12,13,14,15,16,17,17,18,19,20,21,21,22,23,24,24,25,26,27,27,28,29,29,30,31,31,32,33,33,34,35,35,36,36,37,37,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,45,46,46,47,47,48,48,48,49,49,50,50,50,51,51,51,52,52,52,53,53,53,54,54,54,55,55,55,55,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,60,61,61,61,61,62,62,62,62,62,63,63,63,63,63,63,64,64,64,64,64,64,65,65,65,65,65,65,66,66,66,66,66,66,66,67,67,67,67,67,67,67,68,68,68,68,68,68,68,68,69,69,69,69,69,69,69,69,69,70,70,70,70,70,70,70,70,70,71,71,71,71,71,71,71,71,71,71,71,72,72,72,72,72,72,72,72,72,72,72,73,73,73,73,73,73,73,73,73,73,73,73,73,73,74,74,74,74,74,74,74,74,74,74,74,74,74,74,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79}; |
//############################################################################ |
// Arkustangens2 im Gradmaß |
signed int atan2_i(signed int x, signed int y) |
//############################################################################ |
{ |
int i,angle; |
int8_t m; |
if (!x && !y) return 0; //atan2 = 0 für x und y = 0 |
if (y < 0) m=-1; |
else m=1; |
if (!x) return (90*m); // atan2 = 90° für x = 0 |
i = abs(((long)y*64) / x); // Berechne i für die Lookup table (Schrittweite atan(x) ist 0,015625 -> y *64) |
if (i<346) angle = pgm_read_byte(&pgm_atan[i]); // Lookup für 1° bis 79° |
else if (i>7334) angle = 90; // Grenzwert ist 90° |
else if (i>2444) angle = 89; // 89° bis 80° über Wertebereiche |
else if (i>1465) angle = 88; |
else if (i>1046) angle = 87; |
else if (i>813) angle = 86; |
else if (i>664) angle = 85; |
else if (i>561) angle = 84; |
else if (i>486) angle = 83; |
else if (i>428) angle = 82; |
else if (i>382) angle = 81; |
else angle = 80; // (i>345) |
if (x > 0) return (angle*m); // Quadrant I und IV |
else if ((x < 0) && (m > 0)) return (-angle + 180); // Quadrant II |
else return (angle - 180); // x < 0 && y < 0 Quadrant III |
} |
const uint16_t pgm_sinus_i[91] PROGMEM = {0,18,36,54,71,89,107,125,143,160,178,195,213,230,248,265,282,299,316,333,350,367,384,400,416,433,449,465,481,496,512,527,543,558,573,587,602,616,630,644,658,672,685,698,711,724,737,749,761,773,784,796,807,818,828,839,849,859,868,878,887,896,904,912,920,928,935,943,949,956,962,968,974,979,984,989,994,998,1002,1005,1008,1011,1014,1016,1018,1020,1022,1023,1023,1024,1024}; |
//############################################################################ |
// Kosinusfunktion im Gradmaß |
signed int cos_i(signed int winkel) |
//############################################################################ |
{ |
return (sin_i(90-winkel)); |
} |
//############################################################################ |
// Sinusfunktion im Gradmaß |
signed int sin_i(signed int winkel) |
//############################################################################ |
{ |
short int m,n; |
signed int sinus; |
if (winkel < 0) |
{ |
m = -1; |
winkel = abs(winkel); |
} |
else m = +1; |
// Quadranten auswerten |
if (winkel <= 90) n=1; |
else if ((winkel > 90) && (winkel <= 180)) {winkel = 180 - winkel; n = 1;} |
else if ((winkel > 180) && (winkel <= 270)) {winkel = winkel - 180; n = -1;} |
else {winkel = 360 - winkel; n = -1;} //if ((winkel > 270) && (winkel <= 360)) |
sinus = pgm_read_word(&pgm_sinus_i[winkel]); |
return (sinus*m*n); |
} |
/* |
const uint8_t pgm_asin[201] PROGMEM = {0,0,1,1,1,1,2,2,2,3,3,3,3,4,4,4,5,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9,10,10,10,11,11,11,12,12,12,12,13,13,13,14,14,14,14,15,15,15,16,16,16,17,17,17,17,18,18,18,19,19,19,20,20,20,20,21,21,21,22,22,22,23,23,23,24,24,24,25,25,25,25,26,26,26,27,27,27,28,28,28,29,29,29,30,30,30,31,31,31,32,32,32,33,33,33,34,34,34,35,35,35,36,36,37,37,37,38,38,38,39,39,39,40,40,41,41,41,42,42,42,43,43,44,44,44,45,45,46,46,46,47,47,48,48,49,49,49,50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57,58,58,59,59,60,60,61,62,62,63,64,64,65,66,66,67,68,68,69,70,71,72,73,74,75,76,77,79,80,82,84,90}; |
//############################################################################ |
// Akurssinusfunktion im Gradmaß |
int8_t asin_i(signed int i) |
//############################################################################ |
{ |
signed char m; |
if (i < 0) {m=-1;i=abs(i);} |
else m=1; |
i %= 200; |
return (pgm_read_byte(&pgm_asin[i]) * m); |
} |
*/ |
/branches/MicroMag3_Nick666/Festkomma/v0.60/mymath.h |
---|
0,0 → 1,8 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
extern int atan2_i(signed int x, signed int y); |
extern signed int cos_i(signed int winkel); |
extern signed int sin_i(signed int winkel); |
//extern int8_t asin_i(signed int i); |
/branches/MicroMag3_Nick666/Festkomma/v0.60/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/MicroMag3_Nick666/Festkomma/v0.60/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/MicroMag3_Nick666/Festkomma/v0.60/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 |
extern 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/MicroMag3_Nick666/Festkomma/v0.60/rc.c |
---|
0,0 → 1,85 |
/*####################################################################################### |
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; |
static int index; |
signal = (unsigned int) ICR1 - AltICR; |
AltICR = ICR1; |
//Syncronisationspause? |
if ((signal > 1500) && (signal < 8000)) |
{ |
index = 1; |
NewPpmData = 0; // Null bedeutet: Neue Daten |
// OCR2A = Poti2/2 + 80; |
} |
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;} |
signal = (3 * (PPM_in[index]) + signal) / 4; |
//373 entspricht ca. 1.5ms also Mittelstellung |
PPM_diff[index] = signal - PPM_in[index]; |
PPM_in[index] = signal; |
} |
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/MicroMag3_Nick666/Festkomma/v0.60/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/MicroMag3_Nick666/Festkomma/v0.60/timer0.c |
---|
0,0 → 1,118 |
#include "main.h" |
volatile unsigned int CountMilliseconds = 0; |
volatile unsigned char UpdateMotor = 0; |
volatile unsigned int beeptime = 0; |
int ServoValue = 0; |
enum { |
STOP = 0, |
CK = 1, |
CK8 = 2, |
CK64 = 3, |
CK256 = 4, |
CK1024 = 5, |
T0_FALLING_EDGE = 6, |
T0_RISING_EDGE = 7 |
}; |
SIGNAL (SIG_OVERFLOW0) // 9,8kHz |
{ |
static unsigned char cnt_1ms = 1,cnt = 0; |
// TCNT0 -= 250;//TIMER_RELOAD_VALUE; |
if(!cnt--) |
{ |
cnt = 10; |
cnt_1ms++; |
cnt_1ms %= 2; |
if(!cnt_1ms) UpdateMotor = 1; |
CountMilliseconds++; |
if(Timeout) Timeout--; |
} |
if(beeptime > 1) |
{ |
beeptime--; |
PORTD |= (1<<PD2); |
} |
else |
PORTD &= ~(1<<PD2); |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) timer0_MM3(); // Kompass auslesen |
} |
void Timer_Init(void) |
{ |
TCCR0B = CK8; |
TCCR0A = (1<<COM0A1)|(1<<COM0B1)|3;//fast PWM |
OCR0A = 0; |
OCR0B = 120; |
//TCNT0 = -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)); |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// 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; |
//DebugOut.Analog[10] = ServoValue; |
OCR2A = ServoValue;// + 75; |
timer = EE_Parameter.ServoNickRefresh; |
} |
else |
{ |
TCCR2A =3; |
PORTD&=~0x80; |
} |
} |
/branches/MicroMag3_Nick666/Festkomma/v0.60/timer0.h |
---|
0,0 → 1,13 |
#define TIMER_TEILER CK8 |
#define TIMER_RELOAD_VALUE 250 |
void Timer_Init(void); |
void Delay_ms(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 int ServoValue; |
/branches/MicroMag3_Nick666/Festkomma/v0.60/twimaster.c |
---|
0,0 → 1,115 |
/*############################################################################ |
############################################################################*/ |
#include "main.h" |
volatile unsigned char twi_state = 0; |
volatile unsigned char motor = 0; |
volatile unsigned char motor_rx[8]; |
//############################################################################ |
//Initzialisieren der I2C (TWI) Schnittstelle |
void i2c_init(void) |
//############################################################################ |
{ |
TWSR = 0; |
TWBR = ((SYSCLK/SCL_CLOCK)-16)/2; |
} |
//############################################################################ |
//Start I2C |
void i2c_start(void) |
//############################################################################ |
{ |
TWCR = (1<<TWSTA) | (1<<TWEN) | (1<<TWINT) | (1<<TWIE); |
} |
//############################################################################ |
//Stop I2C |
void i2c_stop(void) |
//############################################################################ |
{ |
TWCR = (1<<TWEN) | (1<<TWSTO) | (1<<TWINT); |
} |
//############################################################################ |
//Write to I2C |
void i2c_write_byte(char byte) |
//############################################################################ |
{ |
TWDR = byte; |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
} |
//############################################################################ |
// I2C receive byte and send ACK |
void i2c_receive_byte(void) |
//############################################################################ |
{ |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE) | (1<<TWEA); |
} |
//############################################################################ |
// I2C receive last byte and send NOT ACK |
void i2c_receive_last_byte(void) |
//############################################################################ |
{ |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
} |
//############################################################################ |
//Start I2C |
SIGNAL (TWI_vect) |
//############################################################################ |
{ |
static unsigned char motorread = 0; |
switch (twi_state++) // First i2c_start from SendMotorData() |
{ |
// Master Transmit |
case 0: // Address Slave SL+W |
i2c_write_byte(0x52+(motor*2)); |
break; |
case 1: // Send Data |
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: // Repeat case 0+1 for all Slaves |
if (motor < 4) twi_state = 0; |
i2c_start(); // Repeated start -> switch salve or switch Master Transmit -> Master Receive |
break; |
// Master Receive |
case 3: // Address Slave SL+R |
i2c_write_byte(0x53+(motorread*2)); |
break; |
case 4: //1. Byte vom Motor übertragen |
i2c_receive_byte(); |
break; |
case 5: // 1. Byte lesen und 2. Byte übertragen |
motor_rx[motorread] = TWDR; |
i2c_receive_last_byte(); |
break; |
case 6: //2. Byte lesen |
motor_rx[motorread+4] = TWDR; |
motorread++; |
if (motorread > 3) motorread=0; |
default: |
i2c_stop(); |
twi_state = 0; |
motor = 0; |
} |
} |
/branches/MicroMag3_Nick666/Festkomma/v0.60/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 volatile unsigned char twi_state; |
extern volatile unsigned char motor; |
extern volatile unsigned char motor_rx[8]; |
void i2c_init (void); // I2C initialisieren |
void i2c_start (void); // Start I2C |
void i2c_stop (void); // Stop I2C |
void i2c_write_byte (char byte); // 1 Byte schreiben |
void i2c_receive_byte(void); // 1 Byte empfangen |
void i2c_receive_last_byte(void); // letztes Byte empfangen |
#endif |
/branches/MicroMag3_Nick666/Festkomma/v0.60/uart.c |
---|
0,0 → 1,328 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 PcZugriff = 100; |
unsigned char MotorTest[4] = {0,0,0,0}; |
unsigned char MeineSlaveAdresse; |
struct str_DebugOut DebugOut; |
struct str_Debug DebugIn; |
struct str_VersionInfo VersionInfo; |
int Debug_Timer; |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ 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; |
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[1] == MeineSlaveAdresse || (RxdBuffer[1] == 'a')) && */(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 '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]; |
DebugDisplayAnforderung = 1; |
break; |
case 't':// Motortest |
Decode64((unsigned char *) &MotorTest[0],sizeof(MotorTest),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], sizeof(struct mk_param_struct)); |
SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
} |
else |
SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
break; |
case 'l': |
case 'm': |
case 'n': |
case 'o': |
case 'p': // Parametersatz speichern |
Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct),3,AnzahlEmpfangsBytes); |
WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], RxdBuffer[2] - 'l' + 1); // aktiven Datensatz merken |
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; |
Debug_Timer = SetDelay(MIN_DEBUG_INTERVALL); |
} |
if(DebugDisplayAnforderung && UebertragungAbgeschlossen) |
{ |
Menu(); |
DebugDisplayAnforderung = 0; |
if(++dis_zeile == 4) dis_zeile = 0; |
SendOutData('0' + dis_zeile,0,&DisplayBuff[20 * dis_zeile],20); // DisplayZeile übertragen |
} |
if(GetVersionAnforderung && UebertragungAbgeschlossen) |
{ |
SendOutData('V',MeineSlaveAdresse,(unsigned char *) &VersionInfo,sizeof(VersionInfo)); |
GetVersionAnforderung = 0; |
} |
} |
/branches/MicroMag3_Nick666/Festkomma/v0.60/uart.h |
---|
0,0 → 1,95 |
#ifndef _UART_H |
#define _UART_H |
#define MAX_SENDE_BUFF 150 |
#define MAX_EMPFANGS_BUFF 150 |
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 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 unsigned char MotorTest[4]; |
struct str_DebugOut |
{ |
unsigned char Digital[13]; |
unsigned int AnzahlZyklen; |
unsigned int Zeit; |
unsigned char Sekunden; |
unsigned int Analog[16]; // 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/MicroMag3_Nick666/Festkomma/v0.60/version.txt |
---|
0,0 → 1,49 |
------- |
V0.53 27.04.2007 H.Buss |
- erste öffentliche Version |
V0.53b 29.04.2007 H.Buss |
- der FAKTOR_I war versehentlich auf Null, dann liegt der MikroKopter nicht so hart in der Luft |
V0.53c 29.04.2007 H.Buss |
- es gib ein Menü, in dem die Werte der Kanäle nach Nick, Roll, Gas,... sortiert sind. |
Die angezeigten Werte waren nicht die Werte der Funke |
V0.54 01.05.2007 H.Buss |
- die Paramtersätze können jetzt vor dem Start ausgewählt werden |
Dazu wird beim Kalibrieren der Messwerte (Gashebel oben links) der Nick-Rollhebel abgefragt: |
2 3 4 |
1 x 5 |
- - - |
Bedeutet: Nick-Rollhebel Links Mitte = Setting:1 Links Oben = Setting:2 usw. |
- der Faktor_I für den Hauptregler ist hinzugekommen. Im Heading-Hold-Modus sollte er vergössert werden, was Stabilität bringt |
V0.55 14.05.2007 H.Buss |
- es können nun Servos an J3,J4,J5 mit den Kanälen 5-7 gesteuert werden |
V0.56 14.05.2007 H.Buss |
- es gab Probleme mit Funken, die mehr als 8 Kanäle haben, wenn mehrere Kanäle dann auf Null waren |
- Funken, die nicht bis +-120 aussteuern können, sollten jetzt auch gehen |
V0.57 24.05.2007 H.Buss |
- Der Höhenregler kann nun auch mittels Schalter bedient werden |
- Bug im Gier-Algorithmus behoben; Schnelles Gieren fürhrte dazu, dass der MK zu weit gedreht hat |
- Kompass-Einfluss dämpfen bei Neigung |
- Man kann zwischen Kompass FIX (Richtung beim Kalibrieren) und Variabel (einstellbar per Gier) wählen |
- Der Motortest vom Kopter-Tool geht jetzt |
- Man kann den Parametersätzen einen Namen geben |
- Das Kamerasetting ist unter Setting 2 defaultmässig integriert |
V0.58 30.05.2007 H.Buss |
- Der Höhenregler-Algorithmus wird nun umgangen, wenn der Höhenreglerschalter aus ist |
V0.60 17.08.2007 H.Buss |
- "Schwindel-Bug" behoben |
- Die Poti-Werte werden jetzt auf Unterlauf (<0) überprüft |
- Poti4 zugefügt |
- Es werden jetzt 8 Kanäle ausgewertet |
- Kamera-Servo (an J7) |
- Die Settings müssen überschrieben werden |