/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/COPYING |
---|
0,0 → 1,674 |
GNU GENERAL PUBLIC LICENSE |
Version 3, 29 June 2007 |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
Everyone is permitted to copy and distribute verbatim copies |
of this license document, but changing it is not allowed. |
Preamble |
The GNU General Public License is a free, copyleft license for |
software and other kinds of works. |
The licenses for most software and other practical works are designed |
to take away your freedom to share and change the works. By contrast, |
the GNU General Public License is intended to guarantee your freedom to |
share and change all versions of a program--to make sure it remains free |
software for all its users. We, the Free Software Foundation, use the |
GNU General Public License for most of our software; it applies also to |
any other work released this way by its authors. You can apply it to |
your programs, too. |
When we speak of free software, we are referring to freedom, not |
price. Our General Public Licenses are designed to make sure that you |
have the freedom to distribute copies of free software (and charge for |
them if you wish), that you receive source code or can get it if you |
want it, that you can change the software or use pieces of it in new |
free programs, and that you know you can do these things. |
To protect your rights, we need to prevent others from denying you |
these rights or asking you to surrender the rights. Therefore, you have |
certain responsibilities if you distribute copies of the software, or if |
you modify it: responsibilities to respect the freedom of others. |
For example, if you distribute copies of such a program, whether |
gratis or for a fee, you must pass on to the recipients the same |
freedoms that you received. You must make sure that they, too, receive |
or can get the source code. And you must show them these terms so they |
know their rights. |
Developers that use the GNU GPL protect your rights with two steps: |
(1) assert copyright on the software, and (2) offer you this License |
giving you legal permission to copy, distribute and/or modify it. |
For the developers' and authors' protection, the GPL clearly explains |
that there is no warranty for this free software. For both users' and |
authors' sake, the GPL requires that modified versions be marked as |
changed, so that their problems will not be attributed erroneously to |
authors of previous versions. |
Some devices are designed to deny users access to install or run |
modified versions of the software inside them, although the manufacturer |
can do so. This is fundamentally incompatible with the aim of |
protecting users' freedom to change the software. The systematic |
pattern of such abuse occurs in the area of products for individuals to |
use, which is precisely where it is most unacceptable. Therefore, we |
have designed this version of the GPL to prohibit the practice for those |
products. If such problems arise substantially in other domains, we |
stand ready to extend this provision to those domains in future versions |
of the GPL, as needed to protect the freedom of users. |
Finally, every program is threatened constantly by software patents. |
States should not allow patents to restrict development and use of |
software on general-purpose computers, but in those that do, we wish to |
avoid the special danger that patents applied to a free program could |
make it effectively proprietary. To prevent this, the GPL assures that |
patents cannot be used to render the program non-free. |
The precise terms and conditions for copying, distribution and |
modification follow. |
TERMS AND CONDITIONS |
0. Definitions. |
"This License" refers to version 3 of the GNU General Public License. |
"Copyright" also means copyright-like laws that apply to other kinds of |
works, such as semiconductor masks. |
"The Program" refers to any copyrightable work licensed under this |
License. Each licensee is addressed as "you". "Licensees" and |
"recipients" may be individuals or organizations. |
To "modify" a work means to copy from or adapt all or part of the work |
in a fashion requiring copyright permission, other than the making of an |
exact copy. The resulting work is called a "modified version" of the |
earlier work or a work "based on" the earlier work. |
A "covered work" means either the unmodified Program or a work based |
on the Program. |
To "propagate" a work means to do anything with it that, without |
permission, would make you directly or secondarily liable for |
infringement under applicable copyright law, except executing it on a |
computer or modifying a private copy. Propagation includes copying, |
distribution (with or without modification), making available to the |
public, and in some countries other activities as well. |
To "convey" a work means any kind of propagation that enables other |
parties to make or receive copies. Mere interaction with a user through |
a computer network, with no transfer of a copy, is not conveying. |
An interactive user interface displays "Appropriate Legal Notices" |
to the extent that it includes a convenient and prominently visible |
feature that (1) displays an appropriate copyright notice, and (2) |
tells the user that there is no warranty for the work (except to the |
extent that warranties are provided), that licensees may convey the |
work under this License, and how to view a copy of this License. If |
the interface presents a list of user commands or options, such as a |
menu, a prominent item in the list meets this criterion. |
1. Source Code. |
The "source code" for a work means the preferred form of the work |
for making modifications to it. "Object code" means any non-source |
form of a work. |
A "Standard Interface" means an interface that either is an official |
standard defined by a recognized standards body, or, in the case of |
interfaces specified for a particular programming language, one that |
is widely used among developers working in that language. |
The "System Libraries" of an executable work include anything, other |
than the work as a whole, that (a) is included in the normal form of |
packaging a Major Component, but which is not part of that Major |
Component, and (b) serves only to enable use of the work with that |
Major Component, or to implement a Standard Interface for which an |
implementation is available to the public in source code form. A |
"Major Component", in this context, means a major essential component |
(kernel, window system, and so on) of the specific operating system |
(if any) on which the executable work runs, or a compiler used to |
produce the work, or an object code interpreter used to run it. |
The "Corresponding Source" for a work in object code form means all |
the source code needed to generate, install, and (for an executable |
work) run the object code and to modify the work, including scripts to |
control those activities. However, it does not include the work's |
System Libraries, or general-purpose tools or generally available free |
programs which are used unmodified in performing those activities but |
which are not part of the work. For example, Corresponding Source |
includes interface definition files associated with source files for |
the work, and the source code for shared libraries and dynamically |
linked subprograms that the work is specifically designed to require, |
such as by intimate data communication or control flow between those |
subprograms and other parts of the work. |
The Corresponding Source need not include anything that users |
can regenerate automatically from other parts of the Corresponding |
Source. |
The Corresponding Source for a work in source code form is that |
same work. |
2. Basic Permissions. |
All rights granted under this License are granted for the term of |
copyright on the Program, and are irrevocable provided the stated |
conditions are met. This License explicitly affirms your unlimited |
permission to run the unmodified Program. The output from running a |
covered work is covered by this License only if the output, given its |
content, constitutes a covered work. This License acknowledges your |
rights of fair use or other equivalent, as provided by copyright law. |
You may make, run and propagate covered works that you do not |
convey, without conditions so long as your license otherwise remains |
in force. You may convey covered works to others for the sole purpose |
of having them make modifications exclusively for you, or provide you |
with facilities for running those works, provided that you comply with |
the terms of this License in conveying all material for which you do |
not control copyright. Those thus making or running the covered works |
for you must do so exclusively on your behalf, under your direction |
and control, on terms that prohibit them from making any copies of |
your copyrighted material outside their relationship with you. |
Conveying under any other circumstances is permitted solely under |
the conditions stated below. Sublicensing is not allowed; section 10 |
makes it unnecessary. |
3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
No covered work shall be deemed part of an effective technological |
measure under any applicable law fulfilling obligations under article |
11 of the WIPO copyright treaty adopted on 20 December 1996, or |
similar laws prohibiting or restricting circumvention of such |
measures. |
When you convey a covered work, you waive any legal power to forbid |
circumvention of technological measures to the extent such circumvention |
is effected by exercising rights under this License with respect to |
the covered work, and you disclaim any intention to limit operation or |
modification of the work as a means of enforcing, against the work's |
users, your or third parties' legal rights to forbid circumvention of |
technological measures. |
4. Conveying Verbatim Copies. |
You may convey verbatim copies of the Program's source code as you |
receive it, in any medium, provided that you conspicuously and |
appropriately publish on each copy an appropriate copyright notice; |
keep intact all notices stating that this License and any |
non-permissive terms added in accord with section 7 apply to the code; |
keep intact all notices of the absence of any warranty; and give all |
recipients a copy of this License along with the Program. |
You may charge any price or no price for each copy that you convey, |
and you may offer support or warranty protection for a fee. |
5. Conveying Modified Source Versions. |
You may convey a work based on the Program, or the modifications to |
produce it from the Program, in the form of source code under the |
terms of section 4, provided that you also meet all of these conditions: |
a) The work must carry prominent notices stating that you modified |
it, and giving a relevant date. |
b) The work must carry prominent notices stating that it is |
released under this License and any conditions added under section |
7. This requirement modifies the requirement in section 4 to |
"keep intact all notices". |
c) You must license the entire work, as a whole, under this |
License to anyone who comes into possession of a copy. This |
License will therefore apply, along with any applicable section 7 |
additional terms, to the whole of the work, and all its parts, |
regardless of how they are packaged. This License gives no |
permission to license the work in any other way, but it does not |
invalidate such permission if you have separately received it. |
d) If the work has interactive user interfaces, each must display |
Appropriate Legal Notices; however, if the Program has interactive |
interfaces that do not display Appropriate Legal Notices, your |
work need not make them do so. |
A compilation of a covered work with other separate and independent |
works, which are not by their nature extensions of the covered work, |
and which are not combined with it such as to form a larger program, |
in or on a volume of a storage or distribution medium, is called an |
"aggregate" if the compilation and its resulting copyright are not |
used to limit the access or legal rights of the compilation's users |
beyond what the individual works permit. Inclusion of a covered work |
in an aggregate does not cause this License to apply to the other |
parts of the aggregate. |
6. Conveying Non-Source Forms. |
You may convey a covered work in object code form under the terms |
of sections 4 and 5, provided that you also convey the |
machine-readable Corresponding Source under the terms of this License, |
in one of these ways: |
a) Convey the object code in, or embodied in, a physical product |
(including a physical distribution medium), accompanied by the |
Corresponding Source fixed on a durable physical medium |
customarily used for software interchange. |
b) Convey the object code in, or embodied in, a physical product |
(including a physical distribution medium), accompanied by a |
written offer, valid for at least three years and valid for as |
long as you offer spare parts or customer support for that product |
model, to give anyone who possesses the object code either (1) a |
copy of the Corresponding Source for all the software in the |
product that is covered by this License, on a durable physical |
medium customarily used for software interchange, for a price no |
more than your reasonable cost of physically performing this |
conveying of source, or (2) access to copy the |
Corresponding Source from a network server at no charge. |
c) Convey individual copies of the object code with a copy of the |
written offer to provide the Corresponding Source. This |
alternative is allowed only occasionally and noncommercially, and |
only if you received the object code with such an offer, in accord |
with subsection 6b. |
d) Convey the object code by offering access from a designated |
place (gratis or for a charge), and offer equivalent access to the |
Corresponding Source in the same way through the same place at no |
further charge. You need not require recipients to copy the |
Corresponding Source along with the object code. If the place to |
copy the object code is a network server, the Corresponding Source |
may be on a different server (operated by you or a third party) |
that supports equivalent copying facilities, provided you maintain |
clear directions next to the object code saying where to find the |
Corresponding Source. Regardless of what server hosts the |
Corresponding Source, you remain obligated to ensure that it is |
available for as long as needed to satisfy these requirements. |
e) Convey the object code using peer-to-peer transmission, provided |
you inform other peers where the object code and Corresponding |
Source of the work are being offered to the general public at no |
charge under subsection 6d. |
A separable portion of the object code, whose source code is excluded |
from the Corresponding Source as a System Library, need not be |
included in conveying the object code work. |
A "User Product" is either (1) a "consumer product", which means any |
tangible personal property which is normally used for personal, family, |
or household purposes, or (2) anything designed or sold for incorporation |
into a dwelling. In determining whether a product is a consumer product, |
doubtful cases shall be resolved in favor of coverage. For a particular |
product received by a particular user, "normally used" refers to a |
typical or common use of that class of product, regardless of the status |
of the particular user or of the way in which the particular user |
actually uses, or expects or is expected to use, the product. A product |
is a consumer product regardless of whether the product has substantial |
commercial, industrial or non-consumer uses, unless such uses represent |
the only significant mode of use of the product. |
"Installation Information" for a User Product means any methods, |
procedures, authorization keys, or other information required to install |
and execute modified versions of a covered work in that User Product from |
a modified version of its Corresponding Source. The information must |
suffice to ensure that the continued functioning of the modified object |
code is in no case prevented or interfered with solely because |
modification has been made. |
If you convey an object code work under this section in, or with, or |
specifically for use in, a User Product, and the conveying occurs as |
part of a transaction in which the right of possession and use of the |
User Product is transferred to the recipient in perpetuity or for a |
fixed term (regardless of how the transaction is characterized), the |
Corresponding Source conveyed under this section must be accompanied |
by the Installation Information. But this requirement does not apply |
if neither you nor any third party retains the ability to install |
modified object code on the User Product (for example, the work has |
been installed in ROM). |
The requirement to provide Installation Information does not include a |
requirement to continue to provide support service, warranty, or updates |
for a work that has been modified or installed by the recipient, or for |
the User Product in which it has been modified or installed. Access to a |
network may be denied when the modification itself materially and |
adversely affects the operation of the network or violates the rules and |
protocols for communication across the network. |
Corresponding Source conveyed, and Installation Information provided, |
in accord with this section must be in a format that is publicly |
documented (and with an implementation available to the public in |
source code form), and must require no special password or key for |
unpacking, reading or copying. |
7. Additional Terms. |
"Additional permissions" are terms that supplement the terms of this |
License by making exceptions from one or more of its conditions. |
Additional permissions that are applicable to the entire Program shall |
be treated as though they were included in this License, to the extent |
that they are valid under applicable law. If additional permissions |
apply only to part of the Program, that part may be used separately |
under those permissions, but the entire Program remains governed by |
this License without regard to the additional permissions. |
When you convey a copy of a covered work, you may at your option |
remove any additional permissions from that copy, or from any part of |
it. (Additional permissions may be written to require their own |
removal in certain cases when you modify the work.) You may place |
additional permissions on material, added by you to a covered work, |
for which you have or can give appropriate copyright permission. |
Notwithstanding any other provision of this License, for material you |
add to a covered work, you may (if authorized by the copyright holders of |
that material) supplement the terms of this License with terms: |
a) Disclaiming warranty or limiting liability differently from the |
terms of sections 15 and 16 of this License; or |
b) Requiring preservation of specified reasonable legal notices or |
author attributions in that material or in the Appropriate Legal |
Notices displayed by works containing it; or |
c) Prohibiting misrepresentation of the origin of that material, or |
requiring that modified versions of such material be marked in |
reasonable ways as different from the original version; or |
d) Limiting the use for publicity purposes of names of licensors or |
authors of the material; or |
e) Declining to grant rights under trademark law for use of some |
trade names, trademarks, or service marks; or |
f) Requiring indemnification of licensors and authors of that |
material by anyone who conveys the material (or modified versions of |
it) with contractual assumptions of liability to the recipient, for |
any liability that these contractual assumptions directly impose on |
those licensors and authors. |
All other non-permissive additional terms are considered "further |
restrictions" within the meaning of section 10. If the Program as you |
received it, or any part of it, contains a notice stating that it is |
governed by this License along with a term that is a further |
restriction, you may remove that term. If a license document contains |
a further restriction but permits relicensing or conveying under this |
License, you may add to a covered work material governed by the terms |
of that license document, provided that the further restriction does |
not survive such relicensing or conveying. |
If you add terms to a covered work in accord with this section, you |
must place, in the relevant source files, a statement of the |
additional terms that apply to those files, or a notice indicating |
where to find the applicable terms. |
Additional terms, permissive or non-permissive, may be stated in the |
form of a separately written license, or stated as exceptions; |
the above requirements apply either way. |
8. Termination. |
You may not propagate or modify a covered work except as expressly |
provided under this License. Any attempt otherwise to propagate or |
modify it is void, and will automatically terminate your rights under |
this License (including any patent licenses granted under the third |
paragraph of section 11). |
However, if you cease all violation of this License, then your |
license from a particular copyright holder is reinstated (a) |
provisionally, unless and until the copyright holder explicitly and |
finally terminates your license, and (b) permanently, if the copyright |
holder fails to notify you of the violation by some reasonable means |
prior to 60 days after the cessation. |
Moreover, your license from a particular copyright holder is |
reinstated permanently if the copyright holder notifies you of the |
violation by some reasonable means, this is the first time you have |
received notice of violation of this License (for any work) from that |
copyright holder, and you cure the violation prior to 30 days after |
your receipt of the notice. |
Termination of your rights under this section does not terminate the |
licenses of parties who have received copies or rights from you under |
this License. If your rights have been terminated and not permanently |
reinstated, you do not qualify to receive new licenses for the same |
material under section 10. |
9. Acceptance Not Required for Having Copies. |
You are not required to accept this License in order to receive or |
run a copy of the Program. Ancillary propagation of a covered work |
occurring solely as a consequence of using peer-to-peer transmission |
to receive a copy likewise does not require acceptance. However, |
nothing other than this License grants you permission to propagate or |
modify any covered work. These actions infringe copyright if you do |
not accept this License. Therefore, by modifying or propagating a |
covered work, you indicate your acceptance of this License to do so. |
10. Automatic Licensing of Downstream Recipients. |
Each time you convey a covered work, the recipient automatically |
receives a license from the original licensors, to run, modify and |
propagate that work, subject to this License. You are not responsible |
for enforcing compliance by third parties with this License. |
An "entity transaction" is a transaction transferring control of an |
organization, or substantially all assets of one, or subdividing an |
organization, or merging organizations. If propagation of a covered |
work results from an entity transaction, each party to that |
transaction who receives a copy of the work also receives whatever |
licenses to the work the party's predecessor in interest had or could |
give under the previous paragraph, plus a right to possession of the |
Corresponding Source of the work from the predecessor in interest, if |
the predecessor has it or can get it with reasonable efforts. |
You may not impose any further restrictions on the exercise of the |
rights granted or affirmed under this License. For example, you may |
not impose a license fee, royalty, or other charge for exercise of |
rights granted under this License, and you may not initiate litigation |
(including a cross-claim or counterclaim in a lawsuit) alleging that |
any patent claim is infringed by making, using, selling, offering for |
sale, or importing the Program or any portion of it. |
11. Patents. |
A "contributor" is a copyright holder who authorizes use under this |
License of the Program or a work on which the Program is based. The |
work thus licensed is called the contributor's "contributor version". |
A contributor's "essential patent claims" are all patent claims |
owned or controlled by the contributor, whether already acquired or |
hereafter acquired, that would be infringed by some manner, permitted |
by this License, of making, using, or selling its contributor version, |
but do not include claims that would be infringed only as a |
consequence of further modification of the contributor version. For |
purposes of this definition, "control" includes the right to grant |
patent sublicenses in a manner consistent with the requirements of |
this License. |
Each contributor grants you a non-exclusive, worldwide, royalty-free |
patent license under the contributor's essential patent claims, to |
make, use, sell, offer for sale, import and otherwise run, modify and |
propagate the contents of its contributor version. |
In the following three paragraphs, a "patent license" is any express |
agreement or commitment, however denominated, not to enforce a patent |
(such as an express permission to practice a patent or covenant not to |
sue for patent infringement). To "grant" such a patent license to a |
party means to make such an agreement or commitment not to enforce a |
patent against the party. |
If you convey a covered work, knowingly relying on a patent license, |
and the Corresponding Source of the work is not available for anyone |
to copy, free of charge and under the terms of this License, through a |
publicly available network server or other readily accessible means, |
then you must either (1) cause the Corresponding Source to be so |
available, or (2) arrange to deprive yourself of the benefit of the |
patent license for this particular work, or (3) arrange, in a manner |
consistent with the requirements of this License, to extend the patent |
license to downstream recipients. "Knowingly relying" means you have |
actual knowledge that, but for the patent license, your conveying the |
covered work in a country, or your recipient's use of the covered work |
in a country, would infringe one or more identifiable patents in that |
country that you have reason to believe are valid. |
If, pursuant to or in connection with a single transaction or |
arrangement, you convey, or propagate by procuring conveyance of, a |
covered work, and grant a patent license to some of the parties |
receiving the covered work authorizing them to use, propagate, modify |
or convey a specific copy of the covered work, then the patent license |
you grant is automatically extended to all recipients of the covered |
work and works based on it. |
A patent license is "discriminatory" if it does not include within |
the scope of its coverage, prohibits the exercise of, or is |
conditioned on the non-exercise of one or more of the rights that are |
specifically granted under this License. You may not convey a covered |
work if you are a party to an arrangement with a third party that is |
in the business of distributing software, under which you make payment |
to the third party based on the extent of your activity of conveying |
the work, and under which the third party grants, to any of the |
parties who would receive the covered work from you, a discriminatory |
patent license (a) in connection with copies of the covered work |
conveyed by you (or copies made from those copies), or (b) primarily |
for and in connection with specific products or compilations that |
contain the covered work, unless you entered into that arrangement, |
or that patent license was granted, prior to 28 March 2007. |
Nothing in this License shall be construed as excluding or limiting |
any implied license or other defenses to infringement that may |
otherwise be available to you under applicable patent law. |
12. No Surrender of Others' Freedom. |
If conditions are imposed on you (whether by court order, agreement or |
otherwise) that contradict the conditions of this License, they do not |
excuse you from the conditions of this License. If you cannot convey a |
covered work so as to satisfy simultaneously your obligations under this |
License and any other pertinent obligations, then as a consequence you may |
not convey it at all. For example, if you agree to terms that obligate you |
to collect a royalty for further conveying from those to whom you convey |
the Program, the only way you could satisfy both those terms and this |
License would be to refrain entirely from conveying the Program. |
13. Use with the GNU Affero General Public License. |
Notwithstanding any other provision of this License, you have |
permission to link or combine any covered work with a work licensed |
under version 3 of the GNU Affero General Public License into a single |
combined work, and to convey the resulting work. The terms of this |
License will continue to apply to the part which is the covered work, |
but the special requirements of the GNU Affero General Public License, |
section 13, concerning interaction through a network will apply to the |
combination as such. |
14. Revised Versions of this License. |
The Free Software Foundation may publish revised and/or new versions of |
the GNU General Public License from time to time. Such new versions will |
be similar in spirit to the present version, but may differ in detail to |
address new problems or concerns. |
Each version is given a distinguishing version number. If the |
Program specifies that a certain numbered version of the GNU General |
Public License "or any later version" applies to it, you have the |
option of following the terms and conditions either of that numbered |
version or of any later version published by the Free Software |
Foundation. If the Program does not specify a version number of the |
GNU General Public License, you may choose any version ever published |
by the Free Software Foundation. |
If the Program specifies that a proxy can decide which future |
versions of the GNU General Public License can be used, that proxy's |
public statement of acceptance of a version permanently authorizes you |
to choose that version for the Program. |
Later license versions may give you additional or different |
permissions. However, no additional obligations are imposed on any |
author or copyright holder as a result of your choosing to follow a |
later version. |
15. Disclaimer of Warranty. |
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY |
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, |
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM |
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF |
ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
16. Limitation of Liability. |
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS |
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY |
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE |
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF |
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD |
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), |
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
SUCH DAMAGES. |
17. Interpretation of Sections 15 and 16. |
If the disclaimer of warranty and limitation of liability provided |
above cannot be given local legal effect according to their terms, |
reviewing courts shall apply local law that most closely approximates |
an absolute waiver of all civil liability in connection with the |
Program, unless a warranty or assumption of liability accompanies a |
copy of the Program in return for a fee. |
END OF TERMS AND CONDITIONS |
How to Apply These Terms to Your New Programs |
If you develop a new program, and you want it to be of the greatest |
possible use to the public, the best way to achieve this is to make it |
free software which everyone can redistribute and change under these terms. |
To do so, attach the following notices to the program. It is safest |
to attach them to the start of each source file to most effectively |
state the exclusion of warranty; and each file should have at least |
the "copyright" line and a pointer to where the full notice is found. |
<one line to give the program's name and a brief idea of what it does.> |
Copyright (C) <year> <name of author> |
This program is free software: you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
the Free Software Foundation, either version 3 of the License, or |
(at your option) any later version. |
This program is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Also add information on how to contact you by electronic and paper mail. |
If the program does terminal interaction, make it output a short |
notice like this when it starts in an interactive mode: |
<program> Copyright (C) <year> <name of author> |
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
This is free software, and you are welcome to redistribute it |
under certain conditions; type `show c' for details. |
The hypothetical commands `show w' and `show c' should show the appropriate |
parts of the General Public License. Of course, your program's commands |
might be different; for a GUI interface, you would use an "about box". |
You should also get your employer (if you work as a programmer) or school, |
if any, to sign a "copyright disclaimer" for the program, if necessary. |
For more information on this, and how to apply and follow the GNU GPL, see |
<http://www.gnu.org/licenses/>. |
The GNU General Public License does not permit incorporating your program |
into proprietary programs. If your program is a subroutine library, you |
may consider it more useful to permit linking proprietary applications with |
the library. If this is what you want to do, use the GNU Lesser General |
Public License instead of this License. But first, please read |
<http://www.gnu.org/philosophy/why-not-lgpl.html>. |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/COPYING.LESSER |
---|
0,0 → 1,165 |
GNU LESSER GENERAL PUBLIC LICENSE |
Version 3, 29 June 2007 |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
Everyone is permitted to copy and distribute verbatim copies |
of this license document, but changing it is not allowed. |
This version of the GNU Lesser General Public License incorporates |
the terms and conditions of version 3 of the GNU General Public |
License, supplemented by the additional permissions listed below. |
0. Additional Definitions. |
As used herein, "this License" refers to version 3 of the GNU Lesser |
General Public License, and the "GNU GPL" refers to version 3 of the GNU |
General Public License. |
"The Library" refers to a covered work governed by this License, |
other than an Application or a Combined Work as defined below. |
An "Application" is any work that makes use of an interface provided |
by the Library, but which is not otherwise based on the Library. |
Defining a subclass of a class defined by the Library is deemed a mode |
of using an interface provided by the Library. |
A "Combined Work" is a work produced by combining or linking an |
Application with the Library. The particular version of the Library |
with which the Combined Work was made is also called the "Linked |
Version". |
The "Minimal Corresponding Source" for a Combined Work means the |
Corresponding Source for the Combined Work, excluding any source code |
for portions of the Combined Work that, considered in isolation, are |
based on the Application, and not on the Linked Version. |
The "Corresponding Application Code" for a Combined Work means the |
object code and/or source code for the Application, including any data |
and utility programs needed for reproducing the Combined Work from the |
Application, but excluding the System Libraries of the Combined Work. |
1. Exception to Section 3 of the GNU GPL. |
You may convey a covered work under sections 3 and 4 of this License |
without being bound by section 3 of the GNU GPL. |
2. Conveying Modified Versions. |
If you modify a copy of the Library, and, in your modifications, a |
facility refers to a function or data to be supplied by an Application |
that uses the facility (other than as an argument passed when the |
facility is invoked), then you may convey a copy of the modified |
version: |
a) under this License, provided that you make a good faith effort to |
ensure that, in the event an Application does not supply the |
function or data, the facility still operates, and performs |
whatever part of its purpose remains meaningful, or |
b) under the GNU GPL, with none of the additional permissions of |
this License applicable to that copy. |
3. Object Code Incorporating Material from Library Header Files. |
The object code form of an Application may incorporate material from |
a header file that is part of the Library. You may convey such object |
code under terms of your choice, provided that, if the incorporated |
material is not limited to numerical parameters, data structure |
layouts and accessors, or small macros, inline functions and templates |
(ten or fewer lines in length), you do both of the following: |
a) Give prominent notice with each copy of the object code that the |
Library is used in it and that the Library and its use are |
covered by this License. |
b) Accompany the object code with a copy of the GNU GPL and this license |
document. |
4. Combined Works. |
You may convey a Combined Work under terms of your choice that, |
taken together, effectively do not restrict modification of the |
portions of the Library contained in the Combined Work and reverse |
engineering for debugging such modifications, if you also do each of |
the following: |
a) Give prominent notice with each copy of the Combined Work that |
the Library is used in it and that the Library and its use are |
covered by this License. |
b) Accompany the Combined Work with a copy of the GNU GPL and this license |
document. |
c) For a Combined Work that displays copyright notices during |
execution, include the copyright notice for the Library among |
these notices, as well as a reference directing the user to the |
copies of the GNU GPL and this license document. |
d) Do one of the following: |
0) Convey the Minimal Corresponding Source under the terms of this |
License, and the Corresponding Application Code in a form |
suitable for, and under terms that permit, the user to |
recombine or relink the Application with a modified version of |
the Linked Version to produce a modified Combined Work, in the |
manner specified by section 6 of the GNU GPL for conveying |
Corresponding Source. |
1) Use a suitable shared library mechanism for linking with the |
Library. A suitable mechanism is one that (a) uses at run time |
a copy of the Library already present on the user's computer |
system, and (b) will operate properly with a modified version |
of the Library that is interface-compatible with the Linked |
Version. |
e) Provide Installation Information, but only if you would otherwise |
be required to provide such information under section 6 of the |
GNU GPL, and only to the extent that such information is |
necessary to install and execute a modified version of the |
Combined Work produced by recombining or relinking the |
Application with a modified version of the Linked Version. (If |
you use option 4d0, the Installation Information must accompany |
the Minimal Corresponding Source and Corresponding Application |
Code. If you use option 4d1, you must provide the Installation |
Information in the manner specified by section 6 of the GNU GPL |
for conveying Corresponding Source.) |
5. Combined Libraries. |
You may place library facilities that are a work based on the |
Library side by side in a single library together with other library |
facilities that are not Applications and are not covered by this |
License, and convey such a combined library under terms of your |
choice, if you do both of the following: |
a) Accompany the combined library with a copy of the same work based |
on the Library, uncombined with any other library facilities, |
conveyed under the terms of this License. |
b) Give prominent notice with the combined library that part of it |
is a work based on the Library, and explaining where to find the |
accompanying uncombined form of the same work. |
6. Revised Versions of the GNU Lesser General Public License. |
The Free Software Foundation may publish revised and/or new versions |
of the GNU Lesser General Public License from time to time. Such new |
versions will be similar in spirit to the present version, but may |
differ in detail to address new problems or concerns. |
Each version is given a distinguishing version number. If the |
Library as you received it specifies that a certain numbered version |
of the GNU Lesser General Public License "or any later version" |
applies to it, you have the option of following the terms and |
conditions either of that published version or of any later version |
published by the Free Software Foundation. If the Library as you |
received it does not specify a version number of the GNU Lesser |
General Public License, you may choose any version of the GNU Lesser |
General Public License ever published by the Free Software Foundation. |
If the Library as you received it specifies that a proxy can decide |
whether future versions of the GNU Lesser General Public License shall |
apply, that proxy's public statement of acceptance of any version is |
permanent authorization for you to choose that version for the |
Library. |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/Flight-Ctrl_MEGA644_V0_60_MM3.hex |
---|
0,0 → 1,1485 |
:100000000C9455030C9472030C9472030C947203B9 |
:100010000C9472030C9472030C9472030C9472038C |
:100020000C9472030C94960B0C9472030C94720350 |
:100030000C94DF140C9472030C9472030C947203EE |
:100040000C9472030C9472030C94390C0C94782861 |
:100050000C9497050C9472030C9461050C94720334 |
:100060000C94B20C0C9472030C944C140C94720308 |
:100070000E08880888088808400821088808880829 |
:1000800088086C086C086C086C086C0844088808C0 |
:100090008808330888083C08DB0C2D0D860DE10D1F |
:1000A000FE0D210E470E2E0F6D10A11002115811DA |
:1000B000A6111F127912DA12FE1234137013AE1346 |
:1000C000E7130A0A0D004E65757472616C0048658D |
:1000D0006164696E67486F6C64000A0D53746575DE |
:1000E0006572756E673A20004F4B0A0D000A0D418C |
:1000F00062676C65696368204C75667464727563C9 |
:100100006B73656E736F722E2E000A0D4B616C69F6 |
:10011000627269657265204E65757472616C6C619E |
:100120006765000A0D4B616C6962726965726520D2 |
:100130004B6F6D70617373000A0D42656E75747A52 |
:100140006520506172616D657465727361747A20A7 |
:100150002564000A0D496E69742E20454550524FA2 |
:100160004D3A2047656E6572696572652044656623 |
:1001700061756C742D506172616D657465722E2E9F |
:100180002E000A0D3D3D3D3D3D3D3D3D3D3D3D3D4E |
:100190003D3D3D3D3D3D3D3D3D3D3D3D3D3D3D3D8F |
:1001A0003D3D000A0D466C69676874436F6E74725A |
:1001B0006F6C205625642E256420002E005A5F5255 |
:1001C000616E67653A202025346900595F52616E7F |
:1001D00067653A202025346900585F52616E676573 |
:1001E0003A2020253469004D4D332052616E6765F9 |
:1001F000005A5F4F66667365743A202025336900A4 |
:10020000595F4F66667365743A202025336900583C |
:100210005F4F66667365743A2020253369004D4D43 |
:1002200033204F66660052616E67653A2533692D4B |
:10023000253369005374656C6C756E673A202533FD |
:100240006900536574706F696E74202025336900EE |
:10025000536572766F202000506F7469343A202005 |
:1002600025336900506F7469333A202025336900C3 |
:10027000506F7469323A202025336900506F7469D9 |
:10028000313A20202533690053746172743A20207A |
:10029000202020253569004D657373776572743AA7 |
:1002A0002020253569005269636874756E673A20AD |
:1002B00020253569004B6F6D7061737320202020FD |
:1002C00020202000456D70662E506567656C3A25CC |
:1002D0003569005370616E6E756E673A2020253562 |
:1002E0006900486F6368202534692028253369290F |
:1002F00000526F6C6C202534692028253369290051 |
:100300004E69636B20253469202825336929004113 |
:100310004343202D2053656E736F720047696572E9 |
:100320002025346920282533692900526F6C6C2000 |
:10033000253469202825336929004E69636B2025FF |
:100340003469202825336929004779726F202D20D0 |
:1003500053656E736F720050333A25346920204B19 |
:10036000616EE46C65200050313A253469202050DC |
:10037000323A253469200047733A253469202047F2 |
:10038000693A25346920004E693A253469202052A3 |
:100390006F3A25346920004B373A25346920204BC9 |
:1003A000616EE46C6520004B353A25346920204BA2 |
:1003B000363A25346920004B333A25346920204BE6 |
:1003C000343A25346920004B313A25346920204BDA |
:1003D000323A25346920004B6F6D706173733A2097 |
:1003E000202025356900526F6C6C3A202020202097 |
:1003F00020253569004E69636B3A2020202020209B |
:1004000025356900616B742E204C6167650048F6E4 |
:1004100068656E726567656C756E67004B65696EC1 |
:100420006520004F66662020202020203A202535B8 |
:1004300069004C756674647275636B3A2025356982 |
:1004400000536F6C6C486F6568653A20253569000C |
:10045000486F6568653A20202020202535690028EE |
:10046000632920486F6C676572204275737300536F |
:10047000657474696E673A20256420005625642EE1 |
:100480002564002B2B204D696B726F4B6F70746568 |
:1004900072202B2B005B25695D0000010203040420 |
:1004A00005060708090A0B0B0C0D0E0F101111128F |
:1004B0001314151516171818191A1B1B1C1D1D1EB1 |
:1004C0001F1F2021212223232424252526272728F6 |
:1004D0002829292A2A2B2B2C2C2D2D2D2E2E2F2F5F |
:1004E00030303031313232323333333434343535E5 |
:1004F0003536363637373737383838393939393A83 |
:100500003A3A3A3B3B3B3B3C3C3C3C3C3D3D3D3D31 |
:100510003E3E3E3E3E3F3F3F3F3F3F4040404040EB |
:1005200040414141414141424242424242424343B1 |
:10053000434343434344444444444444444545457D |
:100540004545454545454646464646464646464750 |
:100550004747474747474747474748484848484825 |
:100560004848484848494949494949494949494900 |
:100570004949494A4A4A4A4A4A4A4A4A4A4A4A4ADE |
:100580004A4B4B4B4B4B4B4B4B4B4B4B4B4B4B4BBC |
:100590004B4B4C4C4C4C4C4C4C4C4C4C4C4C4C4C9D |
:1005A0004C4C4C4C4C4D4D4D4D4D4D4D4D4D4D4D80 |
:1005B0004D4D4D4D4D4D4D4D4D4D4D4E4E4E4E4E66 |
:1005C0004E4E4E4E4E4E4E4E4E4E4E4E4E4E4E4E4B |
:1005D0004E4E4E4E4E4F4F4F4F4F4F4F4F4F4F4F30 |
:1005E0004F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F1B |
:1005F0004F4F4F4F000012002400360047005900B3 |
:100600006B007D008F00A000B200C300D500E600A3 |
:10061000F80009011A012B013C014D015E016F0137 |
:1006200080019001A001B101C101D101E101F001FE |
:1006300000020F021F022E023D024B025A02680204 |
:10064000760284029202A002AD02BA02C702D4026C |
:10065000E102ED02F902050310031C032703320334 |
:100660003C03470351035B0364036E03770380037A |
:10067000880390039803A003A703AF03B503BC034B |
:10068000C203C803CE03D303D803DD03E203E603AA |
:10069000EA03ED03F003F303F603F803FA03FC03A4 |
:1006A000FE03FF03FF030004000411241FBECFEF6D |
:1006B000D0E1DEBFCDBF11E0A0E0B1E0E0E3FCE5BA |
:1006C00002C005900D92AC38B107D9F715E0ACE83F |
:1006D000B1E001C01D92AC32B107E1F70E94AA035C |
:1006E0000C94172E0C940000A2E0B0E00E94F92DAB |
:1006F000802D99270895FB01863008F085E0282F8A |
:100700002150842F9927AAE32A9FD0011124A65FA4 |
:10071000BF4F019724F001900E94062EFACFA2E06D |
:10072000B0E0022E0E94062E0895FB01282F86308D |
:1007300008F025E0842F99272150AAE32A9FD001B1 |
:100740001124A65FBF4F019724F00E94F92D01925A |
:10075000FACF08950F931F93CF93DF9381E087B96A |
:100760008FEF88B98BE184B9289A8EE38AB9579ABA |
:1007700087EF8BB984B7877F84BF809160008861E1 |
:10078000809360001092600088EE93E09093A70140 |
:100790008093A60110921D0210921C0210929A04DE |
:1007A0001092990410921B0210921A0210921902D0 |
:1007B0001092180228980E94640B0E9467070E94FA |
:1007C000CA140E94AC0C0E9430140E94B92A78947A |
:1007D0001092A8038CE38093A90384E08093AA037A |
:1007E0008CE390E09F938F931F921F9283EA91E096 |
:1007F0009F938F931F920E94E70882E891E09F9356 |
:100800008F931F920E94E708299AA1E0B0E00E940E |
:10081000F92D802D2DB73EB7265F3F4F2DBF8A3073 |
:10082000B9F183E591E09F938F931F920E94E708AF |
:100830000E942D1C4AE361EC74E080E00E947B037F |
:1008400001E00F900F900F90023049F40E94C01BFE |
:100850004AE361EC74E082E00E947B0303E04AE338 |
:1008600061EC74E0802F0E947B030F5F063060F321 |
:1008700081E022E030E0D901082E0E94062E8AE0B5 |
:1008800021503040D901082E0E94062E0E94B71D2B |
:1008900002E010E0D8010E94F92D802D4AE361ECBE |
:1008A00074E00E949503D8010E94F92D802D9927AC |
:1008B0009F938F9388E391E09F938F931F920E9461 |
:1008C000E70884EF91E00E94810BEC010F900F90FC |
:1008D0000F900F900F90CE010E948A0B8823D9F3BE |
:1008E000E091C304FF27EE0FFF1FEB56FB4F808103 |
:1008F000918185369105C4F0E091C404FF27EE0F85 |
:10090000FF1FEB56FB4F808191818536910564F086 |
:1009100083E291E09F938F931F920E94E7080E94C9 |
:10092000F3290F900F900F90E091C304FF27EE0F73 |
:10093000FF1FEB56FB4F8081918185369105C4F0F6 |
:10094000E091C404FF27EE0FFF1FEB56FB4F8081A1 |
:1009500091818C599F4F64F48AE091E09F938F932B |
:100960001F920E94E7080E94B71D0F900F900F90F2 |
:100970008091C90480FF20C08DEE90E09F938F93FB |
:100980001F920E94E70884EC99E00E94810BEC0121 |
:100990000E94C80F0F900F900F90CE010E948A0BFB |
:1009A0008823D9F388EE90E09F938F931F920E9443 |
:1009B000E7080F900F900F900E94E51C289880ED9B |
:1009C00097E09093A7018093A60188EE93E090931F |
:1009D000A3038093A20385E580939D038AED90E0B5 |
:1009E0009F938F931F920E94E7088091C9040F90F4 |
:1009F0000F900F9082FF03C08EEC90E002C086EC57 |
:100A000090E09F938F931F920E94E7080F900F90A2 |
:100A10000F9082EC90E09F938F931F920E94E708C3 |
:100A20000E940C100F900F900F908091A5018823C9 |
:100A300079F11092A5010E94301E0E949E1C2898F8 |
:100A400080910101882319F08150809301018091E8 |
:100A50001702882329F08091170281508093170292 |
:100A600020910401309105018091D904992728171C |
:100A7000390734F480ED97E09093A7018093A601A5 |
:100A80008091CF01882319F40E94301401C0289866 |
:100A90000E9482070E94F00780E090E00E948A0B8B |
:100AA000882319F280911E02882329F088B190E1F1 |
:100AB000892788B901C0449884EF91E00E94810B96 |
:100AC000B4CF1F920F920FB60F9211248F939F9362 |
:100AD000EF93FF93809100018823E1F48091A101BD |
:100AE0009091A20101969093A2018093A101FC0133 |
:100AF000E159FD4FE081ED3019F08639910539F467 |
:100B00001092A2011092A10181E080930001E09374 |
:100B1000C60004C01092A2011092A101FF91EF91B2 |
:100B20009F918F910F900FBE0F901F9018951F925D |
:100B30000F920FB60F9211242F933F934F938F93E1 |
:100B40009F93AF93BF93CF93DF93EF93FF938091E6 |
:100B5000C6008093900140919C01463910F010929C |
:100B60009B01809190018D3009F05CC080919B01C8 |
:100B7000823009F057C010929B01A42FBB27FD01C2 |
:100B8000E055FC4F3081ED01CF54DC4F288180913E |
:100B90009F019091A001831B9109821B91099F7075 |
:100BA0009093A00180939F019C0196E03695279534 |
:100BB0009A95E1F7235C20939E01982F9F73935C95 |
:100BC00090939D018081281729F48881981711F44A |
:100BD00091E006C0809193018F5F8093930190E034 |
:100BE00080919101882309F064C0992309F461C0C0 |
:100BF00081E08093910140939401AE54BC4F8DE00D |
:100C00008C938091B403823509F053C088E190E061 |
:100C10002CE00FB6F894A895809360000FBE209347 |
:100C2000600047C080919B018130D9F0813018F07D |
:100C30008230E9F530C080919001833239F480919F |
:100C40009101882319F481E080939B0180919001A8 |
:100C50008093B20381E080939C0180919001992759 |
:100C600015C082E080939B01E42FFF2780919001C3 |
:100C7000EE54FC4F80834F5F40939C012091900184 |
:100C800080919F019091A001820F911D9093A001EE |
:100C900080939F010EC0E42FFF2780919001EE54B6 |
:100CA000FC4F8083463938F310929B01E7CF1092B6 |
:100CB0009B01FF91EF91DF91CF91BF91AF919F91F8 |
:100CC0008F914F913F912F910F900FBE0F901F90DA |
:100CD0001895DC0120E030E040E050E0EFE6F2E083 |
:100CE00005C08191280F311D4F5F5F4F4A175B0789 |
:100CF000C1F73F70C90136E0969587953A95E1F7BF |
:100D0000835CFD01E159FD4F808311962F73235CB5 |
:100D1000FD01E159FD4F2083A059BD4F8DE08C931B |
:100D20001092000180916F028093C6000895EF92A7 |
:100D3000FF920F931F93CF93DF937A01722F93E269 |
:100D400090936F02609370028093710203E010E051 |
:100D500060E0A2E7B2E046C0F701E60FF11D908126 |
:100D60006F5F715019F4E0E040E00FC0F701E60F4B |
:100D7000F11D40816F5F715011F4E0E006C0F70192 |
:100D8000E60FF11DE0816F5F7150892F8695869582 |
:100D9000835C8C935527892F99278370907024E06A |
:100DA000880F991F2A95E1F79A0194E036952795C7 |
:100DB0009A95E1F7822B835CED0189834F70507027 |
:100DC000440F551F440F551F8E2F8295869586958B |
:100DD0008370842B835C8A83EF73E35CEB830C5F0B |
:100DE0001F4F1496772309F0B7CFC8010E946906F8 |
:100DF000E6E0CDB7DEB70C94E42D1F93CF93DF93DD |
:100E0000EC0170E0A22FBB27129748C0E42FFF2708 |
:100E1000EE54FC4F30814F5FE42FFF27EE54FC4F20 |
:100E200050814F5FE42FFF27EE54FC4F10814F5F3E |
:100E3000E42FFF27EE54FC4F20814F5F842F99272A |
:100E4000A817B90774F15D53FE01E70FF11D3D537B |
:100E5000330F330F852F82958F70382B308361309D |
:100E600001F1912F9D537F5FFE01E70FF11D71503E |
:100E70005295507F892F86958695582B50836350C5 |
:100E80006F3F79F07E5FFE01E70FF11D9295990F9C |
:100E9000990F907C2D53922B90837F5F662309F0EE |
:100EA000B5CFDF91CF911F9108951F93182F8A30EE |
:100EB00019F48DE00E9455078091C00085FFFCCF9A |
:100EC0001093C60080E090E01F9108950895E1EC32 |
:100ED000F0E088E18083A0ECB0E08C9182608C939C |
:100EE0008081806880838081806480838AE28093AF |
:100EF000C40088EC90E00E94810B90939C03809347 |
:100F00009B03089580910001882309F468C08091B3 |
:100F10008C01882371F080910001882351F02BE02F |
:100F20004DE953E060916E0287E40E9497061092AB |
:100F30008C0180919B0390919C030E948A0B8823D3 |
:100F400021F480918E018823B1F0809100018823E3 |
:100F500091F022E348E454E060916E0284E40E9440 |
:100F6000970610928E018AEF90E00E94810B909379 |
:100F70009C0380939B0380918D018823F1F08091E5 |
:100F800000018823D1F00E94151010928D018091EC |
:100F90009A018F5F80939A01843011F410929A0124 |
:100FA00080919A0144E1849FA00111244A5E5E4F22 |
:100FB00024E160E0805D0E94970680918F01882384 |
:100FC00071F080910001882351F02AE048EA53E053 |
:100FD00060916E0286E50E94970610928F01089537 |
:100FE000A2E0B0E0E6EFF7E00C94CB2D8091910108 |
:100FF000882309F48FC08FEF809301018091B4039F |
:101000009927AA27BB27FC01E356F040E431F105FC |
:1010100008F07EC0E85CFF4F0C94F32D2091940102 |
:1010200043E06BE08DE993E00E94FD068091C601EC |
:1010300090919F03892B8093C60181E080938E015C |
:1010400067C02091940143E062E0CE0101960E94C6 |
:10105000FD068091C6019981892B8093C60181E0AC |
:1010600080938D0155C02091940143E064E086E9AE |
:1010700091E00E94FD064CC081E080938F0148C042 |
:1010800081E080938C0144C02091940143E062E0B0 |
:10109000CE0101960E94FD0689818F3F89F086303E |
:1010A00010F085E089834AE361EC74E089810E9455 |
:1010B000950389812AE341EC54E060916E0208C0F7 |
:1010C00010916E020E9474032AE341EC54E0612FF8 |
:1010D000855B0E9497061CC02091940143E06AE35F |
:1010E00081EC94E00E94FD068091B4034AE361EC38 |
:1010F00074E08B560E947B038091B4038B56A2E070 |
:10110000B0E0082E0E94062E0E9474030E941B1E4F |
:1011100010929101E3E0CE5F0C94E72D982F80911F |
:101120007A04813069F48091C501E82FFF27EA5ED7 |
:10113000FE4F90838F5F8093C50121E030E005C0B2 |
:10114000892F0E945507282F3327C90108951F931F |
:10115000182F04C080E30E948E0811501116D4F39A |
:101160001F9108951F93182F04C080E20E948E08DB |
:1011700011501116D4F31F9108950F931F93CF931D |
:10118000DF938C01EB0108C0F8010F5F1F4FE49162 |
:101190008E2F0E948E0821972097B1F7DF91CF9173 |
:1011A0001F910F9108950F931F93CF93DF938C019D |
:1011B000EB0106C0F80181918F010E948E082197F2 |
:1011C0002097C1F7DF91CF911F910F910895A3E36D |
:1011D000B0E0EDEEF8E00C94BC2D29968FAD299788 |
:1011E00080937A04CE01855B9F4F9D838C832B96E1 |
:1011F0008EAD9FAD2B979FA78EA72224332421016C |
:1012000002C0130124010EA51FA502C00F5F1F4FCE |
:10121000F801F490FF2019F0F5E2FF16B9F7B801D4 |
:101220008EA59FA5681B790B11F00E94BD08FF20B9 |
:1012300009F446C20F5F1F4F1FA70EA71982AC818A |
:10124000BD811BAA1AAA9FEF99ABEEA5FFA5CF01FE |
:1012500001969FA78EA7B49095E7B91621F08B2D24 |
:101260008062883789F4EBA9E0FF07C02D903D909C |
:101270004D905C901397149607C08D919C91119797 |
:101280001C01442455241296F0E2BF1621F48981F2 |
:101290008823D9F685C083E2B81609F483C09AE2A0 |
:1012A000B91621F0EDE2BE1669F408C0FD011296F0 |
:1012B000E081EAABE7FFC9CFE195EAABFBA9F061BA |
:1012C000FF7D72C08BE2B81609F46AC09EE2B916BF |
:1012D000B1F52EA53FA52F5F3F4FEEA5FFA5849149 |
:1012E0008A3221F0B82E20E030E01BC0FD011296BA |
:1012F0004081518157FF02C04FEF5FEF49AB3FA7DD |
:101300002EA7A3CFC90143E0880F991F4A95E1F7A3 |
:10131000220F331F280F391F2B0D311D2053304052 |
:10132000B49031968B2D80538A3060F3FFA7EEA7DF |
:10133000A90137FF02C04FEF5FEF49AB8DCFF0E35C |
:10134000BF1631F48BA984FD80CF80628BAB7DCF3B |
:101350008B2D81538930E8F420E030E0C90113E09F |
:10136000880F991F1A95E1F7220F331F280F391F95 |
:101370002B0D311D20533040EEA5FFA5CF01019666 |
:101380009FA78EA7B4908B2D80538A3038F32AAB59 |
:1013900063CF98E6B91651F4EBA9E460EBAB55CFF7 |
:1013A000B98253CFFBA9F860FBAB4FCF8CE6B816E0 |
:1013B00021F49BA991609BAB48CFBD83AC83E3E64E |
:1013C000BE1639F41296BD83AC8312978C918E832E |
:1013D0001CC1F4E4BF1639F084E6B81639F099E67A |
:1013E000B91659F503C0EBA9E160EBABFBA9F0FF1F |
:1013F00008C01496BD83AC835E904E903E902E90B4 |
:101400000AC01296BD83AC839E918E911C01442428 |
:1014100037FC4094542C57FC03C08AE088AB96C03C |
:101420005094409430942094211C311C411C511C38 |
:101430008DE289839AE098AB89C0EFE4BE1629F06B |
:10144000FFE6BF1639F488E065C09BA991609BABAD |
:10145000E8E05AC0F0E7BF1681F41296BD83AC8372 |
:101460009E918E911C01442455248BA980648BABE2 |
:1014700090E198ABE8E7BE2E68C0E3E7BE16E9F559 |
:101480001296BD83AC83DE90CE90C114D10489F452 |
:1014900088E28E838EE68F8385E788878CE689874E |
:1014A0008A8789E28B871C8676E0C72ED12CCC0EEA |
:1014B000DD1EF9A9F7FD13C04F2F552747FD5095A5 |
:1014C00060E070E0C6010E94C42B009711F419A9D6 |
:1014D0000DC08C1919A981174CF4182F07C0F601FB |
:1014E00001900020E9F731971E2F1C191982420143 |
:1014F000310163E7B62E40E094C085E5B81631F0BF |
:1015000095E7B91649F4EAE0E8AB1FC0FBA9F16022 |
:10151000FBAB8AE088AB19C098E5B91621F0E8E783 |
:10152000BE1609F06EC0FBA9F3FD02C080E1F2CF48 |
:10153000211431044104510419F490E198AB05C021 |
:10154000EBA9E064EBABF0E1F8AB198289A987FD68 |
:1015500003C09BA99F7D9BAB21143104410451041E |
:1015600061F4E9A9EE2349F46624772443015EE29D |
:10157000C52ED12CCC0EDD1E3EC04EE2C42ED12C89 |
:10158000CC0EDD1EF8A9EF2EFF2400271127C20183 |
:10159000B101A80197010E947F2D6A3020F430E349 |
:1015A000A32EA60E08C027E5A22EA60E88E5B81623 |
:1015B00011F49FEDA922F601A2926F01C201B101BF |
:1015C000A80197010E947F2D39014A012E143F0482 |
:1015D0004006510618F019012A01D9CFF8A9F830B0 |
:1015E00051F48BA983FF07C090E3A91621F080E393 |
:1015F000F60182936F01CE018C19182F125D49A953 |
:1016000010C0BB2009F45CC0BE82198242013101C6 |
:1016100000E096E0C92ED12CCC0EDD1E11E021E0B9 |
:1016200005C0212F042F011B07FD00E089818823BD |
:1016300019F0812F8F5F07C09BA996FD02C0812FF3 |
:1016400002C0822F8E5FA82EA00EEBA9EE2EFF24E3 |
:1016500080E3482E512C4E205F204114510421F488 |
:101660008AA98A190E94B2088981882329F061E039 |
:1016700070E0CE01019609C0E6FE09C080E38A83CE |
:10168000BB8262E070E0CE0102960E94D308F0E2D5 |
:101690004F16510421F48AA98A190E94A708802FA5 |
:1016A0000E94A708612F772767FD7095C6010E94E9 |
:1016B000D308E4FEA6CD8AA98A190E94B208A1CD5A |
:1016C000E2E1CD5C0C94D82D82E085BD83EA84BD37 |
:1016D00017BC88E788BD83EC8093B00086E08093D8 |
:1016E000B100E0E7F0E0808182608083EEE6F0E028 |
:1016F0008081816080838AE08093B3001092B20081 |
:1017000008952091A3013091A4012F5F3F4F820FD4 |
:10171000931F08952091A3013091A401821B930B84 |
:10172000892F992786958074992708951F920F9283 |
:101730000FB60F921124EF92FF920F931F932F93E6 |
:101740003F934F935F936F937F938F939F93AF9349 |
:10175000BF93CF93DF93EF93FF938091020181506A |
:10176000809302018F3F09F069C083E88093B00045 |
:1017700080918901C82FDD27D093A901C093A801CA |
:101780008091E704E090E3042091D6013091D701E5 |
:101790004091D8015091D90180FF18C0FF24002743 |
:1017A0001127CA01B90120E830E040E050E00E9472 |
:1017B000A12DC801B7010E94392D20E032E040E0A0 |
:1017C00050E00E94A12DC20FD31F17C0FF24002795 |
:1017D0001127CA01B90120E830E040E050E00E9442 |
:1017E000A12DC801B7010E94392D20E032E040E070 |
:1017F00050E00E94A12DC21BD30BD093A901C0932E |
:10180000A8012091A8013091A9018091E4049927B1 |
:101810002817390734F08091E50499278217930738 |
:1018200024F49093A9018093A8018091A80180934A |
:10183000B3008091E6048093020104C083E08093AA |
:10184000B0005F98FF91EF91DF91CF91BF91AF9181 |
:101850009F918F917F916F915F914F913F912F91C8 |
:101860001F910F91FF90EF900F900FBE0F901F9060 |
:1018700018951F920F920FB60F9211242F933F933A |
:101880004F935F936F937F938F939F93AF93BF9388 |
:10189000EF93FF938091AA0181508093AA018F3F1B |
:1018A00001F58AE08093AA01809103018F5F817026 |
:1018B00080930301882319F481E08093A50180912E |
:1018C000A3019091A40101969093A4018093A30198 |
:1018D0008091CF01882329F08091CF01815080939E |
:1018E000CF018091A6019091A701029758F08091B5 |
:1018F000A6019091A70101979093A7018093A6015B |
:101900005A9A01C05A988091C90483FF02C00E946C |
:10191000C129FF91EF91BF91AF919F918F917F91DD |
:101920006F915F914F913F912F910F900FBE0F904C |
:101930001F9018952091A3013091A4012F5F3F4F74 |
:10194000280F391F8091A3019091A401A901481B80 |
:10195000590B57FFF7CF089510927C008FEC8093BE |
:101960007A0008951F920F920FB60F921124EF92F2 |
:10197000FF920F931F932F933F934F935F936F9318 |
:101980007F938F939F93AF93BF93CF93DF93EF9307 |
:10199000FF9310927A008091C1018F5F8093C10103 |
:1019A0008150E82FFF27E830F10508F0CFC2E45B53 |
:1019B000FF4F0C94F32D2091D4013091D5018091EB |
:1019C000780090917900281B390B8091AF0190919C |
:1019D000B001820F931F9093B0018093AF0180916B |
:1019E000B9018F5F8093B9018091FA019091FB0159 |
:1019F000A091FC01B091FD01442737FD4095542F83 |
:101A0000820F931FA41FB51F8093FA019093FB01CF |
:101A1000A093FC01B093FD018091FE019091FF0124 |
:101A2000A0910002B0910102820F931FA41FB51F65 |
:101A30008093FE019093FF01A0930002B0930102F6 |
:101A400081E08093C2018091BF019091C001019615 |
:101A50009093C0018093BF017DC260917800709126 |
:101A600079008091D2019091D301681B790B80910C |
:101A7000F2019091F301A091F401B091F5019B0165 |
:101A8000442737FD4095542F820F931FA41FB51F85 |
:101A90008093F2019093F301A093F401B093F501C8 |
:101AA0008091F6019091F701A091F801B091F901B0 |
:101AB000820F931FA41FB51F8093F6019093F70127 |
:101AC000A093F801B093F90180917800909179008A |
:101AD0000A9710F464E47DEF80917800909179008A |
:101AE000895E934010F06CEB72E08091AD019091B3 |
:101AF000AE01860F971F9093AE018093AD01809148 |
:101B0000B8018F5F8093B80182E058C0609178007F |
:101B1000709179008091D0019091D101681B790B6F |
:101B20008091EA019091EB01A091EC01B091ED015F |
:101B30009B01442737FD4095542F820F931FA41F0C |
:101B4000B51F8093EA019093EB01A093EC01B09351 |
:101B5000ED018091EE019091EF01A091F001B09123 |
:101B6000F101820F931FA41FB51F8093EE01909384 |
:101B7000EF01A093F001B093F10180917800909172 |
:101B800079000A9710F464E47DEF809178009091D9 |
:101B90007900895E934010F06CEB72E08091AB01AC |
:101BA0009091AC01860F971F9093AC018093AB018D |
:101BB0008091B7018F5F8093B70184E08093C20169 |
:101BC000C9C1409104015091050180917800909124 |
:101BD00079009A01220F331F240F351F63E070E054 |
:101BE0000E94582D260F371F369527953695279535 |
:101BF000309305012093040186E0E0CF8091080531 |
:101C0000909109052091780030917900821B930B07 |
:101C100090937C0480937B048091B1019091B201F8 |
:101C200020917B0430917C04820F931F9093B2012A |
:101C30008093B1018091BB018F5F8093BB0187E0EE |
:101C4000BDCF809178009091790020910605309168 |
:101C50000705821B930B90938704809386048091E1 |
:101C6000B3019091B4012091860430918704820FD2 |
:101C7000931F9093B4018093B3018091BA018F5F59 |
:101C80008093BA0185E08093C20186E0E4C0609150 |
:101C9000780070917900E0900A05F0900B050091B2 |
:101CA0000C0510910D05882777FD8095982F0E94CF |
:101CB000772CA80197010E94D12B0E945A2C709377 |
:101CC000B6016093B5012091B5013091B601E09164 |
:101CD0007B04F0917C04809186049091870497FFA7 |
:101CE00003C0909581959F4F64E070E00E946C2D39 |
:101CF000EB01CF01F7FF03C0909581959F4F64E002 |
:101D000070E00E946C2D260F371F2C0F3D1F309363 |
:101D1000B6012093B5018091B5019091B60102976B |
:101D200004F160910A0570910B0580910C0590916A |
:101D30000D0520E030E048E454E40E94812C882323 |
:101D40000CF03CC060910A0570910B0580910C0568 |
:101D500090910D052AE037ED43EA5CE30E94D22B17 |
:101D600025C08091B5019091B6018F5F9F4F34F5EA |
:101D700060910A0570910B0580910C0590910D05FD |
:101D800020E030E046E154E40E94842C1816B4F4BC |
:101D900060910A0570910B0580910C0590910D05DD |
:101DA0002AE037ED43EA5CE30E94D12B60930A05F9 |
:101DB00070930B0580930C0590930D0581E0809343 |
:101DC000BC01809178009091790090937E0480937B |
:101DD0007D0420910202309103024091040250914F |
:101DE00005028091B5019091B601AA2797FDA095B3 |
:101DF000BA2F280F391F4A1F5B1F2093020230930E |
:101E000003024093040250930502E0900202F09016 |
:101E10000302009104021091050260910202709188 |
:101E20000302809104029091050220E034E040E03A |
:101E300050E00E94A12DE21AF30A040B150BE09268 |
:101E40000202F0920302009304021093050283E061 |
:101E50008093C20187E08093C1017CC080918B0494 |
:101E600090918C042091780030917900820F931F1B |
:101E700090938C0480938B04809183048F5F809374 |
:101E8000830480918304853008F460C080917800D9 |
:101E90009091790090930B0180930A011092830432 |
:101EA00080917F049091800420918B0430918C0468 |
:101EB000821B930B20911F0230912002821B930BF7 |
:101EC0009093BE018093BD0160918B0470918C044E |
:101ED000E0900601F09007010091080110910901BE |
:101EE000882777FD8095982FA8019701220F331F2F |
:101EF000441F551F2E0D3F1D401F511F620F731FA2 |
:101F0000841F951F24E030E040E050E00E94A12DA6 |
:101F10002093060130930701409308015093090173 |
:101F200020917F04309180048091060190910701F7 |
:101F3000A0910801B0910901281B390B30932002B0 |
:101F400020931F0210928C0410928B041092C201F5 |
:101F50001092C1018091C20180937C008FEC80932C |
:101F60007A00FF91EF91DF91CF91BF91AF919F9157 |
:101F70008F917F916F915F914F913F912F911F9121 |
:101F80000F91FF90EF900F900FBE0F901F9018953C |
:101F9000CF93DF93A3E0B0E00E94F92D802DC82FEE |
:101FA000DD27C531D10508F02A97C7BD84E690E04A |
:101FB0000E949A0C80910A0190910B0182559340E6 |
:101FC000D0F4C0E0D0E017C0C7BD82E390E00E942B |
:101FD0009A0C8BEB91E09F938F931F920E94E708DE |
:101FE00080910A0190910B010F900F900F908458EF |
:101FF000934020F02196CA3FD10530F3A3E0B0E032 |
:102000000C2E0E94062EC093880488EC90E00E945B |
:102010009A0CDF91CF910895E6E1F1E080E281939F |
:1020200091E0E636F907D9F70895FF920F931F93D1 |
:102030008091C601282F3327C90181709070682FC5 |
:10204000882391F08091C701882311F0815002C04C |
:10205000809166018093C701E6E1F1E080E281931F |
:1020600091E0E636F907D9F7A9014270507021FFD7 |
:102070000DC08091C7018F5F8093C701E6E1F1E059 |
:1020800080E2819391E0E636F907D9F7662321F0E3 |
:10209000452B11F01092C70181E18093C501809119 |
:1020A000C70199279F938F9385E994E09F938F931E |
:1020B00081E08F930E94E7088091C7010F900F90F5 |
:1020C0000F900F900F90E82FFF27ED30F10508F0EB |
:1020D000BCC3EC5AFF4F0C94F32D1092C50183E85A |
:1020E00094E09F938F9311E01F930E94E70884E18F |
:1020F0008093C5018CE390E09F938F931F921F9272 |
:102100008CE794E09F938F931F930E94E70888E2E7 |
:102110008093C5010E94740399279F938F938FE644 |
:1021200094E09F938F931F930E94E7088CE3809322 |
:10213000C5018FE594E09F938F931F930E94E7085A |
:1021400080C38091C90480FF44C01092C501809172 |
:102150001F02909120029F938F9380E594E09F93BC |
:102160008F9311E01F930E94E70884E18093C501DB |
:1021700080912102909122029F938F9381E494E0B9 |
:102180009F938F931F930E94E70888E28093C50175 |
:1021900080910A0190910B019F938F9382E394E0C9 |
:1021A0009F938F931F930E94E7088CE38093C50150 |
:1021B0008091880499279F938F9383E294E09F9363 |
:1021C0008F931F930E94E7088DB79EB744968DBFEB |
:1021D00041C384E18093C5018CE194E09F938F9388 |
:1021E00011E01F930E94E70888E28093C5018EE00A |
:1021F00094E09F938F931F930E94E7088DB79EB73B |
:102200000696E5CF1092C50184E094E09F938F93EA |
:1022100011E01F930E94E70884E18093C50160915B |
:10222000D6017091D7018091D8019091D90120E019 |
:1022300034E040E050E00E94A12D5F934F933F9324 |
:102240002F9385EF93E09F938F931F930E94E7084E |
:1022500088E28093C5016091DE017091DF01809179 |
:10226000E0019091E10120E034E040E050E00E9484 |
:10227000A12D5F934F933F932F9386EE93E09F930F |
:102280008F931F930E94E7088CE38093C501809190 |
:102290000602909107029F938F9387ED93E09F939F |
:1022A0008F931F930E94E7088DB79EB746968FCFF6 |
:1022B0001092C5018091990490919A0420919704FD |
:1022C000309198049F938F933F932F9387EC93E0E3 |
:1022D0009F938F9311E01F930E94E70884E18093FE |
:1022E000C50180919D0490919E0420919B043091A2 |
:1022F0009C049F938F933F932F9387EB93E09F933F |
:102300008F931F930E94E70888E28093C501809114 |
:10231000A1049091A20420919F043091A0049F9366 |
:102320008F933F932F9387EA93E09F938F931F930D |
:102330000E94E7088CE38093C5018091A3049091EB |
:10234000A4049F938F9387E993E070C01092C50116 |
:10235000E091C204FF27EE0FFF1FEB56FB4F2081D9 |
:102360003181E091C104FF27EE0FFF1FEB56FB4FB9 |
:10237000808191813F932F939F938F9387E893E080 |
:102380009F938F9311E01F930E94E70884E180934D |
:10239000C501E091C404FF27EE0FFF1FEB56FB4F72 |
:1023A00020813181E091C304FF27EE0FFF1FEB5620 |
:1023B000FB4F808191813F932F939F938F9387E76A |
:1023C00093E09F938F931F930E94E70888E2809386 |
:1023D000C501E091C604FF27EE0FFF1FEB56FB4F30 |
:1023E00020813181E091C504FF27EE0FFF1FEB56DE |
:1023F000FB4F808191813F932F939F938F9387E62B |
:1024000093E09F938F931F930E94E7088CE3809340 |
:10241000C501E091C704FF27EE0FFF1FEB56FB4FEE |
:10242000808191819F938F9387E593E09F938F9312 |
:102430001F930E94E7088DB79EB74A96C8CE1092A8 |
:10244000C50189E493E09F938F9311E01F930E944D |
:10245000E70884E18093C5012091D0013091D1013A |
:102460008091AB019091AC016091B7013F932F93A4 |
:1024700077270E946C2D7F936F938AE393E09F935D |
:102480008F931F930E94E70888E28093C5012091F3 |
:10249000D2013091D3018091AD019091AE01609154 |
:1024A000B8013F932F9377270E946C2D7F936F93F2 |
:1024B0008BE293E09F938F931F930E94E7088CE336 |
:1024C0008093C5012091D4013091D5018091AF0155 |
:1024D0009091B0016091B9013F932F9377270E94AB |
:1024E0006C2D7F936F938CE193E09F938F931F9359 |
:1024F0005BC01092C5018FE093E09F938F9381E0C2 |
:10250000F82EFF920E94E70884E18093C501209194 |
:102510000605309107058091B3019091B401609157 |
:10252000BA013F932F9377270E946C2D7F936F936F |
:1025300080E093E09F938F93FF920E94E70888E2E8 |
:102540008093C50120910805309109058091B10162 |
:102550009091B2016091BB013F932F9377270E9426 |
:102560006C2D7F936F9381EF92E09F938F93FF92F7 |
:102570000E94E7088CE38093C50160910A05709181 |
:102580000B0580910C0590910D0500917D04109133 |
:102590007E040E945A2C7F936F931F930F9382EEB9 |
:1025A00092E09F938F93FF920E94E7088DB79EB7AA |
:1025B00048960DCE84E18093C501809104019091ED |
:1025C00005019F938F9383ED92E09F938F9311E08A |
:1025D0001F930E94E70888E28093C501809117024B |
:1025E00099279F938F9384EC92E09F938F931F93EF |
:1025F0000E94E7088DB79EB70A96E9CD1092C501F3 |
:1026000085EB92E09F938F9311E01F930E94E70860 |
:1026100084E18093C50180910A0290910B029F93FF |
:102620008F9386EA92E09F938F931F930E94E7080F |
:1026300088E28093C50180910602909107029F93E2 |
:102640008F9387E992E09F938F931F930E94E708EF |
:102650008CE38093C50180910802909109029F93B9 |
:102660008F9388E892E0E8C01092C50180910F0234 |
:10267000909110029F938F938CE792E09F938F939A |
:1026800011E01F930E94E70884E18093C5018091C7 |
:102690001102909112029F938F9380E792E09F9393 |
:1026A0008F931F930E94E70888E28093C501809171 |
:1026B0001302909114029F938F9384E692E09F936C |
:1026C0008F931F930E94E7088CE38093C50180914C |
:1026D0001502909116029F938F9388E592E06FCD3B |
:1026E0001092C50180E592E09F938F9311E01F93B4 |
:1026F0000E94E70884E18093C501809189019927B0 |
:102700009F938F9382E492E09F938F931F930E94F5 |
:10271000E70888E28093C5018091A8019091A90102 |
:102720009F938F9384E392E09F938F931F930E94D4 |
:10273000E7088CE38093C5018091E50499279F9376 |
:102740008F938091E40499279F938F9386E292E080 |
:102750009F938F931F930E94E70836CD1092C50177 |
:102760008EE192E09F938F9311E01F930E94E70800 |
:1027700084E18093C50180911905992787FD909583 |
:102780009F938F938FE092E09F938F931F930E946C |
:10279000E70888E28093C50180911A05992787FD93 |
:1027A00090959F938F9380E092E09F938F931F93D8 |
:1027B0000E94E7088CE38093C50180911B0599274F |
:1027C00087FD90959F938F9381EF91E035C0109294 |
:1027D000C50187EE91E09F938F9311E01F930E94B4 |
:1027E000E70884E18093C50180911C0590911D0547 |
:1027F0009F938F9389ED91E09F938F931F930E94F6 |
:10280000E70888E28093C50180911E0590911F051D |
:102810009F938F938BEC91E09F938F931F930E94D4 |
:10282000E7088CE38093C5018091200590912105F4 |
:102830009F938F938DEB91E09F938F931F930E94B3 |
:10284000E7088DB79EB74296C2CC8150809366014F |
:102850001092C7011092C6011F910F91FF90089529 |
:102860001092B9008AE28093B800089585EA8093B7 |
:10287000BC00089584E98093BC0008958093BB0058 |
:1028800085E88093BC00089585EC8093BC00089592 |
:1028900085E88093BC0008951F920F920FB60F92A7 |
:1028A00011248F939F93EF93FF938091C8018F5FC3 |
:1028B0008093C80181508330E9F1843028F481305D |
:1028C00081F0823078F508C08530D9F18530B8F1D3 |
:1028D000863009F04FC03EC08091C901880F8E5AE2 |
:1028E00012C08091C9018F5F8093C90181508130EE |
:1028F00081F0813030F0823079F0833009F041C0CE |
:102900000EC0809160028093BB0085E88093BC007C |
:1029100038C080916102F7CF80916402F4CF80913A |
:102920006502F1CF8091C901843010F41092C80182 |
:1029300085EAECCF8091CA01880F8D5AE4CF85ECEF |
:10294000E5CFE091CA01FF278091BB00E357FB4F21 |
:102950008083DBCF8091CA01E82FFF279091BB00D5 |
:10296000EF56FB4F90838F5F8093CA01843010F045 |
:102970001092CA0184E98093BC001092C8011092A1 |
:10298000C901FF91EF919F918F910F900FBE0F9012 |
:102990001F90189583EC80938100EFE6F0E0808132 |
:1029A000806280831092D5011092D4011092D301DD |
:1029B0001092D2011092D1011092D00108951F926D |
:1029C0000F920FB60F9211240F931F932F933F93E3 |
:1029D0004F935F936F937F938F939F93AF93BF9327 |
:1029E000CF93DF93EF93FF93209186003091870080 |
:1029F0008091CD019091CE01281B390B80918600EA |
:102A0000909187009093CE018093CD01C9018D5D97 |
:102A100095408356994148F481E090E09093CC0131 |
:102A20008093CB011092670154C0C091CB01D0912B |
:102A3000CC01CA30D1050CF04CC0C9018B5F90406D |
:102A4000845B914008F040C0A901425D5140FE0105 |
:102A5000EE0FFF1FEB56FB4F80819181FA01E81BBF |
:102A6000F90BCF01F7FF03C0909581959F4F069713 |
:102A70004CF480911702883C28F480911702865FFD |
:102A800080931702FE01EE0FFF1F8F010B561B4FA5 |
:102A9000D8012D913C91C901880F991F820F931F76 |
:102AA000840F951F64E070E00E946C2DD8018D9119 |
:102AB0009C9111979B01281B390BE555FB4F3183E6 |
:102AC000208311967C936E932196D093CC01C09372 |
:102AD000CB01FF91EF91DF91CF91BF91AF919F918A |
:102AE0008F917F916F915F914F913F912F911F91A6 |
:102AF0000F910F900FBE0F901F901895AF92BF923D |
:102B0000CF92DF92EF92FF920F931F9310927A0071 |
:102B10008091B701882369F08091AB019091AC015D |
:102B20006091B70177270E946C2D7093FE0460932B |
:102B3000FD048091B801882369F08091AD019091E6 |
:102B4000AE016091B80177270E946C2D7093FC0450 |
:102B50006093FB048091B901882369F08091AF01F3 |
:102B60009091B0016091B90177270E946C2D70930C |
:102B70001205609311058091BA018823D9F1609103 |
:102B8000B3017091B4012091BA01E0900E05F0906C |
:102B90000F050027F7FC0095102F5701680183E00F |
:102BA000AA0CBB1CCC1CDD1C8A95D1F7AE18BF0843 |
:102BB000C00AD10A882777FD8095982FB4E0660F68 |
:102BC000771F881F991FBA95D1F7332744275527B8 |
:102BD0000E94A12DA20EB31EC41ED51EC601B501B2 |
:102BE00028E030E040E050E00E94A12D30930F0536 |
:102BF00020930E058091BB018823D9F16091B1012A |
:102C00007091B2012091BB01E0901705F09018057A |
:102C10000027F7FC0095102F57016801A3E0AA0CCC |
:102C2000BB1CCC1CDD1CAA95D1F7AE18BF08C00A8E |
:102C3000D10A882777FD8095982FF4E0660F771FDB |
:102C4000881F991FFA95D1F73327442755270E94EB |
:102C5000A12DA20EB31EC41ED51EC601B50128E0CB |
:102C600030E040E050E00E94A12D30931805209301 |
:102C700017058091BC018823A1F16091B501709185 |
:102C8000B6012091BC01E0900005F09001050027FD |
:102C9000F7FC0095102F57016801E3E0AA0CBB1C5C |
:102CA000CC1CDD1CEA95D1F7AE18BF08C00AD10ACA |
:102CB000882777FD8095982F3327442755270E9432 |
:102CC000A12DA20EB31EC41ED51EC601B50128E05B |
:102CD00030E040E050E00E94A12D309301052093A8 |
:102CE00000051092AC011092AB011092B701109246 |
:102CF000AE011092AD011092B8011092B001109285 |
:102D0000AF011092B9011092B2011092B10110926C |
:102D1000BB011092B4011092B3011092BA0110924B |
:102D2000B6011092B5011092BC018091FA01909108 |
:102D3000FB01A091FC01B091FD018093E60190930D |
:102D4000E701A093E801B093E9018091EA01909135 |
:102D5000EB01A091EC01B091ED018093D60190932D |
:102D6000D701A093D801B093D9018091F20190913D |
:102D7000F301A091F401B091F5018093DE019093ED |
:102D8000DF01A093E001B093E1018091EE01909109 |
:102D9000EF01A091F001B091F1018093DA019093DD |
:102DA000DB01A093DC01B093DD018091F6019091ED |
:102DB000F701A091F801B091F9018093E20190939D |
:102DC000E301A093E401B093E5018FEC80937A00D6 |
:102DD00020910F02309110028091C504E82FFF2747 |
:102DE000EE0FFF1FEB56FB4F8081918182599F4F61 |
:102DF000281739071CF42F5F3F4F0CC08081918149 |
:102E000082599F4F821793074CF42115310531F0F9 |
:102E1000215030403093100220930F022091110274 |
:102E2000309112028091C604E82FFF27EE0FFF1F9A |
:102E3000EB56FB4F8081918182599F4F28173907AC |
:102E40001CF42F5F3F4F0CC08081918182599F4FAE |
:102E5000821793074CF42115310531F02150304091 |
:102E60003093120220931102209113023091140228 |
:102E70008091C704E82FFF27EE0FFF1FEB56FB4F93 |
:102E80008081918182599F4F281739071CF42F5F49 |
:102E90003F4F0CC08081918182599F4F82179307C9 |
:102EA0004CF42115310531F021503040309314029B |
:102EB0002093130220911502309116028091C804CC |
:102EC000E82FFF27EE0FFF1FEB56FB4F808191810C |
:102ED00082599F4F281739071CF42F5F3F4F0CC0B2 |
:102EE0008081918182599F4F821793074CF421155D |
:102EF000310531F0215030403093160220931502F5 |
:102F000080910F029091100297FF05C0109210025D |
:102F100010920F020AC08F3F910539F034F08FEF05 |
:102F200090E09093100280930F0280911102909193 |
:102F3000120297FF05C010921202109211020AC0ED |
:102F40008F3F910539F034F08FEF90E090931202AB |
:102F500080931102809113029091140297FF05C093 |
:102F600010921402109213020AC08F3F910539F09B |
:102F700034F08FEF90E090931402809313028091CD |
:102F800015029091160297FF05C01092160210923A |
:102F900015020AC08F3F910539F034F08FEF90E0B1 |
:102FA00090931602809315021F910F91FF90EF905E |
:102FB000DF90CF90BF90AF90089510927A008091EB |
:102FC000B701882369F08091AB019091AC016091C9 |
:102FD000B70177270E946C2D7093FE046093FD0467 |
:102FE0008091B801882369F08091AD019091AE0184 |
:102FF0006091B80177270E946C2D7093FC04609358 |
:10300000FB048091B901882369F08091AF01909110 |
:10301000B0016091B90177270E946C2D7093120561 |
:10302000609311058091BA018823D1F06091B301BA |
:103030007091B4012091BA01882777FD8095982F6F |
:10304000F4E0660F771F881F991FFA95D1F7332791 |
:10305000442755270E94A12D30930F0520930E057C |
:103060008091BB018823D1F06091B1017091B201D0 |
:103070002091BB01882777FD8095982FE4E0660FAB |
:10308000771F881F991FEA95D1F7332744275527C3 |
:103090000E94A12D30931805209317058091BC0143 |
:1030A000882369F08091B5019091B6016091BC01CF |
:1030B00077270E946C2D7093010560930005109294 |
:1030C000AC011092AB011092B7011092AE011092B8 |
:1030D000AD011092B8011092B0011092AF011092A0 |
:1030E000B9011092B2011092B1011092BB0110927D |
:1030F000B4011092B3011092BA011092B60110926D |
:10310000B5011092BC018FEC80937A0020910F02E0 |
:10311000309110028091C504E82FFF27EE0FFF1FAA |
:10312000EB56FB4F8081918182599F4F28173907B9 |
:103130001CF42F5F3F4F0CC08081918182599F4FBB |
:10314000821793074CF42115310531F0215030409E |
:103150003093100220930F0220911102309112023D |
:103160008091C604E82FFF27EE0FFF1FEB56FB4FA1 |
:103170008081918182599F4F281739071CF42F5F56 |
:103180003F4F0CC08081918182599F4F82179307D6 |
:103190004CF42115310531F02150304030931202AA |
:1031A0002093110220911302309114028091C704E0 |
:1031B000E82FFF27EE0FFF1FEB56FB4F8081918119 |
:1031C00082599F4F281739071CF42F5F3F4F0CC0BF |
:1031D0008081918182599F4F821793074CF421156A |
:1031E000310531F021503040309314022093130206 |
:1031F00020911502309116028091C804E82FFF2714 |
:10320000EE0FFF1FEB56FB4F8081918182599F4F3C |
:10321000281739071CF42F5F3F4F0CC08081918124 |
:1032200082599F4F821793074CF42115310531F0D5 |
:1032300021503040309316022093150280910F02E6 |
:103240009091100297FF05C01092100210920F0289 |
:103250000AC08F3F910539F034F08FEF90E09093E2 |
:10326000100280930F02809111029091120297FF39 |
:1032700005C010921202109211020AC08F3F9105F0 |
:1032800039F034F08FEF90E09093120280931102A6 |
:10329000809113029091140297FF05C010921402BE |
:1032A000109213020AC08F3F910539F034F08FEF6E |
:1032B00090E09093140280931302809115029091F4 |
:1032C000160297FF05C0109216021092150208957B |
:1032D0008F3F910539F034F08FEF90E09093160214 |
:1032E0008093150208951F938091CC048B3F98F032 |
:1032F0008B3F19F480910F020EC08C3F19F480911E |
:10330000110209C08D3F19F48091130204C08E3F51 |
:1033100021F480911502809381018091810188239D |
:1033200019F41092810104C08F3F11F48093810140 |
:103330008091CB048B3F98F08B3F19F480910F0262 |
:103340000EC08C3F19F48091110209C08D3F19F411 |
:103350008091130204C08E3F21F480911502809366 |
:10336000800180918001882319F41092800105C0AA |
:10337000843618F084E6809380018091CD048B3FE1 |
:1033800098F08B3F19F480910F020EC08C3F19F416 |
:103390008091110209C08D3F19F48091130204C07D |
:1033A0008E3F21F4809115028093820180918201E9 |
:1033B000882319F41092820105C0843618F084E63F |
:1033C000809382018091CF048B3F98F08B3F19F45A |
:1033D00080910F020EC08C3F19F48091110209C038 |
:1033E0008D3F19F48091130204C08E3F21F4809127 |
:1033F00015028093830180918301882319F4109230 |
:10340000830104C08F3F11F4809383018091D6041F |
:103410008B3F98F08B3F19F480910F020EC08C3FC8 |
:1034200019F48091110209C08D3F19F480911302A3 |
:1034300004C08E3F21F48091150280938401809115 |
:103440008401882319F41092840104C08F3F11F481 |
:10345000809384018091D7048B3F98F08B3F19F4BF |
:1034600080910F020EC08C3F19F48091110209C0A7 |
:103470008D3F19F48091130204C08E3F21F4809196 |
:10348000150280938501809185018B3010F48AE0CC |
:1034900002C08F3F11F4809385018091D8048B3F47 |
:1034A00098F08B3F19F480910F020EC08C3F19F4F5 |
:1034B0008091110209C08D3F19F48091130204C05C |
:1034C0008E3F21F4809115028093860180918601C0 |
:1034D000882319F41092860104C08F3F11F4809361 |
:1034E00086018091DD048B3F98F08B3F19F4809129 |
:1034F0000F020EC08C3F19F48091110209C08D3F5C |
:1035000019F48091130204C08E3F21F480911502BA |
:103510008093880180918801882319F41092880192 |
:1035200004C08F3F11F4809388018091DE048B3FAB |
:1035300098F08B3F19F480910F020EC08C3F19F464 |
:103540008091110209C08D3F19F48091130204C0CB |
:103550008E3F21F4809115028093230280912302F3 |
:10356000882319F41092230204C08F3F11F4809332 |
:1035700023028091DF048B3F98F08B3F19F48091F8 |
:103580000F020EC08C3F19F48091110209C08D3FCB |
:1035900019F48091130204C08E3F21F4809115022A |
:1035A0008093240280912402882319F4109224022B |
:1035B00004C08F3F11F4809324028091E0048B3F7C |
:1035C00098F08B3F19F480910F020EC08C3F19F4D4 |
:1035D0008091110209C08D3F19F48091130204C03B |
:1035E0008E3F21F48091150280932502809125025F |
:1035F000882319F41092250204C08F3F11F48093A0 |
:1036000025028091E1048B3F98F08B3F19F4809163 |
:103610000F020EC08C3F19F48091110209C08D3F3A |
:1036200019F48091130204C08E3F21F48091150299 |
:103630008093260280912602882319F41092260294 |
:1036400004C08F3F11F4809326029091E2049B3FC7 |
:10365000B0F09B3F19F480910F0204C09C3F29F405 |
:1036600080911102809389010CC09D3F19F48091D3 |
:103670001302F8CF9E3F29F480911502F3CF909367 |
:10368000890180918901882319F41092890104C06D |
:103690008F3F11F4809389019B3FB0F09B3F19F459 |
:1036A00080910F0204C09C3F29F480911102809305 |
:1036B00089010CC09D3F19F480911302F8CF9E3F01 |
:1036C00029F480911502F3CF9093890180918901AB |
:1036D000882319F41092890104C08F3F11F480935C |
:1036E00089019B3FB0F09B3F19F480910F0204C009 |
:1036F0009C3F29F480911102809389010CC09D3F69 |
:1037000019F480911302F8CF9E3F29F4809115029D |
:10371000F3CF9093890180918901882319F4109245 |
:10372000890104C08F3F11F48093890110918801B1 |
:10373000612F772767FD7095872F972F0E94772C31 |
:1037400017FF06C020E030E040E853E40E94D22B8F |
:1037500027E137EB41ED58E30E94F12C60937C01A7 |
:1037600070937D0180937E0190937F018091D404BA |
:10377000809310058091D3048093FF041F910895D6 |
:1037800081E08093C10442E04093C20483E08093CF |
:10379000C30494E09093C40435E03093C50486E0FC |
:1037A0008093C60487E08093C7041092C9048EE119 |
:1037B0008093CA048BEF8093CC048AE08093CD047D |
:1037C00022E32093CB042093CF044093CE04909324 |
:1037D000D0041092D10490E19093D2048FE08093B2 |
:1037E000D3048AEF8093D4048AE18093D504909324 |
:1037F000D6048FEA8093D7048093D8048AE5809317 |
:10380000D90483E28093DA0484E18093DB0410928C |
:10381000DC043093DD0482EB8093DE041092DF043D |
:103820001092E0041092E10484E68093E20488E2BE |
:103830008093E3041092E7042093E40486E98093E4 |
:10384000E5043093E604AFEEB4E0E8E6F1E08CE0A6 |
:1038500001900D928150E1F7089581E08093C104B9 |
:1038600052E05093C20483E08093C30444E0409349 |
:10387000C40435E03093C50486E08093C60487E035 |
:103880008093C70428E02093C8041092C9049EE1E5 |
:103890009093CA048BEF8093CC048AE08093CD048C |
:1038A00086E48093CB049093CF045093CE0440934E |
:1038B000D0042093D10490E19093D2048FE08093C0 |
:1038C000D3048AEF8093D4048AE18093D504909343 |
:1038D000D60488E78093D70496E99093D8048AE5C4 |
:1038E0008093D90483E28093DA0484E18093DB043B |
:1038F0001092DC043093DD0482EB8093DE0410929E |
:10390000DF041092E0041092E10484E68093E20464 |
:1039100088E28093E3041092E70482E38093E40456 |
:103920009093E5043093E604AFEEB4E0E0E7F1E015 |
:103930008CE001900D928150E1F7089580911E0274 |
:10394000882301F5109261021092600210926402C5 |
:103950001092650280919601882311F08093600295 |
:1039600080919701882311F08093610280919801E2 |
:10397000882311F08093650280919901882311F0CA |
:1039800080936402809160029927909373048093DE |
:103990007204809161029927909375048093740456 |
:1039A00080916502992790937704809376048091A3 |
:1039B0006402992790937904809378041092C80147 |
:1039C0001092C9010E9436140895CF93DF9310928C |
:1039D000070510920605109209051092080580E06F |
:1039E00090E0A0E0B0E080930A0590930B05A093CF |
:1039F0000C05B0930D051092D1011092D0011092D8 |
:103A0000D3011092D2011092D5011092D4010E94DC |
:103A1000DD1785E090E00E94810BEC01CE010E9451 |
:103A20008A0B8823D9F30E94DD178091C90480FF97 |
:103A300010C080910A0190910B01875B934038F48C |
:103A400080910A0190910B018E5E924010F40E94C9 |
:103A5000C80F8091FD049091FE0497FF03C09095DC |
:103A600081959F4F9093D1018093D0018091FB0469 |
:103A70009091FC0497FF03C0909581959F4F909380 |
:103A8000D3018093D201809111059091120597FF87 |
:103A900003C0909581959F4F9093D5018093D40159 |
:103AA00088E0E6E0F5E0ACE2B1E0182E0E94012EDD |
:103AB0001092EA011092EB011092EC011092ED01CC |
:103AC0001092EE011092EF011092F0011092F101AC |
:103AD0001092F2011092F3011092F4011092F5018C |
:103AE0001092F6011092F7011092F8011092F9016C |
:103AF0001092FA011092FB011092FC011092FD014C |
:103B00001092FE041092FD041092FC041092FB042B |
:103B100010921205109211058091060190910701F3 |
:103B2000A0910801B09109019093800480937F04D3 |
:103B30001092BE011092BD01109202021092030277 |
:103B400010920402109205028091060290910702E1 |
:103B500090930902809308020E944E2882E390E02D |
:103B60009093A7018093A601DF91CF910895CF9301 |
:103B7000DF93109207051092060510920905109226 |
:103B8000080580E090E0A0E0B0E080930A05909303 |
:103B90000B05A0930C05B0930D050E94DD1785E081 |
:103BA00090E00E94810BEC01CE010E948A0B8823D9 |
:103BB000D9F30E94DD1780910E0590910F0597FFB4 |
:103BC00003C0909581959F4F60E170E00E946C2D3D |
:103BD000C6E0D5E070930705609306058091170550 |
:103BE0009091180597FF03C0909581959F4F60E1D4 |
:103BF00070E00E946C2D7093090560930805609138 |
:103C00007D0470917E04882777FD8095982F0E940F |
:103C1000772C60930A0570930B0580930C059093A5 |
:103C20000D0588E0ACE2B1E0FE01182E0E94122ED4 |
:103C3000DF91CF9108951F93182F0EC080911E021F |
:103C4000882361F484E690E09093A7018093A60115 |
:103C50008AEF90E00E949A0C115080F71F9108950E |
:103C6000A6E0B0E0E6E3FEE10C94BC2D0E947E15D8 |
:103C7000299AE091C304FF27EE0FFF1FEB56FB4F7D |
:103C80004080518048E750E0440E551E57FE02C068 |
:103C90004424552480911702843608F048C080914E |
:103CA0000101882331F484EF91E09093A701809380 |
:103CB000A60180912F0290913002009731F0019778 |
:103CC0009093300280932F0204C010921E02109233 |
:103CD0000D02289A80912A0290912B02815D9740D3 |
:103CE00018F18091DA04482E552481E080930D026A |
:103CF000E091C104FF27EE0FFF1FEB56FB4F11822F |
:103D00001082E091C204FF27EE0FFF1FEB56FB4F1E |
:103D100011821082E091C404FF27EE0FFF1FEB56C3 |
:103D2000FB4F11821082CBC110921E02C8C180913C |
:103D300017028D3808F4C3C110920D028091DB0484 |
:103D400022E3829FC00111249093300280932F02BE |
:103D500069E2461651046CF080912A0290912B0280 |
:103D60007FEF8F3F970781F1019690932B0280930D |
:103D70002A0280912A0290912B02883C910520F022 |
:103D800088E24816510404F510924502109246024A |
:103D90001092470210924802109241021092420281 |
:103DA00010924302109244021092FA011092FB0109 |
:103DB0001092FC011092FD011092FE011092FF0181 |
:103DC000109200021092010299EC491651040CF471 |
:103DD000D6C080911E02882309F071C1E091C4040D |
:103DE000FF27EE0FFF1FEB56FB4F808191818C3434 |
:103DF00091050CF4C1C080912E028F5F80932E023A |
:103E0000893C08F45CC129980E94E51C10921E02AE |
:103E100010922E0210922B0210922A028091C1045D |
:103E2000282F3327F901EE0FFF1FEB56FB4F808140 |
:103E30009181873491059CF4E091C204FF27EE0F35 |
:103E4000FF1FEB56FB4F0190F081E02DF7FF03C001 |
:103E5000F095E195FF4FE734F1050CF46CC08091CB |
:103E6000C204682F7727DB01AA0FBB1FAB56BB4FDD |
:103E70008D919C911197873491053CF0F901EE0FDB |
:103E8000FF1FEB56FB4F808191818D919C91873470 |
:103E9000910564F0F901EE0FFF1FEB56FB4F808197 |
:103EA00091818734910514F042E001C041E0FB01AB |
:103EB000EE0FFF1FEB56FB4F8081918186349105F9 |
:103EC0005CF4F901EE0FFF1FEB56FB4F80819181EF |
:103ED000873491050CF043E0FB01EE0FFF1FEB561A |
:103EE000FB4F808191818A5B9F4F5CF4F901EE0F5B |
:103EF000FF1FEB56FB4F80819181873491050CF0B9 |
:103F000044E0660F771F6B567B4FFB0180819181E8 |
:103F10008A5B9F4F5CF4220F331F2B563B4FD90116 |
:103F20008D919C91863491050CF445E0A2E0B0E0BF |
:103F3000042E0E94062E0E9474034AE361EC74E092 |
:103F40000E9495030E9474030E941B1E8091C90465 |
:103F500080FFB5C080910A0190910B01875B93406F |
:103F600040F480910A0190910B018E5E924008F01E |
:103F7000A6C00E94C80FA3C010922E02A0C0F3E2F8 |
:103F80004F1651040CF09BC08091C404482F552754 |
:103F9000FA01EE0FFF1FEB56FB4F80819181855B8D |
:103FA0009F4F0CF06DC080912D028F5F80932D028A |
:103FB000893C08F467C088EC80932D0281E090E092 |
:103FC00090932B0280932A0281E080931E0210922C |
:103FD0003D0210923E0210923F0210924002109257 |
:103FE000FA011092FB011092FC011092FD01109257 |
:103FF000FE011092FF011092000210920102109235 |
:10400000EA011092EB011092EC011092ED01109276 |
:10401000F2011092F3011092F4011092F5018091D7 |
:10402000D6019091D701A091D801B091D901809388 |
:10403000EE019093EF01A093F001B093F101809114 |
:10404000DE019091DF01A091E001B091E101809348 |
:10405000F6019093F701A093F801B093F901109243 |
:1040600045021092460210924702109248021092A6 |
:10407000410210924202109243021092440202C086 |
:1040800010922D02440F551F4B565B4FDA018D9154 |
:104090009C918C3491058CF080912C028F5F8093E1 |
:1040A0002C02893C60F010921E0288EC80932C0256 |
:1040B00010922B0210922A0202C010922C028091C0 |
:1040C0006701815080936701809167018F3F29F0DC |
:1040D00080910D02882309F412C10E947319E091A6 |
:1040E000C104FF27EE0FFF1FDF01AB56BB4F8D91C1 |
:1040F0009C916091D0047727E555FB4F2081318159 |
:104100004091D1045527FC01E69FC001E79F900D27 |
:10411000F69F900D1124D901A49F9001A59F300D09 |
:10412000B49F300D1124820F931F90931902809336 |
:104130001802E091C204FF27EE0FFF1FDF01AB560C |
:10414000BB4F8D919C91E555FB4F20813181FC0146 |
:10415000E69FC001E79F900DF69F900D1124B901D5 |
:10416000649F9001659F300D749F300D1124820F64 |
:10417000931F90931B0280931A02E091C404FF27BF |
:10418000EE0FFF1FEB56FB4F80819181909581953B |
:104190009F4F90931D0280931C0210918501612F07 |
:1041A000772767FD7095872F972F0E94772C17FF31 |
:1041B00006C020E030E040E853E40E94D22B20E02B |
:1041C00030E040E251E40E94D22B20E030E040E8B1 |
:1041D0005BE30E94F12C5B016C016093130570930B |
:1041E0001405809315059093160510918601612F93 |
:1041F000772767FD7095872F972F0E94772C17FFE1 |
:1042000006C020E030E040E853E40E94D22B20E0DA |
:1042100030EE4BE257E40E94142C60930205709339 |
:10422000030580930405909305058091C90482FFDE |
:104230000CC080E090E0A0E0B0E080930205909395 |
:104240000305A0930405B093050520E030E040E0AD |
:1042500050E0C601B5010E94812C882364F480E0FF |
:1042600090E0A0E0B0E08093130590931405A09334 |
:104270001505B093160520E030E040E050E0609175 |
:1042800002057091030580910405909105050E9437 |
:10429000812C882364F480E090E0A0E0B0E080937B |
:1042A000020590930305A0930405B0930505809142 |
:1042B0000D02882321F110921D0210921C0210920F |
:1042C00019021092180210921B0210921A028DEC21 |
:1042D0009CECACECBDE38093130590931405A09384 |
:1042E0001505B09316058AE097EDA3EABBE380932A |
:1042F000020590930305A0930405B09305058091F2 |
:10430000BF019091C0018D54914008F477C0A090F6 |
:10431000D601B090D701C090D801D090D90180913A |
:10432000DA019091DB018A199B0990933402809302 |
:1043300033024091DE015091DF016091E001709104 |
:10434000E1012091E2013091E301241B350B309310 |
:104350003202209331021092C0011092BF01873ABD |
:10436000910534F08091D0019091D101019608C05F |
:104370008A559F4F4CF48091D0019091D1010197C3 |
:104380009093D1018093D001273A310534F0809188 |
:10439000D2019091D301019608C02A553F4F4CF4A9 |
:1043A0008091D2019091D30101979093D301809392 |
:1043B000D20110927A00A092EE01B092EF01C09269 |
:1043C000F001D092F1014093F6015093F701609310 |
:1043D000F8017093F9018091E6019091E701A091B5 |
:1043E000E801B091E9018093FE019093FF01A09351 |
:1043F0000002B09301028FEC80937A00E090D50424 |
:10440000FF24002711276091D6017091D701809178 |
:10441000D8019091D901A80197010E94A12D809106 |
:104420000E0590910F05AA2797FDA095BA2F281B7E |
:10443000390B4A0B5B0BCA01B90120E130E040E0C7 |
:1044400050E00E94A12D59016A0120933902309356 |
:104450003A0240933B0250933C026091DE0170911E |
:10446000DF018091E0019091E101A80197010E9494 |
:10447000A12D8091170590911805AA2797FDA09569 |
:10448000BA2F281B390B4A0B5B0BCA01B90120E17B |
:1044900030E040E050E00E94A12D2093350230939F |
:1044A00036024093370250933802E5EFAE16E1E052 |
:1044B000BE06E0E0CE06E0E0DE062CF084EF91E000 |
:1044C000A0E0B0E00DC0FCE0AF16FEEFBF06FFEFCE |
:1044D000CF06FFEFDF0664F48CE09EEFAFEFBFEF97 |
:1044E0008093390290933A02A0933B02B0933C022E |
:1044F000253F61E0360760E0460760E056072CF094 |
:1045000084EF91E0A0E0B0E009C02C503E4F4F4F47 |
:104510005F4F64F48CE09EEFAFEFBFEF8093350206 |
:1045200090933602A0933702B093380210927A002B |
:104530008091EA019091EB01A091EC01B091ED0125 |
:104540002091390230913A0240913B0250913C0255 |
:10455000821B930BA40BB50B8093EA019093EB01A4 |
:10456000A093EC01B093ED018091F2019091F301E1 |
:10457000A091F401B091F5012091350230913602FD |
:104580004091370250913802821B930BA40BB50B5C |
:104590008093F2019093F301A093F401B093F5019D |
:1045A00080901C0290901D02540197FE04C0AA2422 |
:1045B000BB24A818B90885E1A816B1043CF0809185 |
:1045C000C90484FD03C081E080938A01E090D20495 |
:1045D000CC24B7FCC094DC2CB401882777FD8095EF |
:1045E000982F2E2D3327442755270E94392D9B01C4 |
:1045F000AC01C601B5010E94392D20E032E040E057 |
:1046000050E00E94A12D89019A01FF24E89CC0017D |
:10461000E99C900DF89C900D112464E070E00E94DC |
:104620006C2D600F711F882777FD8095982F609300 |
:104630003D0270933E0280933F029093400220918E |
:10464000FA013091FB014091FC015091FD01261BC4 |
:10465000370B480B590B2093FA013093FB01409321 |
:10466000FC015093FD018091FA019091FB01A09112 |
:10467000FC01B091FD018155934CA040B04064F025 |
:1046800080E593ECA0E0B0E08093FA019093FB0109 |
:10469000A093FC01B093FD018091FA019091FB0180 |
:1046A000A091FC01B091FD01805B9C43AF4FBF4FD7 |
:1046B00064F480EB9CE3AFEFBFEF8093FA0190933B |
:1046C000FB01A093FC01B093FD018FEC80937A0075 |
:1046D0008091C90483FFA0C080910C028150809317 |
:1046E0000C028F3FD9F40E94C62890930702809352 |
:1046F00006022091080230910902821B930B845E0E |
:104700009D4F68E671E00E946C2D845B9040909311 |
:104710000B0280930A0282E380930C026091D6011F |
:104720007091D7018091D8019091D90120E032E0B9 |
:1047300040E050E00E94A12D890137FF03C0109591 |
:1047400001951F4F6091DE017091DF018091E001C2 |
:104750009091E10120E032E040E050E00E94A12D84 |
:10476000B90137FF03C0709561957F4F60177107DE |
:104770000CF4B8016332710574F480918A018823C6 |
:1047800051F0809106029091070290930902809364 |
:10479000080210928A01209184013327629FC00190 |
:1047A000639F900D729F900D112460E470E00E9451 |
:1047B0006C2DA901461B570B141615066CF51092AB |
:1047C0007A000091FA011091FB012091FC013091D7 |
:1047D000FD0180910A0290910B02BC01469FC0012D |
:1047E000479F900D569F900D112460E270E00E944B |
:1047F0006C2D882777FD8095982F060F171F281F8F |
:10480000391F0093FA011093FB012093FC013093B0 |
:10481000FD018FEC80937A00809159048F5F809323 |
:104820005904809127028150809327028F3F09F01D |
:104830007EC081E380932702E090D504FF24002707 |
:1048400011276091D6017091D7018091D801909184 |
:10485000D901A80197010E94A12D30935B042093F8 |
:104860005A046091DE017091DF018091E001909126 |
:10487000E101A80197010E94A12D30935D042093CE |
:104880005C0480910E0590910F0590935F048093D6 |
:104890005E048091170590911805909361048093B0 |
:1048A00060048091110590911205909363048093A8 |
:1048B000620480911F02909120029093650480937E |
:1048C000640460910202709103028091040290914D |
:1048D000050220E032E040E050E00E94A12D30933C |
:1048E00067042093660450926904409268048091A2 |
:1048F00006029091070290936B0480936A04809162 |
:1049000026059091270590936D0480936C04809107 |
:1049100028059091290590936F0480936E048091EF |
:104920002A0590912B0590937104809370046090F8 |
:104930000205709003058090040590900505A090F5 |
:104940001305B0901405C0901505D0901605609120 |
:10495000D6017091D7018091D8019091D9010E9420 |
:10496000772CA40193010E94F12C7B018C016091B2 |
:10497000FD047091FE04882777FD8095982F0E9492 |
:10498000772CA60195010E94F12C9B01AC01C80176 |
:10499000B7010E94D22B0E945A2C1B017093FE0477 |
:1049A0006093FD046091DE017091DF018091E00170 |
:1049B0009091E1010E94772CA40193010E94F12CB7 |
:1049C0007B018C016091FB047091FC04882777FDCA |
:1049D0008095982F0E94772CA60195010E94F12CBA |
:1049E0009B01AC01C801B7010E94D22B0E945A2C36 |
:1049F0007E836D837093FC046093FB0460911105CA |
:104A000070911205882777FD8095982F0E94772C4A |
:104A10007B018C0120E030E040E05FE3C601B5019E |
:104A20000E94F12C9B01AC01C801B7010E94F12C3E |
:104A30007B018C016091E6017091E7018091E801B2 |
:104A40009091E9010E94772CA40193010E94F12C1E |
:104A50009B01AC01C801B7010E94D22B0E945A2CC5 |
:104A60009B01709312056093110571E0271678E0A1 |
:104A700037061CF080E098E007C080E0281688EF39 |
:104A8000380634F480E098EF9093FE048093FD04A0 |
:104A9000AD81BE81A150B8401CF080E098E007C015 |
:104AA0004D815E814050584F34F480E098EF9093F0 |
:104AB000FC048093FB0478E0213037071CF080E091 |
:104AC00098E005C02050384F34F480E098EF909380 |
:104AD0001205809311058091C904992780FFBEC0FB |
:104AE0002091810181FF0EC02233B0F480911F021A |
:104AF0009091200244979093220280932102109279 |
:104B00000E020DC08091CE04289FC001112444974D |
:104B1000909322028093210281E080930E02809183 |
:104B20000D02882321F0109222021092210220917E |
:104B30001F0230912002409121025091220242171F |
:104B400053070CF08BC080910E02882309F486C0B5 |
:104B5000241B350B809182019927DC012A9FC0011B |
:104B60002B9F900D3A9F900D112460E170E00E9400 |
:104B70006C2D8201061B170B2091BD013091BE01E7 |
:104B8000809180019927FC012E9FC0012F9F900DDD |
:104B90003E9F900D112468E070E00E946C2D061B72 |
:104BA000170B6091020270910302809104029091B0 |
:104BB000050220E032E040E050E00E94A12DCA0151 |
:104BC000B901209183013327442755270E94392DAD |
:104BD00020E230E040E050E00E94A12DFFEF2E3CAB |
:104BE0003F0714F42EEC3FEF8091280290912902A8 |
:104BF000AC0164E0440F551F6A95E1F7481B590B5F |
:104C00002333310514F022E330E0021B130BCA01F9 |
:104C1000800F911F60E170E00E946C2D709329025B |
:104C2000609328028091CA049927681779073CF499 |
:104C3000481659065CF090932902809328028091CF |
:104C40002802909129024816590624F4509229020C |
:104C5000409228024090280250902902C0901105ED |
:104C6000D090120580913D0290913E02C81AD90A57 |
:104C700025E6C216D10424F014E6C12ED12C09C0B9 |
:104C80004CE9C4164FEFD40624F4BCE9CB2EBFEF99 |
:104C9000DB2E609178017091790180917A01909179 |
:104CA0007B0169837A838B839C83209118023091E6 |
:104CB00019028091490290914A02281B390B609198 |
:104CC000FD047091FE04621B730B882777FD8095AD |
:104CD000982F0E94772C9B01AC0169817A818B818E |
:104CE0009C810E94F12C0E945A2CFB01709363025C |
:104CF000609362028B01222717FD2095322F80914D |
:104D0000450290914602A0914702B0914802080FD7 |
:104D1000191F2A1F3B1F0093450210934602209340 |
:104D20004702309348021016110612061306ACF41F |
:104D3000C80117FF03C0909581959F4F60E071E017 |
:104D40000E946C2D6F5F7F4F882777FD8095982F8D |
:104D5000061B170B280B390B14C0C80117FF03C023 |
:104D6000909581959F4F60E071E00E946C2D6F5F80 |
:104D70007F4F882777FD8095982F060F171F281FD4 |
:104D8000391F009345021093460220934702309347 |
:104D900048028091450290914602A0914702B0914D |
:104DA000480281387EE3970770E0A70770E0B707F5 |
:104DB0002CF080E89EE3A0E0B0E009C08058914C60 |
:104DC000AF4FBF4F64F480E891ECAFEFBFEF80933B |
:104DD000450290934602A0934702B0934802809008 |
:104DE0007C0190907D01A0907E01B0907F01BF0179 |
:104DF000882777FD8095982F0E94772C7B018C0166 |
:104E0000609145027091460280914702909148025C |
:104E10000E94772C9B01AC01C501B4010E94F12CCA |
:104E20009B01AC01C801B7010E94D22B0E945A2CF1 |
:104E30009601260F371F240D351D66244AE04416BF |
:104E4000510414F4A1E06A2E37FD02C0662019F067 |
:104E500040E050E008C080911005482F55272417E6 |
:104E600035070CF4A9018091FF04282E3324910109 |
:104E7000241635060CF49A0120936002C201861BA9 |
:104E8000970BBC016C0D7D1D77FD02C0662019F0EB |
:104E900080E090E007C08091100599276817790796 |
:104EA0000CF4CB019101281639060CF49C012093D7 |
:104EB000610220911A0230911B0280914B02909165 |
:104EC0004C02281B390B6091FB047091FC04621B9F |
:104ED000730B882777FD8095982F0E94772C9B0174 |
:104EE000AC0169817A818B819C810E94F12C0E94A6 |
:104EF0005A2CFB0170935F0260935E028B012227A4 |
:104F000017FD2095322F8091410290914202A0918D |
:104F10004302B0914402080F191F2A1F3B1F009340 |
:104F20004102109342022093430230934402101630 |
:104F3000110612061306ACF4C80117FF03C09095C2 |
:104F400081959F4F60E071E00E946C2D6F5F7F4FF5 |
:104F5000882777FD8095982F061B170B280B390B98 |
:104F600014C0C80117FF03C0909581959F4F60E062 |
:104F700071E00E946C2D6F5F7F4F882777FD8095D1 |
:104F8000982F060F171F281F391F009341021093F7 |
:104F90004202209343023093440280914102909157 |
:104FA0004202A0914302B091440281382EE392075D |
:104FB00020E0A20720E0B2072CF080E89EE3A0E00A |
:104FC000B0E009C08058914CAF4FBF4F64F480E807 |
:104FD00091ECAFEFBFEF8093410290934202A09318 |
:104FE0004302B0934402BF01882777FD8095982F34 |
:104FF0000E94772C7B018C016091410270914202EA |
:1050000080914302909144020E94772C9B01AC0155 |
:10501000C501B4010E94F12C9B01AC01C801B7018C |
:105020000E94D22B0E945A2C9201260F371F2C1956 |
:105030003D0937FD02C0662019F040E050E008C08D |
:1050400080911005482F5527241735070CF4A90126 |
:105050009101241635060CF49A0120936502461A34 |
:10506000570AB2016C197D0977FD02C0662019F05C |
:1050700020E030E008C080911005282F3327621708 |
:1050800073070CF49B01C101221633060CF4C9010D |
:1050900080936402E2E1CA5F0C94D82D80914D02A6 |
:1050A00090914E02A0914F02B09150028093550210 |
:1050B00090935602A0935702B093580280915102E8 |
:1050C00090915202A0915302B091540280935902E0 |
:1050D00090935A02A0935B02B0935C0208951092E1 |
:1050E0004A021092490210924C0210924B0208950B |
:1050F0001F920F920FB60F9211242F933F934F934D |
:105100008F939F9380912205833019F08430A1F50D |
:1051100008C08EB580935D021EBC84E0809322059A |
:105120002BC080915D029927382F22278EB59927B1 |
:10513000282B392BC9018D509E4F875E9340D0F4A8 |
:1051400080912505853019F0863069F406C03093CA |
:1051500027052093260586E00BC030932905209370 |
:10516000280587E005C030932B0520932A0585E0AC |
:1051700080932505109222059F918F914F913F9129 |
:105180002F910F900FBE0F901F901895AAE0B0E0DE |
:10519000ECECF8E20C94BC2DA090DE04BB2433E0D0 |
:1051A000AA0CBB1C3A95E1F7CC24DD246091D60112 |
:1051B0007091D7018091D8019091D901A6019501F4 |
:1051C0000E94A12D79018A01FF24E7FCF094C70118 |
:1051D0000E94792B2C01C7010E94BC2B3C016091DD |
:1051E000DE017091DF018091E0019091E101A60163 |
:1051F00095010E94A12D79018A01FF24E7FCF0941A |
:10520000C7010E94792B9A878987C7010E94BC2B0E |
:105210001C016091260570912705E0902805F0900B |
:10522000290520911A05332727FD3095E21AF30A44 |
:105230000027F7FC0095102FA0902A05B0902B05B1 |
:1052400020911B05332727FD3095A21AB30ACC24E1 |
:10525000B7FCC094DC2C20911905332727FD30952D |
:10526000621B730B882777FD8095982F882477FC25 |
:105270008094982CA40193010E94392D3B014C018C |
:1052800089859A85AA2797FDA095BA2F8D839E833D |
:10529000AF83B887C201AA2797FDA095BA2F89834B |
:1052A0009A83AB83BC83C801B7012D813E814F81B6 |
:1052B00058850E94392D29813A814B815C810E9459 |
:1052C000392D20E034E040E050E00E94A12D620E34 |
:1052D000731E841E951E442437FC4094542CC60132 |
:1052E000B501A20191010E94392D29813A814B819A |
:1052F0005C810E94392D20E034E040E050E00E94C3 |
:10530000A12D621A730A840A950AC801B701A20185 |
:1053100091010E94392D7B018C01C601B5012D81BF |
:105320003E814F8158850E94392DE60EF71E081FD9 |
:10533000191FC801B70120E034E040E050E00E94AE |
:10534000A12D79018A01C401B30120E034E040E0DD |
:1053500050E00E94A12DCA01B901A80197010E9445 |
:10536000CD2A9C0197FF05C088279927821B930BA4 |
:1053700004C088E691E0821B930BE2E1C65F0C94C7 |
:10538000D82D80912205813041F0813018F0823093 |
:1053900049F51CC02A9A81E016C02A9880912505FB |
:1053A000853011F481E305C0863011F482E301C039 |
:1053B00083E38EBD88E090E00E94810B90932405EA |
:1053C0008093230582E08093220508958091230530 |
:1053D000909124050E948A0B882321F01EBC83E053 |
:1053E000809322050895A0E0B0E0E9EFF9E20C9483 |
:1053F000BE2D299A2898EE24FF2400E010E0AA246C |
:10540000BB24CC24DD24662477248824992462E3F9 |
:10541000462E5524809126059091270508171907D7 |
:105420002CF400912605109127050BC080912605CC |
:10543000909127058E159F0524F4E0902605F090A5 |
:1054400027058091280590912905C816D9062CF4C6 |
:10545000C0902805D09029050BC080912805909117 |
:1054600029058A159B0524F4A0902805B0902905EC |
:1054700080912A0590912B05881699062CF480902E |
:105480002A0590902B050BC080912A0590912B0541 |
:105490008615970524F460902A0570902B055520F9 |
:1054A00081F485B191E0892785B985B192E089279A |
:1054B00085B982E390E09093A7018093A60152E31F |
:1054C000552E8AE090E00E94810BEC01CE010E94F3 |
:1054D0008A0B8823D9F3E091C304FF27EE0FFF1F47 |
:1054E000EB56FB4F80819181843691050CF44A94F0 |
:1054F000442011F05A948ECFC8018E199F099093C1 |
:105500001D0580931C05C6018A199B0990931F05F0 |
:1055100080931E05C40186199709909321058093F5 |
:105520002005E9E1F5E0C8018E0D9F1D62E070E005 |
:105530000E946C2D60931905C6018A0D9B1D62E0C7 |
:1055400070E00E946C2D60931A05C401860D971DB2 |
:1055500062E070E00E946C2D60931B0589E0A4E37B |
:10556000B1E0182E0E94122EE0E1CDB7DEB70C9408 |
:10557000DA2D83ED8CBD84B1846A84B95B9885E0B3 |
:10558000809325051092220589E0E9E1F5E0A4E386 |
:10559000B1E0182E0E94012E0895DF92EF92FF9243 |
:1055A0000F931F937B018C01611571058105910596 |
:1055B00041F4211531054105510519F480E090E0D1 |
:1055C00092C057FD03C061E0D62E02C09FEFD92ED6 |
:1055D000E114F1040105110531F48AE52D2D2802AD |
:1055E000C001112480C086E0220F331F441F551FC5 |
:1055F0008A95D1F7CA01B901A80197010E94A12D8E |
:10560000F90137FF03C0F095E195FF4F41E0EA351E |
:10561000F40734F4E656FB4F8491282F332747C014 |
:105620005CE1E73AF5071CF02AE530E040C089E08C |
:10563000ED38F8071CF029E530E039C025E0EA3BF9 |
:10564000F2071CF028E530E032C044E0E731F4070F |
:105650001CF027E530E02BC053E0EE32F5071CF0DC |
:1056600026E530E024C082E0E939F8071CF025E5A2 |
:1056700030E01DC022E0E233F2071CF024E530E008 |
:1056800016C041E0E73EF4071CF023E530E00FC010 |
:1056900051E0ED3AF5071CF022E530E008C0EF5785 |
:1056A000F1401CF021E530E002C020E530E01E149E |
:1056B0001F04100611066CF48D2D992787FD909517 |
:1056C000AC01249FC001259F900D349F900D1124A3 |
:1056D0000AC01D142CF484EB90E0821B930B03C0D2 |
:1056E000C901845B90401F910F91FF90EF90DF9074 |
:1056F0000895FC0197FD03C041E050E005C0F0951E |
:10570000E195FF4F4FEF5FEFEB35F1055CF0CF0117 |
:105710008B5590408A35910540F484EB90E08E1BC8 |
:105720009F0BFC0121E030E010C0CF01855B904071 |
:105730008A35910518F4E45BF04005C088E691E0F5 |
:105740008E1B9F0BFC012FEF3FEFEE0FFF1FEC5066 |
:10575000FA4F85919491BC01629FC001639F900DA7 |
:10576000729F900D11249C01429FC001439F900D98 |
:10577000529F900D112408952AE530E0281B390B23 |
:10578000C9010E94792B0895FC014150504030F02E |
:1057900001900616D1F73197CF01089588279927F0 |
:1057A00008955058192EEFD001D0D2C0BA17620711 |
:1057B000730784079507B1F188F40EF410940B2E4B |
:1057C000BA2FA02D062E622F202D072E732F302DDD |
:1057D000082E842F402D092E952F502DFF2755235D |
:1057E000B9F0591B49F0573E98F0469537952795E3 |
:1057F000A795F0405395C9F776F0BA0F621F731F53 |
:10580000841F30F4879577956795B795F040939509 |
:1058100017FA0F2E0895BF1BBB27BA0B620B730B31 |
:10582000840BF6CFDEF6DBC0AED001D091C055239D |
:1058300059F0992369F09F575F57951B33F442F451 |
:10584000903811F4915805C09BC091589F3F09F4BE |
:10585000C6C0BB27112462177307840730F4660F94 |
:10586000771F881FBB1F915098F311D00F920FD054 |
:105870000F920DD0A0E82617370748071B0609F03E |
:10588000A048BA2F602D7F918F9100240895A0E841 |
:105890000024621773078407B10528F0621B730B9D |
:1058A000840BB1090A2A660F771F881FBB1FA695B4 |
:1058B00081F7089597FB73D09F3738F0FEE9F91B05 |
:1058C000982F872F762F6B2F05C086C096958795CA |
:1058D00077956795F150D0F73EF490958095709547 |
:1058E00061957F4F8F4F9F4F0895E89403C097FBBA |
:1058F0000EF4F3DFB62F672F782F892F9EE900244F |
:1059000027C00ED05EF004C00BD026F001C008D036 |
:1059100019F020F48FEF089580E0089581E0089554 |
:1059200097FB092E052600F8689430D0E89407FC10 |
:1059300007C0621773078407950721F008F40094E5 |
:105940000794989408959A95BB0F661F771F881F38 |
:1059500011249923A1F08823B2F79F3F59F0BB0F80 |
:1059600048F421F4002011F460FF04C06F5F7F4F02 |
:105970008F4F9F4F881F9795879597F908952CC053 |
:105980009FEF80EC0895052E092607FA440F551F56 |
:105990005F3F79F0AA27A51708F051E04795880FD7 |
:1059A000991F9F3F31F0BB27B91708F091E0879509 |
:1059B00008959F919F911124E3CF97FB880F991F22 |
:1059C0009F3F31F0BB27B91708F091E08795089504 |
:1059D0009F919F911124D4CF6627772788279927F5 |
:1059E0000895D1DF01D0B4CF992339F0552329F0A0 |
:1059F0009F575F57950F13F49AF1F1CF91589F3F3E |
:105A0000E1F3629FA12D0F92BB27639FA00DB11DF3 |
:105A1000EE27729FA00DB11DEE1FAF93AA27649FC2 |
:105A2000B00DE11D739FB00DE11DAA1F6627829F77 |
:105A3000B00DE11DA61F5527749FE00DA11D551F38 |
:105A4000839FE00DA11D561F849FA00D511D852F22 |
:105A50007A2F6E2F1F900F9088231AF4939539F4A4 |
:105A60008FCF000C111CBB1F661F771F881F0128DA |
:105A70000895629FD001739FF001829FE00DF11D98 |
:105A8000649FE00DF11D929FF00D839FF00D749FB8 |
:105A9000F00D659FF00D9927729FB00DE11DF91F64 |
:105AA000639FB00DE11DF91FBD01CF0111240895C1 |
:105AB000AA1BBB1B51E107C0AA1FBB1FA617B70734 |
:105AC00010F0A61BB70B881F991F5A95A9F7809550 |
:105AD0009095BC01CD01089597FB092E07260AD0A9 |
:105AE00077FD04D0E5DF06D000201AF470956195AB |
:105AF0007F4F0895F6F7909581959F4F0895A1E205 |
:105B00001A2EAA1BBB1BFD010DC0AA1FBB1FEE1F37 |
:105B1000FF1FA217B307E407F50720F0A21BB30B82 |
:105B2000E40BF50B661F771F881F991F1A9469F7FE |
:105B300060957095809590959B01AC01BD01CF015A |
:105B4000089597FB092E05260ED057FD04D0D7DF08 |
:105B50000AD0001C38F450954095309521953F4F60 |
:105B60004F4F5F4F0895F6F790958095709561952A |
:105B70007F4F8F4F9F4F08952F923F924F925F928A |
:105B80006F927F928F929F92AF92BF92CF92DF924D |
:105B9000EF92FF920F931F93CF93DF93CDB7DEB7B2 |
:105BA000CA1BDB0B0FB6F894DEBF0FBECDBF099446 |
:105BB0002A88398848885F846E847D848C849B849D |
:105BC000AA84B984C884DF80EE80FD800C811B81AB |
:105BD000AA81B981CE0FD11D0FB6F894DEBF0FBEDA |
:105BE000CDBFED010895EE0FFF1F0590F491E02D5C |
:105BF0000994F999FECFB2BDA1BDF89A119600B4EF |
:105C00000895F7DF01921A94E1F70895F999FECF0C |
:105C1000B2BDA1BD00BC11960FB6F894FA9AF99ADC |
:105C20000FBE08950190F2DF1A94E1F70895FFCFB7 |
:105C300001640A016400007D0000FF030102030407 |
:105C400005060708090A48616C6C6F2057656C747B |
:105C50000000000000000000000000000000000044 |
:105C60000000000000000000000000000000000034 |
:105C70000000000000000000000000000000000024 |
:105C80000000000000000000000000000000000014 |
:105C90000000000000000C014B616D6572610000A6 |
:105CA0004E6F726D616C00000000803F17B7D138F5 |
:0C5CB00030FB103A403296020A640100FA |
:00000001FF |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/GPS.c |
---|
0,0 → 1,26 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
signed int GPS_Nick = 0; |
signed int GPS_Roll = 0; |
long GpsAktuell_X = 0; |
long GpsAktuell_Y = 0; |
long GpsZiel_X = 0; |
long GpsZiel_Y = 0; |
void GPS_Neutral(void) |
{ |
GpsZiel_X = GpsAktuell_X; |
GpsZiel_Y = GpsAktuell_Y; |
} |
void GPS_BerechneZielrichtung(void) |
{ |
GPS_Nick = 0; |
GPS_Roll = 0; |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/Settings.h |
---|
--- _Settings.h (nonexistent) |
+++ _Settings.h (revision 561) |
@@ -0,0 +1,50 @@ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Testmodi |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define MOTOR_OFF 0 |
+#define MOTOR_TEST 0 |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Abstimmung |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define ACC_AMPLIFY 16 |
+#define FAKTOR_P 1 |
+#define FAKTOR_I 0.0001 |
+ |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Debug-Interface |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define SIO_DEBUG 1 // Soll der Debugger aktiviert sein? |
+#define MIN_DEBUG_INTERVALL 250 // in diesem Intervall werden Degugdaten ohne Aufforderung gesendet |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Sender |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+ #define K_NICK 0 |
+ #define K_ROLL 1 |
+ #define K_GAS 2 |
+ #define K_GIER 3 |
+ #define K_POTI1 4 |
+ #define K_POTI2 5 |
+ #define K_POTI3 6 |
+ #define K_POTI4 7 |
+// +++++++++++++++++++++++++++++++ |
+// + Getestete Settings: |
+// +++++++++++++++++++++++++++++++ |
+// Setting: Kamera |
+// Stick_P:3 |
+// Stick_D:0 |
+// Gyro_P: 175 |
+// Gyro_I: 175 |
+// Ki_Anteil: 10 |
+// +++++++++++++++++++++++++++++++ |
+// + Getestete Settings: |
+// +++++++++++++++++++++++++++++++ |
+// Setting: Normal |
+// Stick_P:2 |
+// Stick_D:8 |
+// Gyro_P: 80 |
+// Gyro_I: 150 |
+// Ki_Anteil: 5 |
+ |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/analog.c |
---|
0,0 → 1,155 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az, UBat = 100; |
volatile int AccumulateNick = 0, AccumulateRoll = 0, AccumulateGier = 0; |
volatile int accumulate_AccRoll = 0,accumulate_AccNick = 0,accumulate_AccHoch = 0; |
volatile char MessanzahlNick = 0, MessanzahlRoll = 0, MessanzahlGier = 0; |
volatile char messanzahl_AccNick = 0, messanzahl_AccRoll = 0, messanzahl_AccHoch = 0; |
volatile long Luftdruck = 32000; |
volatile int StartLuftdruck; |
volatile unsigned int MessLuftdruck = 1023; |
unsigned char DruckOffsetSetting; |
volatile int HoeheD = 0; |
volatile char messanzahl_Druck; |
volatile int tmpLuftdruck; |
volatile unsigned int ZaehlMessungen = 0; |
//####################################################################################### |
// |
void ADC_Init(void) |
//####################################################################################### |
{ |
ADMUX = 0;//Referenz ist extern |
ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE); |
//Free Running Mode, Division Factor 128, Interrupt on |
} |
//####################################################################################### |
// |
void SucheLuftruckOffset(void) |
//####################################################################################### |
{ |
unsigned int off; |
off = eeprom_read_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET]); |
if(off > 20) off -= 10; |
OCR0A = off; |
Delay_ms(100); |
if(MessLuftdruck < 850) off = 0; |
for(; off < 250;off++) |
{ |
OCR0A = off; |
Delay_ms(50); |
printf("."); |
if(MessLuftdruck < 900) break; |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET], off); |
DruckOffsetSetting = off; |
Delay_ms(200); |
} |
//####################################################################################### |
// |
SIGNAL(SIG_ADC) |
//####################################################################################### |
{ |
static unsigned char kanal=0,state = 0; |
signed int wert; |
ANALOG_OFF; |
switch(state++) |
{ |
case 0: |
wert = (signed int) AdNeutralGier - ADC; |
AccumulateGier += wert; // |
MessanzahlGier++; |
Mess_Integral_Gier += wert;// / 16; |
Mess_Integral_Gier2 += wert; |
kanal = 1; |
ZaehlMessungen++; |
break; |
case 1: |
wert = (signed int) ADC - AdNeutralRoll; |
Mess_IntegralRoll += wert; |
Mess_IntegralRoll2 += wert; |
if(ADC < 10) wert = -700; |
if(ADC > 1000) wert = +700; |
AccumulateRoll += wert; |
MessanzahlRoll++; |
kanal = 2; |
break; |
case 2: |
wert = (signed int) ADC - AdNeutralNick; |
Mess_IntegralNick += wert; |
Mess_IntegralNick2 += wert; |
if(ADC < 10) wert = -700; |
if(ADC > 1000) wert = +700; |
AccumulateNick += wert; |
MessanzahlNick++; |
kanal = 4; |
break; |
case 3: |
UBat = (3 * UBat + ADC / 3) / 4;//(UBat + ((ADC * 39) / 256) + 19) / 2; |
kanal = 6; |
break; |
case 4: |
Aktuell_ay = acc_neutral.Y - ADC; |
accumulate_AccRoll += Aktuell_ay; |
messanzahl_AccRoll++; |
kanal = 7; |
break; |
case 5: |
Aktuell_ax = ADC - acc_neutral.X; |
accumulate_AccNick += Aktuell_ax; |
messanzahl_AccNick++; |
kanal = 5; |
state = 6; |
break; |
case 6: |
accumulate_AccHoch = (signed int) ADC - acc_neutral.Z; |
accumulate_AccHoch += abs(Aktuell_ay) / 4 + abs(Aktuell_ax) / 4; |
if(accumulate_AccHoch > 1) |
{ |
if(acc_neutral.Z < 800) acc_neutral.Z+= 0.02; |
} |
else if(accumulate_AccHoch < -1) |
{ |
if(acc_neutral.Z > 600) acc_neutral.Z-= 0.02; |
} |
messanzahl_AccHoch = 1; |
Aktuell_az = ADC; |
Mess_Integral_Hoch += accumulate_AccHoch; // Integrieren |
Mess_Integral_Hoch -= Mess_Integral_Hoch / 1024; // dämpfen |
kanal = 3; |
state = 7; |
break; |
case 7: |
tmpLuftdruck += ADC; |
if(++messanzahl_Druck >= 5) |
{ |
MessLuftdruck = ADC; |
messanzahl_Druck = 0; |
HoeheD = (int)(StartLuftdruck - tmpLuftdruck - HoehenWert); // D-Anteil = neuerWert - AlterWert |
Luftdruck = (tmpLuftdruck + 3 * Luftdruck) / 4; |
HoehenWert = StartLuftdruck - Luftdruck; |
tmpLuftdruck = 0; |
} |
kanal = 0; |
state = 0; |
break; |
default: |
kanal = 0; |
state = 0; |
break; |
} |
ADMUX = kanal; |
ANALOG_ON; |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/analog.h |
---|
0,0 → 1,23 |
/*####################################################################################### |
#######################################################################################*/ |
extern volatile int UBat; |
extern volatile int AccumulateNick, AccumulateRoll, AccumulateGier,accumulate_AccRoll,accumulate_AccNick,accumulate_AccHoch; |
extern volatile char MessanzahlNick, MessanzahlRoll, MessanzahlGier,messanzahl_AccNick, messanzahl_AccRoll,messanzahl_AccHoch; |
extern volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az; |
extern volatile long Luftdruck; |
extern volatile char messanzahl_Druck; |
extern volatile unsigned int ZaehlMessungen; |
extern unsigned char DruckOffsetSetting; |
extern volatile int HoeheD; |
extern volatile unsigned int MessLuftdruck; |
extern volatile int StartLuftdruck; |
extern unsigned int ReadADC(unsigned char adc_input); |
extern void ADC_Init(void); |
extern void SucheLuftruckOffset(void); |
#define ANALOG_OFF ADCSRA=0 |
#define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE) |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/compass.c |
---|
0,0 → 1,234 |
/* |
Copyright 2007, Niklas Nold |
This program (files compass.c and compass.h) is free software; you can redistribute it and/or modify |
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; |
either version 3 of the License, or (at your option) any later version. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Please note: All the other files for the project "Mikrokopter" by H. Buss are under the license (license_buss.txt) published by www.mikrokopter.de |
*/ |
#include "main.h" |
struct MM3_calib_struct ee_calib EEMEM; // Reservierung im EEPROM |
struct MM3_working_struct MM3; |
struct MM3_calib_struct MM3_calib; |
//############################################################################ |
// Initialisierung |
void init_MM3(void) |
//############################################################################ |
{ |
// SPI-Schnittstelle initialisieren |
SPCR = (1<<SPIE)|(1<<SPE)|(1<<MSTR)|(1<<SPR1)|(1<<SPR0); // Interrupt an, Master, 156 kHz Oszillator |
DDRB |= (1<<PB7)|(1<<PB5)|(1<<PB2); // J8, MOSI, SCK Ausgang |
PORTD &= ~(1<<PD3); // J5 permanent auf Low |
// Init Statemachine |
MM3.AXIS = MM3_X; |
MM3.STATE = MM3_RESET; |
// Kalibrierung aus dem EEprom lesen |
eeprom_read_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Wird in der SIGNAL (SIG_OVERFLOW0) aufgerufen |
void timer0_MM3(void) |
//############################################################################ |
{ |
switch (MM3.STATE) |
{ |
case MM3_RESET: |
PORTB |= (1<<PB2); // J8 auf High, MM3 Reset |
MM3.STATE = MM3_START_TRANSFER; |
return; |
case MM3_START_TRANSFER: |
PORTB &= ~(1<<PB2); // J8 auf Low (war ~125 µs auf High) |
if (MM3.AXIS == MM3_X) SPDR = 0x31; // Schreiben ins SPDR löst automatisch SPI-Übertragung (MOSI und MISO) aus |
else if (MM3.AXIS == MM3_Y) SPDR = 0x32; // Micromag Period Select ist auf 256 (0x30) |
else SPDR = 0x33; //if (MM3.AXIS == MM3_Z) // 1: x-Achse, 2: Y-Achse, 3: Z-Achse |
MM3.DRDY = SetDelay(8); // Laut Datenblatt max. Zeit bis Messung fertig (bei PS 256 eigentlich 4 ms) |
MM3.STATE = MM3_WAIT_DRDY; |
return; |
case MM3_WAIT_DRDY: |
if (CheckDelay(MM3.DRDY)) {SPDR = 0x00;MM3.STATE = MM3_DRDY;} // Irgendwas ins SPDR, damit Übertragung ausgelöst wird, wenn Wartezeit vorbei |
return; // Jetzt gehts weiter in SIGNAL (SIG_SPI) |
} |
} |
//############################################################################ |
// SPI byte ready |
SIGNAL (SIG_SPI) |
//############################################################################ |
{ |
static char tmp; |
int wert; |
switch (MM3.STATE) |
{ |
case MM3_DRDY: // 1. Byte ist da, zwischenspeichern |
tmp = SPDR; |
SPDR = 0x00; // Übertragung von 2. Byte auslösen |
MM3.STATE = MM3_BYTE2; |
return; |
case MM3_BYTE2: // 2. Byte der entsprechenden Achse ist da |
wert = tmp; |
wert <<= 8; // 1. Byte an MSB-Stelle rücken |
wert |= SPDR; // 2. Byte dranpappen |
if(abs(wert) < Max_Axis_Value) // Spikes filtern. Zuweisung nur, wenn Max-Wert nicht überschritten |
switch (MM3.AXIS) |
{ |
case MM3_X: |
MM3.x_axis = wert; |
MM3.AXIS = MM3_Y; |
break; |
case MM3_Y: |
MM3.y_axis = wert; |
MM3.AXIS = MM3_Z; |
break; |
default: //case MM3_Z: |
MM3.z_axis = wert; |
MM3.AXIS = MM3_X; |
} |
MM3.STATE = MM3_RESET; |
} |
} |
//############################################################################ |
// Kompass kalibrieren |
void calib_MM3(void) |
//############################################################################ |
{ |
signed int x_min=0,x_max=0,y_min=0,y_max=0,z_min=0,z_max=0; |
uint8_t measurement=50,beeper=0; |
unsigned int timer; |
GRN_ON; |
ROT_OFF; |
while (measurement) |
{ |
//H_earth = MM3.x_axis*MM3.x_axis + MM3.y_axis*MM3.y_axis + MM3.z_axis*MM3.z_axis; |
if (MM3.x_axis > x_max) x_max = MM3.x_axis; |
else if (MM3.x_axis < x_min) x_min = MM3.x_axis; |
if (MM3.y_axis > y_max) y_max = MM3.y_axis; |
else if (MM3.y_axis < y_min) y_min = MM3.y_axis; |
if (MM3.z_axis > z_max) z_max = MM3.z_axis; |
else if (MM3.z_axis < z_min) z_min = MM3.z_axis; |
if (!beeper) |
{ |
ROT_FLASH; |
GRN_FLASH; |
beeptime = 50; |
beeper = 50; |
} |
beeper--; |
// Schleife mit 100 Hz |
timer = SetDelay(10); |
while(!CheckDelay(timer)); |
// Wenn Gas zurück genommen wird, Kalibrierung mit 1/2 Sekunde Verzögerung beenden |
if (PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] < 100) measurement--; |
} |
// Wertebereich der Achsen |
MM3_calib.X_range = (x_max - x_min); |
MM3_calib.Y_range = (y_max - y_min); |
MM3_calib.Z_range = (z_max - z_min); |
// Offset der Achsen |
MM3_calib.X_off = (x_max + x_min) / 2; |
MM3_calib.Y_off = (y_max + y_min) / 2; |
MM3_calib.Z_off = (z_max + z_min) / 2; |
// und im EEProm abspeichern |
eeprom_write_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Neigungskompensierung und Berechnung der Ausrichtung |
int heading_MM3(void) |
//############################################################################ |
{ |
signed int sin_nick, cos_nick, sin_roll, cos_roll; |
long x_axis, y_axis, z_axis; |
long x_corr, y_corr; |
signed int heading; |
int8_t nicktilt,rolltilt; |
unsigned int div_faktor; |
div_faktor = (uint16_t)EE_Parameter.UserParam1 * 8; |
// Berechung von sinus und cosinus |
nicktilt = (IntegralNick/div_faktor); |
sin_nick = sin_i(nicktilt); |
cos_nick = cos_i(nicktilt); |
rolltilt = (IntegralRoll/div_faktor); |
sin_roll = sin_i(rolltilt); |
cos_roll = cos_i(rolltilt); |
// Offset |
x_axis = (MM3.x_axis - MM3_calib.X_off); |
y_axis = (MM3.y_axis - MM3_calib.Y_off); |
z_axis = (MM3.z_axis - MM3_calib.Z_off); |
/* |
// Normierung Wertebereich |
if ((MM3_calib.X_range > MM3_calib.Y_range) && (MM3_calib.X_range > MM3_calib.Z_range)) |
{ |
y_axis = (y_axis * MM3_calib.X_range) / MM3_calib.Y_range; |
z_axis = (z_axis * MM3_calib.X_range) / MM3_calib.Z_range; |
} |
else if ((MM3_calib.Y_range > MM3_calib.X_range) && (MM3_calib.Y_range > MM3_calib.Z_range)) |
{ |
x_axis = (x_axis * MM3_calib.Y_range) / MM3_calib.X_range; |
z_axis = (z_axis * MM3_calib.Y_range) / MM3_calib.Z_range; |
} |
else //if ((MM3_calib.Z_range > MM3_calib.X_range) && (MM3_calib.Z_range > MM3_calib.Y_range)) |
{ |
x_axis = (x_axis * MM3_calib.Z_range) / MM3_calib.X_range; |
y_axis = (y_axis * MM3_calib.Z_range) / MM3_calib.Y_range; |
} |
*/ |
// Neigungskompensierung |
x_corr = x_axis * cos_nick; |
x_corr += (y_axis * sin_roll * sin_nick) /1024; |
x_corr -= (z_axis * cos_roll * sin_nick) /1024; |
x_corr /= 1024; |
y_corr = y_axis * cos_roll; |
y_corr += z_axis * sin_roll; |
y_corr /= 1024; |
// Winkelberechnung |
heading = atan2_i(x_corr, y_corr); |
if (heading < 0) heading = -heading; |
else heading = 360 - heading; |
return (heading); |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/compass.h |
---|
0,0 → 1,44 |
struct MM3_working_struct |
{ |
uint8_t STATE; |
unsigned int DRDY; |
uint8_t AXIS; |
volatile signed int x_axis; |
volatile signed int y_axis; |
volatile signed int z_axis; |
}; |
struct MM3_calib_struct |
{ |
int8_t X_off; |
int8_t Y_off; |
int8_t Z_off; |
uint16_t X_range; |
uint16_t Y_range; |
uint16_t Z_range; |
}; |
extern struct MM3_working_struct MM3; |
extern struct MM3_calib_struct MM3_calib; |
void init_MM3(void); |
void timer0_MM3(void); |
void calib_MM3(void); |
int heading_MM3(void); |
#define Max_Axis_Value 500 |
// Die Werte der Statemachine |
#define MM3_RESET 0 |
#define MM3_START_TRANSFER 1 |
#define MM3_WAIT_DRDY 2 |
#define MM3_DRDY 3 |
#define MM3_BYTE2 4 |
#define MM3_X 5 |
#define MM3_Y 6 |
#define MM3_Z 7 |
#define MM3_TILT 8 |
#define MM3_IDLE 9 |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/fc.c |
---|
0,0 → 1,846 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten (nicht-kommerziellen) Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-commercial use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
// + clearly linked as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
unsigned char h,m,s; |
volatile unsigned char Timeout = 0; |
int MesswertNick,MesswertRoll,MesswertGier; |
volatile int AdNeutralNick = 0,AdNeutralRoll = 0,AdNeutralGier = 0; |
int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
long IntegralNick = 0,IntegralNick2 = 0; |
long IntegralRoll = 0,IntegralRoll2 = 0; |
long Integral_Gier = 0; |
volatile long Mess_IntegralNick = 0,Mess_IntegralNick2 = 0; |
volatile long Mess_IntegralRoll = 0,Mess_IntegralRoll2 = 0; |
volatile long Mess_Integral_Gier = 0,Mess_Integral_Gier2 = 0; |
volatile long Mess_Integral_Hoch = 0; |
int KompassValue = 0; |
int KompassStartwert = 0; |
int KompassRichtung = 0; |
uint8_t updKompass = 0; |
unsigned char MAX_GAS,MIN_GAS; |
unsigned char Notlandung = 0; |
unsigned char HoehenReglerAktiv = 0; |
float GyroFaktor; |
float IntegralFaktor; |
int DiffNick,DiffRoll; |
int Poti1 = 0, Poti2 = 0, Poti3 = 0, Poti4 = 0; |
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links; |
unsigned char MotorWert[5]; |
volatile unsigned char SenderOkay = 0; |
int StickNick = 0,StickRoll = 0,StickGier = 0; |
char MotorenEin = 0; |
int HoehenWert = 0; |
int SollHoehe = 0; |
float Kp = FAKTOR_P; |
float Ki = FAKTOR_I; |
unsigned char Parameter_Luftdruck_D = 48; // Wert : 0-250 |
unsigned char Parameter_MaxHoehe = 251; // Wert : 0-250 |
unsigned char Parameter_Hoehe_P = 16; // Wert : 0-32 |
unsigned char Parameter_Hoehe_ACC_Wirkung = 58; // Wert : 0-250 |
unsigned char Parameter_KompassWirkung = 64; // Wert : 0-250 |
unsigned char Parameter_Gyro_P = 50; // Wert : 10-250 |
unsigned char Parameter_Gyro_I = 150; // Wert : 0-250 |
unsigned char Parameter_Gier_P = 2; // Wert : 1-20 |
unsigned char Parameter_I_Faktor = 10; // Wert : 1-20 |
unsigned char Parameter_UserParam1 = 0; |
unsigned char Parameter_UserParam2 = 0; |
unsigned char Parameter_UserParam3 = 0; |
unsigned char Parameter_UserParam4 = 0; |
unsigned char Parameter_ServoNickControl = 100; |
struct mk_param_struct EE_Parameter; |
struct acc_neutral_struct ee_acc_neutral EEMEM; // Reservierung im EEPROM |
struct acc_neutral_struct acc_neutral; |
void Piep(unsigned char Anzahl) |
{ |
while(Anzahl--) |
{ |
if(MotorenEin) return; //auf keinen Fall im Flug! |
beeptime = 100; |
Delay_ms(250); |
} |
} |
//############################################################################ |
// Neutrallage kalibrieren und fest im EEPROM abspeichern |
void calib_acc(void) |
//############################################################################ |
{ |
unsigned int timer; |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
CalibrierMittelwert(); |
timer = SetDelay(5); |
while (!CheckDelay(timer)); |
CalibrierMittelwert(); |
acc_neutral.X = abs(Mittelwert_AccNick) / ACC_AMPLIFY; |
acc_neutral.Y = abs(Mittelwert_AccRoll) / ACC_AMPLIFY; |
acc_neutral.Z = Aktuell_az; |
eeprom_write_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
} |
//############################################################################ |
// Nullwerte ermitteln |
void SetNeutral(void) |
//############################################################################ |
{ |
unsigned int timer; |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
AdNeutralNick = 0; |
AdNeutralRoll = 0; |
AdNeutralGier = 0; |
CalibrierMittelwert(); |
timer = SetDelay(5); |
while (!CheckDelay(timer)); |
CalibrierMittelwert(); |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
AdNeutralNick= abs(MesswertNick); |
AdNeutralRoll= abs(MesswertRoll); |
AdNeutralGier= abs(MesswertGier); |
eeprom_read_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
Mess_IntegralNick = 0; |
Mess_IntegralNick2 = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralRoll2 = 0; |
Mess_Integral_Gier = 0; |
MesswertNick = 0; |
MesswertRoll = 0; |
MesswertGier = 0; |
StartLuftdruck = Luftdruck; |
HoeheD = 0; |
Mess_Integral_Hoch = 0; |
KompassStartwert = KompassValue; |
GPS_Neutral(); |
beeptime = 50; |
} |
//############################################################################ |
// Bildet den Mittelwert aus den Messwerten |
void Mittelwert(void) |
//############################################################################ |
{ |
// ADC auschalten, damit die Werte sich nicht während der Berechnung ändern |
ANALOG_OFF; |
if(MessanzahlNick) (MesswertNick = AccumulateNick / MessanzahlNick); |
if(MessanzahlRoll) (MesswertRoll = AccumulateRoll / MessanzahlRoll); |
if(MessanzahlGier) (MesswertGier = AccumulateGier / MessanzahlGier); |
if(messanzahl_AccNick) Mittelwert_AccNick = ((long)Mittelwert_AccNick * 7 + ((ACC_AMPLIFY * (long)accumulate_AccNick) / messanzahl_AccNick)) / 8L; |
if(messanzahl_AccRoll) Mittelwert_AccRoll = ((long)Mittelwert_AccRoll * 7 + ((ACC_AMPLIFY * (long)accumulate_AccRoll) / messanzahl_AccRoll)) / 8L; |
if(messanzahl_AccHoch) Mittelwert_AccHoch = ((long)Mittelwert_AccHoch * 7 + ((long)accumulate_AccHoch) / messanzahl_AccHoch) / 8L; |
AccumulateNick = 0; MessanzahlNick = 0; |
AccumulateRoll = 0; MessanzahlRoll = 0; |
AccumulateGier = 0; MessanzahlGier = 0; |
accumulate_AccRoll = 0;messanzahl_AccRoll = 0; |
accumulate_AccNick = 0;messanzahl_AccNick = 0; |
accumulate_AccHoch = 0;messanzahl_AccHoch = 0; |
Integral_Gier = Mess_Integral_Gier; |
// Integral_Gier2 = Mess_Integral_Gier2; |
IntegralNick = Mess_IntegralNick; |
IntegralRoll = Mess_IntegralRoll; |
IntegralNick2 = Mess_IntegralNick2; |
IntegralRoll2 = Mess_IntegralRoll2; |
// ADC einschalten |
ANALOG_ON; |
/* |
//------------------------------------------------------------------------------ |
if(MesswertNick > 200) MesswertNick += 4 * (MesswertNick - 200); |
else |
if(MesswertNick < -200) MesswertNick += 4 * (MesswertNick + 200); |
if(MesswertRoll > 200) MesswertRoll += 4 * (MesswertRoll - 200); |
else |
if(MesswertRoll < -200) MesswertRoll += 4 * (MesswertRoll + 200); |
//------------------------------------------------------------------------------ |
*/ |
if(Poti1 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110) Poti1++; else if(Poti1 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110 && Poti1) Poti1--; |
if(Poti2 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110) Poti2++; else if(Poti2 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110 && Poti2) Poti2--; |
if(Poti3 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110) Poti3++; else if(Poti3 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110 && Poti3) Poti3--; |
if(Poti4 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110) Poti4++; else if(Poti4 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110 && Poti4) Poti4--; |
if(Poti1 < 0) Poti1 = 0; else if(Poti1 > 255) Poti1 = 255; |
if(Poti2 < 0) Poti2 = 0; else if(Poti2 > 255) Poti2 = 255; |
if(Poti3 < 0) Poti3 = 0; else if(Poti3 > 255) Poti3 = 255; |
if(Poti4 < 0) Poti4 = 0; else if(Poti4 > 255) Poti4 = 255; |
} |
//############################################################################ |
// Messwerte beim Ermitteln der Nullage |
void CalibrierMittelwert(void) |
//############################################################################ |
{ |
// ADC auschalten, damit die Werte sich nicht während der Berechnung ändern |
ANALOG_OFF; |
if(MessanzahlNick) (MesswertNick = AccumulateNick / MessanzahlNick); |
if(MessanzahlRoll) (MesswertRoll = AccumulateRoll / MessanzahlRoll); |
if(MessanzahlGier) (MesswertGier = AccumulateGier / MessanzahlGier); |
if(messanzahl_AccNick) Mittelwert_AccNick = ((ACC_AMPLIFY * (long)accumulate_AccNick) / messanzahl_AccNick); |
if(messanzahl_AccRoll) Mittelwert_AccRoll = (ACC_AMPLIFY * (long)accumulate_AccRoll) / messanzahl_AccRoll; |
if(messanzahl_AccHoch) Mittelwert_AccHoch = accumulate_AccHoch / messanzahl_AccHoch; |
AccumulateNick = 0; MessanzahlNick = 0; |
AccumulateRoll = 0; MessanzahlRoll = 0; |
AccumulateGier = 0; MessanzahlGier = 0; |
accumulate_AccRoll = 0;messanzahl_AccRoll = 0; |
accumulate_AccNick = 0;messanzahl_AccNick = 0; |
accumulate_AccHoch = 0;messanzahl_AccHoch = 0; |
// ADC einschalten |
ANALOG_ON; |
if(Poti1 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110) Poti1++; else if(Poti1 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110 && Poti1) Poti1--; |
if(Poti2 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110) Poti2++; else if(Poti2 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110 && Poti2) Poti2--; |
if(Poti3 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110) Poti3++; else if(Poti3 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110 && Poti3) Poti3--; |
if(Poti4 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110) Poti4++; else if(Poti4 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110 && Poti4) Poti4--; |
if(Poti1 < 0) Poti1 = 0; else if(Poti1 > 255) Poti1 = 255; |
if(Poti2 < 0) Poti2 = 0; else if(Poti2 > 255) Poti2 = 255; |
if(Poti3 < 0) Poti3 = 0; else if(Poti3 > 255) Poti3 = 255; |
if(Poti4 < 0) Poti4 = 0; else if(Poti4 > 255) Poti4 = 255; |
} |
//############################################################################ |
// Senden der Motorwerte per I2C-Bus |
void SendMotorData(void) |
//############################################################################ |
{ |
if(MOTOR_OFF || !MotorenEin) |
{ |
Motor_Hinten = 0; |
Motor_Vorne = 0; |
Motor_Rechts = 0; |
Motor_Links = 0; |
if(MotorTest[0]) Motor_Vorne = MotorTest[0]; |
if(MotorTest[1]) Motor_Hinten = MotorTest[1]; |
if(MotorTest[2]) Motor_Links = MotorTest[2]; |
if(MotorTest[3]) Motor_Rechts = MotorTest[3]; |
} |
DebugOut.Analog[12] = Motor_Vorne; |
DebugOut.Analog[13] = Motor_Hinten; |
DebugOut.Analog[14] = Motor_Links; |
DebugOut.Analog[15] = Motor_Rechts; |
//Start I2C Interrupt Mode |
twi_state = 0; |
motor = 0; |
i2c_start(); |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Konstanten |
// + 0-250 -> normale Werte |
// + 251 -> Poti1 |
// + 252 -> Poti2 |
// + 253 -> Poti3 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
void DefaultKonstanten1(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = 0;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV | CFG_KOMPASS_FIX;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-32 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 70; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 30; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 2; // Wert : 0-50 |
EE_Parameter.Stick_P = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 8; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 16; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 26; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 16; // Wert : 0-250 |
EE_Parameter.Gyro_P = 120; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 150; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 90; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 5; |
EE_Parameter.UserParam1 = 178; //zur freien Verwendung |
EE_Parameter.UserParam2 = 0; //zur freien Verwendung |
EE_Parameter.UserParam3 = 0; //zur freien Verwendung |
EE_Parameter.UserParam4 = 0; //zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
memcpy(EE_Parameter.Name, "Normal\0", 12); |
} |
void DefaultKonstanten2(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.GlobalConfig = 0;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-32 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 2; // Wert : 0-50 |
EE_Parameter.Stick_P = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 0; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 16; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 26; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 16; // Wert : 0-250 |
EE_Parameter.Gyro_P = 175; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 175; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 90; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 5; |
EE_Parameter.UserParam1 = 178; //zur freien Verwendung |
EE_Parameter.UserParam2 = 0; //zur freien Verwendung |
EE_Parameter.UserParam3 = 0; //zur freien Verwendung |
EE_Parameter.UserParam4 = 0; //zur freien Verwendung |
EE_Parameter.UserParam3 = 0; //zur freien Verwendung |
EE_Parameter.UserParam4 = 0; //zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
memcpy(EE_Parameter.Name, "Kamera\0", 12); |
} |
//############################################################################ |
// Trägt ggf. das Poti als Parameter ein |
void ParameterZuordnung(void) |
//############################################################################ |
{ |
#define CHK_POTI(b,a,min,max) { if(a > 250) { if(a == 251) b = Poti1; else if(a == 252) b = Poti2; else if(a == 253) b = Poti3; else if(a == 254) b = Poti4;} else b = a; if(b <= min) b = min; else if(b >= max) b = max;} |
CHK_POTI(Parameter_MaxHoehe,EE_Parameter.MaxHoehe,0,255); |
CHK_POTI(Parameter_Luftdruck_D,EE_Parameter.Luftdruck_D,0,100); |
CHK_POTI(Parameter_Hoehe_P,EE_Parameter.Hoehe_P,0,100); |
CHK_POTI(Parameter_Hoehe_ACC_Wirkung,EE_Parameter.Hoehe_ACC_Wirkung,0,255); |
CHK_POTI(Parameter_KompassWirkung,EE_Parameter.KompassWirkung,0,255); |
CHK_POTI(Parameter_Gyro_P,EE_Parameter.Gyro_P,10,255); |
CHK_POTI(Parameter_Gyro_I,EE_Parameter.Gyro_I,0,255); |
CHK_POTI(Parameter_I_Faktor,EE_Parameter.I_Faktor,0,255); |
CHK_POTI(Parameter_UserParam1,EE_Parameter.UserParam1,0,255); |
CHK_POTI(Parameter_UserParam2,EE_Parameter.UserParam2,0,255); |
CHK_POTI(Parameter_UserParam3,EE_Parameter.UserParam3,0,255); |
CHK_POTI(Parameter_UserParam4,EE_Parameter.UserParam4,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
Ki = (float) Parameter_I_Faktor * 0.0001; |
MAX_GAS = EE_Parameter.Gas_Max; |
MIN_GAS = EE_Parameter.Gas_Min; |
} |
//############################################################################ |
// |
void MotorRegler(void) |
//############################################################################ |
{ |
int motorwert,pd_ergebnis,h,tmp_int; |
int GierMischanteil,GasMischanteil; |
static long SummeNick=0,SummeRoll=0; |
static long sollGier = 0,tmp_long,tmp_long2; |
static int IntegralFehlerNick = 0; |
static int IntegralFehlerRoll = 0; |
static unsigned int RcLostTimer; |
static unsigned char delay_neutral = 0; |
static unsigned char delay_einschalten = 0,delay_ausschalten = 0; |
static unsigned int modell_fliegt = 0; |
static int hoehenregler = 0; |
static char TimerWerteausgabe = 0; |
static char NeueKompassRichtungMerken = 1; |
Mittelwert(); |
GRN_ON; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gaswert ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GasMischanteil = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + 120; |
if(GasMischanteil < 0) GasMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang schlecht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay < 100) |
{ |
if(!PcZugriff) beeptime = 500; |
if(RcLostTimer) RcLostTimer--; |
else |
{ |
MotorenEin = 0; |
Notlandung = 0; |
} |
ROT_ON; |
if(modell_fliegt > 2000) // wahrscheinlich in der Luft --> langsam absenken |
{ |
GasMischanteil = EE_Parameter.NotGas; |
Notlandung = 1; |
PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] = 0; |
PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] = 0; |
PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] = 0; |
/* Poti1 = 65; |
Poti2 = 48; |
Poti3 = 0; |
*/ } |
else MotorenEin = 0; |
} |
else |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang gut |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay > 140) |
{ |
Notlandung = 0; |
RcLostTimer = EE_Parameter.NotGasZeit * 50; |
if(GasMischanteil > 40) |
{ |
if(modell_fliegt < 0xffff) modell_fliegt++; |
} |
if((modell_fliegt < 200) || (GasMischanteil < 40)) |
{ |
SummeNick = 0; |
SummeRoll = 0; |
Mess_Integral_Gier = 0; |
Mess_Integral_Gier2 = 0; |
} |
if((GasMischanteil > 200) && MotorenEin == 0) |
{ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// auf Nullwerte kalibrieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) // Neutralwerte |
{ |
unsigned char setting; |
if(++delay_neutral > 200) // nicht sofort |
{ |
GRN_OFF; |
SetNeutral(); |
MotorenEin = 0; |
delay_neutral = 0; |
modell_fliegt = 0; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70 || abs(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]) > 70) |
{ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < 70) setting = 1; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 2; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 3; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] <-70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 4; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] <-70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < 70) setting = 5; |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], setting); // aktiven Datensatz merken |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
Piep(GetActiveParamSetNumber()); |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
} |
} |
else delay_neutral = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gas ist unten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(GasMischanteil < 35) |
{ |
// Starten |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -75) |
{ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Einschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(++delay_einschalten > 200) |
{ |
delay_einschalten = 200; |
modell_fliegt = 1; |
MotorenEin = 1; |
sollGier = 0; |
Mess_Integral_Gier = 0; |
Mess_Integral_Gier2 = 0; |
Mess_IntegralNick = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralNick2 = IntegralNick; |
Mess_IntegralRoll2 = IntegralRoll; |
SummeNick = 0; |
SummeRoll = 0; |
} |
} |
else delay_einschalten = 0; |
//Auf Neutralwerte setzen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Auschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) |
{ |
if(++delay_ausschalten > 200) // nicht sofort |
{ |
MotorenEin = 0; |
delay_ausschalten = 200; |
modell_fliegt = 0; |
} |
} |
else delay_ausschalten = 0; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// neue Werte von der Funke |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!NewPpmData-- || Notlandung) |
{ |
ParameterZuordnung(); |
StickNick = PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] * EE_Parameter.Stick_P; |
StickNick += PPM_diff[EE_Parameter.Kanalbelegung[K_NICK]] * EE_Parameter.Stick_D; |
StickRoll = PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] * EE_Parameter.Stick_P; |
StickRoll += PPM_diff[EE_Parameter.Kanalbelegung[K_ROLL]] * EE_Parameter.Stick_D; |
StickGier = -PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]; |
GyroFaktor = ((float)Parameter_Gyro_P + 10.0) / 256.0; |
IntegralFaktor = ((float) Parameter_Gyro_I) / 44000; |
if(EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) IntegralFaktor = 0; |
if(GyroFaktor < 0) GyroFaktor = 0; |
if(IntegralFaktor < 0) IntegralFaktor = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Bei Empfangsausfall im Flug |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(Notlandung) |
{ |
StickGier = 0; |
StickNick = 0; |
StickRoll = 0; |
GyroFaktor = 0.1; |
IntegralFaktor = 0.005; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gyro-Drift kompensieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define DRIFT_FAKTOR 3 |
if(ZaehlMessungen >= 1000 / DRIFT_FAKTOR) |
{ |
IntegralFehlerNick = IntegralNick2 - IntegralNick; |
IntegralFehlerRoll = IntegralRoll2 - IntegralRoll; |
ZaehlMessungen = 0; |
if(IntegralFehlerNick > 500/DRIFT_FAKTOR) AdNeutralNick++; |
if(IntegralFehlerNick < -500/DRIFT_FAKTOR) AdNeutralNick--; |
if(IntegralFehlerRoll > 500/DRIFT_FAKTOR) AdNeutralRoll++; |
if(IntegralFehlerRoll < -500/DRIFT_FAKTOR) AdNeutralRoll--; |
//if(Mess_Integral_Gier2 > 500/DRIFT_FAKTOR) AdNeutralGier--; |
//if(Mess_Integral_Gier2 <-500/DRIFT_FAKTOR) AdNeutralGier++; |
ANALOG_OFF; // ADC ausschalten, damit die Werte sich nicht während der Berechnung ändern |
Mess_IntegralNick2 = IntegralNick; |
Mess_IntegralRoll2 = IntegralRoll; |
Mess_Integral_Gier2 = Integral_Gier; |
ANALOG_ON; // ADC einschalten |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Integrale auf ACC-Signal abgleichen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
tmp_long = (long)(IntegralNick / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccNick) / 16; |
tmp_long2 = (long)(IntegralRoll / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccRoll) / 16; |
#define AUSGLEICH 500 |
if(tmp_long > AUSGLEICH) tmp_long = AUSGLEICH; |
if(tmp_long < -AUSGLEICH) tmp_long =-AUSGLEICH; |
if(tmp_long2 > AUSGLEICH) tmp_long2 = AUSGLEICH; |
if(tmp_long2 <-AUSGLEICH) tmp_long2 =-AUSGLEICH; |
ANALOG_OFF; // ADC ausschalten, damit die Werte sich nicht während der Berechnung ändern |
Mess_IntegralNick -= tmp_long; |
Mess_IntegralRoll -= tmp_long2; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gieren wie in .66c |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(abs(StickGier) > 20) // war 35 |
{ |
if(!(EE_Parameter.GlobalConfig & CFG_KOMPASS_FIX)) NeueKompassRichtungMerken = 1; |
} |
tmp_int = (long)EE_Parameter.Gier_P * ((long)StickGier * abs(StickGier)) / 512L; // expo y = ax + bx² |
tmp_int += (EE_Parameter.Gier_P * StickGier) / 4; |
sollGier = tmp_int; |
Mess_Integral_Gier -= tmp_int; |
if(Mess_Integral_Gier > 50000) Mess_Integral_Gier = 50000; // begrenzen |
if(Mess_Integral_Gier <-50000) Mess_Integral_Gier =-50000; |
ANALOG_ON; // ADC einschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Kompass |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
{ |
int w,v; |
if (!updKompass--) // Aufruf mit ~10 Hz |
{ |
KompassValue = heading_MM3(); |
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
updKompass = 50; |
} |
w = abs(IntegralNick /512); // mit zunehmender Neigung den Einfluss drosseln |
v = abs(IntegralRoll /512); |
if(v > w) w = v; // grösste Neigung ermitteln |
if(w < 35 && NeueKompassRichtungMerken) |
{ |
KompassStartwert = KompassValue; |
NeueKompassRichtungMerken = 0; |
} |
w = (w * Parameter_KompassWirkung) / 64; // auf die Wirkung normieren |
w = Parameter_KompassWirkung - w; // Wirkung ggf drosseln |
if(w > 0) |
{ |
ANALOG_OFF; // ADC ausschalten, damit die Werte sich nicht während der Berechnung ändern |
Mess_Integral_Gier += (KompassRichtung * w) / 32; // nach Kompass ausrichten |
ANALOG_ON; // ADC einschalten |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Debugwerte zuordnen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DebugOut.Sekunden++; |
if(!TimerWerteausgabe--) |
{ |
TimerWerteausgabe = 49; |
// DebugOut.Analog[0] = MesswertNick; |
// DebugOut.Analog[1] = MesswertRoll; |
// DebugOut.Analog[2] = MesswertGier; |
DebugOut.Analog[0] = IntegralNick / EE_Parameter.GyroAccFaktor; |
DebugOut.Analog[1] = IntegralRoll / EE_Parameter.GyroAccFaktor; |
DebugOut.Analog[2] = Mittelwert_AccNick; |
DebugOut.Analog[3] = Mittelwert_AccRoll; |
DebugOut.Analog[4] = MesswertGier; |
DebugOut.Analog[5] = HoehenWert; |
DebugOut.Analog[6] = (Mess_Integral_Hoch / 512); |
DebugOut.Analog[7] = GasMischanteil; |
DebugOut.Analog[8] = KompassValue; |
DebugOut.Analog[9] = MM3.x_axis; |
DebugOut.Analog[10] = MM3.y_axis; |
DebugOut.Analog[11] = MM3.z_axis; |
// DebugOut.Analog[9] = SollHoehe; |
// DebugOut.Analog[10] = Mess_Integral_Gier / 128; |
// DebugOut.Analog[11] = KompassStartwert; |
// DebugOut.Analog[10] = Parameter_Gyro_I; |
// DebugOut.Analog[10] = EE_Parameter.Gyro_I; |
// DebugOut.Analog[9] = KompassRichtung; |
// DebugOut.Analog[10] = GasMischanteil; |
// DebugOut.Analog[3] = HoeheD * 32; |
// DebugOut.Analog[4] = hoehenregler; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Drehgeschwindigkeit und -winkel zu einem Istwert zusammenfassen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
MesswertNick = IntegralNick * IntegralFaktor + MesswertNick * GyroFaktor; |
MesswertRoll = IntegralRoll * IntegralFaktor + MesswertRoll * GyroFaktor; |
MesswertGier = MesswertGier * (GyroFaktor/2) + Integral_Gier * IntegralFaktor; |
// Maximalwerte abfangen |
#define MAX_SENSOR 2048 |
if(MesswertNick > MAX_SENSOR) MesswertNick = MAX_SENSOR; |
if(MesswertNick < -MAX_SENSOR) MesswertNick = -MAX_SENSOR; |
if(MesswertRoll > MAX_SENSOR) MesswertRoll = MAX_SENSOR; |
if(MesswertRoll < -MAX_SENSOR) MesswertRoll = -MAX_SENSOR; |
if(MesswertGier > MAX_SENSOR) MesswertGier = MAX_SENSOR; |
if(MesswertGier < -MAX_SENSOR) MesswertGier = -MAX_SENSOR; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Höhenregelung |
// Die Höhenregelung schwächt lediglich das Gas ab, erhöht es allerdings nicht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//OCR0B = 180 - (Poti1 + 120) / 4; |
//DruckOffsetSetting = OCR0B; |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung |
{ |
int tmp_int; |
if(EE_Parameter.GlobalConfig & CFG_HOEHEN_SCHALTER) // Regler wird über Schalter gesteuert |
{ |
if(Parameter_MaxHoehe < 50) |
{ |
SollHoehe = HoehenWert - 20; // Parameter_MaxHoehe ist der PPM-Wert des Schalters |
HoehenReglerAktiv = 0; |
} |
else |
HoehenReglerAktiv = 1; |
} |
else |
{ |
SollHoehe = Parameter_MaxHoehe * EE_Parameter.Hoehe_Verstaerkung - 20; |
HoehenReglerAktiv = 1; |
} |
if(Notlandung) SollHoehe = 0; |
h = HoehenWert; |
if((h > SollHoehe) && HoehenReglerAktiv) // zu hoch --> drosseln |
{ h = ((h - SollHoehe) * (int) Parameter_Hoehe_P) / 16; // Differenz bestimmen --> P-Anteil |
h = GasMischanteil - h; // vom Gas abziehen |
h -= (HoeheD * Parameter_Luftdruck_D)/8; // D-Anteil |
tmp_int = ((Mess_Integral_Hoch / 512) * (signed long) Parameter_Hoehe_ACC_Wirkung) / 32; |
if(tmp_int > 50) tmp_int = 50; |
else if(tmp_int < -50) tmp_int = -50; |
h -= tmp_int; |
hoehenregler = (hoehenregler*15 + h) / 16; |
if(hoehenregler < EE_Parameter.Hoehe_MinGas) // nicht unter MIN |
{ |
if(GasMischanteil >= EE_Parameter.Hoehe_MinGas) hoehenregler = EE_Parameter.Hoehe_MinGas; |
if(GasMischanteil < EE_Parameter.Hoehe_MinGas) hoehenregler = GasMischanteil; |
} |
if(hoehenregler > GasMischanteil) hoehenregler = GasMischanteil; // nicht mehr als Gas |
GasMischanteil = hoehenregler; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Mischer und PI-Regler |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gier-Anteil |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GierMischanteil = MesswertGier - sollGier; // Regler für Gier |
if(GierMischanteil > 100) GierMischanteil = 100; |
if(GierMischanteil < -100) GierMischanteil = -100; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Nick-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffNick = Kp * (MesswertNick - (StickNick - GPS_Nick)); // Differenz bestimmen |
SummeNick += DiffNick; // I-Anteil |
if(SummeNick > 0) SummeNick-= (abs(SummeNick)/256 + 1); else SummeNick += abs(SummeNick)/256 + 1; |
if(SummeNick > 16000) SummeNick = 16000; |
if(SummeNick < -16000) SummeNick = -16000; |
pd_ergebnis = DiffNick + Ki * SummeNick; // PI-Regler für Nick |
// Motor Vorn |
motorwert = GasMischanteil + pd_ergebnis + GierMischanteil; // Mischer |
if ((motorwert < 0) | (GasMischanteil < 10)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Vorne = motorwert; |
// Motor Heck |
motorwert = GasMischanteil - pd_ergebnis + GierMischanteil; |
if ((motorwert < 0) | (GasMischanteil < 10)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Hinten = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Roll-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffRoll = Kp * (MesswertRoll - (StickRoll - GPS_Roll)); // Differenz bestimmen |
SummeRoll += DiffRoll; // I-Anteil |
if(SummeRoll > 0) SummeRoll-= (abs(SummeRoll)/256 + 1); else SummeRoll += abs(SummeRoll)/256 + 1; |
if(SummeRoll > 16000) SummeRoll = 16000; |
if(SummeRoll < -16000) SummeRoll = -16000; |
pd_ergebnis = DiffRoll + Ki * SummeRoll; // PI-Regler für Roll |
// Motor Links |
motorwert = GasMischanteil + pd_ergebnis - GierMischanteil; |
if ((motorwert < 0) | (GasMischanteil < 10)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Links = motorwert; |
// Motor Rechts |
motorwert = GasMischanteil - pd_ergebnis - GierMischanteil; |
if ((motorwert < 0) | (GasMischanteil < 10)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Rechts = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++ |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/fc.h |
---|
0,0 → 1,113 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
#ifndef _FC_H |
#define _FC_H |
extern volatile unsigned char Timeout; |
extern unsigned char Sekunde,Minute; |
extern long IntegralNick,IntegralNick2; |
extern long IntegralRoll,IntegralRoll2; |
extern long Integral_Gier; |
extern volatile long Mess_IntegralNick,Mess_IntegralNick2; |
extern volatile long Mess_IntegralRoll,Mess_IntegralRoll2; |
extern volatile long Mess_Integral_Hoch; |
extern volatile long Mess_Integral_Gier,Mess_Integral_Gier2; |
extern int KompassValue; |
extern int KompassStartwert; |
extern int KompassRichtung; |
extern int HoehenWert; |
extern int SollHoehe; |
extern int MesswertNick,MesswertRoll,MesswertGier; |
extern int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
extern volatile int AdNeutralNick,AdNeutralRoll,AdNeutralGier; |
void MotorRegler(void); |
void SendMotorData(void); |
void CalibrierMittelwert(void); |
void Mittelwert(void); |
void SetNeutral(void); |
void Piep(unsigned char Anzahl); |
void DefaultKonstanten1(void); |
void DefaultKonstanten2(void); |
unsigned char h,m,s; |
volatile unsigned char Timeout; |
int DiffNick,DiffRoll; |
extern int Poti1, Poti2, Poti3, Poti4; |
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links; |
unsigned char MotorWert[5]; |
volatile unsigned char SenderOkay; |
int StickNick,StickRoll,StickGier; |
char MotorenEin; |
extern void DefaultKonstanten(void); |
struct mk_param_struct |
{ |
unsigned char Kanalbelegung[8]; // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3 |
unsigned char GlobalConfig; // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv |
unsigned char Hoehe_MinGas; // Wert : 0-100 |
unsigned char Luftdruck_D; // Wert : 0-250 |
unsigned char MaxHoehe; // Wert : 0-32 |
unsigned char Hoehe_P; // Wert : 0-32 |
unsigned char Hoehe_Verstaerkung; // Wert : 0-50 |
unsigned char Hoehe_ACC_Wirkung; // Wert : 0-250 |
unsigned char Stick_P; // Wert : 1-6 |
unsigned char Stick_D; // Wert : 0-64 |
unsigned char Gier_P; // Wert : 1-20 |
unsigned char Gas_Min; // Wert : 0-32 |
unsigned char Gas_Max; // Wert : 33-250 |
unsigned char GyroAccFaktor; // Wert : 1-64 |
unsigned char KompassWirkung; // Wert : 0-32 |
unsigned char Gyro_P; // Wert : 10-250 |
unsigned char Gyro_I; // Wert : 0-250 |
unsigned char UnterspannungsWarnung; // Wert : 0-250 |
unsigned char NotGas; // Wert : 0-250 //Gaswert bei Empängsverlust |
unsigned char NotGasZeit; // Wert : 0-250 // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen |
unsigned char UfoAusrichtung; // X oder + Formation |
unsigned char I_Faktor; // Wert : 0-250 |
unsigned char UserParam1; // Wert : 0-250 |
unsigned char UserParam2; // Wert : 0-250 |
unsigned char UserParam3; // Wert : 0-250 |
unsigned char UserParam4; // Wert : 0-250 |
unsigned char ServoNickControl; // Wert : 0-250 // Stellung des Servos |
unsigned char ServoNickComp; // Wert : 0-250 // Einfluss Gyro/Servo |
unsigned char ServoNickMin; // Wert : 0-250 // Anschlag |
unsigned char ServoNickMax; // Wert : 0-250 // Anschlag |
unsigned char ServoNickRefresh; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
unsigned char ServoNickCompInvert; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
unsigned char Reserved[7]; |
char Name[12]; |
}; |
struct acc_neutral_struct |
{ |
volatile int X; |
volatile int Y; |
volatile float Z; |
}; |
extern struct acc_neutral_struct acc_neutral; |
extern void calib_acc(void); |
extern struct mk_param_struct EE_Parameter; |
extern unsigned char Parameter_Luftdruck_D; |
extern unsigned char Parameter_MaxHoehe; |
extern unsigned char Parameter_Hoehe_P; |
extern unsigned char Parameter_Hoehe_ACC_Wirkung; |
extern unsigned char Parameter_KompassWirkung; |
extern unsigned char Parameter_Gyro_P; |
extern unsigned char Parameter_Gyro_I; |
extern unsigned char Parameter_Gier_P; |
extern unsigned char Parameter_ServoNickControl; |
#endif //_FC_H |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/flight.pnproj |
---|
0,0 → 1,0 |
<Project name="Flight-Ctrl"><File path="uart.h"></File><File path="main.c"></File><File path="main.h"></File><File path="makefile"></File><File path="uart.c"></File><File path="printf_P.h"></File><File path="printf_P.c"></File><File path="timer0.c"></File><File path="timer0.h"></File><File path="old_macros.h"></File><File path="twimaster.c"></File><File path="version.txt"></File><File path="twimaster.h"></File><File path="rc.c"></File><File path="rc.h"></File><File path="fc.h"></File><File path="fc.c"></File><File path="menu.h"></File><File path="menu.c"></File><File path="_Settings.h"></File><File path="analog.c"></File><File path="analog.h"></File><File path="GPS.c"></File><File path="gps.h"></File><File path="license_buss.txt"></File><File path="mymath.c"></File><File path="mymath.h"></File><File path="compass.c"></File><File path="compass.h"></File><File path="COPYING"></File><File path="COPYING.LESSER"></File></Project> |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/flight.pnps |
---|
0,0 → 1,0 |
<pd><ViewState><e p="Flight-Ctrl" x="true"></e></ViewState></pd> |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/gps.h |
---|
0,0 → 1,4 |
extern signed int GPS_Nick; |
extern signed int GPS_Roll; |
extern void GPS_Neutral(void); |
extern void GPS_BerechneZielrichtung(void); |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/license_buss.txt |
---|
0,0 → 1,52 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten und nichtkommerziellen Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt und genannt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-profit use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet, our webpage (http://www.MikroKopter.de) must be |
// + clearly linked and named as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/main.c |
---|
0,0 → 1,236 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten und nicht-kommerziellen Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt und genannt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-commercial use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
// + clearly linked as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
// Reservierung im EEPROM |
unsigned char EEPromArray[10] EEMEM; |
struct mk_param_struct EEParameterArray[5] EEMEM; |
// -- Parametersatz aus EEPROM lesen --- |
// number [0..5] |
void ReadParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if (number > 5) number = 5; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_read_block(buffer, &EEParameterArray[number], length); |
} |
// -- Parametersatz ins EEPROM schreiben --- |
// number [0..5] |
void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if (number > 5) number = 5; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_write_block(buffer, &EEParameterArray[number], length); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], number); // diesen Parametersatz als aktuell merken |
} |
unsigned char GetActiveParamSetNumber(void) |
{ |
return(eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET])); |
} |
//############################################################################ |
//Hauptprogramm |
int main (void) |
//############################################################################ |
{ |
unsigned int timer; |
unsigned int timer2 = 0; |
DDRC = 0x01; // SCL |
PORTC = 0xff; // Pullup SDA |
DDRB = 0x1B; // LEDs und Druckoffset |
PORTB |= (1<<PB0); // LED_Rot |
DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
DDRD |= (1<<PD7); // J7 |
PORTD = 0xF7; |
MCUSR &=~(1<<WDRF); |
WDTCSR |= (1<<WDCE)|(1<<WDE); |
WDTCSR = 0; |
beeptime = 1000; |
StickGier = 0; PPM_in[K_GAS] = 0;StickRoll = 0; StickNick = 0; |
ROT_OFF; |
Timer_Init(); |
UART_Init(); |
rc_sum_init(); |
ADC_Init(); |
i2c_init(); |
init_MM3(); |
sei(); |
VersionInfo.Hauptversion = VERSION_HAUPTVERSION; |
VersionInfo.Nebenversion = VERSION_NEBENVERSION; |
VersionInfo.PCKompatibel = VERSION_KOMPATIBEL; |
printf("\n\rFlightControl V%d.%d ", VERSION_HAUPTVERSION, VERSION_NEBENVERSION); |
printf("\n\r=============================="); |
GRN_ON; |
if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_VALID]) != 10) // seit V 0.60 |
{ |
printf("\n\rInit. EEPROM: Generiere Default-Parameter..."); |
DefaultKonstanten1(); |
for (unsigned char i=0;i<6;i++) |
{ |
if(i==2) DefaultKonstanten2(); |
WriteParameterSet(i, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], 1); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], 10); |
calib_acc(); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
printf("\n\rBenutze Parametersatz %d", GetActiveParamSetNumber()); |
//kurze Wartezeit (sonst reagiert die "Kompass kalibrieren?"-Abfrage nicht |
timer = SetDelay(500); |
while(!CheckDelay(timer)); |
//Kompass kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 100) |
{ |
printf("\n\rKalibriere Kompass"); |
calib_MM3(); |
} |
//Neutrallage kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -100) |
{ |
printf("\n\rKalibriere Neutrallage"); |
calib_acc(); |
} |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
printf("\n\rAbgleich Luftdrucksensor.."); |
timer = SetDelay(2500); |
SucheLuftruckOffset(); |
while (!CheckDelay(timer)); |
printf("OK\n\r"); |
} |
SetNeutral(); |
ROT_OFF; |
beeptime = 2000; |
DebugIn.Analog[1] = 1000; |
DebugIn.Digital[0] = 0x55; |
printf("\n\rSteuerung: "); |
if (EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) printf("HeadingHold"); |
else printf("Neutral"); |
printf("\n\n\r"); |
LcdClear(); |
while (1) |
{ |
if (UpdateMotor) // ReglerIntervall |
{ |
UpdateMotor=0; |
MotorRegler(); |
SendMotorData(); |
ROT_OFF; |
if(PcZugriff) PcZugriff--; |
if(SenderOkay) SenderOkay--; |
if (UBat < EE_Parameter.UnterspannungsWarnung) |
{ |
beeptime = 2000; |
} |
if(!Timeout) |
{ |
i2c_init(); |
} |
else |
{ |
ROT_OFF; |
} |
} |
if(SIO_DEBUG) |
{ |
DatenUebertragung(); |
BearbeiteRxDaten(); |
} |
else BearbeiteRxDaten(); |
if(CheckDelay(timer2)) |
{ |
if(MotorenEin) PORTC ^= 0x10; else PORTC &= ~0x10; |
timer = SetDelay(500); |
} |
} |
return (1); |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/main.h |
---|
0,0 → 1,87 |
#ifndef _MAIN_H |
#define _MAIN_H |
//Hier die Quarz Frequenz einstellen |
#if defined (__AVR_ATmega32__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
#endif |
#if defined (__AVR_ATmega644__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
//#define SYSCLK 16000000L //Quarz Frequenz in Hz |
#endif |
// neue Hardware |
#define ROT_OFF PORTB &=~(1<<PB0) |
#define ROT_ON PORTB |= (1<<PB0) |
#define ROT_FLASH PORTB ^= (1<<PB0) |
#define GRN_OFF PORTB &=~(1<<PB1) |
#define GRN_ON PORTB |= (1<<PB1) |
#define GRN_FLASH PORTB ^= (1<<PB1) |
//#ifndef F_CPU |
//#error ################## F_CPU nicht definiert oder ungültig ############# |
//#endif |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//#define ANZ_MITTELWERT 4 |
#define EEPROM_ADR_VALID 1 |
#define EEPROM_ADR_ACTIVE_SET 2 |
#define EEPROM_ADR_LAST_OFFSET 3 |
#define CFG_HOEHENREGELUNG 0x01 |
#define CFG_HOEHEN_SCHALTER 0x02 |
#define CFG_HEADING_HOLD 0x04 |
#define CFG_KOMPASS_AKTIV 0x08 |
#define CFG_KOMPASS_FIX 0x10 |
#define CFG_GPS_AKTIV 0x20 |
extern void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length); |
extern void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length); |
extern unsigned char GetActiveParamSetNumber(void); |
extern unsigned char EEPromArray[]; |
#include <stdlib.h> |
#include <string.h> |
#include <avr/io.h> |
#include <avr/pgmspace.h> |
#include <avr/interrupt.h> |
#include <avr/eeprom.h> |
#include <avr/boot.h> |
#include <avr/wdt.h> |
#include "old_macros.h" |
#include "_settings.h" |
#include "printf_P.h" |
#include "compass.h" |
#include "timer0.h" |
#include "uart.h" |
#include "analog.h" |
#include "twimaster.h" |
#include "menu.h" |
#include "rc.h" |
#include "fc.h" |
#include "gps.h" |
#include "mymath.h" |
#ifndef EEMEM |
#define EEMEM __attribute__ ((section (".eeprom"))) |
#endif |
#define DEBUG_DISPLAY_INTERVALL 123 // in ms |
#define DELAY_US(x) ((unsigned int)( (x) * 1e-6 * F_CPU )) |
#endif //_MAIN_H |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/makefile |
---|
0,0 → 1,393 |
#-------------------------------------------------------------------- |
# MCU name |
MCU = atmega644 |
F_CPU = 20000000 |
#------------------------------------------------------------------- |
HAUPT_VERSION = 0 |
NEBEN_VERSION = 60 |
VERSION_KOMPATIBEL = 4 # PC-Kompatibilität |
#------------------------------------------------------------------- |
ifeq ($(MCU), atmega32) |
# FUSE_SETTINGS= -u -U lfuse:w:0xff:m -U hfuse:w:0xcf:m |
HEX_NAME = MEGA32 |
endif |
ifeq ($(MCU), atmega644) |
FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
#FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
# -u bei neuen Controllern wieder einspielen |
HEX_NAME = MEGA644 |
endif |
ifeq ($(F_CPU), 16000000) |
QUARZ = 16MHZ |
endif |
ifeq ($(F_CPU), 20000000) |
QUARZ = 20MHZ |
endif |
# Output format. (can be srec, ihex, binary) |
FORMAT = ihex |
# Target file name (without extension). |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)_MM3 |
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization. |
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
OPT = s |
########################################################################################################## |
# List C source files here. (C dependencies are automatically generated.) |
SRC = main.c uart.c printf_P.c timer0.c analog.c menu.c |
SRC += twimaster.c rc.c fc.c GPS.c |
SRC += compass.c mymath.c |
########################################################################################################## |
# List Assembler source files here. |
# Make them always end in a capital .S. Files ending in a lowercase .s |
# will not be considered source files but generated files (assembler |
# output from the compiler), and will be deleted upon "make clean"! |
# Even though the DOS/Win* filesystem matches both .s and .S the same, |
# it will preserve the spelling of the filenames, and gcc itself does |
# care about how the name is spelled on its command-line. |
ASRC = |
# List any extra directories to look for include files here. |
# Each directory must be seperated by a space. |
EXTRAINCDIRS = |
# Optional compiler flags. |
# -g: generate debugging information (for GDB, or for COFF conversion) |
# -O*: optimization level |
# -f...: tuning, see gcc manual and avr-libc documentation |
# -Wall...: warning level |
# -Wa,...: tell GCC to pass this to the assembler. |
# -ahlms: create assembler listing |
CFLAGS = -O$(OPT) \ |
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \ |
-Wall -Wstrict-prototypes \ |
-mtiny-stack -mcall-prologues \ |
#-Wno-pointer-sign \ |
-Wa,-adhlns=$(<:.c=.lst) \ |
$(patsubst %,-I%,$(EXTRAINCDIRS)) |
# Set a "language standard" compiler flag. |
# Unremark just one line below to set the language standard to use. |
# gnu99 = C99 + GNU extensions. See GCC manual for more information. |
#CFLAGS += -std=c89 |
#CFLAGS += -std=gnu89 |
#CFLAGS += -std=c99 |
CFLAGS += -std=gnu99 |
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) -DVERSION_KOMPATIBEL=$(VERSION_KOMPATIBEL) |
# Optional assembler flags. |
# -Wa,...: tell GCC to pass this to the assembler. |
# -ahlms: create listing |
# -gstabs: have the assembler create line number information; note that |
# for use in COFF files, additional information about filenames |
# and function names needs to be present in the assembler source |
# files -- see avr-libc docs [FIXME: not yet described there] |
ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs |
# Optional linker flags. |
# -Wl,...: tell GCC to pass this to linker. |
# -Map: create map file |
# --cref: add cross reference to map file |
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref |
# Additional libraries |
# Minimalistic printf version |
#LDFLAGS += -Wl,-u,vfprintf -lprintf_min |
# Floating point printf version (requires -lm below) |
#LDFLAGS += -Wl,-u,vfprintf -lprintf_flt |
# -lm = math library |
LDFLAGS += -lm |
##LDFLAGS += -T./linkerfile/avr5.x |
# Programming support using avrdude. Settings and variables. |
# Programming hardware: alf avr910 avrisp bascom bsd |
# dt006 pavr picoweb pony-stk200 sp12 stk200 stk500 |
# |
# Type: avrdude -c ? |
# to get a full listing. |
# |
#AVRDUDE_PROGRAMMER = stk200 |
AVRDUDE_PROGRAMMER = dt006 |
#AVRDUDE_PROGRAMMER = ponyser |
#falls Ponyser ausgewählt wird, muss sich unsere avrdude-Configdatei im Bin-Verzeichnis des Compilers befinden |
#AVRDUDE_PORT = com1 # programmer connected to serial device |
AVRDUDE_PORT = lpt1 # programmer connected to parallel port |
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS) |
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) |
# Uncomment the following if you want avrdude's erase cycle counter. |
# Note that this counter needs to be initialized first using -Yn, |
# see avrdude manual. |
#AVRDUDE_ERASE += -y |
# Uncomment the following if you do /not/ wish a verification to be |
# performed after programming the device. |
AVRDUDE_FLAGS += -V |
# Increase verbosity level. Please use this when submitting bug |
# reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> |
# to submit bug reports. |
#AVRDUDE_FLAGS += -v -v |
# --------------------------------------------------------------------------- |
# Define directories, if needed. |
DIRAVR = c:/winavr |
DIRAVRBIN = $(DIRAVR)/bin |
DIRAVRUTILS = $(DIRAVR)/utils/bin |
DIRINC = . |
DIRLIB = $(DIRAVR)/avr/lib |
# Define programs and commands. |
SHELL = sh |
CC = avr-gcc |
OBJCOPY = avr-objcopy |
OBJDUMP = avr-objdump |
SIZE = avr-size |
# Programming support using avrdude. |
AVRDUDE = avrdude |
REMOVE = rm -f |
COPY = cp |
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex |
ELFSIZE = $(SIZE) -A $(TARGET).elf |
# Define Messages |
# English |
MSG_ERRORS_NONE = Errors: none |
MSG_BEGIN = -------- begin -------- |
MSG_END = -------- end -------- |
MSG_SIZE_BEFORE = Size before: |
MSG_SIZE_AFTER = Size after: |
MSG_COFF = Converting to AVR COFF: |
MSG_EXTENDED_COFF = Converting to AVR Extended COFF: |
MSG_FLASH = Creating load file for Flash: |
MSG_EEPROM = Creating load file for EEPROM: |
MSG_EXTENDED_LISTING = Creating Extended Listing: |
MSG_SYMBOL_TABLE = Creating Symbol Table: |
MSG_LINKING = Linking: |
MSG_COMPILING = Compiling: |
MSG_ASSEMBLING = Assembling: |
MSG_CLEANING = Cleaning project: |
# Define all object files. |
OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) |
# Define all listing files. |
LST = $(ASRC:.S=.lst) $(SRC:.c=.lst) |
# Combine all necessary flags and optional flags. |
# Add target processor to flags. |
#ALL_CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I. $(CFLAGS) |
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) |
ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS) |
# Default target. |
all: begin gccversion sizebefore $(TARGET).elf $(TARGET).hex $(TARGET).eep \ |
$(TARGET).lss $(TARGET).sym sizeafter finished end |
# Eye candy. |
# AVR Studio 3.x does not check make's exit code but relies on |
# the following magic strings to be generated by the compile job. |
begin: |
@echo |
@echo $(MSG_BEGIN) |
finished: |
@echo $(MSG_ERRORS_NONE) |
end: |
@echo $(MSG_END) |
@echo |
# Display size of file. |
sizebefore: |
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi |
sizeafter: |
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi |
# Display compiler version information. |
gccversion : |
@$(CC) --version |
# Convert ELF to COFF for use in debugging / simulating in |
# AVR Studio or VMLAB. |
COFFCONVERT=$(OBJCOPY) --debugging \ |
--change-section-address .data-0x800000 \ |
--change-section-address .bss-0x800000 \ |
--change-section-address .noinit-0x800000 \ |
--change-section-address .eeprom-0x810000 |
coff: $(TARGET).elf |
@echo |
@echo $(MSG_COFF) $(TARGET).cof |
$(COFFCONVERT) -O coff-avr $< $(TARGET).cof |
extcoff: $(TARGET).elf |
@echo |
@echo $(MSG_EXTENDED_COFF) $(TARGET).cof |
$(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof |
# Program the device. |
program: $(TARGET).hex $(TARGET).eep |
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) |
# Create final output files (.hex, .eep) from ELF output file. |
%.hex: %.elf |
@echo |
@echo $(MSG_FLASH) $@ |
$(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@ |
%.eep: %.elf |
@echo |
@echo $(MSG_EEPROM) $@ |
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \ |
--change-section-lma .eeprom=0 -O $(FORMAT) $< $@ |
# Create extended listing file from ELF output file. |
%.lss: %.elf |
@echo |
@echo $(MSG_EXTENDED_LISTING) $@ |
$(OBJDUMP) -h -S $< > $@ |
# Create a symbol table from ELF output file. |
%.sym: %.elf |
@echo |
@echo $(MSG_SYMBOL_TABLE) $@ |
avr-nm -n $< > $@ |
# Link: create ELF output file from object files. |
.SECONDARY : $(TARGET).elf |
.PRECIOUS : $(OBJ) |
%.elf: $(OBJ) |
@echo |
@echo $(MSG_LINKING) $@ |
$(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS) |
# Compile: create object files from C source files. |
%.o : %.c |
@echo |
@echo $(MSG_COMPILING) $< |
$(CC) -c $(ALL_CFLAGS) $< -o $@ |
# Compile: create assembler files from C source files. |
%.s : %.c |
$(CC) -S $(ALL_CFLAGS) $< -o $@ |
# Assemble: create object files from assembler source files. |
%.o : %.S |
@echo |
@echo $(MSG_ASSEMBLING) $< |
$(CC) -c $(ALL_ASFLAGS) $< -o $@ |
# Target: clean project. |
clean: begin clean_list finished end |
clean_list : |
@echo |
@echo $(MSG_CLEANING) |
# $(REMOVE) $(TARGET).hex |
$(REMOVE) $(TARGET).eep |
$(REMOVE) $(TARGET).obj |
$(REMOVE) $(TARGET).cof |
$(REMOVE) $(TARGET).elf |
$(REMOVE) $(TARGET).map |
$(REMOVE) $(TARGET).obj |
$(REMOVE) $(TARGET).a90 |
$(REMOVE) $(TARGET).sym |
$(REMOVE) $(TARGET).lnk |
$(REMOVE) $(TARGET).lss |
$(REMOVE) $(OBJ) |
$(REMOVE) $(LST) |
$(REMOVE) $(SRC:.c=.s) |
$(REMOVE) $(SRC:.c=.d) |
# Automatically generate C source code dependencies. |
# (Code originally taken from the GNU make user manual and modified |
# (See README.txt Credits).) |
# |
# Note that this will work with sh (bash) and sed that is shipped with WinAVR |
# (see the SHELL variable defined above). |
# This may not work with other shells or other seds. |
# |
%.d: %.c |
set -e; $(CC) -MM $(ALL_CFLAGS) $< \ |
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > $@; \ |
[ -s $@ ] || rm -f $@ |
# Remove the '-' if you want to see the dependency files generated. |
-include $(SRC:.c=.d) |
# Listing of phony targets. |
.PHONY : all begin finish end sizebefore sizeafter gccversion coff extcoff \ |
clean clean_list program |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/math.d |
---|
0,0 → 1,2 |
math.o math.d : math.c main.h old_macros.h _settings.h printf_P.h compass.h \ |
timer0.h uart.h analog.h twimaster.h menu.h rc.h fc.h gps.h math.h |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/menu.c |
---|
0,0 → 1,129 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
unsigned int TestInt = 0; |
#define ARRAYGROESSE 10 |
unsigned char Array[ARRAYGROESSE] = {1,2,3,4,5,6,7,8,9,10}; |
char DisplayBuff[80] = "Hallo Welt"; |
unsigned char DispPtr = 0; |
unsigned char RemoteTasten = 0; |
#define KEY1 0x01 |
#define KEY2 0x02 |
#define KEY3 0x04 |
#define KEY4 0x08 |
#define KEY5 0x10 |
void LcdClear(void) |
{ |
unsigned char i; |
for(i=0;i<80;i++) DisplayBuff[i] = ' '; |
} |
void Menu(void) |
{ |
static unsigned char MaxMenue = 12,MenuePunkt=0; |
if(RemoteTasten & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue; LcdClear(); } |
if(RemoteTasten & KEY2) { MenuePunkt++; LcdClear(); } |
if((RemoteTasten & KEY1) && (RemoteTasten & KEY2)) MenuePunkt = 0; |
LCD_printfxy(17,0,"[%i]",MenuePunkt); |
switch(MenuePunkt) |
{ |
case 0: |
LCD_printfxy(0,0,"++ MikroKopter ++"); |
LCD_printfxy(0,1,"V%d.%d",VERSION_HAUPTVERSION, VERSION_NEBENVERSION); |
LCD_printfxy(0,2,"Setting: %d ",GetActiveParamSetNumber()); |
LCD_printfxy(0,3,"(c) Holger Buss"); |
// if(RemoteTasten & KEY3) TestInt--; |
// if(RemoteTasten & KEY4) TestInt++; |
break; |
case 1: |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
LCD_printfxy(0,0,"Hoehe: %5i",HoehenWert); |
LCD_printfxy(0,1,"SollHoehe: %5i",SollHoehe); |
LCD_printfxy(0,2,"Luftdruck: %5i",MessLuftdruck); |
LCD_printfxy(0,3,"Off : %5i",DruckOffsetSetting); |
} |
else |
{ |
LCD_printfxy(0,1,"Keine "); |
LCD_printfxy(0,2,"Höhenregelung"); |
} |
break; |
case 2: |
LCD_printfxy(0,0,"akt. Lage"); |
LCD_printfxy(0,1,"Nick: %5i",IntegralNick/1024); |
LCD_printfxy(0,2,"Roll: %5i",IntegralRoll/1024); |
LCD_printfxy(0,3,"Kompass: %5i",KompassValue); |
break; |
case 3: |
LCD_printfxy(0,0,"K1:%4i K2:%4i ",PPM_in[1],PPM_in[2]); |
LCD_printfxy(0,1,"K3:%4i K4:%4i ",PPM_in[3],PPM_in[4]); |
LCD_printfxy(0,2,"K5:%4i K6:%4i ",PPM_in[5],PPM_in[6]); |
LCD_printfxy(0,3,"K7:%4i Kanäle ",PPM_in[7]); |
break; |
case 4: |
LCD_printfxy(0,0,"Ni:%4i Ro:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_NICK]],PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]); |
LCD_printfxy(0,1,"Gs:%4i Gi:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_GAS]],PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]); |
LCD_printfxy(0,2,"P1:%4i P2:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]],PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]]); |
LCD_printfxy(0,3,"P3:%4i Kanäle ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]]); |
break; |
case 5: |
LCD_printfxy(0,0,"Gyro - Sensor"); |
LCD_printfxy(0,1,"Nick %4i (%3i)",AccumulateNick / MessanzahlNick, AdNeutralNick); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AccumulateRoll / MessanzahlRoll, AdNeutralRoll); |
LCD_printfxy(0,3,"Gier %4i (%3i)",AccumulateGier / MessanzahlGier, AdNeutralGier); |
break; |
case 6: |
LCD_printfxy(0,0,"ACC - Sensor"); |
LCD_printfxy(0,1,"Nick %4i (%3i)",accumulate_AccNick / messanzahl_AccNick,acc_neutral.X); |
LCD_printfxy(0,2,"Roll %4i (%3i)",accumulate_AccRoll / messanzahl_AccRoll,acc_neutral.Y); |
LCD_printfxy(0,3,"Hoch %4i (%3i)",Aktuell_az/*accumulate_AccHoch / messanzahl_AccHoch*/,(int)acc_neutral.Z); |
break; |
case 7: |
LCD_printfxy(0,1,"Spannung: %5i",UBat); |
LCD_printfxy(0,2,"Empf.Pegel:%5i",SenderOkay); |
break; |
case 8: |
LCD_printfxy(0,0,"Kompass "); |
LCD_printfxy(0,1,"Richtung: %5i",KompassRichtung); |
LCD_printfxy(0,2,"Messwert: %5i",KompassValue); |
LCD_printfxy(0,3,"Start: %5i",KompassStartwert); |
break; |
case 9: |
LCD_printfxy(0,0,"Poti1: %3i",Poti1); |
LCD_printfxy(0,1,"Poti2: %3i",Poti2); |
LCD_printfxy(0,2,"Poti3: %3i",Poti3); |
LCD_printfxy(0,3,"Poti4: %3i",Poti4); |
break; |
case 10: |
LCD_printfxy(0,0,"Servo " ); |
LCD_printfxy(0,1,"Setpoint %3i",Parameter_ServoNickControl); |
LCD_printfxy(0,2,"Stellung: %3i",ServoValue); |
LCD_printfxy(0,3,"Range:%3i-%3i",EE_Parameter.ServoNickMin,EE_Parameter.ServoNickMax); |
break; |
case 11: |
LCD_printfxy(0,0,"MM3 Off"); |
LCD_printfxy(0,1,"X_Offset: %3i",MM3_calib.X_off); |
LCD_printfxy(0,2,"Y_Offset: %3i",MM3_calib.Y_off); |
LCD_printfxy(0,3,"Z_Offset: %3i",MM3_calib.Z_off); |
break; |
case 12: |
LCD_printfxy(0,0,"MM3 Range"); |
LCD_printfxy(0,1,"X_Range: %4i",MM3_calib.X_range); |
LCD_printfxy(0,2,"Y_Range: %4i",MM3_calib.Y_range); |
LCD_printfxy(0,3,"Z_Range: %4i",MM3_calib.Z_range); |
break; |
default: MaxMenue = MenuePunkt - 1; |
MenuePunkt = 0; |
break; |
} |
RemoteTasten = 0; |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/menu.h |
---|
0,0 → 1,7 |
void LcdClear(void); |
extern void Menu(void); |
extern char DisplayBuff[80]; |
extern unsigned char DispPtr; |
unsigned char RemoteTasten; |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/mymath.c |
---|
0,0 → 1,110 |
/* |
Copyright 2007, Niklas Nold |
This program (files math.c and math.h) is free software; you can redistribute it and/or modify |
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; |
either version 3 of the License, or (at your option) any later version. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Please note: All the other files for the project "Mikrokopter" by H. Buss are under the license (license_buss.txt) published by www.mikrokopter.de |
*/ |
#include "main.h" |
const int8_t pgm_atan[346] PROGMEM = {0,1,2,3,4,4,5,6,7,8,9,10,11,11,12,13,14,15,16,17,17,18,19,20,21,21,22,23,24,24,25,26,27,27,28,29,29,30,31,31,32,33,33,34,35,35,36,36,37,37,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,45,46,46,47,47,48,48,48,49,49,50,50,50,51,51,51,52,52,52,53,53,53,54,54,54,55,55,55,55,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,60,61,61,61,61,62,62,62,62,62,63,63,63,63,63,63,64,64,64,64,64,64,65,65,65,65,65,65,66,66,66,66,66,66,66,67,67,67,67,67,67,67,68,68,68,68,68,68,68,68,69,69,69,69,69,69,69,69,69,70,70,70,70,70,70,70,70,70,71,71,71,71,71,71,71,71,71,71,71,72,72,72,72,72,72,72,72,72,72,72,73,73,73,73,73,73,73,73,73,73,73,73,73,73,74,74,74,74,74,74,74,74,74,74,74,74,74,74,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79}; |
//############################################################################ |
// Arkustangens2 im Gradmaß |
signed int atan2_i(long x, long y) |
//############################################################################ |
{ |
int i,angle; |
int8_t m; |
if (!x && !y) return 0; //atan2 = 0 für x und y = 0 |
if (y < 0) m=-1; |
else m=1; |
if (!x) return (90*m); // atan2 = 90° für x = 0 |
i = abs((y*64) / x); // Berechne i für die Lookup table (Schrittweite atan(x) ist 0,015625 -> y *64) |
if (i<346) angle = pgm_read_byte(&pgm_atan[i]); // Lookup für 1° bis 79° |
else if (i>7334) angle = 90; // Grenzwert ist 90° |
else if (i>2444) angle = 89; // 89° bis 80° über Wertebereiche |
else if (i>1465) angle = 88; |
else if (i>1046) angle = 87; |
else if (i>813) angle = 86; |
else if (i>664) angle = 85; |
else if (i>561) angle = 84; |
else if (i>486) angle = 83; |
else if (i>428) angle = 82; |
else if (i>382) angle = 81; |
else angle = 80; // (i>345) |
if (x > 0) return (angle*m); // Quadrant I und IV |
else if ((x < 0) && (m > 0)) return (-angle + 180); // Quadrant II |
else return (angle - 180); // x < 0 && y < 0 Quadrant III |
} |
const int pgm_sinus_i[91] PROGMEM = {0,18,36,54,71,89,107,125,143,160,178,195,213,230,248,265,282,299,316,333,350,367,384,400,416,433,449,465,481,496,512,527,543,558,573,587,602,616,630,644,658,672,685,698,711,724,737,749,761,773,784,796,807,818,828,839,849,859,868,878,887,896,904,912,920,928,935,943,949,956,962,968,974,979,984,989,994,998,1002,1005,1008,1011,1014,1016,1018,1020,1022,1023,1023,1024,1024}; |
//############################################################################ |
// Kosinusfunktion im Gradmaß |
signed int cos_i(signed int winkel) |
//############################################################################ |
{ |
return (sin_i(90-winkel)); |
} |
//############################################################################ |
// Sinusfunktion im Gradmaß |
signed int sin_i(signed int winkel) |
//############################################################################ |
{ |
short int m,n; |
signed int sinus; |
if (winkel < 0) |
{ |
m = -1; |
winkel = abs(winkel); |
} |
else m = +1; |
// Quadranten auswerten |
if (winkel <= 90) n=1; |
else if ((winkel > 90) && (winkel <= 180)) {winkel = 180 - winkel; n = 1;} |
else if ((winkel > 180) && (winkel <= 270)) {winkel = winkel - 180; n = -1;} |
else {winkel = 360 - winkel; n = -1;} //if ((winkel > 270) && (winkel <= 360)) |
sinus = pgm_read_word(&pgm_sinus_i[winkel]); |
return (sinus*m*n); |
} |
/* |
const uint8_t pgm_asin[201] PROGMEM = {0,0,1,1,1,1,2,2,2,3,3,3,3,4,4,4,5,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9,10,10,10,11,11,11,12,12,12,12,13,13,13,14,14,14,14,15,15,15,16,16,16,17,17,17,17,18,18,18,19,19,19,20,20,20,20,21,21,21,22,22,22,23,23,23,24,24,24,25,25,25,25,26,26,26,27,27,27,28,28,28,29,29,29,30,30,30,31,31,31,32,32,32,33,33,33,34,34,34,35,35,35,36,36,37,37,37,38,38,38,39,39,39,40,40,41,41,41,42,42,42,43,43,44,44,44,45,45,46,46,46,47,47,48,48,49,49,49,50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57,58,58,59,59,60,60,61,62,62,63,64,64,65,66,66,67,68,68,69,70,71,72,73,74,75,76,77,79,80,82,84,90}; |
//############################################################################ |
// Akurssinusfunktion im Gradmaß |
int8_t asin_i(signed int i) |
//############################################################################ |
{ |
signed char m; |
if (i < 0) {m=-1;i=abs(i);} |
else m=1; |
i %= 200; |
return (pgm_read_byte(&pgm_asin[i]) * m); |
} |
*/ |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/mymath.h |
---|
0,0 → 1,8 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
extern int atan2_i(long x, long y); |
extern signed int cos_i(signed int winkel); |
extern signed int sin_i(signed int winkel); |
//extern int8_t asin_i(signed int i); |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/old_macros.h |
---|
0,0 → 1,47 |
/* |
For backwards compatibility only. |
Ingo Busker ingo@mikrocontroller.com |
*/ |
#ifndef cbi |
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) |
#endif |
#ifndef sbi |
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) |
#endif |
#ifndef inb |
#define inb(sfr) _SFR_BYTE(sfr) |
#endif |
#ifndef outb |
#define outb(sfr, val) (_SFR_BYTE(sfr) = (val)) |
#endif |
#ifndef inw |
#define inw(sfr) _SFR_WORD(sfr) |
#endif |
#ifndef outw |
#define outw(sfr, val) (_SFR_WORD(sfr) = (val)) |
#endif |
#ifndef outp |
#define outp(val, sfr) outb(sfr, val) |
#endif |
#ifndef inp |
#define inp(sfr) inb(sfr) |
#endif |
#ifndef BV |
#define BV(bit) _BV(bit) |
#endif |
#ifndef PRG_RDB |
#define PRG_RDB pgm_read_byte |
#endif |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/printf_P.c |
---|
0,0 → 1,480 |
// Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist nicht von der Lizenz für den MikroKopter-Teil unterstellt |
/* |
Copyright (C) 1993 Free Software Foundation |
This file is part of the GNU IO Library. This library is free |
software; you can redistribute it and/or modify it under the |
terms of the GNU General Public License as published by the |
Free Software Foundation; either version 2, or (at your option) |
any later version. |
This library is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this library; see the file COPYING. If not, write to the Free |
Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
As a special exception, if you link this library with files |
compiled with a GNU compiler to produce an executable, this does not cause |
the resulting executable to be covered by the GNU General Public License. |
This exception does not however invalidate any other reasons why |
the executable file might be covered by the GNU General Public License. */ |
/* |
* Copyright (c) 1990 Regents of the University of California. |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* are met: |
* 1. Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* 2. Redistributions in binary form must reproduce the above copyright |
* notice, this list of conditions and the following disclaimer in the |
* documentation and/or other materials provided with the distribution. |
* 3. [rescinded 22 July 1999] |
* 4. Neither the name of the University nor the names of its contributors |
* may be used to endorse or promote products derived from this software |
* without specific prior written permission. |
* |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* SUCH DAMAGE. |
*/ |
/****************************************************************************** |
This file is a patched version of printf called _printf_P |
It is made to work with avr-gcc for Atmel AVR MCUs. |
There are some differences from standard printf: |
1. There is no floating point support (with fp the code is about 8K!) |
2. Return type is void |
3. Format string must be in program memory (by using macro printf this is |
done automaticaly) |
4. %n is not implemented (just remove the comment around it if you need it) |
5. If LIGHTPRINTF is defined, the code is about 550 bytes smaller and the |
folowing specifiers are disabled : |
space # * . - + p s o O |
6. A function void uart_sendchar(char c) is used for output. The UART must |
be initialized before using printf. |
Alexander Popov |
sasho@vip.orbitel.bg |
******************************************************************************/ |
/* |
* Actual printf innards. |
* |
* This code is large and complicated... |
*/ |
#include <string.h> |
#ifdef __STDC__ |
#include <stdarg.h> |
#else |
#include <varargs.h> |
#endif |
#include "main.h" |
//#define LIGHTPRINTF |
char PrintZiel; |
char Putchar(char zeichen) |
{ |
if(PrintZiel == OUT_LCD) { DisplayBuff[DispPtr++] = zeichen; return(1);} |
else return(uart_putchar(zeichen)); |
} |
void PRINT(const char * ptr, unsigned int len) |
{ |
for(;len;len--) Putchar(*ptr++); |
} |
void PRINTP(const char * ptr, unsigned int len) |
{ |
for(;len;len--) Putchar(pgm_read_byte(ptr++)); |
} |
void PAD_SP(signed char howmany) |
{ |
for(;howmany>0;howmany--) Putchar(' '); |
} |
void PAD_0(signed char howmany) |
{ |
for(;howmany>0;howmany--) Putchar('0'); |
} |
#define BUF 40 |
/* |
* Macros for converting digits to letters and vice versa |
*/ |
#define to_digit(c) ((c) - '0') |
#define is_digit(c) ((c)<='9' && (c)>='0') |
#define to_char(n) ((n) + '0') |
/* |
* Flags used during conversion. |
*/ |
#define LONGINT 0x01 /* long integer */ |
#define LONGDBL 0x02 /* long double; unimplemented */ |
#define SHORTINT 0x04 /* short integer */ |
#define ALT 0x08 /* alternate form */ |
#define LADJUST 0x10 /* left adjustment */ |
#define ZEROPAD 0x20 /* zero (as opposed to blank) pad */ |
#define HEXPREFIX 0x40 /* add 0x or 0X prefix */ |
void _printf_P (char ziel,char const *fmt0, ...) /* Works with string from FLASH */ |
{ |
va_list ap; |
register const char *fmt; /* format string */ |
register char ch; /* character from fmt */ |
register int n; /* handy integer (short term usage) */ |
register char *cp; /* handy char pointer (short term usage) */ |
const char *fmark; /* for remembering a place in fmt */ |
register unsigned char flags; /* flags as above */ |
signed char width; /* width from format (%8d), or 0 */ |
signed char prec; /* precision from format (%.3d), or -1 */ |
char sign; /* sign prefix (' ', '+', '-', or \0) */ |
unsigned long _ulong=0; /* integer arguments %[diouxX] */ |
#define OCT 8 |
#define DEC 10 |
#define HEX 16 |
unsigned char base; /* base for [diouxX] conversion */ |
signed char dprec; /* a copy of prec if [diouxX], 0 otherwise */ |
signed char dpad; /* extra 0 padding needed for integers */ |
signed char fieldsz; /* field size expanded by sign, dpad etc */ |
/* The initialization of 'size' is to suppress a warning that |
'size' might be used unitialized. It seems gcc can't |
quite grok this spaghetti code ... */ |
signed char size = 0; /* size of converted field or string */ |
char buf[BUF]; /* space for %c, %[diouxX], %[eEfgG] */ |
char ox[2]; /* space for 0x hex-prefix */ |
PrintZiel = ziel; // bestimmt, LCD oder UART |
va_start(ap, fmt0); |
fmt = fmt0; |
/* |
* Scan the format for conversions (`%' character). |
*/ |
for (;;) { |
for (fmark = fmt; (ch = pgm_read_byte(fmt)) != '\0' && ch != '%'; fmt++) |
/* void */; |
if ((n = fmt - fmark) != 0) { |
PRINTP(fmark, n); |
} |
if (ch == '\0') |
goto done; |
fmt++; /* skip over '%' */ |
flags = 0; |
dprec = 0; |
width = 0; |
prec = -1; |
sign = '\0'; |
rflag: ch = PRG_RDB(fmt++); |
reswitch: |
#ifdef LIGHTPRINTF |
if (ch=='o' || ch=='u' || (ch|0x20)=='x') { |
#else |
if (ch=='u' || (ch|0x20)=='x') { |
#endif |
if (flags&LONGINT) { |
_ulong=va_arg(ap, unsigned long); |
} else { |
register unsigned int _d; |
_d=va_arg(ap, unsigned int); |
_ulong = flags&SHORTINT ? (unsigned long)(unsigned short)_d : (unsigned long)_d; |
} |
} |
#ifndef LIGHTPRINTF |
if(ch==' ') { |
/* |
* ``If the space and + flags both appear, the space |
* flag will be ignored.'' |
* -- ANSI X3J11 |
*/ |
if (!sign) |
sign = ' '; |
goto rflag; |
} else if (ch=='#') { |
flags |= ALT; |
goto rflag; |
} else if (ch=='*'||ch=='-') { |
if (ch=='*') { |
/* |
* ``A negative field width argument is taken as a |
* - flag followed by a positive field width.'' |
* -- ANSI X3J11 |
* They don't exclude field widths read from args. |
*/ |
if ((width = va_arg(ap, int)) >= 0) |
goto rflag; |
width = -width; |
} |
flags |= LADJUST; |
flags &= ~ZEROPAD; /* '-' disables '0' */ |
goto rflag; |
} else if (ch=='+') { |
sign = '+'; |
goto rflag; |
} else if (ch=='.') { |
if ((ch = PRG_RDB(fmt++)) == '*') { |
n = va_arg(ap, int); |
prec = n < 0 ? -1 : n; |
goto rflag; |
} |
n = 0; |
while (is_digit(ch)) { |
n = n*10 + to_digit(ch); |
ch = PRG_RDB(fmt++); |
} |
prec = n < 0 ? -1 : n; |
goto reswitch; |
} else |
#endif /* LIGHTPRINTF */ |
if (ch=='0') { |
/* |
* ``Note that 0 is taken as a flag, not as the |
* beginning of a field width.'' |
* -- ANSI X3J11 |
*/ |
if (!(flags & LADJUST)) |
flags |= ZEROPAD; /* '-' disables '0' */ |
goto rflag; |
} else if (ch>='1' && ch<='9') { |
n = 0; |
do { |
n = 10 * n + to_digit(ch); |
ch = PRG_RDB(fmt++); |
} while (is_digit(ch)); |
width = n; |
goto reswitch; |
} else if (ch=='h') { |
flags |= SHORTINT; |
goto rflag; |
} else if (ch=='l') { |
flags |= LONGINT; |
goto rflag; |
} else if (ch=='c') { |
*(cp = buf) = va_arg(ap, int); |
size = 1; |
sign = '\0'; |
} else if (ch=='D'||ch=='d'||ch=='i') { |
if(ch=='D') |
flags |= LONGINT; |
if (flags&LONGINT) { |
_ulong=va_arg(ap, long); |
} else { |
register int _d; |
_d=va_arg(ap, int); |
_ulong = flags&SHORTINT ? (long)(short)_d : (long)_d; |
} |
if ((long)_ulong < 0) { |
_ulong = -_ulong; |
sign = '-'; |
} |
base = DEC; |
goto number; |
} else |
/* |
if (ch=='n') { |
if (flags & LONGINT) |
*va_arg(ap, long *) = ret; |
else if (flags & SHORTINT) |
*va_arg(ap, short *) = ret; |
else |
*va_arg(ap, int *) = ret; |
continue; // no output |
} else |
*/ |
#ifndef LIGHTPRINTF |
if (ch=='O'||ch=='o') { |
if (ch=='O') |
flags |= LONGINT; |
base = OCT; |
goto nosign; |
} else if (ch=='p') { |
/* |
* ``The argument shall be a pointer to void. The |
* value of the pointer is converted to a sequence |
* of printable characters, in an implementation- |
* defined manner.'' |
* -- ANSI X3J11 |
*/ |
/* NOSTRICT */ |
_ulong = (unsigned int)va_arg(ap, void *); |
base = HEX; |
flags |= HEXPREFIX; |
ch = 'x'; |
goto nosign; |
} else if (ch=='s') { // print a string from RAM |
if ((cp = va_arg(ap, char *)) == NULL) { |
cp=buf; |
cp[0] = '('; |
cp[1] = 'n'; |
cp[2] = 'u'; |
cp[4] = cp[3] = 'l'; |
cp[5] = ')'; |
cp[6] = '\0'; |
} |
if (prec >= 0) { |
/* |
* can't use strlen; can only look for the |
* NUL in the first `prec' characters, and |
* strlen() will go further. |
*/ |
char *p = (char*)memchr(cp, 0, prec); |
if (p != NULL) { |
size = p - cp; |
if (size > prec) |
size = prec; |
} else |
size = prec; |
} else |
size = strlen(cp); |
sign = '\0'; |
} else |
#endif /* LIGHTPRINTF */ |
if(ch=='U'||ch=='u') { |
if (ch=='U') |
flags |= LONGINT; |
base = DEC; |
goto nosign; |
} else if (ch=='X'||ch=='x') { |
base = HEX; |
/* leading 0x/X only if non-zero */ |
if (flags & ALT && _ulong != 0) |
flags |= HEXPREFIX; |
/* unsigned conversions */ |
nosign: sign = '\0'; |
/* |
* ``... diouXx conversions ... if a precision is |
* specified, the 0 flag will be ignored.'' |
* -- ANSI X3J11 |
*/ |
number: if ((dprec = prec) >= 0) |
flags &= ~ZEROPAD; |
/* |
* ``The result of converting a zero value with an |
* explicit precision of zero is no characters.'' |
* -- ANSI X3J11 |
*/ |
cp = buf + BUF; |
if (_ulong != 0 || prec != 0) { |
register unsigned char _d,notlastdigit; |
do { |
notlastdigit=(_ulong>=base); |
_d = _ulong % base; |
if (_d<10) { |
_d+='0'; |
} else { |
_d+='a'-10; |
if (ch=='X') _d&=~0x20; |
} |
*--cp=_d; |
_ulong /= base; |
} while (notlastdigit); |
#ifndef LIGHTPRINTF |
// handle octal leading 0 |
if (base==OCT && flags & ALT && *cp != '0') |
*--cp = '0'; |
#endif |
} |
size = buf + BUF - cp; |
} else { //default |
/* "%?" prints ?, unless ? is NUL */ |
if (ch == '\0') |
goto done; |
/* pretend it was %c with argument ch */ |
cp = buf; |
*cp = ch; |
size = 1; |
sign = '\0'; |
} |
/* |
* All reasonable formats wind up here. At this point, |
* `cp' points to a string which (if not flags&LADJUST) |
* should be padded out to `width' places. If |
* flags&ZEROPAD, it should first be prefixed by any |
* sign or other prefix; otherwise, it should be blank |
* padded before the prefix is emitted. After any |
* left-hand padding and prefixing, emit zeroes |
* required by a decimal [diouxX] precision, then print |
* the string proper, then emit zeroes required by any |
* leftover floating precision; finally, if LADJUST, |
* pad with blanks. |
*/ |
/* |
* compute actual size, so we know how much to pad. |
*/ |
fieldsz = size; |
dpad = dprec - size; |
if (dpad < 0) |
dpad = 0; |
if (sign) |
fieldsz++; |
else if (flags & HEXPREFIX) |
fieldsz += 2; |
fieldsz += dpad; |
/* right-adjusting blank padding */ |
if ((flags & (LADJUST|ZEROPAD)) == 0) |
PAD_SP(width - fieldsz); |
/* prefix */ |
if (sign) { |
PRINT(&sign, 1); |
} else if (flags & HEXPREFIX) { |
ox[0] = '0'; |
ox[1] = ch; |
PRINT(ox, 2); |
} |
/* right-adjusting zero padding */ |
if ((flags & (LADJUST|ZEROPAD)) == ZEROPAD) |
PAD_0(width - fieldsz); |
/* leading zeroes from decimal precision */ |
PAD_0(dpad); |
/* the string or number proper */ |
PRINT(cp, size); |
/* left-adjusting padding (always blank) */ |
if (flags & LADJUST) |
PAD_SP(width - fieldsz); |
} |
done: |
va_end(ap); |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/printf_P.h |
---|
0,0 → 1,19 |
#ifndef _PRINTF_P_H_ |
#define _PRINTF_P_H_ |
#include <avr/pgmspace.h> |
#define OUT_V24 0 |
#define OUT_LCD 1 |
extern void _printf_P (char, char const *fmt0, ...); |
extern char PrintZiel; |
#define printf_P(format, args...) _printf_P(OUT_V24,format , ## args) |
#define printf(format, args...) _printf_P(OUT_V24,PSTR(format) , ## args) |
#define LCD_printfxy(x,y,format, args...) { DispPtr = y * 20 + x; _printf_P(OUT_LCD,PSTR(format) , ## args);} |
#define LCD_printf(format, args...) { _printf_P(OUT_LCD,PSTR(format) , ## args);} |
#endif |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/rc.c |
---|
0,0 → 1,85 |
/*####################################################################################### |
Decodieren eines RC Summen Signals |
#######################################################################################*/ |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "rc.h" |
#include "main.h" |
volatile int PPM_in[11]; |
volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
volatile unsigned char NewPpmData = 1; |
//############################################################################ |
//zum decodieren des PPM-Signals wird Timer1 mit seiner Input |
//Capture Funktion benutzt: |
void rc_sum_init (void) |
//############################################################################ |
{ |
TCCR1B=(1<<CS11)|(1<<CS10)|(1<<ICES1)|(1<<ICNC1);//|(1 << WGM12); //timer1 prescale 64 |
// PWM |
//TCCR1A = (1 << COM1B1) | (1 << WGM11) | (1 << WGM10); |
//TCCR1B |= (1 << WGM12); |
//OCR1B = 55; |
TIMSK1 |= _BV(ICIE1); |
AdNeutralGier = 0; |
AdNeutralRoll = 0; |
AdNeutralNick = 0; |
return; |
} |
//############################################################################ |
//Diese Routine startet und inizialisiert den Timer für RC |
SIGNAL(SIG_INPUT_CAPTURE1) |
//############################################################################ |
{ |
static unsigned int AltICR=0; |
signed int signal = 0; |
static int index; |
signal = (unsigned int) ICR1 - AltICR; |
AltICR = ICR1; |
//Syncronisationspause? |
if ((signal > 1500) && (signal < 8000)) |
{ |
index = 1; |
NewPpmData = 0; // Null bedeutet: Neue Daten |
// OCR2A = Poti2/2 + 80; |
} |
else |
{ |
if(index < 10) |
{ |
if((signal > 250) && (signal < 687)) |
{ |
signal -= 466; |
// Stabiles Signal |
if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
signal = (3 * (PPM_in[index]) + signal) / 4; |
//373 entspricht ca. 1.5ms also Mittelstellung |
PPM_diff[index] = signal - PPM_in[index]; |
PPM_in[index] = signal; |
} |
index++; |
/* if(index == 5) PORTD |= 0x20; else PORTD &= ~0x20; // Servosignal an J3 anlegen |
if(index == 6) PORTD |= 0x10; else PORTD &= ~0x10; // Servosignal an J4 anlegen |
if(index == 7) PORTD |= 0x08; else PORTD &= ~0x08; // Servosignal an J5 anlegen */ |
} |
} |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/rc.h |
---|
0,0 → 1,29 |
/*####################################################################################### |
Derkodieren eines RC Summen Signals |
#######################################################################################*/ |
#ifndef _RC_H |
#define _RC_H |
#if defined (__AVR_ATmega32__) |
#define TIMER_TEILER CK64 |
#define TIMER_RELOAD_VALUE 250 |
#endif |
#if defined (__AVR_ATmega644__) |
//#define TIMER_TEILER CK64 |
#define TIMER_RELOAD_VALUE 250 |
//#define TIMER_TEILER CK256 // bei 20MHz |
//#define TIMER_RELOAD_VALUE -78 // bei 20MHz |
#endif |
#define GAS PPM_in[2] |
extern void rc_sum_init (void); |
extern volatile int PPM_in[11]; |
extern volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
extern volatile unsigned char NewPpmData; |
#endif //_RC_H |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/timer0.c |
---|
0,0 → 1,118 |
#include "main.h" |
volatile unsigned int CountMilliseconds = 0; |
volatile unsigned char UpdateMotor = 0; |
volatile unsigned int beeptime = 0; |
int ServoValue = 0; |
enum { |
STOP = 0, |
CK = 1, |
CK8 = 2, |
CK64 = 3, |
CK256 = 4, |
CK1024 = 5, |
T0_FALLING_EDGE = 6, |
T0_RISING_EDGE = 7 |
}; |
SIGNAL (SIG_OVERFLOW0) // 9,8kHz |
{ |
static unsigned char cnt_1ms = 1,cnt = 0; |
// TCNT0 -= 250;//TIMER_RELOAD_VALUE; |
if(!cnt--) |
{ |
cnt = 10; |
cnt_1ms++; |
cnt_1ms %= 2; |
if(!cnt_1ms) UpdateMotor = 1; |
CountMilliseconds++; |
if(Timeout) Timeout--; |
} |
if(beeptime > 1) |
{ |
beeptime--; |
PORTD |= (1<<PD2); |
} |
else |
PORTD &= ~(1<<PD2); |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) timer0_MM3(); // Kompass auslesen |
} |
void Timer_Init(void) |
{ |
TCCR0B = CK8; |
TCCR0A = (1<<COM0A1)|(1<<COM0B1)|3;//fast PWM |
OCR0A = 0; |
OCR0B = 120; |
//TCNT0 = -TIMER_RELOAD_VALUE; // reload |
//OCR1 = 0x00; |
TCCR2A=(1<<COM2A1)|(1<<COM2A0)|3; |
TCCR2B=(0<<CS20)|(1<<CS21)|(1<<CS22); |
// TIMSK2 |= _BV(TOIE2); |
TIMSK2 |= _BV(OCIE2A); |
TIMSK0 |= _BV(TOIE0); |
OCR2A = 10; |
TCNT2 = 0; |
} |
// ----------------------------------------------------------------------- |
unsigned int SetDelay (unsigned int t) |
{ |
// TIMSK0 &= ~_BV(TOIE0); |
return(CountMilliseconds + t + 1); |
// TIMSK0 |= _BV(TOIE0); |
} |
// ----------------------------------------------------------------------- |
char CheckDelay(unsigned int t) |
{ |
// TIMSK0 &= ~_BV(TOIE0); |
return(((t - CountMilliseconds) & 0x8000) >> 9); |
// TIMSK0 |= _BV(TOIE0); |
} |
// ----------------------------------------------------------------------- |
void Delay_ms(unsigned int w) |
{ |
unsigned int akt; |
akt = SetDelay(w); |
while (!CheckDelay(akt)); |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Servo ansteuern |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(SIG_OUTPUT_COMPARE2A) |
{ |
static unsigned char timer = 10; |
if(!timer--) |
{ |
TCCR2A=(1<<COM2A1)|(0<<COM2A0)|3; |
ServoValue = Parameter_ServoNickControl; |
if(EE_Parameter.ServoNickCompInvert & 0x01) ServoValue += ((long) EE_Parameter.ServoNickComp * (IntegralNick / 128)) / 512; |
else ServoValue -= ((long) EE_Parameter.ServoNickComp * (IntegralNick / 128)) / 512; |
if(ServoValue < EE_Parameter.ServoNickMin) ServoValue = EE_Parameter.ServoNickMin; |
else if(ServoValue > EE_Parameter.ServoNickMax) ServoValue = EE_Parameter.ServoNickMax; |
//DebugOut.Analog[10] = ServoValue; |
OCR2A = ServoValue;// + 75; |
timer = EE_Parameter.ServoNickRefresh; |
} |
else |
{ |
TCCR2A =3; |
PORTD&=~0x80; |
} |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/timer0.h |
---|
0,0 → 1,13 |
#define TIMER_TEILER CK8 |
#define TIMER_RELOAD_VALUE 250 |
void Timer_Init(void); |
void Delay_ms(unsigned int); |
unsigned int SetDelay (unsigned int t); |
char CheckDelay (unsigned int t); |
extern volatile unsigned int CountMilliseconds; |
extern volatile unsigned char UpdateMotor; |
extern volatile unsigned int beeptime; |
extern int ServoValue; |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/twimaster.c |
---|
0,0 → 1,115 |
/*############################################################################ |
############################################################################*/ |
#include "main.h" |
volatile unsigned char twi_state = 0; |
volatile unsigned char motor = 0; |
volatile unsigned char motor_rx[8]; |
//############################################################################ |
//Initzialisieren der I2C (TWI) Schnittstelle |
void i2c_init(void) |
//############################################################################ |
{ |
TWSR = 0; |
TWBR = ((SYSCLK/SCL_CLOCK)-16)/2; |
} |
//############################################################################ |
//Start I2C |
void i2c_start(void) |
//############################################################################ |
{ |
TWCR = (1<<TWSTA) | (1<<TWEN) | (1<<TWINT) | (1<<TWIE); |
} |
//############################################################################ |
//Stop I2C |
void i2c_stop(void) |
//############################################################################ |
{ |
TWCR = (1<<TWEN) | (1<<TWSTO) | (1<<TWINT); |
} |
//############################################################################ |
//Write to I2C |
void i2c_write_byte(char byte) |
//############################################################################ |
{ |
TWDR = byte; |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
} |
//############################################################################ |
// I2C receive byte and send ACK |
void i2c_receive_byte(void) |
//############################################################################ |
{ |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE) | (1<<TWEA); |
} |
//############################################################################ |
// I2C receive last byte and send NOT ACK |
void i2c_receive_last_byte(void) |
//############################################################################ |
{ |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
} |
//############################################################################ |
//Start I2C |
SIGNAL (TWI_vect) |
//############################################################################ |
{ |
static unsigned char motorread = 0; |
switch (twi_state++) // First i2c_start from SendMotorData() |
{ |
// Master Transmit |
case 0: // Address Slave SL+W |
i2c_write_byte(0x52+(motor*2)); |
break; |
case 1: // Send Data |
switch(motor++) |
{ |
case 0: |
i2c_write_byte(Motor_Vorne); |
break; |
case 1: |
i2c_write_byte(Motor_Hinten); |
break; |
case 2: |
i2c_write_byte(Motor_Rechts); |
break; |
case 3: |
i2c_write_byte(Motor_Links); |
break; |
} |
break; |
case 2: // Repeat case 0+1 for all Slaves |
if (motor < 4) twi_state = 0; |
i2c_start(); // Repeated start -> switch salve or switch Master Transmit -> Master Receive |
break; |
// Master Receive |
case 3: // Address Slave SL+R |
i2c_write_byte(0x53+(motorread*2)); |
break; |
case 4: //1. Byte vom Motor übertragen |
i2c_receive_byte(); |
break; |
case 5: // 1. Byte lesen und 2. Byte übertragen |
motor_rx[motorread] = TWDR; |
i2c_receive_last_byte(); |
break; |
case 6: //2. Byte lesen |
motor_rx[motorread+4] = TWDR; |
motorread++; |
if (motorread > 3) motorread=0; |
default: |
i2c_stop(); |
twi_state = 0; |
motor = 0; |
} |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/twimaster.h |
---|
0,0 → 1,33 |
/*############################################################################ |
############################################################################*/ |
#ifndef _I2C_MASTER_H |
#define _I2C_MASTER_H |
//############################################################################ |
// I2C Konstanten |
#define SCL_CLOCK 200000L |
#define I2C_TIMEOUT 30000 |
#define I2C_START 0x08 |
#define I2C_REPEATED_START 0x10 |
#define I2C_TX_SLA_ACK 0x18 |
#define I2C_TX_DATA_ACK 0x28 |
#define I2C_RX_SLA_ACK 0x40 |
#define I2C_RX_DATA_ACK 0x50 |
//############################################################################ |
extern volatile unsigned char twi_state; |
extern volatile unsigned char motor; |
extern volatile unsigned char motor_rx[8]; |
void i2c_init (void); // I2C initialisieren |
void i2c_start (void); // Start I2C |
void i2c_stop (void); // Stop I2C |
void i2c_write_byte (char byte); // 1 Byte schreiben |
void i2c_receive_byte(void); // 1 Byte empfangen |
void i2c_receive_last_byte(void); // letztes Byte empfangen |
#endif |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/uart.c |
---|
0,0 → 1,328 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
#include "uart.h" |
unsigned char DebugGetAnforderung = 0,DebugDisplayAnforderung = 0,DebugDataAnforderung = 0,GetVersionAnforderung = 0; |
unsigned volatile char SioTmp = 0; |
unsigned volatile char SendeBuffer[MAX_SENDE_BUFF]; |
unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF]; |
unsigned volatile char NMEABuffer[MAX_EMPFANGS_BUFF]; |
unsigned volatile char NeuerDatensatzEmpfangen = 0; |
unsigned volatile char NeueKoordinateEmpfangen = 0; |
unsigned volatile char UebertragungAbgeschlossen = 1; |
unsigned volatile char CntCrcError = 0; |
unsigned volatile char AnzahlEmpfangsBytes = 0; |
unsigned volatile char PC_DebugTimeout = 0; |
unsigned char PcZugriff = 100; |
unsigned char MotorTest[4] = {0,0,0,0}; |
unsigned char MeineSlaveAdresse; |
struct str_DebugOut DebugOut; |
struct str_Debug DebugIn; |
struct str_VersionInfo VersionInfo; |
int Debug_Timer; |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ Sende-Part der Datenübertragung |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(INT_VEC_TX) |
{ |
static unsigned int ptr = 0; |
unsigned char tmp_tx; |
if(!UebertragungAbgeschlossen) |
{ |
ptr++; // die [0] wurde schon gesendet |
tmp_tx = SendeBuffer[ptr]; |
if((tmp_tx == '\r') || (ptr == MAX_SENDE_BUFF)) |
{ |
ptr = 0; |
UebertragungAbgeschlossen = 1; |
} |
UDR = tmp_tx; |
} |
else ptr = 0; |
} |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ Empfangs-Part der Datenübertragung, incl. CRC-Auswertung |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(INT_VEC_RX) |
{ |
static unsigned int crc; |
static unsigned char crc1,crc2,buf_ptr; |
static unsigned char UartState = 0; |
unsigned char CrcOkay = 0; |
SioTmp = UDR; |
if(buf_ptr >= MAX_EMPFANGS_BUFF) UartState = 0; |
if(SioTmp == '\r' && UartState == 2) |
{ |
UartState = 0; |
crc -= RxdBuffer[buf_ptr-2]; |
crc -= RxdBuffer[buf_ptr-1]; |
crc %= 4096; |
crc1 = '=' + crc / 64; |
crc2 = '=' + crc % 64; |
CrcOkay = 0; |
if((crc1 == RxdBuffer[buf_ptr-2]) && (crc2 == RxdBuffer[buf_ptr-1])) CrcOkay = 1; else { CrcOkay = 0; CntCrcError++;}; |
if(!NeuerDatensatzEmpfangen && CrcOkay) // Datensatz schon verarbeitet |
{ |
NeuerDatensatzEmpfangen = 1; |
AnzahlEmpfangsBytes = buf_ptr; |
RxdBuffer[buf_ptr] = '\r'; |
if(/*(RxdBuffer[1] == MeineSlaveAdresse || (RxdBuffer[1] == 'a')) && */(RxdBuffer[2] == 'R')) wdt_enable(WDTO_250MS); // Reset-Commando |
} |
} |
else |
switch(UartState) |
{ |
case 0: |
if(SioTmp == '#' && !NeuerDatensatzEmpfangen) UartState = 1; // Startzeichen und Daten schon verarbeitet |
buf_ptr = 0; |
RxdBuffer[buf_ptr++] = SioTmp; |
crc = SioTmp; |
break; |
case 1: // Adresse auswerten |
UartState++; |
RxdBuffer[buf_ptr++] = SioTmp; |
crc += SioTmp; |
break; |
case 2: // Eingangsdaten sammeln |
RxdBuffer[buf_ptr] = SioTmp; |
if(buf_ptr < MAX_EMPFANGS_BUFF) buf_ptr++; |
else UartState = 0; |
crc += SioTmp; |
break; |
default: |
UartState = 0; |
break; |
} |
} |
// -------------------------------------------------------------------------- |
void AddCRC(unsigned int wieviele) |
{ |
unsigned int tmpCRC = 0,i; |
for(i = 0; i < wieviele;i++) |
{ |
tmpCRC += SendeBuffer[i]; |
} |
tmpCRC %= 4096; |
SendeBuffer[i++] = '=' + tmpCRC / 64; |
SendeBuffer[i++] = '=' + tmpCRC % 64; |
SendeBuffer[i++] = '\r'; |
UebertragungAbgeschlossen = 0; |
UDR = SendeBuffer[0]; |
} |
// -------------------------------------------------------------------------- |
void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len) |
{ |
unsigned int pt = 0; |
unsigned char a,b,c; |
unsigned char ptr = 0; |
SendeBuffer[pt++] = '#'; // Startzeichen |
SendeBuffer[pt++] = modul; // Adresse (a=0; b=1,...) |
SendeBuffer[pt++] = cmd; // Commando |
while(len) |
{ |
if(len) { a = snd[ptr++]; len--;} else a = 0; |
if(len) { b = snd[ptr++]; len--;} else b = 0; |
if(len) { c = snd[ptr++]; len--;} else c = 0; |
SendeBuffer[pt++] = '=' + (a >> 2); |
SendeBuffer[pt++] = '=' + (((a & 0x03) << 4) | ((b & 0xf0) >> 4)); |
SendeBuffer[pt++] = '=' + (((b & 0x0f) << 2) | ((c & 0xc0) >> 6)); |
SendeBuffer[pt++] = '=' + ( c & 0x3f); |
} |
AddCRC(pt); |
} |
// -------------------------------------------------------------------------- |
void Decode64(unsigned char *ptrOut, unsigned char len, unsigned char ptrIn,unsigned char max) // Wohin mit den Daten; Wie lang; Wo im RxdBuffer |
{ |
unsigned char a,b,c,d; |
unsigned char ptr = 0; |
unsigned char x,y,z; |
while(len) |
{ |
a = RxdBuffer[ptrIn++] - '='; |
b = RxdBuffer[ptrIn++] - '='; |
c = RxdBuffer[ptrIn++] - '='; |
d = RxdBuffer[ptrIn++] - '='; |
if(ptrIn > max - 2) break; // nicht mehr Daten verarbeiten, als empfangen wurden |
x = (a << 2) | (b >> 4); |
y = ((b & 0x0f) << 4) | (c >> 2); |
z = ((c & 0x03) << 6) | d; |
if(len--) ptrOut[ptr++] = x; else break; |
if(len--) ptrOut[ptr++] = y; else break; |
if(len--) ptrOut[ptr++] = z; else break; |
} |
} |
// -------------------------------------------------------------------------- |
void BearbeiteRxDaten(void) |
{ |
if(!NeuerDatensatzEmpfangen) return; |
//unsigned int tmp_int_arr1[1]; |
//unsigned int tmp_int_arr2[2]; |
//unsigned int tmp_int_arr3[3]; |
unsigned char tmp_char_arr2[2]; |
//unsigned char tmp_char_arr3[3]; |
//unsigned char tmp_char_arr4[4]; |
//if(!MotorenEin) |
PcZugriff = 255; |
switch(RxdBuffer[2]) |
{ |
case 'c':// Debugdaten incl. Externe IOs usw |
Decode64((unsigned char *) &DebugIn,sizeof(DebugIn),3,AnzahlEmpfangsBytes); |
/* for(unsigned char i=0; i<4;i++) |
{ |
EE_CheckAndWrite(&EE_Buffer[EE_DEBUGWERTE + i*2], DebugIn.Analog[i]); |
EE_CheckAndWrite(&EE_Buffer[EE_DEBUGWERTE + i*2 + 1], DebugIn.Analog[i] >> 8); |
}*/ |
RemoteTasten |= DebugIn.RemoteTasten; |
DebugDataAnforderung = 1; |
break; |
case 'h':// x-1 Displayzeilen |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
RemoteTasten |= tmp_char_arr2[0]; |
DebugDisplayAnforderung = 1; |
break; |
case 't':// Motortest |
Decode64((unsigned char *) &MotorTest[0],sizeof(MotorTest),3,AnzahlEmpfangsBytes); |
break; |
case 'v': // Version-Anforderung und Ausbaustufe |
GetVersionAnforderung = 1; |
break; |
case 'g':// "Get"-Anforderung für Debug-Daten |
// Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
DebugGetAnforderung = 1; |
break; |
case 'q':// "Get"-Anforderung für Settings |
// Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
if(tmp_char_arr2[0] != 0xff) |
{ |
if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
} |
else |
SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
break; |
case 'l': |
case 'm': |
case 'n': |
case 'o': |
case 'p': // Parametersatz speichern |
Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct),3,AnzahlEmpfangsBytes); |
WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], RxdBuffer[2] - 'l' + 1); // aktiven Datensatz merken |
Piep(GetActiveParamSetNumber()); |
break; |
} |
// DebugOut.AnzahlZyklen = Debug_Timer_Intervall; |
NeuerDatensatzEmpfangen = 0; |
} |
//############################################################################ |
//Routine für die Serielle Ausgabe |
int uart_putchar (char c) |
//############################################################################ |
{ |
if (c == '\n') |
uart_putchar('\r'); |
//Warten solange bis Zeichen gesendet wurde |
loop_until_bit_is_set(USR, UDRE); |
//Ausgabe des Zeichens |
UDR = c; |
return (0); |
} |
// -------------------------------------------------------------------------- |
void WriteProgramData(unsigned int pos, unsigned char wert) |
{ |
//if (ProgramLocation == IN_RAM) Buffer[pos] = wert; |
// else eeprom_write_byte(&EE_Buffer[pos], wert); |
// Buffer[pos] = wert; |
} |
//############################################################################ |
//INstallation der Seriellen Schnittstelle |
void UART_Init (void) |
//############################################################################ |
{ |
//Enable TXEN im Register UCR TX-Data Enable & RX Enable |
UCR=(1 << TXEN) | (1 << RXEN); |
// UART Double Speed (U2X) |
USR |= (1<<U2X); |
// RX-Interrupt Freigabe |
UCSRB |= (1<<RXCIE); |
// TX-Interrupt Freigabe |
UCSRB |= (1<<TXCIE); |
//Teiler wird gesetzt |
UBRR=(SYSCLK / (BAUD_RATE * 8L) - 1); |
//UBRR = 33; |
//öffnet einen Kanal für printf (STDOUT) |
//fdevopen (uart_putchar, 0); |
//sbi(PORTD,4); |
Debug_Timer = SetDelay(200); |
} |
//--------------------------------------------------------------------------------------------- |
void DatenUebertragung(void) |
{ |
static char dis_zeile = 0; |
if(!UebertragungAbgeschlossen) return; |
if(DebugGetAnforderung && UebertragungAbgeschlossen) // Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
{ |
SendOutData('G',MeineSlaveAdresse,(unsigned char *) &DebugIn,sizeof(DebugIn)); |
DebugGetAnforderung = 0; |
} |
if((CheckDelay(Debug_Timer) || DebugDataAnforderung) && UebertragungAbgeschlossen) |
{ |
SendOutData('D',MeineSlaveAdresse,(unsigned char *) &DebugOut,sizeof(DebugOut)); |
DebugDataAnforderung = 0; |
Debug_Timer = SetDelay(MIN_DEBUG_INTERVALL); |
} |
if(DebugDisplayAnforderung && UebertragungAbgeschlossen) |
{ |
Menu(); |
DebugDisplayAnforderung = 0; |
if(++dis_zeile == 4) dis_zeile = 0; |
SendOutData('0' + dis_zeile,0,&DisplayBuff[20 * dis_zeile],20); // DisplayZeile übertragen |
} |
if(GetVersionAnforderung && UebertragungAbgeschlossen) |
{ |
SendOutData('V',MeineSlaveAdresse,(unsigned char *) &VersionInfo,sizeof(VersionInfo)); |
GetVersionAnforderung = 0; |
} |
} |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/uart.h |
---|
0,0 → 1,95 |
#ifndef _UART_H |
#define _UART_H |
#define MAX_SENDE_BUFF 150 |
#define MAX_EMPFANGS_BUFF 150 |
void BearbeiteRxDaten(void); |
extern unsigned char DebugGetAnforderung; |
extern unsigned volatile char SendeBuffer[MAX_SENDE_BUFF]; |
extern unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF]; |
extern unsigned volatile char UebertragungAbgeschlossen; |
extern unsigned volatile char PC_DebugTimeout; |
extern unsigned volatile char NeueKoordinateEmpfangen; |
extern unsigned char MeineSlaveAdresse; |
extern unsigned char PcZugriff; |
extern int Debug_Timer; |
extern void UART_Init (void); |
extern int uart_putchar (char c); |
extern void boot_program_page (uint32_t page, uint8_t *buf); |
extern void DatenUebertragung(void); |
extern void DecodeNMEA(void); |
extern unsigned char MotorTest[4]; |
struct str_DebugOut |
{ |
unsigned char Digital[13]; |
unsigned int AnzahlZyklen; |
unsigned int Zeit; |
unsigned char Sekunden; |
unsigned int Analog[16]; // Debugwerte |
}; |
extern struct str_DebugOut DebugOut; |
struct str_Debug |
{ |
unsigned char Digital[2]; |
unsigned char RemoteTasten; |
unsigned int Analog[4]; |
}; |
extern struct str_Debug DebugIn; |
struct str_VersionInfo |
{ |
unsigned char Hauptversion; |
unsigned char Nebenversion; |
unsigned char PCKompatibel; |
unsigned char Rserved[7]; |
}; |
extern struct str_VersionInfo VersionInfo; |
//Die Baud_Rate der Seriellen Schnittstelle ist 9600 Baud |
//#define BAUD_RATE 9600 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 14400 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 28800 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 38400 //Baud Rate für die Serielle Schnittstelle |
#define BAUD_RATE 57600 //Baud Rate für die Serielle Schnittstelle |
//Anpassen der seriellen Schnittstellen Register wenn ein ATMega128 benutzt wird |
#if defined (__AVR_ATmega128__) |
# define USR UCSR0A |
# define UCR UCSR0B |
# define UDR UDR0 |
# define UBRR UBRR0L |
# define EICR EICRB |
#endif |
#if defined (__AVR_ATmega32__) |
# define USR UCSRA |
# define UCR UCSRB |
# define UBRR UBRRL |
# define EICR EICRB |
# define INT_VEC_RX SIG_UART_RECV |
# define INT_VEC_TX SIG_UART_TRANS |
#endif |
#if defined (__AVR_ATmega644__) |
# define USR UCSR0A |
# define UCR UCSR0B |
# define UDR UDR0 |
# define UBRR UBRR0L |
# define EICR EICR0B |
# define TXEN TXEN0 |
# define RXEN RXEN0 |
# define RXCIE RXCIE0 |
# define TXCIE TXCIE0 |
# define U2X U2X0 |
# define UCSRB UCSR0B |
# define UDRE UDRE0 |
# define INT_VEC_RX SIG_USART_RECV |
# define INT_VEC_TX SIG_USART_TRANS |
#endif |
#endif //_UART_H |
/branches/v0.60_MicroMag3_Nick666/Festkomma/v0.60/version.txt |
---|
0,0 → 1,49 |
------- |
V0.53 27.04.2007 H.Buss |
- erste öffentliche Version |
V0.53b 29.04.2007 H.Buss |
- der FAKTOR_I war versehentlich auf Null, dann liegt der MikroKopter nicht so hart in der Luft |
V0.53c 29.04.2007 H.Buss |
- es gib ein Menü, in dem die Werte der Kanäle nach Nick, Roll, Gas,... sortiert sind. |
Die angezeigten Werte waren nicht die Werte der Funke |
V0.54 01.05.2007 H.Buss |
- die Paramtersätze können jetzt vor dem Start ausgewählt werden |
Dazu wird beim Kalibrieren der Messwerte (Gashebel oben links) der Nick-Rollhebel abgefragt: |
2 3 4 |
1 x 5 |
- - - |
Bedeutet: Nick-Rollhebel Links Mitte = Setting:1 Links Oben = Setting:2 usw. |
- der Faktor_I für den Hauptregler ist hinzugekommen. Im Heading-Hold-Modus sollte er vergössert werden, was Stabilität bringt |
V0.55 14.05.2007 H.Buss |
- es können nun Servos an J3,J4,J5 mit den Kanälen 5-7 gesteuert werden |
V0.56 14.05.2007 H.Buss |
- es gab Probleme mit Funken, die mehr als 8 Kanäle haben, wenn mehrere Kanäle dann auf Null waren |
- Funken, die nicht bis +-120 aussteuern können, sollten jetzt auch gehen |
V0.57 24.05.2007 H.Buss |
- Der Höhenregler kann nun auch mittels Schalter bedient werden |
- Bug im Gier-Algorithmus behoben; Schnelles Gieren fürhrte dazu, dass der MK zu weit gedreht hat |
- Kompass-Einfluss dämpfen bei Neigung |
- Man kann zwischen Kompass FIX (Richtung beim Kalibrieren) und Variabel (einstellbar per Gier) wählen |
- Der Motortest vom Kopter-Tool geht jetzt |
- Man kann den Parametersätzen einen Namen geben |
- Das Kamerasetting ist unter Setting 2 defaultmässig integriert |
V0.58 30.05.2007 H.Buss |
- Der Höhenregler-Algorithmus wird nun umgangen, wenn der Höhenreglerschalter aus ist |
V0.60 17.08.2007 H.Buss |
- "Schwindel-Bug" behoben |
- Die Poti-Werte werden jetzt auf Unterlauf (<0) überprüft |
- Poti4 zugefügt |
- Es werden jetzt 8 Kanäle ausgewertet |
- Kamera-Servo (an J7) |
- Die Settings müssen überschrieben werden |