/branches/MicroMag3_Nick666/Fliesskomma/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/Fliesskomma/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/Fliesskomma/V0.67g/Flight-Ctrl_MEGA644_V0_67g.hex |
---|
0,0 → 1,2008 |
:100000000C94C3030C94E0030C94E0030C94E00301 |
:100010000C94E0030C94E0030C94E0030C94E003D4 |
:100020000C94E0030C94E40C0C94E0030C94E003B7 |
:100030000C9458160C94E0030C94E0030C94E00329 |
:100040000C94E0030C94E0030C94870D0C942D3772 |
:100050000C9488060C94E0030C9452060C94E00374 |
:100060000C942F0E0C94E0030C9496150C94E00362 |
:100070002109D9092D09D909D909D9096F094009D7 |
:10008000D909D90962099B099B099B099B099B090D |
:100090007309D909D9095B09D9096B09590E6E0E83 |
:1000A000770E810E9E0EB60ECF0EEC0E090F260FA8 |
:1000B0000A1054119C11FD115312A7122B13D213C5 |
:1000C00028144C148214BE14FC143515AF15B41545 |
:1000D000C515D315E015D815E015F4150A0A0D005D |
: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 |
:100500006572202B2B005B25695D0000010203054D |
:10051000060708090A0B0C0D0F10111213141516FB |
:100520001718191A1B1B1C1D1E1F202121222324F2 |
:1005300025252627272829292A2B2B2C2C2D2E2E22 |
:100540002F2F303031313232333334343435353685 |
:10055000363637373838383939393A3A3A3B3B3B0F |
:100560003C3C3C3C3D3D3D3D3E3E3E3E3F3F3F3FB3 |
:100570004040404041414141414242424242434366 |
:100580004343434344444444444445454545454529 |
:1005900045464646464646464647474747474747F5 |
:1005A00047484848484848484848494949494949C6 |
:1005B000494949494A4A4A4A4A4A4A4A4A4A4A4A9F |
:1005C0004B4B4B4B4B4B4B4B4B4B4B4B4B4C4C4C78 |
:1005D0004C4C4C4C4C4C4C4C4C4C4C4C4D4D4D4D57 |
:1005E0004D4D4D4D4D4D4D4D4D4D4D4D4D4E4E4E38 |
:1005F0004E4E4E4E4E4E4E4E4E4E4E4E4E4E4E4E1B |
:100600004E4F4F4F4F4F4F4F4F4F4F4F4F4F4F4FFB |
:100610004F4F4F4F4F4F4F4F4F0000000056F88E37 |
:100620003CC7F20E3D465E563D7FDC8E3DB07EB24D |
:100630003D0A13D63D9D96F93D65830E3E5E302002 |
:100640003ED5D0313E6F63433ECEE6543E8E596672 |
:100650003E60BA773EED83843E55208D3EBEB19517 |
:100660003E7A379E3EDDB0A63E421DAF3EFF7BB7D1 |
:100670003E70CCBF3EE80DC83EC83FD03E6A61D850 |
:100680003E2D72E03E7171E83E925EF03EF738F822 |
:100690003E0000003F89D9033FCBA8073F766D0B92 |
:1006A0003F44270F3FE7D5123F1779163F8C101AAA |
:1006B0003FFE9B1D3F241B213FBA8D243F7CF32727 |
:1006C0003F254C2B3F71972E3F22D5313FF4043507 |
:1006D0003FA726383FFF393B3FBD3E3E3FA6344152 |
:1006E0003F7C1B443F09F3463F12BB493F60734CBC |
:1006F0003FBD1B4F3FF2B3513FCF3B543F1EB3565C |
:100700003FAE19593F516F5B3FD7B35D3F14E75F71 |
:100710003FDB08623F0119643F5D17663FCA03680B |
:100720003F1DDE693F34A66B3FEB5B6D3F20FF6EE4 |
:100730003FB28F703F820D723F7078733F63D07409 |
:100740003F3F15763FEA46773F4D65783F527079D7 |
:100750003FE2677A3FEC4B7B3F5C1C7C3F24D97CBB |
:100760003F36827D3F80177E3FFD987E3F9E067F0D |
:100770003F5B607F3F2FA67F3F13D87F3F05F67F0B |
:100780003F0000803F0011241FBECFEFD0E1DEBF4D |
:10079000CDBF13E0A0E0B1E0EEEBFAE702C00590B8 |
:1007A0000D92A23AB107D9F717E0A2EAB3E001C06F |
:1007B0001D92A13CB107E1F70E9420040C945E3D1C |
:1007C0000C94000022E030E0D9010E94403D802DD1 |
:1007D000863028F082E0D901082E0E944D3D9927ED |
:1007E0000895FB01863008F085E0282F2150842FE2 |
:1007F0009927A6E42A9FD0011124A65FBF4F019735 |
:1008000024F001900E944D3DFACFA2E0B0E0022E0C |
:100810000E944D3D0895FB01282F863008F025E009 |
:10082000842F99272150A6E42A9FD0011124A65F86 |
:10083000BF4F019724F00E94403D0192FACF0895E6 |
:100840001F93CF93DF9314B815B8189B02C08BE0A9 |
:1008500001C08AE08093000181E887B98FEF88B9F1 |
:100860008BE184B981E085B98EE38AB9579A87EF25 |
:100870008BB984B7877F84BF809160008861809343 |
:1008800060001092600080ED97E09093C103809328 |
:10089000C003109254041092530410920A0710924D |
:1008A00009071092520410925104109250041092B1 |
:1008B0004F04809100018A3011F4289801C0289AD1 |
:1008C0000E94B10C0E9458080E9443160E94290EF3 |
:1008D0000E947C150E94D33978941092080683E414 |
:1008E0008093090687E080930A062091000187E63D |
:1008F00090E09F938F9383E490E09F938F931F9258 |
:100900001F92822F6AE00E94933C892F99279F9320 |
:100910008F93822F0E94933C99279F938F938DEB07 |
:1009200091E09F938F931F920E94380A8CE991E087 |
:100930009F938F931F920E94380A299AA1E0B0E0FA |
:100940000E94403D802D2DB73EB7205F3F4F2DBF09 |
:10095000843409F43FC08DE691E09F938F931F92FA |
:100960000E94380A0E947A2310E00F900F900F9097 |
:10097000123049F40E94E82246E461E377E082E025 |
:100980000E94F10302C0133051F40E94572246E442 |
:1009900061E377E083E00E94F10314E002C01430C9 |
:1009A00010F00E94E82246E461E377E0812F0E9484 |
:1009B000F1031F5F1630E0F283E022E030E0D9015E |
:1009C000082E0E944D3D84E421503040D901082E6C |
:1009D0000E944D3DC4E0D0E0DE010E94403D802DEC |
:1009E000853050F084E591E09F938F931F920E9491 |
:1009F000380A0F900F900F902297DE010E94403D21 |
:100A0000802D863028F082E0DE01082E0E944D3DC8 |
:100A100046E461E377E00E940B04DE010E94403D62 |
:100A2000802D863028F082E0DE01082E0E944D3DA8 |
:100A300099279F938F9389E391E09F938F931F92C0 |
:100A40000E94380A84EF91E00E94CF0CEC010F90D5 |
:100A50000F900F900F900F90CE010E94D80C88231A |
:100A6000D9F3E0913307FF27EE0FFF1FEB5FF84F3D |
:100A70008081918185369105C4F0E0913407FF278C |
:100A8000EE0FFF1FEB5FF84F808191818536910556 |
:100A900064F084E291E09F938F931F920E94380A42 |
:100AA0000E9407390F900F900F908091390780FFB7 |
:100AB00020C087E091E09F938F931F920E94380A95 |
:100AC00088EE93E00E94CF0CEC010E94AB100F90D7 |
:100AD0000F900F90CE010E94D80C8823D9F382E0AA |
:100AE00091E09F938F931F920E94380A0F900F906E |
:100AF0000F900E94E920809100018A3011F428981B |
:100B000001C0289A80ED97E09093C1038093C003C1 |
:100B100088EE93E0909303068093020685E5809328 |
:100B2000FD0584EF90E09F938F931F920E94380AF7 |
:100B3000809139070F900F900F9082FF03C088EECD |
:100B400090E002C080EE90E09F938F931F920E94EE |
:100B5000380A0F900F900F908CED90E09F938F9339 |
:100B60001F920E94380A0E94EF1088E893E1909348 |
:100B70008603809385030F900F900F908091BF03A1 |
:100B8000882309F462C01092BF030E940B240E94C4 |
:100B9000A220209100012A3011F4289801C0289A3F |
:100BA00080910301882321F081508093030110C0BC |
:100BB0001092B2031092B30310926F0410926E045D |
:100BC00010927104109270041092730410927204C7 |
:100BD00080914E04882329F080914E0481508093A7 |
:100BE0004E048091850390918603892B01F585E061 |
:100BF00090E090938603809385030E941D16809158 |
:100C00000403909105038F5F9F4FF9F48091550481 |
:100C10008823D9F080E197E29093C1038093C003C9 |
:100C200080E890E090930503809304030EC08091C8 |
:100C300085039091860301979093860380938503A3 |
:100C40002A3011F4289801C0289A0E9473080E9443 |
:100C50000309CE010E94D80C882309F48FCF20917C |
:100C6000080330910903809149079927281739070C |
:100C70009CF480910403909105038F5F9F4F61F472 |
:100C800080E797E19093C1038093C00380E093E0F5 |
:100C9000909305038093040384E690E00E94CF0CB8 |
:100CA000EC016CCF1F920F920FB60F9211248F930D |
:100CB0009F93EF93FF93809101018823E1F480914A |
:100CC000BB039091BC0301969093BC038093BB033C |
:100CD000FC01E153FB4FE081ED3019F086399105BD |
:100CE00039F41092BC031092BB0381E080930101A0 |
:100CF000E093C60004C01092BC031092BB03FF91A6 |
:100D0000EF919F918F910F900FBE0F901F901895AC |
:100D10001F920F920FB60F9211242F933F934F9370 |
:100D20008F939F93AF93BF93CF93DF93EF93FF93F3 |
:100D30008091C6008093A6034091B603463910F017 |
:100D40001092B5038091A6038D3009F05CC08091AC |
:100D5000B503823009F057C01092B503A42FBB270A |
:100D6000FD01E05FF94F3081ED01CF5ED94F288161 |
:100D70008091B9039091BA03831B9109821B910959 |
:100D80009F709093BA038093B9039C0196E03695C7 |
:100D900027959A95E1F7235C2093B803982F9F73CA |
:100DA000935C9093B7038081281729F48881981762 |
:100DB00011F491E006C08091A9038F5F8093A9038D |
:100DC00090E08091A703882309F064C0992309F477 |
:100DD00061C081E08093A7034093AA03AE5EB94F40 |
:100DE0008DE08C9380911406823509F053C088E120 |
:100DF00090E02CE00FB6F894A895809360000FBEA9 |
:100E00002093600047C08091B5038130D9F08130D4 |
:100E100018F08230E9F530C08091A603833239F4AE |
:100E20008091A703882319F481E08093B503809112 |
:100E3000A6038093120681E08093B6038091A603F7 |
:100E4000992715C082E08093B503E42FFF27809196 |
:100E5000A603EE5EF94F80834F5F4093B603209167 |
:100E6000A6038091B9039091BA03820F911D9093CC |
:100E7000BA038093B9030EC0E42FFF278091A60325 |
:100E8000EE5EF94F8083463938F31092B503E7CF11 |
:100E90001092B503FF91EF91DF91CF91BF91AF9188 |
:100EA0009F918F914F913F912F910F900FBE0F9077 |
:100EB0001F901895DC0120E030E040E050E0EFECBE |
:100EC000F4E005C08191280F311D4F5F5F4F4A1735 |
:100ED0005B07C1F73F70C90136E0969587953A9553 |
:100EE000E1F7835CFD01E153FB4F808311962F7383 |
:100EF000235CFD01E153FB4F2083A053BB4F8DE0EA |
:100F00008C93109201018091CF048093C6000895C4 |
:100F1000EF92FF920F931F93CF93DF937A01722F7B |
:100F200093E29093CF046093D0048093D10403E0C4 |
:100F300010E060E0A2EDB4E046C0F701E60FF11D5D |
:100F400090816F5F715019F4E0E040E00FC0F7014D |
:100F5000E60FF11D40816F5F715011F4E0E006C0B3 |
:100F6000F701E60FF11DE0816F5F7150892F8695C3 |
:100F70008695835C8C935527892F99278370907071 |
:100F800024E0880F991F2A95E1F79A0194E036959D |
:100F900027959A95E1F7822B835CED0189834F7049 |
:100FA0005070440F551F440F551F8E2F8295869504 |
:100FB00086958370842B835C8A83EF73E35CEB8379 |
:100FC0000C5F1F4F1496772309F0B7CFC8010E941A |
:100FD0005A07E6E0CDB7DEB70C942B3D1F93CF93B5 |
:100FE000DF93EC0170E0A22FBB27129748C0E42FDB |
:100FF000FF27EE5EF94F30814F5FE42FFF27EE5E53 |
:10100000F94F50814F5FE42FFF27EE5EF94F1081BB |
:101010004F5FE42FFF27EE5EF94F20814F5F842F53 |
:101020009927A817B90774F15D53FE01E70FF11D69 |
:101030003D53330F330F852F82958F70382B3083BC |
:10104000613001F1912F9D537F5FFE01E70FF11D8C |
:1010500071505295507F892F86958695582B5083D5 |
:1010600063506F3F79F07E5FFE01E70FF11D9295AF |
:10107000990F990F907C2D53922B90837F5F66235D |
:1010800009F0B5CFDF91CF911F9108951F93182FCD |
:101090008A3019F48DE00E9446088091C00085FFD7 |
:1010A000FCCF1093C60080E090E01F910895089552 |
:1010B000E1ECF0E088E18083A0ECB0E08C9182600C |
:1010C0008C938081806880838081806480838AE2C1 |
:1010D0008093C40088EC90E00E94CF0C9093FC05B4 |
:1010E0008093FB05089580910101882309F48AC04B |
:1010F0008091A203882371F080910101882351F02F |
:101100002BE04DEF55E06091CE0487E40E94880704 |
:101110001092A2038091FB059091FC050E94D80CCF |
:10112000882321F48091A4038823B1F080910101E8 |
:10113000882391F022E448EA56E06091CE0484E4EA |
:101140000E9488071092A40384EF91E00E94CF0CC4 |
:101150009093FC058093FB05609102016F3F89F03D |
:10116000462F552734E0440F551F3A95E1F74C5F61 |
:101170005E4F605D20E181E40E9488078FEF8093DD |
:1011800002018091A303882359F1809101018823F2 |
:1011900039F10E94F8101092A3033091AC03932F01 |
:1011A0009F5F9093AC03943021F08091AD0388232E |
:1011B00059F026E145E057E060E084E30E948807AB |
:1011C0008FEF8093AC030CC044E1949FA0011124E5 |
:1011D000465E5C4F24E160E0832F8F5C0E948807AD |
:1011E0008091A503882371F080910101882351F03B |
:1011F0002AE048E056E06091CE0486E50E94880728 |
:101200001092A5030895A2E0B0E0E9E0F9E00C94A3 |
:10121000123D8091A703882309F4CDC08FEF8093FE |
:101220000301809114069927AA27BB27FC01E156E8 |
:10123000F040E631F10508F0BCC0E85CFF4F0C94CB |
:101240003A3D2091AA0343E062E0CE0101960E945C |
:10125000EE07898180930201ACC02091AA0343E08C |
:101260006BE08DEF95E00E94EE078091E603909190 |
:10127000FF05892B8093E60381E08093A40399C046 |
:101280002091AA0343E062E0CE0101960E94EE079E |
:101290008091E6039981892B8093E6038A818F3FB1 |
:1012A00021F481E08093AD0302C01092AD0381E090 |
:1012B0008093A3037EC02091AA0343E064E08EEAFA |
:1012C00093E006C02091AA0343E063E082EB93E041 |
:1012D0000E94EE076EC081E08093A5036AC081E0A2 |
:1012E0008093A20366C02091AA0343E062E0CE018E |
:1012F00001960E94EE0789818F3F89F0863010F0B9 |
:1013000085E0898346E461E377E089810E940B04EC |
:10131000898126E441E357E06091CE0408C0109132 |
:10132000CE040E94E20326E441E357E0612F855B8F |
:101330000E9488073EC02091AA0343E066E481E34F |
:1013400097E00E94EE078091140646E461E377E09F |
:101350008B560E94F103809114068B56A2E0B0E0F8 |
:10136000082E0E944D3D60915C07772788279927BA |
:1013700024EC39E040E050E00E94743C6093870325 |
:10138000709388038093890390938A0360915D072B |
:101390007727882799270E94743C60938B0370936A |
:1013A0008C0380938D0390938E030E94E2030E942E |
:1013B00042221092A703E3E0CE5F0C942E3D982FBB |
:1013C0008091EA06813069F48091E503E82FFF27D8 |
:1013D000E65EFC4F90838F5F8093E50321E030E071 |
:1013E00005C0892F0E944608282F3327C901089578 |
:1013F0001F93182F04C080E30E94DF0911501116BB |
:10140000D4F31F9108951F93182F04C080E20E9407 |
:10141000DF0911501116D4F31F9108950F931F93F4 |
:10142000CF93DF938C01EB0108C0F8010F5F1F4FD2 |
:10143000E4918E2F0E94DF0921972097B1F7DF9169 |
:10144000CF911F910F9108950F931F93CF93DF9327 |
:101450008C01EB0106C0F80181918F010E94DF0928 |
:1014600021972097C1F7DF91CF911F910F91089598 |
:10147000A3E3B0E0EEE3FAE00C94033D29968FADD0 |
:1014800029978093EA06CE01855B9F4F9D838C83CD |
:101490002B968EAD9FAD2B979FA78EA7222433242A |
:1014A000210102C0130124010EA51FA502C00F5F78 |
:1014B0001F4FF801F490FF2019F0F5E2FF16B9F77D |
:1014C000B8018EA59FA5681B790B11F00E940E0A2A |
:1014D000FF2009F442C20F5F1F4F1FA70EA71982FA |
:1014E000AC81BD811BAA1AAA9FEF99ABEEA5FFA5FF |
:1014F000CF0101969FA78EA7B49095E7B91621F06A |
:101500008B2D8062883789F4EBA9E0FF07C02D900E |
:101510003D904D905C901397149607C08D919C91CF |
:1015200011971C01442455241296F0E2BF1621F4B1 |
:1015300089818823D9F685C083E2B81609F483C06F |
:101540009AE2B91621F0EDE2BE1669F408C0FD0179 |
:101550001296E081EAABE7FFC9CFE195EAABFBA9C0 |
:10156000F061FF7D72C08BE2B81609F46AC09EE29A |
:10157000B916B1F52EA53FA52F5F3F4FEEA5FFA5EC |
:1015800084918A3221F0B82E20E030E01BC0FD01AA |
:1015900012964081518157FF02C04FEF5FEF49AB78 |
:1015A0003FA72EA7A3CFC90103E0880F991F0A9573 |
:1015B000E1F7220F331F280F391F2B0D311D205348 |
:1015C0003040B49031968B2D80538A3060F3FFA762 |
:1015D000EEA7A90137FF02C04FEF5FEF49AB8DCFF8 |
:1015E000F0E3BF1631F48BA984FD80CF80628BAB12 |
:1015F0007DCF8B2D81538930E8F420E030E0C901A4 |
:10160000F3E0880F991FFA95E1F7220F331F280F97 |
:10161000391F2B0D311D20533040EEA5FFA5CF0102 |
:1016200001969FA78EA7B4908B2D80538A3038F3F4 |
:101630002AAB63CF98E6B91651F4EBA9E460EBABA3 |
:1016400055CFB98253CFFBA9F860FBAB4FCF8CE6E7 |
:10165000B81621F49BA991609BAB48CFBD83AC83A6 |
:10166000E3E6BE1639F41296BD83AC8312978C91D3 |
:101670008E8318C1F4E4BF1639F084E6B81639F049 |
:1016800099E6B91659F503C0EBA9E160EBABFBA9EC |
:10169000F0FF08C01496BD83AC835E904E903E90E0 |
:1016A0002E900AC01296BD83AC839E918E911C0130 |
:1016B000442437FC4094542C57FC03C08AE088AB88 |
:1016C00092C05094409430942094211C311C411CB1 |
:1016D000511C8DE289839AE098AB85C0EFE4BE1679 |
:1016E00029F0FFE6BF1639F488E061C09BA991603C |
:1016F0009BABE8E056C0F0E7BF1671F41296BD83CD |
:10170000AC839E918E911C01442455248BA9806446 |
:101710008BAB78E7B72E5EC0E3E7BE16D9F512961D |
:10172000BD83AC83DE90CE90C114D10489F488E2ED |
:101730008E838EE68F8385E788878CE689878A8704 |
:1017400089E28B871C8666E0C62ED12CCC0EDD1E6E |
:10175000F9A9F7FD13C04F2F552747FD509560E0BD |
:1017600070E0C6010E94FF3A009711F419A90DC05C |
:101770008C1919A981174CF4182F07C0F601019094 |
:101780000020E9F731971E2F1C19198242013101FF |
:1017900040E094C085E5B81631F095E7B91649F4F4 |
:1017A000EAE0E8AB1FC0FBA9F160FBAB8AE088ABC5 |
:1017B00019C098E5B91621F0E8E7BE1609F06EC029 |
:1017C000FBA9F3FD02C080E1F2CF211431044104F2 |
:1017D000510419F490E198AB05C0EBA9E064EBABC0 |
:1017E000F0E1F8AB198289A987FD03C09BA99F7D11 |
:1017F0009BAB211431044104510461F4E9A9EE23A7 |
:1018000049F46624772443015EE2C52ED12CCC0E28 |
:10181000DD1E3EC04EE2C42ED12CCC0EDD1EF8A93A |
:10182000EF2EFF2400271127C201B101A801970163 |
:101830000E94C63C6A3020F430E3A32EA60E08C0F6 |
:1018400027E5A22EA60E88E5B81611F49FEDA92271 |
:10185000F601A2926F01C201B101A80197010E9495 |
:10186000C63C39014A012E143F044006510618F0C7 |
:1018700019012A01D9CFF8A9F83051F48BA983FFB7 |
:1018800007C090E3A91621F080E3F60182936F016F |
:10189000CE018C19182F125D49A910C0BB2009F484 |
:1018A0005CC0BE8219824201310100E096E0C92E7F |
:1018B000D12CCC0EDD1E11E021E005C0212F042F1C |
:1018C000011B07FD00E08981882319F0812F8F5FBC |
:1018D00007C09BA996FD02C0812F02C0822F8E5F98 |
:1018E000A82EA00EEBA9EE2EFF2480E3482E512C4B |
:1018F0004E205F204114510421F48AA98A190E94C4 |
:10190000030A8981882329F061E070E0CE01019605 |
:1019100009C0E6FE09C080E38A83BB8262E070E012 |
:10192000CE0102960E94240AF0E24F16510421F4DF |
:101930008AA98A190E94F809802F0E94F809612F4C |
:10194000772767FD7095C6010E94240AE4FEAACDA0 |
:101950008AA98A190E94030AA5CDE2E1CD5C0C9404 |
:101960001F3D82E085BD83EA84BD17BC88E788BD42 |
:1019700096E096BD83EC8093B0009093B100E0E7D1 |
:10198000F0E0808182608083EEE6F0E0808181601B |
:1019900080838AE08093B3001092B2000895209172 |
:1019A000BD033091BE032F5F3F4F820F931F0895F9 |
:1019B0002091BD033091BE03821B930B892F992781 |
:1019C00086958074992708951F920F920FB60F92F3 |
:1019D0001124EF92FF920F931F932F933F934F93F6 |
:1019E0005F936F937F938F939F93AF93BF93CF93A7 |
:1019F000DF93EF93FF93809106038150809306035A |
:101A00008F3F09F069C083E88093B00080919C0308 |
:101A1000C82FDD27D093C303C093C203809166070C |
:101A2000E090530720910104309102044091030497 |
:101A30005091040480FF18C0FF2400271127CA0119 |
:101A4000B90120E830E040E050E00E94E83CC801E5 |
:101A5000B7010E94743C20E032E040E050E00E9478 |
:101A6000E83CC20FD31F17C0FF2400271127CA016B |
:101A7000B90120E830E040E050E00E94E83CC801B5 |
:101A8000B7010E94743C20E032E040E050E00E9448 |
:101A9000E83CC21BD30BD093C303C093C203209175 |
:101AA000C2033091C303809154079927281739073F |
:101AB00034F08091550799278217930724F4909367 |
:101AC000C3038093C2038091C2038093B3008091CB |
:101AD00056078093060304C083E08093B0005F98AC |
:101AE000FF91EF91DF91CF91BF91AF919F918F9136 |
:101AF0007F916F915F914F913F912F911F910F9126 |
:101B0000FF90EF900F900FBE0F901F9018951F92AF |
:101B10000F920FB60F9211242F933F934F935F9321 |
:101B20006F937F938F939F93AF93BF93EF93FF93A5 |
:101B30008091C40381508093C4038F3FB9F48AE03D |
:101B40008093C403809107038F5F817080930703A4 |
:101B5000882319F481E08093BF038091BD039091A5 |
:101B6000BE0301969093BE038093BD038091C00392 |
:101B70009091C1030297B0F08091C0039091C1038E |
:101B800001979093C1038093C0038091C00390910B |
:101B9000C103209104033091050382239323892BF1 |
:101BA000D1F406C08FEF9FEF909305038093040359 |
:101BB000809100018A3039F404C05A9A05C0479ACE |
:101BC00003C05A9801C047988091390783FF08C025 |
:101BD0000E94D53805C0809100018A3081F7EDCF91 |
:101BE000FF91EF91BF91AF919F918F917F916F91F5 |
:101BF0005F914F913F912F910F900FBE0F901F90CB |
:101C000018952091BD033091BE032F5F3F4F280FE1 |
:101C1000391F4FEE02C040937A008091BD0390912E |
:101C2000BE03B901681B790B77FFF5CF08952091AA |
:101C3000BD033091BE032F5F3F4F280F391F8091A6 |
:101C4000BD039091BE03A901481B590B57FFF7CF65 |
:101C5000089510927C008FEE80937A0008951F9271 |
:101C60000F920FB60F921124DF92EF92FF920F9313 |
:101C70001F932F933F934F935F936F937F938F9314 |
:101C80009F93AF93BF93CF93DF93EF93FF93109204 |
:101C90007A008091E103D82ED394D092E103E82F0B |
:101CA000FF27EB30F10508F038C2E25BFF4F0C94E0 |
:101CB0003A3D80917800909179009093E003809371 |
:101CC000DF0381E08093E2038091D9039091DA03EE |
:101CD00001969093DA038093D90315C2809178001E |
:101CE000909179009093DE038093DD0390C0809102 |
:101CF0007800909179009093DC038093DB0384E07B |
:101D000086C1409108035091090380917800909119 |
:101D100079009A01220F331F240F351F63E070E012 |
:101D20000E949F3C260F371F36952795369527959D |
:101D3000309309032093080386E069C18091FB0377 |
:101D40009091FC032091780030917900821B930BD5 |
:101D50009093EC068093EB068091EB069091EC0655 |
:101D60009093CC038093CB0387E051C1809178009E |
:101D7000909179002091F9033091FA03821B930B23 |
:101D80009093F7068093F6068091F6069091F706F9 |
:101D90009093CE038093CD031092E203B4C180915F |
:101DA00000012091DF033091E0038A3049F48091F3 |
:101DB000780090917900820F931F9695879506C0C1 |
:101DC0008091780090917900820F931F9093CA03BD |
:101DD0008093C90381E01BC1809100012091DD0344 |
:101DE0003091DE038A3049F4809178009091790037 |
:101DF000820F931F9695879506C0809178009091E9 |
:101E00007900820F931F9093C8038093C70382E0E9 |
:101E1000FEC0809100012091DB033091DC038A3009 |
:101E200049F48091780090917900820F931F9695E4 |
:101E3000879506C08091780090917900820F931F5A |
:101E40009093C6038093C50385E0E1C0609178005C |
:101E500070917900E090FD03F090FE030091FF0384 |
:101E600010910004882777FD8095982F0E94B23B3F |
:101E7000A80197010E940C3B0E94953B7093D003F0 |
:101E80006093CF032091CF033091D003E091EB0614 |
:101E9000F091EC068091F6069091F70697FF03C04B |
:101EA000909581959F4F64E070E00E94B33CEB01F8 |
:101EB000CF01F7FF03C0909581959F4F64E070E0DC |
:101EC0000E94B33C260F371F2C0F3D1F3093D003C9 |
:101ED0002093CF038091CF039091D003029704F118 |
:101EE0006091FD037091FE038091FF0390910004C7 |
:101EF00020E030E048E454E40E94BC3B88230CF02E |
:101F00003CC06091FD037091FE038091FF039091AE |
:101F100000042AE037ED43EA5CE30E940D3B25C054 |
:101F20008091CF039091D0038F5F9F4F34F56091E4 |
:101F3000FD037091FE038091FF039091000420E067 |
:101F400030E046E154E40E94BF3B1816B4F46091BF |
:101F5000FD037091FE038091FF03909100042AE03D |
:101F600037ED43EA5CE30E940C3B6093FD03709302 |
:101F7000FE038093FF039093000481E08093D603D7 |
:101F800080917800909179009093EE068093ED0611 |
:101F90002091390430913A0440913B0450913C0423 |
:101FA0008091CF039091D003AA2797FDA095BA2FD7 |
:101FB000280F391F4A1F5B1F2093390430933A04BE |
:101FC00040933B0450933C04E0903904F0903A0471 |
:101FD00000913B0410913C046091390470913A04E3 |
:101FE00080913B0490913C0420E034E040E050E0DC |
:101FF0000E94E83CE21AF30A040B150BE092390444 |
:10200000F0923A0400933B0410933C0483E08093E5 |
:10201000E20379C08091FB069091FC062091780044 |
:1020200030917900820F931F9093FC068093FB06FA |
:102030008091F3068F5F8093F3068091F3068530DD |
:1020400008F46BC0809178009091790090930F0311 |
:1020500080930E031092F3068091EF069091F006A4 |
:102060002091FB063091FC06821B930B20915604B5 |
:1020700030915704821B930B9093D8038093D7031E |
:102080006091FB067091FC06E0900A03F0900B0350 |
:1020900000910C0310910D03882777FD8095982FF0 |
:1020A000A8019701220F331F441F551F2E0D3F1DFE |
:1020B000401F511F620F731F841F951F24E030E0E3 |
:1020C00040E050E00E94E83C20930A0330930B0369 |
:1020D00040930C0350930D032091EF063091F006CE |
:1020E00080910A0390910B03A0910C03B0910D0312 |
:1020F000281B390B30935704209356041092FC068A |
:102100001092FB060AC08091E20380937C00DD20E0 |
:1021100051F08FEE80937A0006C01092E203109285 |
:10212000E10310927C00FF91EF91DF91CF91BF917D |
:10213000AF919F918F917F916F915F914F913F915F |
:102140002F911F910F91FF90EF90DF900F900FBE96 |
:102150000F901F901895CF93DF93A3E0B0E00E94FB |
:10216000403D802DC82FDD27C531D10508F02A97C5 |
:10217000C7BD84E690E00E94010E80910E0390910D |
:102180000F0382559340D0F4C0E0D0E017C0C7BD24 |
:1021900082E390E00E94010E81EF91E09F938F9384 |
:1021A0001F920E94380A80910E0390910F030F90A6 |
:1021B0000F900F908458934020F02196CA3FD1058C |
:1021C00030F3A3E0B0E00C2E0E944D3DC093F80622 |
:1021D0008CE291E00E94010EDF91CF910895EAE137 |
:1021E000F3E080E2819393E0EA36F907D9F70895A6 |
:1021F0001F938091E603282F3327C90181709070C7 |
:10220000682F8823A9F08091E703882311F081507B |
:1022100002C080916A038093E703EAE1F3E080E281 |
:10222000819393E0EA36F907D9F78FEF8093AC03F7 |
:10223000A9014270507021FF10C08091E7038F5FA9 |
:102240008093E703EAE1F3E080E2819393E0EA36EA |
:10225000F907D9F78FEF8093AC03662321F0452B64 |
:1022600011F01092E70381E18093E5038091E70389 |
:1022700099279F938F9386E095E09F938F9381E0BA |
:102280008F930E94380A8091E7030F900F900F9070 |
:102290000F900F90E82FFF27ED30F10508F023C4D1 |
:1022A000E75AFF4F0C943A3D1092E50384EF94E017 |
:1022B0009F938F9311E01F930E94380A84E18093CB |
:1022C000E5032091000187E690E09F938F9383E4DC |
:1022D00090E09F938F931F921F92822F6AE00E943B |
:1022E000933C892F99279F938F93822F0E94933C31 |
:1022F00099279F938F938FED94E09F938F931F93D4 |
:102300000E94380A88E28093E5030E94E20399273D |
:102310009F938F9382ED94E09F938F931F930E94DE |
:10232000380A8CE38093E50382EC94E09F938F93CB |
:102330001F930E94380A88C28091390780FF44C0E9 |
:102340001092E50380915604909157049F938F93C8 |
:1023500083EB94E09F938F9311E01F930E94380AC0 |
:1023600084E18093E50380915804909159049F93F0 |
:102370008F9384EA94E09F938F931F930E94380A6F |
:1023800088E28093E50380910E0390910F039F9361 |
:102390008F9385E994E09F938F931F930E94380A4F |
:1023A0008CE38093E5038091F80699279F938F93A0 |
:1023B00086E894E09F938F931F930E94380A8DB70D |
:1023C0009EB744968DBF94C384E18093E5038FE765 |
:1023D00094E09F938F9311E01F930E94380A88E244 |
:1023E0008093E50381E794E09F938F931F930E946E |
:1023F000380A8DB79EB70696E5CF1092E50387E6BB |
:1024000094E09F938F9311E01F930E94380A84E118 |
:102410008093E503609101047091020480910304AC |
:102420009091040420E034E040E050E00E94E83C59 |
:102430005F934F933F932F9388E594E09F938F93FF |
:102440001F930E94380A88E28093E5036091090493 |
:1024500070910A0480910B0490910C0420E034E008 |
:1024600040E050E00E94E83C5F934F933F932F93EE |
:1024700089E494E09F938F931F930E94380A8CE322 |
:102480008093E50380913D0490913E049F938F9348 |
:102490008AE394E09F938F931F930E94380A8DB72D |
:1024A0009EB746968FCF1092E503809109079091D1 |
:1024B0000A0720910707309108079F938F933F9356 |
:1024C0002F938AE294E09F938F9311E01F930E94D1 |
:1024D000380A84E18093E50380910D0790910E07FF |
:1024E00020910B0730910C079F938F933F932F936D |
:1024F0008AE194E09F938F931F930E94380A88E2A9 |
:102500008093E503809111079091120720910F07A6 |
:10251000309110079F938F933F932F938AE094E01D |
:102520009F938F931F930E94380A8CE38093E50357 |
:102530008091150790911607209113073091140789 |
:102540009F938F933F932F938AEF93E07BC01092DA |
:10255000E503E0913207FF27EE0FFF1FEB5FF84F17 |
:1025600020813181E0913107FF27EE0FFF1FEB5FE4 |
:10257000F84F808191813F932F939F938F938AEEA1 |
:1025800093E09F938F9311E01F930E94380A84E198 |
:102590008093E503E0913407FF27EE0FFF1FEB5F09 |
:1025A000F84F20813181E0913307FF27EE0FFF1FA5 |
:1025B000EB5FF84F808191813F932F939F938F938F |
:1025C0008AED93E09F938F931F930E94380A88E2CD |
:1025D0008093E503E0913607FF27EE0FFF1FEB5FC7 |
:1025E000F84F20813181E0913507FF27EE0FFF1F63 |
:1025F000EB5FF84F808191813F932F939F938F934F |
:102600008AEC93E09F938F931F930E94380A8CE388 |
:102610008093E503E0913807FF27EE0FFF1FEB5F84 |
:10262000F84F20813181E0913707FF27EE0FFF1F20 |
:10263000EB5FF84F808191813F932F939F938F930E |
:102640008AEB93E09F938F931F930E94380A8DB774 |
:102650009EB74C96B7CE1092E5038CEA93E09F9319 |
:102660008F9311E01F930E94380A0F900F900F90E4 |
:1026700080910001E091EF03F091F0038A30F1F5D1 |
:1026800084E18093E5038091C5039091C603FF9395 |
:10269000EF938E1B9F0B9F938F938DE993E09F93F6 |
:1026A0008F931F930E94380A88E28093E50320915C |
:1026B000F1033091F2038091C7039091C8033F93D7 |
:1026C0002F93821B930B9F938F938EE893E09F939E |
:1026D0008F931F930E94380A8CE38093E5038091C7 |
:1026E000F3039091F4039F938F938091A0079091AF |
:1026F000A1079F938F938FE793E04BC084E1809372 |
:10270000E5032091C5033091C603CF0162E070E07C |
:102710000E94B33C7F936F932E1B3F0B3F932F93ED |
:1027200080E793E09F938F931F930E94380A88E27B |
:102730008093E503E091F103F091F2032091C70348 |
:102740003091C803CF0162E070E00E94B33C7F93F8 |
:102750006F932E1B3F0B3F932F9381E693E09F9344 |
:102760008F931F930E94380A8CE38093E503809136 |
:10277000F3039091F40362E070E00E94B33C7F9316 |
:102780006F938091A0079091A1079F938F9382E50B |
:1027900093E09F938F931F930E94380A8DB79EB743 |
:1027A000459610CE1092E50385E493E09F938F93B6 |
:1027B00011E01F930E94380A84E18093E503809121 |
:1027C000F9039091FA032091CD033091CE039F93AA |
:1027D0008F933F932F9386E393E09F938F931F9361 |
:1027E0000E94380A88E28093E5038091FB03909170 |
:1027F000FC032091CB033091CC039F938F933F93A5 |
:102800002F9387E293E09F938F931F930E94380A40 |
:102810008CE38093E5036091FD037091FE0380914A |
:10282000FF03909100040E94953B7F936F938091EA |
:102830008807909189079F938F9388E193E09F93F6 |
:102840008F931F930E94380A8DB79EB74896BACDD2 |
:1028500084E18093E50380910803909109039F939D |
:102860008F9389E093E09F938F9311E01F930E94D1 |
:10287000380A88E28093E50380914E0499279F935C |
:102880008F938AEF92E09F938F931F930E94380A51 |
:102890008DB79EB70A9696CD1092E5038BEE92E027 |
:1028A0009F938F9311E01F930E94380A84E18093D5 |
:1028B000E50380914104909142049F938F938CEDA6 |
:1028C00092E09F938F931F930E94380A88E280932F |
:1028D000E50380913D0490913E049F938F938DEC8E |
:1028E00092E09F938F931F930E94380A8CE380930A |
:1028F000E50380913F04909140049F938F938EEB6A |
:1029000092E0E8C01092E50380914604909147045C |
:102910009F938F9382EB92E09F938F9311E01F938D |
:102920000E94380A84E18093E503809148049091E5 |
:1029300049049F938F9386EA92E09F938F931F930E |
:102940000E94380A88E28093E50380914A049091BE |
:102950004B049F938F938AE992E09F938F931F93E9 |
:102960000E94380A8CE38093E50380914C04909197 |
:102970004D049F938F938EE892E01CCD1092E50357 |
:1029800086E892E09F938F9311E01F930E94380A8C |
:1029900084E18093E50380919C0399279F938F9313 |
:1029A00088E792E09F938F931F930E94380A88E2F2 |
:1029B0008093E5038091C2039091C3039F938F930B |
:1029C0008AE692E09F938F931F930E94380A8CE3CC |
:1029D0008093E5038091550799279F938F9380916A |
:1029E000540799279F938F938CE592E09F938F9341 |
:1029F0001F930E94380AE3CC1092E50384E592E02D |
:102A00009F938F9311E01F930E94380A84E1809373 |
:102A1000E5038091AE07992787FD90959F938F934B |
:102A200085E492E09F938F931F930E94380A88E277 |
:102A30008093E5038091AF07992787FD90959F9339 |
:102A40008F9386E392E09F938F931F930E94380A9F |
:102A50008CE38093E5038091B007992787FD9095DB |
:102A60009F938F9387E292E035C01092E5038DE14A |
:102A700092E09F938F9311E01F930E94380A84E1A4 |
:102A80008093E5038091B1079091B2079F938F9354 |
:102A90008FE092E09F938F931F930E94380A88E201 |
:102AA0008093E5038091B3079091B4079F938F9330 |
:102AB00081E092E09F938F931F930E94380A8CE3EA |
:102AC0008093E5038091B5079091B6079F938F930C |
:102AD00083EF91E09F938F931F930E94380A8DB7E5 |
:102AE0009EB742966FCC815080936A031092E703A1 |
:102AF0001092E6031F9108951092B9008AE2809324 |
:102B0000B800089585EA8093BC0080E090E00895C5 |
:102B100084E98093BC0008951092B9008093BB00B3 |
:102B200085E88093BC0080E090E008951F920F92AA |
:102B30000FB60F9211248F939F93EF93FF93809181 |
:102B4000E8038F5F8093E8038150E82FFF27E83088 |
:102B5000F10508F064C0EA59FF4F0C943A3D8091AA |
:102B6000E903880F8E5A09C08091E9038F5F809333 |
:102B7000E903815027C080917B071092B9008093B0 |
:102B8000BB0085E88093BC004AC084E98093BC0008 |
:102B90008091E903843018F41092E80302C0109287 |
:102BA000E90385EAEFCF8091EA03880F8D5AE5CFDC |
:102BB0008091BB00E091EA03FF27E350F94F808347 |
:102BC0008091EA03813039F08130A8F2823031F00F |
:102BD000833029F506C080918007CFCF8091980778 |
:102BE000CCCF80919A07C9CF8091EA039091BB0026 |
:102BF000E82FFF27E350F94F94838F5F8093EA0318 |
:102C0000843010F01092EA0384E98093BC008AE0DB |
:102C100090E090938603809385031092E80380915F |
:102C2000BC0080688093BC00FF91EF919F918F91D1 |
:102C30000F900FBE0F901F9018954CEB50E084E959 |
:102C4000DA018C931092E8032BEB30E0F9018081DC |
:102C50001092E90380E88C931092BD001092BA00A4 |
:102C60001082E9EBF0E01082A8EBB0E01C92108239 |
:102C70008AE28C9385EADA018C931082F901108242 |
:102C800085E88C93089583EC80938100EFE6F0E073 |
:102C90008081806280831092F4031092F30310927B |
:102CA000F2031092F1031092F0031092EF030895D3 |
:102CB0001F920F920FB60F9211240F931F932F9311 |
:102CC0003F934F935F936F937F938F939F93AF93B4 |
:102CD000BF93CF93DF93EF93FF93209186003091C2 |
:102CE00087008091ED039091EE03281B390B8091B2 |
:102CF0008600909187009093EE038093ED03C901C5 |
:102D00008D549440C091EB03D091EC03835F9A41C2 |
:102D100058F4249714F010926B0381E090E09093A4 |
:102D2000EC038093EB035CC0CA30D1050CF058C0B3 |
:102D3000C9018B5F9040845B914008F040C0A901BD |
:102D4000425D5140FE01EE0FFF1FEB5FF84F8081A7 |
:102D50009181FA01E81BF90BCF01F7FF03C09095B1 |
:102D600081959F4F06974CF480914E04883C28F43F |
:102D700080914E04865F80934E04FE01EE0FFF1F8C |
:102D80008F010B5F184FD8012D913C91C901880F1D |
:102D9000991F820F931F840F951F64E070E00E94BB |
:102DA000B33CD8018D919C9111979B01281B390B45 |
:102DB000E55EF84F3183208311967C936E93FE017C |
:102DC0003196F093EC03E093EB03E530F10511F459 |
:102DD0005D9A05C05D98369711F45C9A01C05C98C5 |
:102DE000FF91EF91DF91CF91BF91AF919F918F9123 |
:102DF0007F916F915F914F913F912F911F910F9113 |
:102E00000F900FBE0F901F901895A2E1B0E0EBE07D |
:102E1000F7E10C94033D8091C9039091CA0340905F |
:102E2000F3035090F403481A590A5092A1074092B4 |
:102E3000A0078091C7039091C803988B8F87A091BA |
:102E4000F103B091F203BA8BA98BE091C503F09125 |
:102E5000C603FE87ED878091EF039091F0039C8776 |
:102E60008B876091CD037091CE03E0909D07F09029 |
:102E70009E070027F7FC0095102F882777FD809587 |
:102E8000982F2CE030E040E050E00E94743CE60EC9 |
:102E9000F71E081F191FC801B70122E030E040E00B |
:102EA00050E00E94E83C30939E0720939D0760917C |
:102EB000CB037091CC03E090A707F090A807002700 |
:102EC000F7FC0095102F882777FD8095982F2CE030 |
:102ED00030E040E050E00E94743CE60EF71E081F10 |
:102EE000191FC801B70122E030E040E050E00E9425 |
:102EF000E83C3093A8072093A7072091CF03309197 |
:102F0000D0036091880770918907882777FD8095A5 |
:102F1000982F442737FD4095542F620F731F841F4D |
:102F2000951F22E030E040E050E00E94E83C309302 |
:102F30008907209388072091CD033091CE03C901E2 |
:102F4000880F991F820F931F880F991F880F991F51 |
:102F5000AA2797FDA095BA2F209111043091120451 |
:102F60004091130450911404280F391F4A1F5B1F0E |
:102F700020931104309312044093130450931404CB |
:102F80002091CB033091CC03C901880F991F820F88 |
:102F9000931F880F991F880F991FAA2797FDA09547 |
:102FA000BA2F2091150430911604409117045091C6 |
:102FB0001804280F391F4A1F5B1F209315043093F4 |
:102FC00016044093170450931804E090ED06F09017 |
:102FD000EE06A090FD03B090FE03C090FF03D090DA |
:102FE00000046091190470911A0480911B0490915F |
:102FF0001C040E94B23B3B014C010027F7FC0095EA |
:10300000102FC801B7010E94B23BA60195010E9492 |
:103010000C3B9B01AC01C401B3010E940D3B0E941B |
:10302000953B6093190470931A0480931B0490934A |
:103030001C045201CC24B7FCC094DC2C60903104F9 |
:103040007090320480903304909034046A0C7B1C9E |
:103050008C1C9D1C60923104709232048092330467 |
:10306000909234048091350490913604A0913704F5 |
:10307000B09138048A0D9B1DAC1DBD1D8093350495 |
:1030800090933604A0933704B093380490915E0473 |
:103090009A87992309F05FC080915F04882309F023 |
:1030A0005AC08091390786FF56C0E0906C04FF2417 |
:1030B000002711276091210470912204809123043C |
:1030C0009091240420E030E140E050E00E94E83C90 |
:1030D000CA01B901A80197010E94743C9B01AC018F |
:1030E000C601B5010E94743C20E038E040E050E0A9 |
:1030F0000E94E83C2093B5043093B6044093B70493 |
:103100005093B8046091290470912A0480912B0493 |
:1031100090912C0420E030E140E050E00E94E83C37 |
:10312000CA01B901A80197010E94743C9B01AC013E |
:10313000C601B5010E94743C20E038E040E050E058 |
:103140000E94E83C2093B1043093B2044093B3044E |
:103150005093B40410C01092B1041092B2041092B3 |
:10316000B3041092B4041092B5041092B6041092F5 |
:10317000B7041092B8048091B5049091B604A09160 |
:10318000B704B091B8048E839F83A887B9878091D4 |
:10319000B1049091B204A091B304B091B4048A83B5 |
:1031A0009B83AC83BD8380916D04282E33244424FB |
:1031B0005524EF84F888A989BA89EA1AFB0AEE81B6 |
:1031C000FF81EE0EFF1E6A817B818C819D81A201B1 |
:1031D00091010E94743C20E032E040E050E00E9407 |
:1031E000E83CE20EF31EF0927A07E092790797012D |
:1031F000442737FD4095542F80912D0490912E0443 |
:10320000A0912F04B0913004820F931FA41FB51F0B |
:1032100080932D0490932E04A0932F04B093300438 |
:1032200080915A0490915B04E81AF90A0027F7FC90 |
:103230000095102F8091290490912A04A0912B04CD |
:10324000B0912C04E80EF91E0A1F1B1FE0922904FE |
:10325000F0922A0400932B0410932C04A0908B036B |
:10326000B0908C03C0908D03D0908E03AE14BF0439 |
:10327000C006D106C4F480E197E2A0E0B0E08A196C |
:103280009B09AC09BD098093290490932A04A0935B |
:103290002B04B0932C0480932D0490932E04A093C0 |
:1032A0002F04B093300422273327A9012A193B09A0 |
:1032B0004C095D098091290490912A04A0912B0466 |
:1032C000B0912C0482179307A407B507B4F4D60174 |
:1032D000C50180519742A040B0408093290490934B |
:1032E0002A04A0932B04B0932C0480932D04909374 |
:1032F0002E04A0932F04B09330048091C7039091C3 |
:10330000C8030F9734F488E19CEF90937A07809379 |
:1033100079078091C7039091C803079734F480E33D |
:1033200098EF90937A0780937907F0910001F983E1 |
:10333000FA30A9F48091C7039091C803835F93404A |
:1033400034F088EE93E090937A0780937907809128 |
:10335000C7039091C8038A5F9340DCF014C080914A |
:10336000C7039091C803855E974034F088EE93E0E0 |
:1033700090937A07809379078091C7039091C8034F |
:10338000835F974034F080ED97E090937A078093C5 |
:103390007907ED84FE848B859C85E81AF90AAA8159 |
:1033A000BB81EA1AFB0A6E817F8188859985A2011B |
:1033B00091010E94743C20E032E040E050E00E9425 |
:1033C000E83CE21AF30AF0928207E0928107970143 |
:1033D000442737FD4095542F809125049091260471 |
:1033E000A0912704B0912804820F931FA41FB51F3A |
:1033F0008093250490932604A0932704B093280477 |
:1034000080915C0490915D04E81AF90A0027F7FCAA |
:103410000095102F8091210490912204A091230403 |
:10342000B0912404E80EF91E0A1F1B1FE09221042C |
:10343000F09222040093230410932404A0908703A5 |
:10344000B0908803C0908903D0908A03AE14BF0463 |
:10345000C006D106C4F480E197E2A0E0B0E08A198A |
:103460009B09AC09BD098093210490932204A09389 |
:103470002304B09324048093250490932604A093FE |
:103480002704B093280422273327A9012A193B09CE |
:103490004C095D098091210490912204A09123049C |
:1034A000B091240482179307A407B507B4F4D6019A |
:1034B000C50180519742A040B04080932104909371 |
:1034C0002204A0932304B0932404809325049093B2 |
:1034D0002604A0932704B09328048091C5039091FB |
:1034E000C6030F9734F488E19CEF90938207809392 |
:1034F00081078091C5039091C603079734F480E358 |
:1035000098EF9093820780938107B981BA30A9F42C |
:103510008091C5039091C603835F934034F088EE99 |
:1035200093E090938207809381078091C5039091E7 |
:10353000C6038A5F9340DCF014C08091C50390916C |
:10354000C603855E974034F088EE93E0909382073F |
:10355000809381078091C5039091C603835F974054 |
:1035600034F080ED97E090938207809381078FEE8F |
:1035700080937A0060921D0470921E0480921F0452 |
:10358000909220048091210490912204A091230420 |
:10359000B09124048093010490930204A093030447 |
:1035A000B09304048091290490912A04A0912B04E3 |
:1035B000B0912C048093090490930A04A0930B0407 |
:1035C000B0930C048091250490912604A0912704C7 |
:1035D000B09128048093050490930604A0930704F7 |
:1035E000B093080480912D0490912E04A0912F0493 |
:1035F000B091300480930D0490930E04A0930F04B7 |
:10360000B09310048091390787FF3FC0BA85BB2370 |
:10361000E1F580915F048823C1F520918107309105 |
:103620008207293C310524F0C9018052934007C02C |
:10363000EFEF28333E076CF4C901805E9C4F220FE8 |
:10364000331F220F331F280F391F30938207209317 |
:1036500081072091790730917A07293C310524F0C0 |
:10366000C9018052934007C0FFEF28333F076CF435 |
:10367000C901805E9C4F220F331F220F331F280F7A |
:10368000391F30937A0720937907209146043091AF |
:10369000470480913507E82FFF27EE0FFF1FEB5FF0 |
:1036A000F84F8081918182599F4F281739071CF468 |
:1036B0002F5F3F4F0CC08081918182599F4F8217AD |
:1036C00093074CF42115310531F0215030403093EF |
:1036D0004704209346042091480430914904809186 |
:1036E0003607E82FFF27EE0FFF1FEB5FF84F8081B3 |
:1036F000918182599F4F281739071CF42F5F3F4F44 |
:103700000CC08081918182599F4F821793074CF49E |
:103710002115310531F02150304030934904209378 |
:10372000480420914A0430914B0480913707E82FD8 |
:10373000FF27EE0FFF1FEB5FF84F808191818259C9 |
:103740009F4F281739071CF42F5F3F4F0CC0808113 |
:10375000918182599F4F821793074CF421153105AF |
:1037600031F02150304030934B0420934A04209193 |
:103770004C0430914D0480913807E82FFF27EE0F5D |
:10378000FF1FEB5FF84F8081918182599F4F28176F |
:1037900039071CF42F5F3F4F0CC080819181825903 |
:1037A0009F4F821793074CF42115310531F02150BA |
:1037B000304030934D0420934C0480914604909106 |
:1037C000470497FF05C010924704109246040AC0B0 |
:1037D0008F3F910539F034F08FEF90E090934704DC |
:1037E00080934604809148049091490497FF05C056 |
:1037F00010924904109248040AC08F3F910539F095 |
:1038000034F08FEF90E090934904809348048091C6 |
:103810004A0490914B0497FF05C010924B041092FC |
:103820004A040AC08F3F910539F034F08FEF90E0E1 |
:1038300090934B0480934A0480914C0490914D04E2 |
:1038400097FF05C010924D0410924C040AC08F3FA0 |
:10385000910539F034F08FEF90E090934D04809310 |
:103860004C04E2E1CE5E0C941F3D10927A008091F0 |
:10387000C5039091C603909382078093810780913E |
:10388000C7039091C80390937A078093790780913A |
:10389000C9039091CA039093A1078093A0076091F8 |
:1038A000CD037091CE03882777FD8095982F2CE06B |
:1038B00030E040E050E00E94743C70939E076093BB |
:1038C0009D076091CB037091CC03882777FD80958D |
:1038D000982F0E94743C7093A8076093A70780916B |
:1038E000CF039091D00390938907809388078FEE40 |
:1038F00080937A00209146043091470480913507E7 |
:10390000E82FFF27EE0FFF1FEB5FF84F80819181BB |
:1039100082599F4F281739071CF42F5F3F4F0CC067 |
:103920008081918182599F4F821793074CF4211512 |
:10393000310531F021503040309347042093460444 |
:10394000209148043091490480913607E82FFF27E1 |
:10395000EE0FFF1FEB5FF84F8081918182599F4FDF |
:10396000281739071CF42F5F3F4F0CC080819181CD |
:1039700082599F4F821793074CF42115310531F07E |
:1039800021503040309349042093480420914A0448 |
:1039900030914B0480913707E82FFF27EE0FFF1F70 |
:1039A000EB5FF84F8081918182599F4F281739072B |
:1039B0001CF42F5F3F4F0CC08081918182599F4F33 |
:1039C000821793074CF42115310531F02150304016 |
:1039D00030934B0420934A0420914C0430914D04C1 |
:1039E00080913807E82FFF27EE0FFF1FEB5FF84F9E |
:1039F0008081918182599F4F281739071CF42F5FCE |
:103A00003F4F0CC08081918182599F4F821793074D |
:103A10004CF42115310531F02150304030934D04E4 |
:103A200020934C04809146049091470497FF05C071 |
:103A300010924704109246040AC08F3F910539F056 |
:103A400034F08FEF90E09093470480934604809188 |
:103A500048049091490497FF05C0109249041092C0 |
:103A600048040AC08F3F910539F034F08FEF90E0A1 |
:103A7000909349048093480480914A0490914B04A8 |
:103A800097FF05C010924B0410924A040AC08F3F62 |
:103A9000910539F034F08FEF90E090934B048093D0 |
:103AA0004A0480914C0490914D0497FF05C01092F8 |
:103AB0004D0410924C040AC08F3F910539F034F048 |
:103AC0008FEF90E090934D0480934C0460915C07DD |
:103AD00077278827992724EC39E040E050E00E94BE |
:103AE000743C609387037093880380938903909359 |
:103AF0008A0360938B0370938C0380938D03909360 |
:103B00008E0308951F9380913C078B3F98F08B3F65 |
:103B100019F4809146040EC08C3F19F4809148043A |
:103B200009C08D3F19F480914A0404C08E3F21F4EE |
:103B300080914C048093940380919403882319F41A |
:103B40001092940304C08F3F11F4809394038091EA |
:103B50003B078B3F98F08B3F19F4809146040EC0D1 |
:103B60008C3F19F48091480409C08D3F19F480916D |
:103B70004A0404C08E3F21F480914C048093930347 |
:103B800080919303882319F41092930305C084361F |
:103B900018F084E68093930380913D078B3F98F063 |
:103BA0008B3F19F4809146040EC08C3F19F480912C |
:103BB000480409C08D3F19F480914A0404C08E3F27 |
:103BC00021F480914C048093950380919503882380 |
:103BD00019F41092950305C0843618F084E680939A |
:103BE000950380913F078B3F98F08B3F19F48091AC |
:103BF00046040EC08C3F19F48091480409C08D3FE3 |
:103C000019F480914A0404C08E3F21F480914C0441 |
:103C10008093960380919603882319F4109296035B |
:103C200004C08F3F11F480939603809146078B3F29 |
:103C300098F08B3F19F4809146040EC08C3F19F424 |
:103C40008091480409C08D3F19F480914A0404C052 |
:103C50008E3F21F480914C048093970380919703C9 |
:103C6000882319F41092970304C08F3F11F48093B6 |
:103C70009703809147078B3F98F08B3F19F4809111 |
:103C800046040EC08C3F19F48091480409C08D3F52 |
:103C900019F480914A0404C08E3F21F480914C04B1 |
:103CA00080939803809198038B3010F48AE002C0CF |
:103CB0008F3F11F480939803809148078B3F98F0D1 |
:103CC0008B3F19F4809146040EC08C3F19F480910B |
:103CD000480409C08D3F19F480914A0404C08E3F06 |
:103CE00021F480914C048093990380919903882357 |
:103CF00019F41092990304C08F3F11F48093990333 |
:103D000080914D078B3F98F08B3F19F480914604CA |
:103D10000EC08C3F19F48091480409C08D3F19F4FE |
:103D200080914A0404C08E3F21F480914C0480931A |
:103D30009B0380919B03882319F410929B0304C07A |
:103D40008F3F11F480939B0380914E078B3F98F037 |
:103D50008B3F19F4809146040EC08C3F19F480917A |
:103D6000480409C08D3F19F480914A0404C08E3F75 |
:103D700021F480914C04809364048091640488232E |
:103D800019F41092640404C08F3F11F4809364040A |
:103D900080914F078B3F98F08B3F19F48091460438 |
:103DA0000EC08C3F19F48091480409C08D3F19F46E |
:103DB00080914A0404C08E3F21F480914C0480938A |
:103DC000650480916504882319F41092650404C089 |
:103DD0008F3F11F480936504809150078B3F98F0DA |
:103DE0008B3F19F4809146040EC08C3F19F48091EA |
:103DF000480409C08D3F19F480914A0404C08E3FE5 |
:103E000021F480914C048093660480916604882399 |
:103E100019F41092660404C08F3F11F48093660475 |
:103E2000809151078B3F98F08B3F19F480914604A5 |
:103E30000EC08C3F19F48091480409C08D3F19F4DD |
:103E400080914A0404C08E3F21F480914C048093F9 |
:103E5000670480916704882319F41092670404C0F2 |
:103E60008F3F11F480936704809161078B3F98F036 |
:103E70008B3F19F4809146040EC08C3F19F4809159 |
:103E8000480409C08D3F19F480914A0404C08E3F54 |
:103E900021F480914C048093680480916804882305 |
:103EA00019F41092680404C08F3F11F480936804E1 |
:103EB000809162078B3F98F08B3F19F48091460404 |
:103EC0000EC08C3F19F48091480409C08D3F19F44D |
:103ED00080914A0404C08E3F21F480914C04809369 |
:103EE000690480916904882319F41092690404C05C |
:103EF0008F3F11F480936904809163078B3F98F0A2 |
:103F00008B3F19F4809146040EC08C3F19F48091C8 |
:103F1000480409C08D3F19F480914A0404C08E3FC3 |
:103F200021F480914C0480936A0480916A04882370 |
:103F300019F410926A0404C08F3F11F480936A044C |
:103F4000809164078B3F98F08B3F19F48091460471 |
:103F50000EC08C3F19F48091480409C08D3F19F4BC |
:103F600080914A0404C08E3F21F480914C048093D8 |
:103F70006B0480916B04882319F410926B0404C0C5 |
:103F80008F3F11F480936B04809152078B3F98F020 |
:103F90008B3F19F4809146040EC08C3F19F4809138 |
:103FA000480409C08D3F19F480914A0404C08E3F33 |
:103FB00021F480914C0480939C0380919C0388237E |
:103FC00019F410929C0304C08F3F11F480939C035A |
:103FD000809157078B3F98F08B3F19F480914604EE |
:103FE0000EC08C3F19F48091480409C08D3F19F42C |
:103FF00080914A0404C08E3F21F480914C04809348 |
:104000009D0380919D03882319F410929D0304C0A1 |
:104010008F3F11F480939D0380915A078B3F98F056 |
:104020008B3F19F4809146040EC08C3F19F48091A7 |
:10403000480409C08D3F19F480914A0404C08E3FA2 |
:1040400021F480914C0480936C0480916C0488234B |
:1040500019F410926C0404C08F3F11F480936C0427 |
:1040600080915B078B3F98F08B3F19F48091460459 |
:104070000EC08C3F19F48091480409C08D3F19F49B |
:1040800080914A0404C08E3F21F480914C048093B7 |
:104090006D0480916D04882319F410926D0404C09E |
:1040A0008F3F11F480936D04809160078B3F98F0EF |
:1040B0008B3F19F4809146040EC08C3F19F4809117 |
:1040C000480409C08D3F19F480914A0404C08E3F12 |
:1040D00021F480914C0480939E0380919E03882359 |
:1040E00019F410929E0304C08F3F11F480939E0335 |
:1040F00010919B03612F772767FD7095872F972F6E |
:104100000E94B23B17FF06C020E030E040E853E4D5 |
:104110000E940D3B27E137EB41ED58E30E942C3C18 |
:1041200060938F0370939003809391039093920315 |
:104130008091440780939F07809143078093830772 |
:104140001F91089580915504882301F510928007EE |
:1041500010927B071092980710929A078091AE03F5 |
:10416000882311F080937B078091AF03882311F09F |
:10417000809380078091B003882311F080939A0781 |
:104180008091B103882311F08093980780917B0779 |
:1041900099279093C3068093C20680918007992740 |
:1041A0009093C5068093C40680919A0799279093AF |
:1041B000C7068093C6068091980799279093C906F1 |
:1041C0008093C8061092E8031092E9030E948215BA |
:1041D00008951092FA031092F9031092FC031092C2 |
:1041E000FB0380E090E0A0E0B0E08093FD039093BB |
:1041F000FE03A093FF03B09300041092F00310920B |
:10420000EF031092F2031092F1031092F403109254 |
:10421000F30310926C0410926D040E94351C84E626 |
:1042200090E00E94010E0E94351C8091390780FFAA |
:1042300010C080910E0390910F03875B934038F478 |
:1042400080910E0390910F038E5E924010F40E94B5 |
:10425000AB104091C5035091C6035093F0034093B7 |
:10426000EF032091C7033091C8033093F2032093EA |
:10427000F1038091C9039091CA039093F403809352 |
:10428000F3033093F6032093F5035093F803409320 |
:10429000F70344E050E0DA010E94403D802D853074 |
:1042A00038F18091A7079091A80797FF03C09095D8 |
:1042B00081959F4F6CE070E00E94B33C7093FC03CB |
:1042C0006093FB0380919D0790919E0797FF03C029 |
:1042D000909581959F4F6CE070E00E94B33C709385 |
:1042E000FA036093F9036091ED067091EE0639C010 |
:1042F000DA010E94403D802D4F5F5F4FDA010E943E |
:10430000403D202D9927982F8827820F911D90934B |
:10431000FA038093F9034F5F5F4FDA010E94403D3B |
:10432000802D4F5F5F4FDA010E94403D202D99277D |
:10433000982F8827820F911D9093FC038093FB0395 |
:104340004F5F5F4FDA010E94403D602D4F5F5F4F2E |
:10435000DA010E94403D202D7727762F6627620FD5 |
:10436000711D882777FD8095982F0E94B23B60933E |
:10437000FD037093FE038093FF039093000410925B |
:10438000210410922204109223041092240410920B |
:1043900025041092260410922704109228041092EB |
:1043A000290410922A0410922B0410922C041092CB |
:1043B0002D0410922E0410922F04109230041092AB |
:1043C000310410923204109233041092340410928B |
:1043D00082071092810710927A0710927907109243 |
:1043E000A1071092A00780910A0390910B03A0915E |
:1043F0000C03B0910D039093F0068093EF0610929A |
:10440000D8031092D7031092390410923A041092F4 |
:104410003B0410923C0480913D0490913E049093A3 |
:10442000400480933F040E94033782E390E090931E |
:10443000C1038093C00360915C0777278827992781 |
:1044400024EC39E040E050E00E94743C6093870324 |
:10445000709388038093890390938A0360915D072A |
:104460007727882799270E94743C60938B03709369 |
:104470008C0380938D0390938E031092A00310926F |
:104480009F0308951F93182F0EC080915504882311 |
:1044900061F484E690E09093C1038093C0038AEFB7 |
:1044A00090E00E94170E115080F71F91089581E04F |
:1044B0008093310752E05093320743E04093330733 |
:1044C00074E07093340765E06093350786E080936D |
:1044D000360787E08093370798E09093380780ECA1 |
:1044E000809339078EE180933A078BEF80933C07E6 |
:1044F0003AE030933D0722E320933B0720933F07A8 |
:1045000050933E0740934007109241079093420713 |
:104510008FE0809343078AEF809344078AE180937A |
:10452000450780E88093460788EC809347078FEA29 |
:10453000809348078EE58093490783E280934A077A |
:1045400084E180934B0710924C0730934D0780E530 |
:1045500080934E0710924F07109250071092510708 |
:10456000109261071092620710926307109264071D |
:1045700094E69093520788E280935307109266075F |
:104580002093540786E9809355076093560720933C |
:1045900057078AE5809358072093590710926507BB |
:1045A00090935A0730935B0790935C0790935D0755 |
:1045B00090935E0770935F0720936007ABE6B7E0C8 |
:1045C000ECE6F3E08CE001900D928150E1F7089564 |
:1045D00081E08093310792E09093320783E08093EB |
:1045E000330744E04093340755E05093350786E0A5 |
:1045F0008093360787E08093370788E080933807F9 |
:1046000080E4809339078EE180933A078BEF8093A3 |
:104610003C073AE030933D0722E320933B07209389 |
:104620003F0790933E074093400710924107309315 |
:1046300042078FE0809343078AEF809344078AE123 |
:104640008093450780E8809346078FEA8093470769 |
:10465000809348078EE58093490783E280934A0759 |
:1046600084E180934B0710924C0780E280934D07C2 |
:1046700080E580934E0710924F07109250071092DA |
:10468000510710926107109262071092630710920F |
:10469000640794E69093520788E280935307109240 |
:1046A00066072093540786E9809355075093560771 |
:1046B000209357078AE58093580720935907109253 |
:1046C000650790935A0730935B0790935C0790932C |
:1046D0005D0790935E0740935F078BE480936007CC |
:1046E000ABE6B7E0E6E7F3E08CE001900D92815095 |
:1046F000E1F7089581E08093310782E080933207EB |
:1047000083E08093330734E03093340765E06093AF |
:10471000350786E08093360787E08093370798E077 |
:104720009093380780E4809339078EE180933A07AD |
:104730008BEF80933C075AE050933D0722E3209390 |
:104740003B0720933F0730933E07309340079093F9 |
:1047500041078EE0809342078FE0809343078AEF02 |
:10476000809344078AE18093450790E89093460739 |
:1047700088E78093470746E9409348078EE5809392 |
:10478000490783E280934A0784E180934B071092A4 |
:104790004C0780E280934D0790934E0710924F078D |
:1047A0001092500710925107109261071092620701 |
:1047B000109263071092640794E69093520788E280 |
:1047C0008093530710926607209354074093550730 |
:1047D00060935607209357078AE5809358072093E4 |
:1047E00059071092650790935A0750935B0790936F |
:1047F0005C0790935D0720935E0730935F0790936B |
:104800006007ABE6B7E0EEE7F3E08CE001900D92D5 |
:104810008150E1F70895A6E3B0E0E1E1F4E20C9401 |
:10482000033D0E940517299AE0913307FF27EE0FF9 |
:10483000FF1FEB5FF84F0190F081E02DE858FF4F2C |
:1048400080919F0799274497E817F9070CF4CF0147 |
:104850009A83898397FF02C01A82198280914E043D |
:10486000843608F05DC080910301882399F480911B |
:104870000403909105038F5F9F4F61F488E99AE3E9 |
:104880009093C1038093C00380E09CE09093050364 |
:10489000809304038091930490919404009731F0E5 |
:1048A0000197909394048093930404C0109255044C |
:1048B00010924404809100018A3011F4289A01C0BA |
:1048C000289880918E0490918F04815D974028F103 |
:1048D00080914A07482F55275A83498381E0809366 |
:1048E0004404E0913107FF27EE0FFF1FEB5FF84F05 |
:1048F00011821082E0913207FF27EE0FFF1FEB5F5E |
:10490000F84F11821082E0913407FF27EE0FFF1F4E |
:10491000EB5FF84F118210824FC2109255044CC2C7 |
:1049200080914E048D3808F447C21092440480915F |
:104930004B0722E3829FC00111249093940480933B |
:10494000930489819A8189976CF080918E0490916B |
:104950008F04AFEF8F3F9A0781F1019690938F04F8 |
:1049600080938E0480918E0490918F04883C9105F1 |
:1049700020F0E981FA81B89704F51092AD04109205 |
:10498000AE041092AF041092B0041092A9041092D9 |
:10499000AA041092AB041092AC041092310410924D |
:1049A00032041092330410923404109235041092A1 |
:1049B0003604109237041092380429813A81293C38 |
:1049C00031050CF459C180915504882309F0F4C1D4 |
:1049D00080913407E82FFF27EE0FFF1FEB5FF84FA2 |
:1049E000808191818C3491050CF4BCC0809192043B |
:1049F0008F5F80939204893C08F4DEC1299810925D |
:104A000055041092920410928F0410928E0480919B |
:104A10003107282F3327F901EE0FFF1FEB5FF84F07 |
:104A200080819181873491059CF4E0913207FF27C2 |
:104A3000EE0FFF1FEB5FF84F0190F081E02DF7FFC5 |
:104A400003C0F095E195FF4FE734F1050CF46CC01D |
:104A500080913207682F7727DB01AA0FBB1FAB5F5E |
:104A6000B84F8D919C911197873491053CF0F901D5 |
:104A7000EE0FFF1FEB5FF84F808191818D919C912C |
:104A80008734910564F0F901EE0FFF1FEB5FF84FDB |
:104A9000808191818734910514F042E001C041E0AA |
:104AA000FB01EE0FFF1FEB5FF84F80819181863491 |
:104AB00091055CF4F901EE0FFF1FEB5FF84F808169 |
:104AC0009181873491050CF043E0FB01EE0FFF1F4D |
:104AD000EB5FF84F808191818A5B9F4F5CF4F90115 |
:104AE000EE0FFF1FEB5FF84F8081918187349105B6 |
:104AF0000CF044E0660F771F6B5F784FDB018D9100 |
:104B00009C918A5B9F4F5CF4220F331F2B5F384FC1 |
:104B1000F90180819181863491050CF445E0A2E091 |
:104B2000B0E0042E0E944D3D8091390780FF10C0F7 |
:104B300080910E0390910F03875B934038F480912E |
:104B40000E0390910F038E5E924010F40E94AB1002 |
:104B50000E94E20346E461E377E00E940B040E94B6 |
:104B6000E92082C080819181855B9F4F0CF081C0DC |
:104B7000809192048F5F80939204893C08F41CC159 |
:104B800029988FEF04E010E0D801082E0E944D3DD7 |
:104B9000109255041092920410928F0410928E0479 |
:104BA0000E94E9208091F9039091FA0360E071E09E |
:104BB0000E94B33CD801062E0E944D3D8091F9031E |
:104BC0009091FA0360E071E00E94B33C0F5F1F4FC9 |
:104BD000D801082E0E944D3D8091FB039091FC036B |
:104BE00060E071E00E94B33C0F5F1F4FD801062EBA |
:104BF0000E944D3D8091FB039091FC0360E071E0C9 |
:104C00000E94B33C0F5F1F4FD801082E0E944D3DFC |
:104C10006091FD037091FE038091FF039091000469 |
:104C20000E94953BDC01CB0160E071E00E94B33C47 |
:104C30000F5F1F4FD801062E0E944D3D6091FD036E |
:104C40007091FE038091FF03909100040E94953BB8 |
:104C5000DC01CB0160E071E00E94B33C0F5F1F4FAD |
:104C6000D801082E0E944D3D0E94E2030E9442227C |
:104C7000A3C010929204A0C0E981FA81B3970CF00E |
:104C80009BC080913407482F5527FA01EE0FFF1F74 |
:104C9000EB5FF84F80819181855B9F4F0CF06DC079 |
:104CA000809191048F5F80939104893C08F467C0E0 |
:104CB00088EC8093910481E090E090938F0480933E |
:104CC0008E0481E0809355041092A5041092A604EE |
:104CD0001092A7041092A80410923104109232048A |
:104CE000109233041092340410923504109236045A |
:104CF000109237041092380410922104109222046A |
:104D000010922304109224041092290410922A0471 |
:104D100010922B0410922C048091010490910204B3 |
:104D2000A0910304B0910404809325049093260479 |
:104D3000A0932704B09328048091090490910A0459 |
:104D4000A0910B04B0910C0480932D0490932E0439 |
:104D5000A0932F04B09330041092AD041092AE04CF |
:104D60001092AF041092B0041092A9041092AA04F9 |
:104D70001092AB041092AC0402C010929104440F44 |
:104D8000551F4B5F584FDA018D919C918C349105E2 |
:104D90008CF0809190048F5F80939004893C60F048 |
:104DA0001092550488EC8093900410928F04109216 |
:104DB0008E0402C01092900480916B038150809306 |
:104DC0006B0380916B038F3F29F08091440488230B |
:104DD00009F4FCC20E94821D80913107A82EBB24D9 |
:104DE000D501AA0FBB1FFD01EB5FF84F0190F081C9 |
:104DF000E02DFCABEBAB80914007E82EFF24A55ED5 |
:104E0000B84F0D90BC91A02DBAA7A9A780914107DA |
:104E1000482E552480913207C82EDD24C601880F04 |
:104E2000991FDC01AB5FB84F0D90BC91A02DB8A7C6 |
:104E3000AFA3855E984FFC0120803180E09134075C |
:104E4000AE2FBB27AA0FBB1FAB5FB84F0D90BC9115 |
:104E5000A02DBCA3ABA310919803612F772767FD0A |
:104E60007095872F972F0E94B23B17FF06C020E056 |
:104E700030E040E853E40E940D3B20E030E040E2A7 |
:104E800051E40E940D3B20E030E040E85BE30E94EB |
:104E90002C3C3B014C016093A2077093A3078093C5 |
:104EA000A4079093A50710919903612F772767FDB9 |
:104EB0007095872F972F0E94B23B17FF06C020E006 |
:104EC00030E040E853E40E940D3B20E030EE4BE23E |
:104ED00057E40E944F3B609394077093950780932B |
:104EE0009607909397072091B303222311F40C9413 |
:104EF0002E368AE090E09093C1038093C003E22FA6 |
:104F0000FF27E2FF09C080916404482F5527440F12 |
:104F1000551F440F551F10C0E3FD03C040E050E093 |
:104F20000BC0809164049927880F991F880F991FDF |
:104F300044275527481B590B20916E0430916F046C |
:104F4000C901F3E0880F991FFA95E1F7821B930BD3 |
:104F5000840F951F68E070E00E94B33C8B01709352 |
:104F60006F0460936E04E4FF09C080916404482FCD |
:104F70005527440F551F440F551F0FC0E5FD02C0B4 |
:104F80000C944336809164049927880F991F880FE9 |
:104F9000991F44275527481B590B209170043091C5 |
:104FA0007104C90163E0880F991F6A95E1F7821BBC |
:104FB000930B840F951F68E070E00E94B33C7EABBA |
:104FC0006DAB70937104609370048091B203282FCD |
:104FD000332723FF03C082E390E004C022FF07C011 |
:104FE0008EEC9FEF909373048093720404C0109230 |
:104FF00073041092720421FF09C080919F03909165 |
:10500000A00301969093A00380939F0324FF09C0FF |
:1050100080919F039091A00301979093A0038093A8 |
:105020009F034BA95CA94E9D90014F9D300D5E9D45 |
:10503000300D1124A9A5BAA5A49DC001A59D900D70 |
:10504000B49D900D1124280F391FC80168E070E04D |
:105050000E94B33C260F371F3CAB2BAB3093500460 |
:1050600020934F04EFA1F8A5EE9D8001EF9D100D58 |
:10507000FE9D100D1124249CC001259C900D349C94 |
:10508000900D1124080F191F8DA99EA968E070E0EA |
:105090000E94B33C060F171F109352040093510453 |
:1050A00080917204909173042BA13CA1821B930BFD |
:1050B00090935404809353048091390782FF0CC06D |
:1050C00080E090E0A0E0B0E0809394079093950793 |
:1050D000A0939607B093970720E030E040E050E0BF |
:1050E000C401B3010E94BC3B882364F480E090E0DB |
:1050F000A0E0B0E08093A2079093A307A093A40739 |
:10510000B093A50720E030E040E050E060919407C4 |
:105110007091950780919607909197070E94BC3BEC |
:10512000882364F480E090E0A0E0B0E080939407EE |
:1051300090939507A0939607B09397078091650782 |
:10514000682F772784E0882E912C8622972262FD93 |
:105150007FC063FD7DC02091010430910204409125 |
:1051600003045091040421368AEE380780E0480792 |
:1051700080E05807E4F0C701B3E0880F991FBA95A3 |
:10518000E1F7EBA9FCA9E81BF90BF0935004E093BD |
:105190004F042158384341405040E4F0C701A4E097 |
:1051A000880F991FAA95E1F7E81BF90B0FC0205A49 |
:1051B00035414F4F5F4F74F4C701E3E0880F991FEB |
:1051C000EA95E1F7EBA9FCA9E80FF91FF093500469 |
:1051D000E0934F042091090430910A0440910B049C |
:1051E00050910C042136FAEE3F07F0E04F07F0E053 |
:1051F0005F07F4F0C70173E0880F991F7A95E1F714 |
:10520000D801A81BB90BB0935204A09351042158A4 |
:10521000384341405040E4F094E0EE0CFF1C9A9576 |
:10522000E1F7AE19BF09B0935204A093510410C026 |
:10523000205A35414F4F5F4F5CF483E0EE0CFF1C6A |
:105240008A95E1F70E0D1F1D10935204009351042F |
:10525000F601EE0FFF1FEB5FF84F20813181809147 |
:105260005807482F55274217530734F4892821F04F |
:1052700081E08093600411C0F601EE0FFF1FEB5F29 |
:10528000F84F2081318180915907DA01A81BB109BB |
:105290002A173B0714F410926004F601EE0FFF1F6B |
:1052A000EB5FF84F80819181AA27BB27A41BB50B28 |
:1052B0008A179B0734F463FF04C081E08093610484 |
:1052C00017C080916104882399F0CC0CDD1CE5E0C7 |
:1052D000F7E0CE0EDF1EF601208131818091590763 |
:1052E0009927841B950B8217930714F4109261047D |
:1052F000F501EE0FFF1FEB5FF84F8081918148179A |
:10530000590734F460FF04C081E08093630415C042 |
:1053100080916304882389F0F501EE0FFF1FEB5F96 |
:10532000F84F2081318180915907FA01E81BF1097A |
:105330002E173F0714F410926304F501EE0FFF1FC0 |
:10534000EB5FF84F808191818A179B0734F461FFEE |
:1053500004C081E08093620417C0809162048823B6 |
:1053600099F0AA0CBB1C25E037E0A20EB31ED501B4 |
:105370002D913C91809159079927841B950B821799 |
:10538000930714F41092620480916004882321F43E |
:1053900080916104882321F081E080935F0402C042 |
:1053A00010925F0480916304882321F48091620449 |
:1053B000882351F081E080935E0410925F04109284 |
:1053C0006004109261040EC010925E0480915F042C |
:1053D000882311F40C94473684E690E09093C1033F |
:1053E0008093C003809157079927E981FA818E172E |
:1053F0009F0714F49A83898380914404882341F1A0 |
:1054000010925404109253041092500410924F04BE |
:1054100010925204109251048DEC9CECACECBDE364 |
:105420008093A2079093A307A093A407B093A50726 |
:105430008AE097EDA3EABBE38093940790939507E6 |
:10544000A0939607B093970710925F0410925E04A2 |
:10545000209101043091020440910304509104040E |
:105460002FA738AB49AB5AAB80918C0790918D0731 |
:10547000A0918E07B0918F07820F931FA41FB51FB5 |
:1054800080938C0790938D07A0938E07B0938F071E |
:105490008091090490910A04A0910B04B0910C042E |
:1054A0008BA79CA7ADA7BEA780919007909191076D |
:1054B000A0919207B09193072BA53CA54DA55EA5A1 |
:1054C000820F931FA41FB51F80939007909391079D |
:1054D000A0939207B09393078091050490910604DE |
:1054E000A0910704B09108048F8F98A3A9A3BAA331 |
:1054F0008091840790918507A0918607B0918707D6 |
:105500002F8D38A149A15AA1820F931FA41FB51F47 |
:105510008093840790938507A0938607B0938707AD |
:1055200080910D0490910E04A0910F04B09110048D |
:105530008B8F9C8FAD8FBE8F80917C0790917D0764 |
:10554000A0917E07B0917F072B8D3C8D4D8D5E8D98 |
:10555000820F931FA41FB51F80937C0790937D0734 |
:10556000A0937E07B0937F0790905E04992011F07E |
:105570000C949F3680915F04882311F00C949F3621 |
:105580000C944F3680EEA8168FEFB8068FEFC80642 |
:105590008FEFD80644F480EEA82E8FEFB82E8FEF51 |
:1055A000C82E8FEFD82E213231054105510534F038 |
:1055B00010E2E12EF12C012D112D0DC0205E3F4F88 |
:1055C0004F4F5F4F44F4B0EEEB2EBFEFFB2EBFEF1B |
:1055D0000B2FBFEF1B2F8091210490912204A091EB |
:1055E0002304B09124048A199B09AC09BD09809356 |
:1055F000210490932204A0932304B0932404809167 |
:10560000290490912A04A0912B04B0912C048E19A6 |
:105610009F09A00BB10B8093290490932A04A093B7 |
:105620002B04B0932C048091D9039091DA038F3F1F |
:10563000910509F008F4ADC4992009F02EC48091B9 |
:105640005F04882309F029C460918C0770918D074D |
:1056500080918E0790918F0720E031E040E050E08C |
:105660000E94E83C19012A0120938C0730938D0792 |
:1056700040938E0750938F07609190077091910728 |
:10568000809192079091930720E031E040E050E054 |
:105690000E94E83C2F8B388F498F5A8F20939007B8 |
:1056A000309391074093920750939307E0904507FA |
:1056B000FF240027112720911104309112044091FA |
:1056C000130450911404C801B7010E94743C20E0F7 |
:1056D00031E040E050E00E94E83C39014A0120936B |
:1056E0001104309312044093130450931404209136 |
:1056F0001504309116044091170450911804C80104 |
:10570000B7010E94743C20E031E040E050E00E948C |
:10571000E83C59016A012093150430931604409324 |
:105720001704509318046091190470911A04809121 |
:105730001B0490911C0420E031E040E050E00E9406 |
:10574000E83C2093190430931A0440931B045093AF |
:105750001C04C201B1016619770988099909E09012 |
:105760005E07FF2400271127A80197010E94E83C4B |
:1057700020938604309387044093880450938904CF |
:10578000CA01B90120E031E040E050E00E94E83C6D |
:105790003E8B2D8B30935D0420935C046F89788D54 |
:1057A000898D9A8D6A197B098C099D09A801970139 |
:1057B0000E94E83C79018A01CA01B90120E031E088 |
:1057C00040E050E00E94E83C3CAB2BAB30935B04E4 |
:1057D00020935A0460918407709185078091860711 |
:1057E0009091870720E031E040E050E00E94E83CE3 |
:1057F000209384073093850740938607509387074B |
:1058000060917C0770917D0780917E0790917F0762 |
:1058100020E031E040E050E00E94E83C20937C072B |
:1058200030937D0740937E0750937F072F8D38A1DB |
:1058300049A15AA18FA598A9A9A9BAA9281B390BD2 |
:105840004A0B5B0B298B3A8B4B8B5C8B2093A1040F |
:105850003093A2044093A3045093A4042B8D3C8D59 |
:105860004D8D5E8D8BA59CA5ADA5BEA5281B390BC6 |
:105870004A0B5B0B2D873E874F87588B20939D04E7 |
:1058800030939E0440939F045093A00429893A8941 |
:105890004B895C892093990430939A0440939B042C |
:1058A00050939C048D859E85AF85B889809395041F |
:1058B00090939604A0939704B09398048091250444 |
:1058C00090912604A0912704B0912804821B930B89 |
:1058D000A40BB50B8093250490932604A093270472 |
:1058E000B093280480912D0490912E04A0912F0450 |
:1058F000B09130042D853E854F855889821B930BCE |
:10590000A40BB50B80932D0490932E04A0932F0429 |
:10591000B0933004C401B3012AE130E040E050E02C |
:105920000E94E83C3093CD062093CC06C601B50119 |
:105930002AE130E040E050E00E94E83C3093CF069E |
:105940002093CE0649895A895093D1064093D006B8 |
:105950008D859E859093D3068093D206C201B101B6 |
:105960002AE130E040E050E00E94E83C3093D50668 |
:105970002093D4066F89788D898D9A8D2AE130E045 |
:1059800040E050E00E94E83C3093D7062093D606D2 |
:10599000F092E506E092E4068BA99CA9880F991F76 |
:1059A0002BA93CA9F3E0220F331FFA95E1F7820FF0 |
:1059B000931F9093E7068093E60681E090E0909332 |
:1059C0008104809380048091780490917904A0915F |
:1059D0007A04B0917B0482199309A409B509815E08 |
:1059E000914BAF4FBF4F8F539C49A040B04008F040 |
:1059F000C5C029893A894B895C89213080E1380703 |
:105A000080E0480780E058070CF450C080917F0484 |
:105A1000882309F447C0DA01C901ECE0B595A795E0 |
:105A200097958795EA95D1F7019690938104809395 |
:105A30008004DA01C90173E0B595A795979587951C |
:105A40007A95D1F78093860490938704A093880475 |
:105A5000B093890489589341A040B04064F088E82D |
:105A600093E1A0E0B0E08093860490938704A09334 |
:105A70008804B093890460918604709187048091B2 |
:105A800088049091890420E031E040E050E00E94D9 |
:105A9000E83C8D899E89820F931F90935D048093CB |
:105AA0005C0469C081E080937F0465C010927F042C |
:105AB00029893A894B895C89203080EF38078FEF3C |
:105AC00048078FEF58070CF056C080917E0488235A |
:105AD00009F44DC0DA01C901B095A0959095819562 |
:105AE0009F4FAF4FBF4F6CE0B595A79597958795A2 |
:105AF0006A95D1F701969093810480938004CA013E |
:105B0000B90128E030E040E050E00E94E83C2093FA |
:105B1000860430938704409388045093890428575F |
:105B20003C4E4F4F5F4F64F488E79CEEAFEFBFEF02 |
:105B30008093860490938704A0938804B09389048B |
:105B40006091860470918704809188049091890403 |
:105B500020E031E040E050E00E94E83CAD89BE89A1 |
:105B6000A20FB31FB0935D04A0935C040BC081E04F |
:105B700080937E0407C010927E0404C010928104BA |
:105B80001092800480915F07082F11278091800474 |
:105B9000909181040817190724F41093810400934D |
:105BA000800429893A894B895C89215034404040DE |
:105BB00050405CF08091EF039091F00320918004BD |
:105BC00030918104820F931F13C029893A894B8930 |
:105BD0005C8920503C4F4F4F5F4F74F48091EF032E |
:105BE0009091F0032091800430918104821B930BEB |
:105BF0009093F0038093EF0381E090E09093810411 |
:105C00008093800410928204109283041092840482 |
:105C1000109285048091740490917504A09176048B |
:105C2000B09177042F89388D498D5A8D821B930B43 |
:105C3000A40BB50B815E914BAF4FBF4F8F539C4967 |
:105C4000A040B04008F0C6C08D859E85AF85B8895C |
:105C500081509041A040B0400CF454C080917D042C |
:105C6000882309F44BC08D859E85AF85B8893CE0BB |
:105C7000B595A795979587953A95D1F70196909305 |
:105C80008104809380048D859E85AF85B88923E04B |
:105C9000B595A795979587952A95D1F78093820416 |
:105CA00090938304A0938404B0938504895893410E |
:105CB000A040B04064F088E893E1A0E0B0E08093B9 |
:105CC000820490938304A0938404B093850460912C |
:105CD000820470918304809184049091850420E073 |
:105CE00031E040E050E00E94E83C8BA99CA9820F83 |
:105CF000931F90935B0480935A0469C081E0809362 |
:105D00007D0465C010927D042D853E854F855889A0 |
:105D1000203080EF38078FEF48078FEF58070CF0DF |
:105D200056C080917C04882309F44DC0DA01C90172 |
:105D3000B095A095909581959F4FAF4FBF4FFCE0D8 |
:105D4000B595A79597958795FA95D1F70196909374 |
:105D5000810480938004CA01B90128E030E040E06A |
:105D600050E00E94E83C20938204309383044093E7 |
:105D700084045093850428573C4E4F4F5F4F64F482 |
:105D800088E79CEEAFEFBFEF80938204909383048B |
:105D9000A0938404B093850460918204709183047D |
:105DA000809184049091850420E031E040E050E04F |
:105DB0000E94E83CABA9BCA9A20FB31FB0935B043F |
:105DC000A0935A040BC081E080937C0407C010921A |
:105DD0007C0404C01092810410928004809182049B |
:105DE000909183049093E1068093E0068091800473 |
:105DF000909181040817190724F4109381040093EB |
:105E000080042D853E854F8558892150344040407F |
:105E100050405CF08091F1039091F2032091800456 |
:105E200030918104820F931F13C02D853E854F85CD |
:105E3000588920503C4F4F4F5F4F74F48091F103CD |
:105E40009091F2032091800430918104821B930B86 |
:105E50009093F2038093F1038091EF039091F0030C |
:105E60009093D9068093D8068091F1039091F20324 |
:105E70002091F5033091F603821B930B9C01E3E024 |
:105E8000220F331FEA95E1F7880F991F820F931FA6 |
:105E90009093DB068093DA0608C010925B041092A0 |
:105EA0005A0410925D0410925C0420E030E040E05F |
:105EB00050E06091940770919507809196079091BA |
:105EC00097070E94BC3B882341F410925B04109218 |
:105ED0005A0410925D0410925C0480918C0790919A |
:105EE0008D07A0918E07B0918F07809378049093CF |
:105EF0007904A0937A04B0937B04809190079091E9 |
:105F00009107A0919207B0919307809374049093A6 |
:105F10007504A0937604B093770410921104109244 |
:105F2000120410921304109214041092150410928B |
:105F3000160410921704109218041092190410926B |
:105F40001A0410921B0410921C0410928C071092D9 |
:105F50008D0710928E0710928F0710929007109263 |
:105F60009107109292071092930710928407109253 |
:105F70008507109286071092870710927C0710926F |
:105F80007D0710927E0710927F071092DA0310921D |
:105F9000D9038090530490905404940197FE04C058 |
:105FA0002227332728193909253131053CF0809102 |
:105FB000390784FD03C081E080938A04E0904207A2 |
:105FC0005901CC24B7FCC094DC2CB401882777FDA0 |
:105FD0008095982F2E2D3327442755270E94743CF7 |
:105FE0009B01AC01C601B5010E94743C20E032E087 |
:105FF00040E050E00E94E83C89019A01FF24E89CBF |
:10600000C001E99C900DF89C900D112464E070E0B3 |
:106010000E94B33C600F711F882777FD8095982FF1 |
:106020006093A5047093A6048093A7049093A8049A |
:106030002091310430913204409133045091340462 |
:10604000261B370B480B590B209331043093320435 |
:106050004093330450933404213593EC390790E096 |
:10606000490790E059072CF080E593ECA0E0B0E000 |
:1060700009C0205B3C434F4F5F4F64F480EB9CE3CF |
:10608000AFEFBFEF8093310490933204A0933304B9 |
:10609000B09334048091390783FFA1C080914304F9 |
:1060A0008150809343048F3FD9F40E947B379093B3 |
:1060B0003E0480933D0420913F0430914004821BB4 |
:1060C000930B845E9D4F68E671E00E94B33C845B55 |
:1060D0009040909342048093410482E38093430470 |
:1060E0006091010470910204809103049091040472 |
:1060F00020E032E040E050E00E94E83C890137FFB8 |
:1061000003C0109501951F4F6091090470910A0416 |
:1061100080910B0490910C0420E032E040E050E0CC |
:106120000E94E83CB90137FF03C0709561957F4F2D |
:10613000601771070CF4B8016332710574F4809133 |
:106140008A04882351F080913D0490913E049093FD |
:10615000400480933F0410928A04209197033327D0 |
:10616000629FC001639F900D729F900D112460E4A7 |
:1061700070E00E94B33C261B370B121613064CF539 |
:106180008091410490914204FC012E9FC0012F9FF9 |
:10619000900D3E9F900D112460E270E00E94B33C90 |
:1061A000882777FD8095982F209131043091320413 |
:1061B0004091330450913404260F371F481F591F54 |
:1061C00020933104309332044093330450933404C9 |
:1061D00006C084E690E09093C1038093C003809151 |
:1061E0008B04815080938B048F3F09F079C088E144 |
:1061F00080938B04E0904507FF24002711276091CE |
:106200000104709102048091030490910404A80198 |
:1062100097010E94E83C3093AB062093AA06609158 |
:10622000090470910A0480910B0490910C04A80158 |
:1062300097010E94E83C3093AD062093AC06809114 |
:106240009D0790919E079093AF068093AE06809134 |
:10625000A7079091A8079093B1068093B00680910C |
:10626000A0079091A1079093B3068093B206809106 |
:106270005604909157049093B5068093B4066091AC |
:10628000390470913A0480913B0490913C0420E0E1 |
:1062900032E040E050E00E94E83C3093B7062093A3 |
:1062A000B60680913D0490913E049093BB06809386 |
:1062B000BA0680910803909109039093BD068093DC |
:1062C000BC0680914E0499279093BF068093BE062A |
:1062D00080918807909189079093CB068093CA0696 |
:1062E00080915E04C0908107D0908207882391F04E |
:1062F000B601882777FD8095982F0E94B23B2091A8 |
:10630000A2073091A3074091A4075091A5070E94CE |
:106310002C3C2DC060910104709102048091030413 |
:10632000909104040E94B23B20919407309195070C |
:1063300040919607509197070E942C3C7B018C015D |
:10634000B601882777FD8095982F0E94B23B209157 |
:10635000A2073091A3074091A4075091A5070E947E |
:106360002C3C9B01AC01C801B7010E940D3B0E946F |
:10637000953B709382076093810780915F04C09082 |
:106380007907D0907A07882391F0B601882777FDA6 |
:106390008095982F0E94B23B2091A2073091A307CD |
:1063A0004091A4075091A5070E942C3C2DC06091FC |
:1063B000090470910A0480910B0490910C040E94CE |
:1063C000B23B2091940730919507409196075091E8 |
:1063D00097070E942C3C7B018C01B601882777FD32 |
:1063E0008095982F0E94B23B2091A2073091A3077D |
:1063F0004091A4075091A5070E942C3C9B01AC0141 |
:10640000C801B7010E940D3B0E94953B70937A072B |
:1064100060937907209094073090950740909607F5 |
:10642000509097076091A0077091A107882777FD8A |
:106430008095982F0E94B23B2091A2073091A3072C |
:106440004091A4075091A5070E942C3C7B018C0130 |
:1064500060911D0470911E0480911F04909120048E |
:106460000E94B23BA20191010E942C3C20E030E04E |
:1064700040E05FE30E942C3C9B01AC01C801B701E6 |
:106480000E940D3B0E94953B8B017093A107609386 |
:10649000A007E0907907F0907A07F092E306E09287 |
:1064A000E2066091090470910A0480910B049091B6 |
:1064B0000C040E94B23BA20191010E942C3C69870E |
:1064C0007A878B879C870E94953B7093DD0660934B |
:1064D000DC0620915104309152043EA32DA3309349 |
:1064E000E9062093E806809181079091820738E0C1 |
:1064F000813093071CF080E098E005C08050984FF1 |
:1065000034F480E098EF909382078093810751E004 |
:10651000E51658E0F5061CF080E098E007C080E042 |
:10652000E81688EFF80634F480E098EF90937A0745 |
:106530008093790798E0013019071CF080E098E01B |
:1065400005C00050184F34F480E098EF9093A107F5 |
:106550008093A00780913907992780FFD9C0409187 |
:10656000940381FF0EC0423310F580915604909140 |
:10657000570444979093590480935804109245040B |
:1065800019C020919F033091A003240F311D8091E9 |
:106590003E079927FC012E9FC0012F9F900D3E9F23 |
:1065A000900D11244497909359048093580481E0EE |
:1065B0008093450480914404882321F0109259046B |
:1065C0001092580420915604309157044091580479 |
:1065D00050915904421753070CF09AC0809145041A |
:1065E000882309F495C0241B350B809195039927C6 |
:1065F000AC01249FC001259F900D349F900D112464 |
:1066000060E170E00E94B33C09811A81061B170B00 |
:106610002091D7033091D803809193039927DC010F |
:106620002A9FC0012B9F900D3A9F900D112468E086 |
:1066300070E00E94B33C061B170B60913904709107 |
:106640003A0480913B0490913C0420E032E040E029 |
:1066500050E00E94E83CCA01B9012091960333271B |
:10666000442755270E94743C20E230E040E050E08F |
:106670000E94E83CBFEF2E3C3B0714F42EEC3FEFAA |
:1066800080918C0490918D04AC0164E0440F551FFF |
:106690006A95E1F7481B590B2333310514F022E3C7 |
:1066A00030E0021B130BCA01800F911F60E170E004 |
:1066B0000E94B33C70938D0460938C0480913A07E0 |
:1066C0009927681779078CF4E981FA81E817F907A7 |
:1066D0002CF090938D0480938C0407C029813A811B |
:1066E00030938D0420938C040DC080918C04909184 |
:1066F0008D0449815A814817590724F450938D0419 |
:1067000040938C0480918C0490918D049A838983AA |
:10671000A981BA81B093B906A093B806E090A0070A |
:10672000F090A1070091A5041091A6042091A70460 |
:106730003091A80480919F07882E992454971CF4C7 |
:106740001C821B8229C089819A8162E070E00E94CC |
:10675000B33C9701201B310BCB01261737070CF4F4 |
:10676000C901709561957F4F681779070CF4BC01DA |
:10677000C401E981FA818E1B9F0B681779070CF41D |
:10678000CB0129813A81281939093C832B832817A9 |
:10679000390714F49C838B8360904F0470905004ED |
:1067A0008091B9049091BA04681A790A809181079E |
:1067B000909182078619970990938B0780938A0797 |
:1067C00020E030E040E050E0C201B1010E94BC3B5B |
:1067D0008823D1F16091AD047091AE048091AF0433 |
:1067E0009091B0040E94B23B5B016C016091010486 |
:1067F0007091020480910304909104040E94B23BC2 |
:10680000A20191010E942C3C7B018C01B3018827DD |
:1068100077FD8095982F0E94B23B9B01AC01C80187 |
:10682000B7010E940C3B9B01AC01C601B5010E945F |
:106830000D3B0E94953B6093AD047093AE04809332 |
:10684000AF049093B0041CC020918A0730918B074D |
:10685000442737FD4095542F8091AD049091AE04AC |
:10686000A091AF04B091B004820F931FA41FB51F75 |
:106870008093AD049093AE04A093AF04B093B004A2 |
:106880008091AD049091AE04A091AF04B091B0049A |
:10689000181619061A061B0624F40297A109B10955 |
:1068A00003C00296A11DB11D8093AD049093AE0468 |
:1068B000A093AF04B093B0048091AD049091AE0466 |
:1068C000A091AF04B091B00481383EE3930730E06B |
:1068D000A30730E0B3072CF080E89EE3A0E0B0E02F |
:1068E00009C08058914CAF4FBF4F64F480E891ECE1 |
:1068F000AFEFBFEF8093AD049093AE04A093AF04CD |
:10690000B093B00460918A0770918B0780918F03D8 |
:1069100090919003A0919103B09192038D839E83F7 |
:10692000AF83B887882777FD8095982F0E94B23B68 |
:106930007B018C016091AD047091AE048091AF0435 |
:106940009091B0040E94B23B9B01AC016D817E81AD |
:106950008F8198850E942C3C9B01AC01C801B70136 |
:106960000E940D3B0E94953B5B016C017CAB6BABC5 |
:1069700080919E03E82EFF24002711278B819C81A4 |
:1069800097FF03C0909581959F4F62E070E00E9451 |
:10699000B33C9B01A981BA812A0F3B1F442737FDD5 |
:1069A0004095542FC801B7010E94743C20E430E0A8 |
:1069B00040E050E00E94E83C3901EBA9FCA9E21755 |
:1069C000F3070CF49501AA24BB24A618B708A50167 |
:1069D000A216B3060CF4A90189819A812B813C810E |
:1069E000820F931F840F951F97FF03C020E030E0B4 |
:1069F00005C09401881599050CF49C0180918307CA |
:106A0000C82EDD24C601C216D3060CF4C90180933A |
:106A10007B0789819A81841B950B4B815C81840F54 |
:106A2000951F97FF03C020E030E005C09401881552 |
:106A300099050CF49C01C601C216D3060CF4C901D9 |
:106A4000809380078091BB049091BC04ADA1BEA14E |
:106A5000A81BB90BBCABABAB8091790790917A07BF |
:106A60008A1B9B0B909378078093770720E030E098 |
:106A700040E050E0C201B1010E94BC3B882371F1AB |
:106A80006091A9047091AA048091AB049091AC0428 |
:106A90000E94B23B7B018C01EBA9FCA9BF018827B6 |
:106AA00077FD8095982F0E94B23B9B01AC016985D0 |
:106AB0007A858B859C850E940C3B9B01AC01C801AB |
:106AC000B7010E940D3B0E94953B6093A90470930F |
:106AD000AA048093AB049093AC041CC02091770768 |
:106AE00030917807442737FD4095542F8091A904B1 |
:106AF0009091AA04A091AB04B091AC04820F931FB3 |
:106B0000A41FB51F8093A9049093AA04A093AB047B |
:106B1000B093AC048091A9049091AA04A091AB0415 |
:106B2000B091AC04181619061A061B0624F4029735 |
:106B3000A109B10903C00296A11DB11D8093A9044A |
:106B40009093AA04A093AB04B093AC048091A904E1 |
:106B50009091AA04A091AB04B091AC048138FEE3FB |
:106B60009F07F0E0AF07F0E0BF072CF080E89EE35E |
:106B7000A0E0B0E009C08058914CAF4FBF4F64F423 |
:106B800080E891ECAFEFBFEF8093A9049093AA0443 |
:106B9000A093AB04B093AC04609177077091780731 |
:106BA000882777FD8095982F0E94B23B7B018C014E |
:106BB0006091A9047091AA048091AB049091AC04F7 |
:106BC0000E94B23B9B01AC016D817E818F819885D3 |
:106BD0000E942C3C9B01AC01C801B7010E940D3BF7 |
:106BE0000E94953B9301661577050CF49B01C50146 |
:106BF000A216B3060CF4C90149815A81480F591FE6 |
:106C0000AB81BC814A1B5B0B57FF03C020E030E027 |
:106C100005C09401481559050CF49A01A601C21645 |
:106C2000D3060CF4A90140939A0729813A81281BC5 |
:106C3000390BEB81FC812E1B3F0B37FF03C040E07B |
:106C400050E005C0A401281539050CF4A901C601BE |
:106C5000C416D5060CF0D1C0CA01CFC020916E0475 |
:106C600030916F04C90113E0880F991F1A95E1F75D |
:106C7000821B930B68E070E00E94B33C8B01709321 |
:106C80006F0460936E0440E050E00C94CD27809137 |
:106C90005E04882311F40C94FC290C94F229E090F2 |
:106CA0004507FF24002711276FA578A989A99AA96C |
:106CB000A80197010E94E83C80919D0790919E0752 |
:106CC000AA2797FDA095BA2F281B390B4A0B5B0BFF |
:106CD000CA01B90120E130E040E050E00E94E83C08 |
:106CE00059016A016BA57CA58DA59EA5A8019701F8 |
:106CF0000E94E83C8091A7079091A807AA2797FDDA |
:106D0000A095BA2F281B390B4A0B5B0BCA01B9019E |
:106D100020E130E040E050E00E94E83C79018A0147 |
:106D2000F1E2AF16B104C104D10414F40C94C22AE8 |
:106D3000B0E2AB2EB12CC12CD12C0C94D32A1092E2 |
:106D40001104109212041092130410921404109261 |
:106D50001504109216041092170410921804109241 |
:106D60008C0710928D0710928E0710928F07109249 |
:106D70009007109291071092920710929307109229 |
:106D80008407109285071092860710928707109249 |
:106D90007C0710927D0710927E0710927F078091EA |
:106DA000210490912204A0912304B09124048093A3 |
:106DB000250490932604A0932704B093280480917F |
:106DC000290490912A04A0912B04B0912C04809363 |
:106DD0002D0490932E04A0932F04B09330041092AE |
:106DE000DA031092D90310925D0410925C041092A1 |
:106DF0005B0410925A040C94132B80939807E2E1E1 |
:106E0000CA5C0C941F3D8091BD049091BE04A0917A |
:106E1000BF04B091C0048093C5049093C604A093AE |
:106E2000C704B093C8048091C1049091C204A0919A |
:106E3000C304B091C4048093C9049093CA04A0937E |
:106E4000CB04B093CC0408951092BA041092B90404 |
:106E50001092BC041092BB0408951F920F920FB6BB |
:106E60000F9211242F933F934F938F939F93809171 |
:106E7000B707833019F08430A1F508C08EB5809330 |
:106E8000CD041EBC84E08093B7072BC08091CD0455 |
:106E90009927382F22278EB59927282B392BC901FE |
:106EA0008D509E4F875E9340D0F48091BA07853015 |
:106EB00019F0863069F406C03093BC072093BB07F5 |
:106EC00086E00BC03093BE072093BD0787E005C066 |
:106ED0003093C0072093BF0785E08093BA071092D4 |
:106EE000B7079F918F914F913F912F910F900FBEB8 |
:106EF0000F901F901895A0E1B0E0E1E8F7E30C9443 |
:106F0000033DE0905007FF2433E0EE0CFF1C3A9560 |
:106F1000E1F700271127609101047091020480912C |
:106F2000030490910404A80197010E94E83C5901D0 |
:106F30006A01C9010E94973A6D877E878F87988B77 |
:106F4000C5010E94F73A69877A878B879C87609191 |
:106F5000090470910A0480910B0490910C04A8011B |
:106F600097010E94E83C79018A01C9010E94973A81 |
:106F70006D837E838F839887C7010E94F73A698368 |
:106F80007A838B839C83A090BB07B090BC078091D1 |
:106F9000AE07992787FD9095A81AB90A8090BD077A |
:106FA0009090BE078091AF07992787FD9095881A2A |
:106FB000990A4090BF075090C0078091B007992769 |
:106FC00087FD9095481A590A2090B1073090B20772 |
:106FD000C090B307D090B407C214D304D0F460902B |
:106FE000B5077090B6076214730498F47101002716 |
:106FF0001127B401882777FD8095982FA801970164 |
:107000000E94743C9601442755270E94E83C4901A0 |
:107010001CC02C143D0448F56090B5077090B6076D |
:107020006C147D0410F5760100271127B50188271F |
:1070300077FD8095982FA80197010E94743C9101DB |
:10704000442755270E94E83C5901B201882777FD63 |
:107050008095982FA80197010E94743C93014427C2 |
:1070600055270E94E83C290124C0E090B507F09024 |
:10707000B60700271127B501882777FD8095982F3F |
:10708000A80197010E94743C9101442755270E9452 |
:10709000E83C5901B401882777FD8095982FA80115 |
:1070A00097010E94743C9601442755270E94E83CB2 |
:1070B0004901B501882777FD8095982F0E94B23B42 |
:1070C00029853A854B855C850E942C3C5B016C01CF |
:1070D000B401882777FD8095982F0E94B23B7B01F1 |
:1070E0008C012D813E814F8158850E942C3C2D853D |
:1070F0003E854F8558890E942C3C9B01AC01C601FE |
:10710000B5010E940D3B3B014C01B201882777FD80 |
:107110008095982F0E94B23B5B016C0129813A81D6 |
:107120004B815C81C801B7010E942C3C7B018C0122 |
:107130002D813E814F815885C601B5010E942C3CAE |
:107140009B01AC01C801B7010E940D3B0E94953B19 |
:107150007B018C0129813A814B815C81C601B5019B |
:107160000E942C3C2D853E854F8558890E942C3CE1 |
:107170009B01AC01C401B3010E940C3B0E94953BF2 |
:10718000DC01CB01B7010E94EF399C0197FF05C0DC |
:1071900088279927821B930B04C088E691E0821B05 |
:1071A000930BE2E1C05F0C941F3D8091B7078130E3 |
:1071B00041F0813018F0823049F51CC02A9A81E0F4 |
:1071C00016C02A988091BA07853011F481E305C072 |
:1071D000863011F482E301C083E38EBD88E090E045 |
:1071E0000E94CF0C9093B9078093B80782E08093F8 |
:1071F000B70708958091B8079091B9070E94D80CFD |
:10720000882321F01EBC83E08093B7070895A0E097 |
:10721000B0E0EDE0F9E30C94053D299A809100017E |
:107220008A3011F4289801C0289AAA24BB2400E0CF |
:1072300010E088249924EE24FF2466247724CC24AB |
:10724000DD2462E3462E55248091BB079091BC0754 |
:10725000081719072CF40091BB071091BC070BC04D |
:107260008091BB079091BC078A159B0524F4A090E0 |
:10727000BB07B090BC078091BD079091BE07E81690 |
:10728000F9062CF4E090BD07F090BE070BC080918A |
:10729000BD079091BE078815990524F48090BD071D |
:1072A0009090BE078091BF079091C007C816D9067D |
:1072B0002CF4C090BF07D090C0070BC08091BF07CF |
:1072C0009091C0078615970524F46090BF077090D1 |
:1072D000C007552081F485B191E0892785B985B132 |
:1072E00092E0892785B982E390E09093C10380936F |
:1072F000C00352E3552E8AE090E00E94CF0CEC01CF |
:10730000CE010E94D80C8823D9F3E0913307FF27E0 |
:10731000EE0FFF1FEB5FF84F80819181843691055E |
:107320000CF44A94442011F05A948ECFC8018A1963 |
:107330009B099093B2078093B107C70188199909F7 |
:107340009093B4078093B307C60186199709909369 |
:10735000B6078093B507EEEAF7E0C8018A0D9B1DDA |
:1073600062E070E00E94B33C6093AE07C701880DF5 |
:10737000991D62E070E00E94B33C6093AF07C601C4 |
:10738000860D971D62E070E00E94B33C6093B007E9 |
:1073900089E0A8E6B1E0182E0E94593DE0E1CDB7A2 |
:1073A000DEB70C94213D83ED8CBD84B1846A84B931 |
:1073B000809100018A3019F4539A5B9802C03E9A7A |
:1073C000469885E08093BA071092B70789E0EEEA05 |
:1073D000F7E0A8E6B1E0182E0E94483D08951F93FB |
:1073E000CF93DF93EC01892B31F46115710519F40A |
:1073F00080E090E08EC077FD02C011E001C01FEF79 |
:10740000209729F48AE51802C001112482C0882738 |
:1074100077FD8095982F22E330E040E050E00E9415 |
:10742000743C9E01442737FD4095542F0E94E83C50 |
:10743000F90137FF03C0F095E195FF4F41E0EE30D1 |
:10744000F40734F4E55FFA4F8491282F332747C0BF |
:1074500056E1E737F5071CF02AE530E040C087E049 |
:10746000E637F8071CF029E530E039C044E0EE3794 |
:10747000F4071CF028E530E032C053E0E433F507B0 |
:107480001CF027E530E02BC082E0E038F8071CF064 |
:1074900026E530E024C042E0E830F4071CF025E5A2 |
:1074A00030E01DC051E0E83BF5071CF024E530E07A |
:1074B00016C081E0EC37F8071CF023E530E00FC080 |
:1074C00041E0EF34F4071CF022E530E008C0EB5255 |
:1074D000F1401CF021E530E002C020E530E01C1650 |
:1074E0001D066CF4812F992787FD9095AC01249F90 |
:1074F000C001259F900D349F900D11240AC01116D4 |
:107500002CF484EB90E0821B930B03C0C901845BD5 |
:107510009040DF91CF911F910895FC012591349106 |
:10752000FC01329645915491CA01B9010895A0E039 |
:10753000B0E0EDE9FAE30C940D3D9C0197FD04C029 |
:1075400041E0C42ED12C06C0309521953F4F9FEFCE |
:10755000C92ED92E2B3531055CF0C9018B559040D1 |
:107560008A35910540F484EB90E0821B930B9C01DB |
:10757000C1E0D0E010C0C901855B90408A3591051B |
:1075800018F4245B304005C088E691E0821B930B21 |
:107590009C01CFEFDFEF220F331F220F331FC901F2 |
:1075A000875E994F0E948D3A7B018C01B601882736 |
:1075B00077FD8095982F0E94B23B9B01AC01C801DA |
:1075C000B7010E942C3C7B018C01BE01882777FD0E |
:1075D0008095982F0E94B23B9B01AC01C801B70176 |
:1075E0000E942C3CE8E0CDB7DEB70C94293D2AE59B |
:1075F00030E0281B390BC9010E94973A0895FC011D |
:107600004150504030F001900616D1F73197CF012C |
:1076100008958827992708955058192EEFD001D042 |
:10762000D2C0BA176207730784079507B1F188F4CF |
:107630000EF410940B2EBA2FA02D062E622F202DA3 |
:10764000072E732F302D082E842F402D092E952FB5 |
:10765000502DFF275523B9F0591B49F0573E98F09C |
:10766000469537952795A795F0405395C9F776F03D |
:10767000BA0F621F731F841F30F487957795679543 |
:10768000B795F040939517FA0F2E0895BF1BBB27AF |
:10769000BA0B620B730B840BF6CFDEF6DBC0AED0F9 |
:1076A00001D091C0552359F0992369F09F575F5736 |
:1076B000951B33F442F4903811F4915805C09BC0E7 |
:1076C00091589F3F09F4C6C0BB2711246217730766 |
:1076D000840730F4660F771F881FBB1F915098F303 |
:1076E00011D00F920FD00F920DD0A0E826173707B8 |
:1076F00048071B0609F0A048BA2F602D7F918F9193 |
:1077000000240895A0E80024621773078407B105D8 |
:1077100028F0621B730B840BB1090A2A660F771FCE |
:10772000881FBB1FA69581F7089597FB73D09F37DD |
:1077300038F0FEE9F91B982F872F762F6B2F05C0A5 |
:1077400086C09695879577956795F150D0F73EF46A |
:1077500090958095709561957F4F8F4F9F4F0895BD |
:10776000E89403C097FB0EF4F3DFB62F672F782F52 |
:10777000892F9EE9002427C00ED05EF004C00BD0F4 |
:1077800026F001C008D019F020F48FEF089580E0B2 |
:10779000089581E0089597FB092E052600F8689466 |
:1077A00030D0E89407FC07C0621773078407950779 |
:1077B00021F008F400940794989408959A95BB0FCB |
:1077C000661F771F881F11249923A1F08823B2F721 |
:1077D0009F3F59F0BB0F48F421F4002011F460FFE3 |
:1077E00004C06F5F7F4F8F4F9F4F881F979587957E |
:1077F00097F908952CC09FEF80EC0895052E092677 |
:1078000007FA440F551F5F3F79F0AA27A51708F024 |
:1078100051E04795880F991F9F3F31F0BB27B9175B |
:1078200008F091E0879508959F919F911124E3CFEF |
:1078300097FB880F991F9F3F31F0BB27B91708F0BE |
:1078400091E0879508959F919F911124D4CF662749 |
:107850007727882799270895D1DF01D0B4CF9923BE |
:1078600039F0552329F09F575F57950F13F49AF17C |
:10787000F1CF91589F3FE1F3629FA12D0F92BB275B |
:10788000639FA00DB11DEE27729FA00DB11DEE1FCD |
:10789000AF93AA27649FB00DE11D739FB00DE11D4A |
:1078A000AA1F6627829FB00DE11DA61F5527749F52 |
:1078B000E00DA11D551F839FE00DA11D561F849F44 |
:1078C000A00D511D852F7A2F6E2F1F900F908823AA |
:1078D0001AF4939539F48FCF000C111CBB1F661F4F |
:1078E000771F881F01280895629FD001739FF001C0 |
:1078F000829FE00DF11D649FE00DF11D929FF00D40 |
:10790000839FF00D749FF00D659FF00D9927729F76 |
:10791000B00DE11DF91F639FB00DE11DF91FBD0101 |
:10792000CF0111240895991B79E004C0991F96177F |
:1079300008F0961B881F7A95C9F780950895AA1BB1 |
:10794000BB1B51E107C0AA1FBB1FA617B70710F04A |
:10795000A61BB70B881F991F5A95A9F7809590957C |
:10796000BC01CD01089597FB092E07260AD077FDAB |
:1079700004D0E5DF06D000201AF4709561957F4FA2 |
:107980000895F6F7909581959F4F0895A1E21A2EDC |
:10799000AA1BBB1BFD010DC0AA1FBB1FEE1FFF1FB3 |
:1079A000A217B307E407F50720F0A21BB30BE40B03 |
:1079B000F50B661F771F881F991F1A9469F760954A |
:1079C0007095809590959B01AC01BD01CF01089504 |
:1079D00097FB092E05260ED057FD04D0D7DF0AD01D |
:1079E000001C38F450954095309521953F4F4F4FEE |
:1079F0005F4F0895F6F790958095709561957F4F4C |
:107A00008F4F9F4F08952F923F924F925F926F92A8 |
:107A10007F928F929F92AF92BF92CF92DF92EF921E |
:107A2000FF920F931F93CF93DF93CDB7DEB7CA1B9F |
:107A3000DB0B0FB6F894DEBF0FBECDBF09942A88CA |
:107A4000398848885F846E847D848C849B84AA8472 |
:107A5000B984C884DF80EE80FD800C811B81AA81FF |
:107A6000B981CE0FD11D0FB6F894DEBF0FBECDBFCA |
:107A7000ED010895EE0FFF1F0590F491E02D09949C |
:107A8000F999FECFB2BDA1BDF89A119600B4089540 |
:107A9000F7DF01921A94E1F70895F999FECFB2BD8C |
:107AA000A1BD00BC11960FB6F894FA9AF99A0FBED0 |
:0E7AB00008950190F2DF1A94E1F70895FFCFD8 |
:107ABE000A01FF64496E74656772616C4E69636B8F |
:107ACE0020202020496E74656772616C526F6C6C59 |
:107ADE00202020204163634E69636B2020202020EC |
:107AEE0020202020416363526F6C6C2020202020C8 |
:107AFE00202020204779726F476965722020202050 |
:107B0E0020202020486F6568656E576572742020AE |
:107B1E00202020204163635A202020202020202076 |
:107B2E00202020204761732020202020202020208C |
:107B3E00202020204B6F6D7061737356616C7565DC |
:107B4E00202020205370616E6E756E6720202020DD |
:107B5E0020202020456D7066616E67202020202039 |
:107B6E0020202020416E616C6F6731312020202053 |
:107B7E00202020204D6F746F725F566F726E6520DD |
:107B8E00202020204D6F746F725F48696E74656E91 |
:107B9E00202020204D6F746F725F4C696E6B7320C6 |
:107BAE00202020204D6F746F725F5265636874736E |
:107BBE00202020204163635F5A2020202020202097 |
:107BCE00202020204D697474656C4163634E696397 |
:107BDE006B2020204D697474656C416363526F6C29 |
:107BEE006C202020496E74656772616C4572724E0E |
:107BFE0069636B20496E74656772616C457272526F |
:107C0E006F6C6C204D697474656C496E744E69634B |
:107C1E006B2020204D697474656C496E74526F6CC4 |
:107C2E006C0920004E65757472616C4E69636B2031 |
:107C3E0020202020526F6C6C4F6666736574202076 |
:107C4E0020202020496E74526F6C6C2A46616B7432 |
:107C5E006F722020416E616C6F67323620202020BB |
:107C6E0020202020446972656B74417573676C52D5 |
:107C7E006F6C6C204D65737377657274526F6C6C9C |
:107C8E0020202020417573676C65696368526F6CA4 |
:107C9E006C202020492D4C616765526F6C6C202042 |
:107CAE0020202020537469636B526F6C6C2020204F |
:107CBE0020202020FFFF0A016400007D0000FF034A |
:107CCE000102030405060708090A48616C6C6F205F |
:107CDE0057656C74000000000000000000000000FA |
:107CEE000000000000000000000000000000000086 |
:107CFE000000000000000000000000000000000076 |
:107D0E000000000000000000000000000000000065 |
:107D1E00000000000000000000000C0142656769D1 |
:107D2E006E6E657200004E6F726D616C0000537066 |
:107D3E006F72740000640090D0030090D00300179F |
:107D4E00B7D13830FB103A409696020A644664EC7E |
:027D5E00FF0024 |
:00000001FF |
/branches/MicroMag3_Nick666/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/V0.67g/Settings.h |
---|
--- _Settings.h (nonexistent) |
+++ _Settings.h (revision 612) |
@@ -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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/V0.67g/compass.c |
---|
0,0 → 1,249 |
/* |
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 |
signed int heading_MM3(void) |
//############################################################################ |
{ |
float sin_nick, cos_nick, sin_roll, cos_roll; |
float x_corr, y_corr; |
signed int x_axis,y_axis,z_axis,heading; |
signed int 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_f(nicktilt); |
cos_nick = cos_f(nicktilt); |
rolltilt = (IntegralRoll/div_faktor); |
sin_roll = sin_f(rolltilt); |
cos_roll = cos_f(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 = ((long)y_axis * MM3_calib.X_range) / MM3_calib.Y_range; |
z_axis = ((long)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 = ((long)x_axis * MM3_calib.Y_range) / MM3_calib.X_range; |
z_axis = ((long)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 = ((long)x_axis * MM3_calib.Z_range) / MM3_calib.X_range; |
y_axis = ((long)y_axis * MM3_calib.Z_range) / MM3_calib.Y_range; |
} |
// Neigungskompensation |
x_corr = x_axis * cos_nick; |
x_corr += y_axis * sin_roll * sin_nick; |
x_corr -= z_axis * cos_roll * sin_nick; |
y_corr = y_axis * cos_roll; |
y_corr += z_axis * sin_roll; |
// Winkelberechnung |
heading = atan2_i(x_corr, y_corr); |
if (heading < 0) heading = -heading; |
else heading = 360 - heading; |
/* |
if (!x_corr && y_corr <0) return (90); |
if (!x_corr && y_corr >0) return (270); |
heading = atan(y_corr/x_corr)*57.29578; |
if (x_corr < 0) heading = 180-heading; |
if (x_corr > 0 && y_corr < 0) heading = -heading; |
if (x_corr > 0 && y_corr > 0) heading = 360 - heading; |
*/ |
return (heading); |
} |
/branches/MicroMag3_Nick666/Fliesskomma/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); |
signed 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/Fliesskomma/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/Fliesskomma/V0.67g/fc.c |
---|
0,0 → 1,1149 |
/*####################################################################################### |
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 |
} |
else beeptime = 100; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// 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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/V0.67g/flight.pnps |
---|
0,0 → 1,0 |
<pd><ViewState><e p="Flight-Ctrl" x="true"></e></ViewState></pd> |
/branches/MicroMag3_Nick666/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/V0.67g/mymath.c |
---|
0,0 → 1,126 |
/* |
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[270] PROGMEM = {0,1,2,3,5,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,27,28,29,30,31,32,33,33,34,35,36,37,37,38,39,39,40,41,41,42,43,43,44,44,45,46,46,47,47,48,48,49,49,50,50,51,51,52,52,52,53,53,54,54,54,55,55,56,56,56,57,57,57,58,58,58,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,64,64,64,64,65,65,65,65,65,66,66,66,66,66,67,67,67,67,67,67,68,68,68,68,68,68,69,69,69,69,69,69,69,70,70,70,70,70,70,70,70,71,71,71,71,71,71,71,71,72,72,72,72,72,72,72,72,72,73,73,73,73,73,73,73,73,73,73,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,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,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}; |
//############################################################################ |
// 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==0) return (90*m); // atan2 = 90° für x = 0 |
i = abs(((long)y*50) / x); // Berechne i für die Lookup table (Schrittweite atan(x) ist 0.02 -> *50) |
if (i<270) angle = pgm_read_byte(&pgm_atan[i]); // Lookup für 1° bis 79° |
else if (i>5750) angle = 90; // Grenzwert ist 90° |
else if (i>=1910) angle = 89; // 89° bis 80° über Wertebereiche |
else if (i>=1150) angle = 88; |
else if (i>=820) angle = 87; |
else if (i>=640) angle = 86; |
else if (i>=520) angle = 85; |
else if (i>=440) angle = 84; |
else if (i>=380) angle = 83; |
else if (i>=335) angle = 82; |
else if (i>=299) angle = 81; |
else angle = 80; // (i>=270) |
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 float pgm_sinus_f[91] PROGMEM = {0.0,0.0174524,0.0348995,0.0523360,0.0697565,0.0871557,0.1045285,0.1218693,0.1391731,0.1564345,0.1736482,0.1908090,0.2079117,0.2249510,0.2419219,0.2588190,0.2756373,0.2923717,0.3090170,0.3255681,0.3420201,0.3583679,0.3746066,0.3907311,0.4067366,0.4226182,0.4383711,0.4539905,0.4694715,0.4848096,0.5000000,0.5150381,0.5299193,0.5446390,0.5591929,0.5735764,0.5877852,0.6018150,0.6156615,0.6293204,0.6427876,0.6560590,0.6691306,0.6819983,0.6946584,0.7071068,0.7193398,0.7313537,0.7431448,0.7547096,0.7660444,0.7771459,0.7880107,0.7986355,0.8090170,0.8191520,0.8290376,0.8386706,0.8480481,0.8571673,0.8660254,0.8746197,0.8829476,0.8910065,0.8987940,0.9063078,0.9135454,0.9205048,0.9271838,0.9335804,0.9396926,0.9455186,0.9510565,0.9563047,0.9612617,0.9659258,0.9702957,0.9743701,0.9781476,0.9816272,0.9848077,0.9876883,0.9902681,0.9925461,0.9945219,0.9961947,0.9975640,0.9986295,0.9993908,0.9998477,1.0}; |
inline float pgm_read_float(const float *addr) |
{ |
union |
{ |
uint16_t i[2]; // 2 16-bit-Worte |
float f; |
} u; |
u.i[0]=pgm_read_word((PGM_P)addr); |
u.i[1]=pgm_read_word((PGM_P)addr+2); |
return u.f; |
} |
//############################################################################ |
// Kosinusfunktion im Gradmaß |
float cos_f(signed int winkel) |
//############################################################################ |
{ |
return (sin_f(90-winkel)); |
} |
//############################################################################ |
// Sinusfunktion im Gradmaß |
float sin_f(signed int winkel) |
//############################################################################ |
{ |
short int m,n; |
float sinus; |
//winkel = winkel % 360; |
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_float(&pgm_sinus_f[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 = i % 200; |
return (pgm_read_byte(&pgm_asin[i]) * m); |
} |
*/ |
/branches/MicroMag3_Nick666/Fliesskomma/V0.67g/mymath.h |
---|
0,0 → 1,8 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
extern signed int atan2_i(signed int x, signed int y); |
extern float cos_f(signed int winkel); |
extern float sin_f(signed int winkel); |
//extern int8_t asin_i(signed int i); |
/branches/MicroMag3_Nick666/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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/Fliesskomma/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 |