/branches/MicroMag3_Nick666/Festkomma/V0.67g/compass.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/flight.pnps |
---|
File deleted |
\ No newline at end of file |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/printf_P.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/printf_P.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/COPYING |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/eeprom.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/fc.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/fc.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/gps.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/mymath.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/Flight-Ctrl_MEGA644_V0_67g.hex |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/analog.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/FlightCtrl.aps |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/menu.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/mymath.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/_Settings.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/rc.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/analog.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/rc.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/menu.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/menu.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/rc.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/compass.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/flight.pnps |
---|
File deleted |
\ No newline at end of file |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/uart.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/uart.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/COPYING.LESSER |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/main.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/Readme.pdf |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/COPYING |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/old_macros.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/main.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/makefile |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/gps.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/timer0.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/_Settings.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/timer0.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/twimaster.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/License.txt |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/printf_P.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/version.txt |
---|
File deleted |
\ No newline at end of file |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/twimaster.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/printf_P.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/eeprom.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/fc.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/GPS.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/fc.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/mymath.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/Flight-Ctrl_MEGA644_V0_67g.hex |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/analog.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/FlightCtrl.aps |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/flight.pnproj |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/menu.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/mymath.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/rc.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/compass.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/trunc/analog.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/uart.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/twimaster.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/License.txt |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/uart.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/version.txt |
---|
File deleted |
\ No newline at end of file |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/COPYING.LESSER |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/main.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/twimaster.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/Readme.pdf |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/old_macros.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/main.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/GPS.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/makefile |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/timer0.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/flight.pnproj |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/compass.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.67g/timer0.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/mymath.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/analog.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/flight.pnproj |
---|
File deleted |
\ No newline at end of file |
/branches/MicroMag3_Nick666/Festkomma/v0.60/menu.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/mymath.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/rc.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/compass.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/analog.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/menu.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/rc.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/compass.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/license_buss.txt |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/flight.pnps |
---|
File deleted |
\ No newline at end of file |
/branches/MicroMag3_Nick666/Festkomma/v0.60/uart.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/uart.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/COPYING.LESSER |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/main.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/COPYING |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/old_macros.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/main.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/makefile |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/gps.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/Flight-Ctrl_MEGA644_V0_60_MM3.hex |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/timer0.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/_Settings.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/timer0.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/twimaster.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/printf_P.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/version.txt |
---|
File deleted |
\ No newline at end of file |
/branches/MicroMag3_Nick666/Festkomma/v0.60/twimaster.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/printf_P.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/fc.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/GPS.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/math.d |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/v0.60/fc.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/main.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/twimaster.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/old_macros.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/main.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/GPS.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/makefile |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/Flight-Ctrl_MEGA644_V0_68d.hex |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/timer0.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/flight.pnproj |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/compass.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/timer0.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/compass.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/flight.pnps |
---|
File deleted |
\ No newline at end of file |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/printf_P.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/printf_P.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/eeprom.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/fc.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/spi.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/fc.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/gps.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/mymath.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/spi.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/analog.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/FlightCtrl.aps |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/menu.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/mymath.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/_Settings.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/rc.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/analog.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/menu.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/rc.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/uart.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/License.txt |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/twimaster.c |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/uart.h |
---|
File deleted |
/branches/MicroMag3_Nick666/Festkomma/V0.68d/version.txt |
---|
File deleted |
\ No newline at end of file |
/branches/MicroMag3_Nick666/V0.67g/COPYING |
---|
0,0 → 1,674 |
GNU GENERAL PUBLIC LICENSE |
Version 3, 29 June 2007 |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
Everyone is permitted to copy and distribute verbatim copies |
of this license document, but changing it is not allowed. |
Preamble |
The GNU General Public License is a free, copyleft license for |
software and other kinds of works. |
The licenses for most software and other practical works are designed |
to take away your freedom to share and change the works. By contrast, |
the GNU General Public License is intended to guarantee your freedom to |
share and change all versions of a program--to make sure it remains free |
software for all its users. We, the Free Software Foundation, use the |
GNU General Public License for most of our software; it applies also to |
any other work released this way by its authors. You can apply it to |
your programs, too. |
When we speak of free software, we are referring to freedom, not |
price. Our General Public Licenses are designed to make sure that you |
have the freedom to distribute copies of free software (and charge for |
them if you wish), that you receive source code or can get it if you |
want it, that you can change the software or use pieces of it in new |
free programs, and that you know you can do these things. |
To protect your rights, we need to prevent others from denying you |
these rights or asking you to surrender the rights. Therefore, you have |
certain responsibilities if you distribute copies of the software, or if |
you modify it: responsibilities to respect the freedom of others. |
For example, if you distribute copies of such a program, whether |
gratis or for a fee, you must pass on to the recipients the same |
freedoms that you received. You must make sure that they, too, receive |
or can get the source code. And you must show them these terms so they |
know their rights. |
Developers that use the GNU GPL protect your rights with two steps: |
(1) assert copyright on the software, and (2) offer you this License |
giving you legal permission to copy, distribute and/or modify it. |
For the developers' and authors' protection, the GPL clearly explains |
that there is no warranty for this free software. For both users' and |
authors' sake, the GPL requires that modified versions be marked as |
changed, so that their problems will not be attributed erroneously to |
authors of previous versions. |
Some devices are designed to deny users access to install or run |
modified versions of the software inside them, although the manufacturer |
can do so. This is fundamentally incompatible with the aim of |
protecting users' freedom to change the software. The systematic |
pattern of such abuse occurs in the area of products for individuals to |
use, which is precisely where it is most unacceptable. Therefore, we |
have designed this version of the GPL to prohibit the practice for those |
products. If such problems arise substantially in other domains, we |
stand ready to extend this provision to those domains in future versions |
of the GPL, as needed to protect the freedom of users. |
Finally, every program is threatened constantly by software patents. |
States should not allow patents to restrict development and use of |
software on general-purpose computers, but in those that do, we wish to |
avoid the special danger that patents applied to a free program could |
make it effectively proprietary. To prevent this, the GPL assures that |
patents cannot be used to render the program non-free. |
The precise terms and conditions for copying, distribution and |
modification follow. |
TERMS AND CONDITIONS |
0. Definitions. |
"This License" refers to version 3 of the GNU General Public License. |
"Copyright" also means copyright-like laws that apply to other kinds of |
works, such as semiconductor masks. |
"The Program" refers to any copyrightable work licensed under this |
License. Each licensee is addressed as "you". "Licensees" and |
"recipients" may be individuals or organizations. |
To "modify" a work means to copy from or adapt all or part of the work |
in a fashion requiring copyright permission, other than the making of an |
exact copy. The resulting work is called a "modified version" of the |
earlier work or a work "based on" the earlier work. |
A "covered work" means either the unmodified Program or a work based |
on the Program. |
To "propagate" a work means to do anything with it that, without |
permission, would make you directly or secondarily liable for |
infringement under applicable copyright law, except executing it on a |
computer or modifying a private copy. Propagation includes copying, |
distribution (with or without modification), making available to the |
public, and in some countries other activities as well. |
To "convey" a work means any kind of propagation that enables other |
parties to make or receive copies. Mere interaction with a user through |
a computer network, with no transfer of a copy, is not conveying. |
An interactive user interface displays "Appropriate Legal Notices" |
to the extent that it includes a convenient and prominently visible |
feature that (1) displays an appropriate copyright notice, and (2) |
tells the user that there is no warranty for the work (except to the |
extent that warranties are provided), that licensees may convey the |
work under this License, and how to view a copy of this License. If |
the interface presents a list of user commands or options, such as a |
menu, a prominent item in the list meets this criterion. |
1. Source Code. |
The "source code" for a work means the preferred form of the work |
for making modifications to it. "Object code" means any non-source |
form of a work. |
A "Standard Interface" means an interface that either is an official |
standard defined by a recognized standards body, or, in the case of |
interfaces specified for a particular programming language, one that |
is widely used among developers working in that language. |
The "System Libraries" of an executable work include anything, other |
than the work as a whole, that (a) is included in the normal form of |
packaging a Major Component, but which is not part of that Major |
Component, and (b) serves only to enable use of the work with that |
Major Component, or to implement a Standard Interface for which an |
implementation is available to the public in source code form. A |
"Major Component", in this context, means a major essential component |
(kernel, window system, and so on) of the specific operating system |
(if any) on which the executable work runs, or a compiler used to |
produce the work, or an object code interpreter used to run it. |
The "Corresponding Source" for a work in object code form means all |
the source code needed to generate, install, and (for an executable |
work) run the object code and to modify the work, including scripts to |
control those activities. However, it does not include the work's |
System Libraries, or general-purpose tools or generally available free |
programs which are used unmodified in performing those activities but |
which are not part of the work. For example, Corresponding Source |
includes interface definition files associated with source files for |
the work, and the source code for shared libraries and dynamically |
linked subprograms that the work is specifically designed to require, |
such as by intimate data communication or control flow between those |
subprograms and other parts of the work. |
The Corresponding Source need not include anything that users |
can regenerate automatically from other parts of the Corresponding |
Source. |
The Corresponding Source for a work in source code form is that |
same work. |
2. Basic Permissions. |
All rights granted under this License are granted for the term of |
copyright on the Program, and are irrevocable provided the stated |
conditions are met. This License explicitly affirms your unlimited |
permission to run the unmodified Program. The output from running a |
covered work is covered by this License only if the output, given its |
content, constitutes a covered work. This License acknowledges your |
rights of fair use or other equivalent, as provided by copyright law. |
You may make, run and propagate covered works that you do not |
convey, without conditions so long as your license otherwise remains |
in force. You may convey covered works to others for the sole purpose |
of having them make modifications exclusively for you, or provide you |
with facilities for running those works, provided that you comply with |
the terms of this License in conveying all material for which you do |
not control copyright. Those thus making or running the covered works |
for you must do so exclusively on your behalf, under your direction |
and control, on terms that prohibit them from making any copies of |
your copyrighted material outside their relationship with you. |
Conveying under any other circumstances is permitted solely under |
the conditions stated below. Sublicensing is not allowed; section 10 |
makes it unnecessary. |
3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
No covered work shall be deemed part of an effective technological |
measure under any applicable law fulfilling obligations under article |
11 of the WIPO copyright treaty adopted on 20 December 1996, or |
similar laws prohibiting or restricting circumvention of such |
measures. |
When you convey a covered work, you waive any legal power to forbid |
circumvention of technological measures to the extent such circumvention |
is effected by exercising rights under this License with respect to |
the covered work, and you disclaim any intention to limit operation or |
modification of the work as a means of enforcing, against the work's |
users, your or third parties' legal rights to forbid circumvention of |
technological measures. |
4. Conveying Verbatim Copies. |
You may convey verbatim copies of the Program's source code as you |
receive it, in any medium, provided that you conspicuously and |
appropriately publish on each copy an appropriate copyright notice; |
keep intact all notices stating that this License and any |
non-permissive terms added in accord with section 7 apply to the code; |
keep intact all notices of the absence of any warranty; and give all |
recipients a copy of this License along with the Program. |
You may charge any price or no price for each copy that you convey, |
and you may offer support or warranty protection for a fee. |
5. Conveying Modified Source Versions. |
You may convey a work based on the Program, or the modifications to |
produce it from the Program, in the form of source code under the |
terms of section 4, provided that you also meet all of these conditions: |
a) The work must carry prominent notices stating that you modified |
it, and giving a relevant date. |
b) The work must carry prominent notices stating that it is |
released under this License and any conditions added under section |
7. This requirement modifies the requirement in section 4 to |
"keep intact all notices". |
c) You must license the entire work, as a whole, under this |
License to anyone who comes into possession of a copy. This |
License will therefore apply, along with any applicable section 7 |
additional terms, to the whole of the work, and all its parts, |
regardless of how they are packaged. This License gives no |
permission to license the work in any other way, but it does not |
invalidate such permission if you have separately received it. |
d) If the work has interactive user interfaces, each must display |
Appropriate Legal Notices; however, if the Program has interactive |
interfaces that do not display Appropriate Legal Notices, your |
work need not make them do so. |
A compilation of a covered work with other separate and independent |
works, which are not by their nature extensions of the covered work, |
and which are not combined with it such as to form a larger program, |
in or on a volume of a storage or distribution medium, is called an |
"aggregate" if the compilation and its resulting copyright are not |
used to limit the access or legal rights of the compilation's users |
beyond what the individual works permit. Inclusion of a covered work |
in an aggregate does not cause this License to apply to the other |
parts of the aggregate. |
6. Conveying Non-Source Forms. |
You may convey a covered work in object code form under the terms |
of sections 4 and 5, provided that you also convey the |
machine-readable Corresponding Source under the terms of this License, |
in one of these ways: |
a) Convey the object code in, or embodied in, a physical product |
(including a physical distribution medium), accompanied by the |
Corresponding Source fixed on a durable physical medium |
customarily used for software interchange. |
b) Convey the object code in, or embodied in, a physical product |
(including a physical distribution medium), accompanied by a |
written offer, valid for at least three years and valid for as |
long as you offer spare parts or customer support for that product |
model, to give anyone who possesses the object code either (1) a |
copy of the Corresponding Source for all the software in the |
product that is covered by this License, on a durable physical |
medium customarily used for software interchange, for a price no |
more than your reasonable cost of physically performing this |
conveying of source, or (2) access to copy the |
Corresponding Source from a network server at no charge. |
c) Convey individual copies of the object code with a copy of the |
written offer to provide the Corresponding Source. This |
alternative is allowed only occasionally and noncommercially, and |
only if you received the object code with such an offer, in accord |
with subsection 6b. |
d) Convey the object code by offering access from a designated |
place (gratis or for a charge), and offer equivalent access to the |
Corresponding Source in the same way through the same place at no |
further charge. You need not require recipients to copy the |
Corresponding Source along with the object code. If the place to |
copy the object code is a network server, the Corresponding Source |
may be on a different server (operated by you or a third party) |
that supports equivalent copying facilities, provided you maintain |
clear directions next to the object code saying where to find the |
Corresponding Source. Regardless of what server hosts the |
Corresponding Source, you remain obligated to ensure that it is |
available for as long as needed to satisfy these requirements. |
e) Convey the object code using peer-to-peer transmission, provided |
you inform other peers where the object code and Corresponding |
Source of the work are being offered to the general public at no |
charge under subsection 6d. |
A separable portion of the object code, whose source code is excluded |
from the Corresponding Source as a System Library, need not be |
included in conveying the object code work. |
A "User Product" is either (1) a "consumer product", which means any |
tangible personal property which is normally used for personal, family, |
or household purposes, or (2) anything designed or sold for incorporation |
into a dwelling. In determining whether a product is a consumer product, |
doubtful cases shall be resolved in favor of coverage. For a particular |
product received by a particular user, "normally used" refers to a |
typical or common use of that class of product, regardless of the status |
of the particular user or of the way in which the particular user |
actually uses, or expects or is expected to use, the product. A product |
is a consumer product regardless of whether the product has substantial |
commercial, industrial or non-consumer uses, unless such uses represent |
the only significant mode of use of the product. |
"Installation Information" for a User Product means any methods, |
procedures, authorization keys, or other information required to install |
and execute modified versions of a covered work in that User Product from |
a modified version of its Corresponding Source. The information must |
suffice to ensure that the continued functioning of the modified object |
code is in no case prevented or interfered with solely because |
modification has been made. |
If you convey an object code work under this section in, or with, or |
specifically for use in, a User Product, and the conveying occurs as |
part of a transaction in which the right of possession and use of the |
User Product is transferred to the recipient in perpetuity or for a |
fixed term (regardless of how the transaction is characterized), the |
Corresponding Source conveyed under this section must be accompanied |
by the Installation Information. But this requirement does not apply |
if neither you nor any third party retains the ability to install |
modified object code on the User Product (for example, the work has |
been installed in ROM). |
The requirement to provide Installation Information does not include a |
requirement to continue to provide support service, warranty, or updates |
for a work that has been modified or installed by the recipient, or for |
the User Product in which it has been modified or installed. Access to a |
network may be denied when the modification itself materially and |
adversely affects the operation of the network or violates the rules and |
protocols for communication across the network. |
Corresponding Source conveyed, and Installation Information provided, |
in accord with this section must be in a format that is publicly |
documented (and with an implementation available to the public in |
source code form), and must require no special password or key for |
unpacking, reading or copying. |
7. Additional Terms. |
"Additional permissions" are terms that supplement the terms of this |
License by making exceptions from one or more of its conditions. |
Additional permissions that are applicable to the entire Program shall |
be treated as though they were included in this License, to the extent |
that they are valid under applicable law. If additional permissions |
apply only to part of the Program, that part may be used separately |
under those permissions, but the entire Program remains governed by |
this License without regard to the additional permissions. |
When you convey a copy of a covered work, you may at your option |
remove any additional permissions from that copy, or from any part of |
it. (Additional permissions may be written to require their own |
removal in certain cases when you modify the work.) You may place |
additional permissions on material, added by you to a covered work, |
for which you have or can give appropriate copyright permission. |
Notwithstanding any other provision of this License, for material you |
add to a covered work, you may (if authorized by the copyright holders of |
that material) supplement the terms of this License with terms: |
a) Disclaiming warranty or limiting liability differently from the |
terms of sections 15 and 16 of this License; or |
b) Requiring preservation of specified reasonable legal notices or |
author attributions in that material or in the Appropriate Legal |
Notices displayed by works containing it; or |
c) Prohibiting misrepresentation of the origin of that material, or |
requiring that modified versions of such material be marked in |
reasonable ways as different from the original version; or |
d) Limiting the use for publicity purposes of names of licensors or |
authors of the material; or |
e) Declining to grant rights under trademark law for use of some |
trade names, trademarks, or service marks; or |
f) Requiring indemnification of licensors and authors of that |
material by anyone who conveys the material (or modified versions of |
it) with contractual assumptions of liability to the recipient, for |
any liability that these contractual assumptions directly impose on |
those licensors and authors. |
All other non-permissive additional terms are considered "further |
restrictions" within the meaning of section 10. If the Program as you |
received it, or any part of it, contains a notice stating that it is |
governed by this License along with a term that is a further |
restriction, you may remove that term. If a license document contains |
a further restriction but permits relicensing or conveying under this |
License, you may add to a covered work material governed by the terms |
of that license document, provided that the further restriction does |
not survive such relicensing or conveying. |
If you add terms to a covered work in accord with this section, you |
must place, in the relevant source files, a statement of the |
additional terms that apply to those files, or a notice indicating |
where to find the applicable terms. |
Additional terms, permissive or non-permissive, may be stated in the |
form of a separately written license, or stated as exceptions; |
the above requirements apply either way. |
8. Termination. |
You may not propagate or modify a covered work except as expressly |
provided under this License. Any attempt otherwise to propagate or |
modify it is void, and will automatically terminate your rights under |
this License (including any patent licenses granted under the third |
paragraph of section 11). |
However, if you cease all violation of this License, then your |
license from a particular copyright holder is reinstated (a) |
provisionally, unless and until the copyright holder explicitly and |
finally terminates your license, and (b) permanently, if the copyright |
holder fails to notify you of the violation by some reasonable means |
prior to 60 days after the cessation. |
Moreover, your license from a particular copyright holder is |
reinstated permanently if the copyright holder notifies you of the |
violation by some reasonable means, this is the first time you have |
received notice of violation of this License (for any work) from that |
copyright holder, and you cure the violation prior to 30 days after |
your receipt of the notice. |
Termination of your rights under this section does not terminate the |
licenses of parties who have received copies or rights from you under |
this License. If your rights have been terminated and not permanently |
reinstated, you do not qualify to receive new licenses for the same |
material under section 10. |
9. Acceptance Not Required for Having Copies. |
You are not required to accept this License in order to receive or |
run a copy of the Program. Ancillary propagation of a covered work |
occurring solely as a consequence of using peer-to-peer transmission |
to receive a copy likewise does not require acceptance. However, |
nothing other than this License grants you permission to propagate or |
modify any covered work. These actions infringe copyright if you do |
not accept this License. Therefore, by modifying or propagating a |
covered work, you indicate your acceptance of this License to do so. |
10. Automatic Licensing of Downstream Recipients. |
Each time you convey a covered work, the recipient automatically |
receives a license from the original licensors, to run, modify and |
propagate that work, subject to this License. You are not responsible |
for enforcing compliance by third parties with this License. |
An "entity transaction" is a transaction transferring control of an |
organization, or substantially all assets of one, or subdividing an |
organization, or merging organizations. If propagation of a covered |
work results from an entity transaction, each party to that |
transaction who receives a copy of the work also receives whatever |
licenses to the work the party's predecessor in interest had or could |
give under the previous paragraph, plus a right to possession of the |
Corresponding Source of the work from the predecessor in interest, if |
the predecessor has it or can get it with reasonable efforts. |
You may not impose any further restrictions on the exercise of the |
rights granted or affirmed under this License. For example, you may |
not impose a license fee, royalty, or other charge for exercise of |
rights granted under this License, and you may not initiate litigation |
(including a cross-claim or counterclaim in a lawsuit) alleging that |
any patent claim is infringed by making, using, selling, offering for |
sale, or importing the Program or any portion of it. |
11. Patents. |
A "contributor" is a copyright holder who authorizes use under this |
License of the Program or a work on which the Program is based. The |
work thus licensed is called the contributor's "contributor version". |
A contributor's "essential patent claims" are all patent claims |
owned or controlled by the contributor, whether already acquired or |
hereafter acquired, that would be infringed by some manner, permitted |
by this License, of making, using, or selling its contributor version, |
but do not include claims that would be infringed only as a |
consequence of further modification of the contributor version. For |
purposes of this definition, "control" includes the right to grant |
patent sublicenses in a manner consistent with the requirements of |
this License. |
Each contributor grants you a non-exclusive, worldwide, royalty-free |
patent license under the contributor's essential patent claims, to |
make, use, sell, offer for sale, import and otherwise run, modify and |
propagate the contents of its contributor version. |
In the following three paragraphs, a "patent license" is any express |
agreement or commitment, however denominated, not to enforce a patent |
(such as an express permission to practice a patent or covenant not to |
sue for patent infringement). To "grant" such a patent license to a |
party means to make such an agreement or commitment not to enforce a |
patent against the party. |
If you convey a covered work, knowingly relying on a patent license, |
and the Corresponding Source of the work is not available for anyone |
to copy, free of charge and under the terms of this License, through a |
publicly available network server or other readily accessible means, |
then you must either (1) cause the Corresponding Source to be so |
available, or (2) arrange to deprive yourself of the benefit of the |
patent license for this particular work, or (3) arrange, in a manner |
consistent with the requirements of this License, to extend the patent |
license to downstream recipients. "Knowingly relying" means you have |
actual knowledge that, but for the patent license, your conveying the |
covered work in a country, or your recipient's use of the covered work |
in a country, would infringe one or more identifiable patents in that |
country that you have reason to believe are valid. |
If, pursuant to or in connection with a single transaction or |
arrangement, you convey, or propagate by procuring conveyance of, a |
covered work, and grant a patent license to some of the parties |
receiving the covered work authorizing them to use, propagate, modify |
or convey a specific copy of the covered work, then the patent license |
you grant is automatically extended to all recipients of the covered |
work and works based on it. |
A patent license is "discriminatory" if it does not include within |
the scope of its coverage, prohibits the exercise of, or is |
conditioned on the non-exercise of one or more of the rights that are |
specifically granted under this License. You may not convey a covered |
work if you are a party to an arrangement with a third party that is |
in the business of distributing software, under which you make payment |
to the third party based on the extent of your activity of conveying |
the work, and under which the third party grants, to any of the |
parties who would receive the covered work from you, a discriminatory |
patent license (a) in connection with copies of the covered work |
conveyed by you (or copies made from those copies), or (b) primarily |
for and in connection with specific products or compilations that |
contain the covered work, unless you entered into that arrangement, |
or that patent license was granted, prior to 28 March 2007. |
Nothing in this License shall be construed as excluding or limiting |
any implied license or other defenses to infringement that may |
otherwise be available to you under applicable patent law. |
12. No Surrender of Others' Freedom. |
If conditions are imposed on you (whether by court order, agreement or |
otherwise) that contradict the conditions of this License, they do not |
excuse you from the conditions of this License. If you cannot convey a |
covered work so as to satisfy simultaneously your obligations under this |
License and any other pertinent obligations, then as a consequence you may |
not convey it at all. For example, if you agree to terms that obligate you |
to collect a royalty for further conveying from those to whom you convey |
the Program, the only way you could satisfy both those terms and this |
License would be to refrain entirely from conveying the Program. |
13. Use with the GNU Affero General Public License. |
Notwithstanding any other provision of this License, you have |
permission to link or combine any covered work with a work licensed |
under version 3 of the GNU Affero General Public License into a single |
combined work, and to convey the resulting work. The terms of this |
License will continue to apply to the part which is the covered work, |
but the special requirements of the GNU Affero General Public License, |
section 13, concerning interaction through a network will apply to the |
combination as such. |
14. Revised Versions of this License. |
The Free Software Foundation may publish revised and/or new versions of |
the GNU General Public License from time to time. Such new versions will |
be similar in spirit to the present version, but may differ in detail to |
address new problems or concerns. |
Each version is given a distinguishing version number. If the |
Program specifies that a certain numbered version of the GNU General |
Public License "or any later version" applies to it, you have the |
option of following the terms and conditions either of that numbered |
version or of any later version published by the Free Software |
Foundation. If the Program does not specify a version number of the |
GNU General Public License, you may choose any version ever published |
by the Free Software Foundation. |
If the Program specifies that a proxy can decide which future |
versions of the GNU General Public License can be used, that proxy's |
public statement of acceptance of a version permanently authorizes you |
to choose that version for the Program. |
Later license versions may give you additional or different |
permissions. However, no additional obligations are imposed on any |
author or copyright holder as a result of your choosing to follow a |
later version. |
15. Disclaimer of Warranty. |
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY |
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, |
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM |
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF |
ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
16. Limitation of Liability. |
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS |
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY |
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE |
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF |
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD |
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), |
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
SUCH DAMAGES. |
17. Interpretation of Sections 15 and 16. |
If the disclaimer of warranty and limitation of liability provided |
above cannot be given local legal effect according to their terms, |
reviewing courts shall apply local law that most closely approximates |
an absolute waiver of all civil liability in connection with the |
Program, unless a warranty or assumption of liability accompanies a |
copy of the Program in return for a fee. |
END OF TERMS AND CONDITIONS |
How to Apply These Terms to Your New Programs |
If you develop a new program, and you want it to be of the greatest |
possible use to the public, the best way to achieve this is to make it |
free software which everyone can redistribute and change under these terms. |
To do so, attach the following notices to the program. It is safest |
to attach them to the start of each source file to most effectively |
state the exclusion of warranty; and each file should have at least |
the "copyright" line and a pointer to where the full notice is found. |
<one line to give the program's name and a brief idea of what it does.> |
Copyright (C) <year> <name of author> |
This program is free software: you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
the Free Software Foundation, either version 3 of the License, or |
(at your option) any later version. |
This program is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Also add information on how to contact you by electronic and paper mail. |
If the program does terminal interaction, make it output a short |
notice like this when it starts in an interactive mode: |
<program> Copyright (C) <year> <name of author> |
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
This is free software, and you are welcome to redistribute it |
under certain conditions; type `show c' for details. |
The hypothetical commands `show w' and `show c' should show the appropriate |
parts of the General Public License. Of course, your program's commands |
might be different; for a GUI interface, you would use an "about box". |
You should also get your employer (if you work as a programmer) or school, |
if any, to sign a "copyright disclaimer" for the program, if necessary. |
For more information on this, and how to apply and follow the GNU GPL, see |
<http://www.gnu.org/licenses/>. |
The GNU General Public License does not permit incorporating your program |
into proprietary programs. If your program is a subroutine library, you |
may consider it more useful to permit linking proprietary applications with |
the library. If this is what you want to do, use the GNU Lesser General |
Public License instead of this License. But first, please read |
<http://www.gnu.org/philosophy/why-not-lgpl.html>. |
/branches/MicroMag3_Nick666/V0.67g/COPYING.LESSER |
---|
0,0 → 1,165 |
GNU LESSER GENERAL PUBLIC LICENSE |
Version 3, 29 June 2007 |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
Everyone is permitted to copy and distribute verbatim copies |
of this license document, but changing it is not allowed. |
This version of the GNU Lesser General Public License incorporates |
the terms and conditions of version 3 of the GNU General Public |
License, supplemented by the additional permissions listed below. |
0. Additional Definitions. |
As used herein, "this License" refers to version 3 of the GNU Lesser |
General Public License, and the "GNU GPL" refers to version 3 of the GNU |
General Public License. |
"The Library" refers to a covered work governed by this License, |
other than an Application or a Combined Work as defined below. |
An "Application" is any work that makes use of an interface provided |
by the Library, but which is not otherwise based on the Library. |
Defining a subclass of a class defined by the Library is deemed a mode |
of using an interface provided by the Library. |
A "Combined Work" is a work produced by combining or linking an |
Application with the Library. The particular version of the Library |
with which the Combined Work was made is also called the "Linked |
Version". |
The "Minimal Corresponding Source" for a Combined Work means the |
Corresponding Source for the Combined Work, excluding any source code |
for portions of the Combined Work that, considered in isolation, are |
based on the Application, and not on the Linked Version. |
The "Corresponding Application Code" for a Combined Work means the |
object code and/or source code for the Application, including any data |
and utility programs needed for reproducing the Combined Work from the |
Application, but excluding the System Libraries of the Combined Work. |
1. Exception to Section 3 of the GNU GPL. |
You may convey a covered work under sections 3 and 4 of this License |
without being bound by section 3 of the GNU GPL. |
2. Conveying Modified Versions. |
If you modify a copy of the Library, and, in your modifications, a |
facility refers to a function or data to be supplied by an Application |
that uses the facility (other than as an argument passed when the |
facility is invoked), then you may convey a copy of the modified |
version: |
a) under this License, provided that you make a good faith effort to |
ensure that, in the event an Application does not supply the |
function or data, the facility still operates, and performs |
whatever part of its purpose remains meaningful, or |
b) under the GNU GPL, with none of the additional permissions of |
this License applicable to that copy. |
3. Object Code Incorporating Material from Library Header Files. |
The object code form of an Application may incorporate material from |
a header file that is part of the Library. You may convey such object |
code under terms of your choice, provided that, if the incorporated |
material is not limited to numerical parameters, data structure |
layouts and accessors, or small macros, inline functions and templates |
(ten or fewer lines in length), you do both of the following: |
a) Give prominent notice with each copy of the object code that the |
Library is used in it and that the Library and its use are |
covered by this License. |
b) Accompany the object code with a copy of the GNU GPL and this license |
document. |
4. Combined Works. |
You may convey a Combined Work under terms of your choice that, |
taken together, effectively do not restrict modification of the |
portions of the Library contained in the Combined Work and reverse |
engineering for debugging such modifications, if you also do each of |
the following: |
a) Give prominent notice with each copy of the Combined Work that |
the Library is used in it and that the Library and its use are |
covered by this License. |
b) Accompany the Combined Work with a copy of the GNU GPL and this license |
document. |
c) For a Combined Work that displays copyright notices during |
execution, include the copyright notice for the Library among |
these notices, as well as a reference directing the user to the |
copies of the GNU GPL and this license document. |
d) Do one of the following: |
0) Convey the Minimal Corresponding Source under the terms of this |
License, and the Corresponding Application Code in a form |
suitable for, and under terms that permit, the user to |
recombine or relink the Application with a modified version of |
the Linked Version to produce a modified Combined Work, in the |
manner specified by section 6 of the GNU GPL for conveying |
Corresponding Source. |
1) Use a suitable shared library mechanism for linking with the |
Library. A suitable mechanism is one that (a) uses at run time |
a copy of the Library already present on the user's computer |
system, and (b) will operate properly with a modified version |
of the Library that is interface-compatible with the Linked |
Version. |
e) Provide Installation Information, but only if you would otherwise |
be required to provide such information under section 6 of the |
GNU GPL, and only to the extent that such information is |
necessary to install and execute a modified version of the |
Combined Work produced by recombining or relinking the |
Application with a modified version of the Linked Version. (If |
you use option 4d0, the Installation Information must accompany |
the Minimal Corresponding Source and Corresponding Application |
Code. If you use option 4d1, you must provide the Installation |
Information in the manner specified by section 6 of the GNU GPL |
for conveying Corresponding Source.) |
5. Combined Libraries. |
You may place library facilities that are a work based on the |
Library side by side in a single library together with other library |
facilities that are not Applications and are not covered by this |
License, and convey such a combined library under terms of your |
choice, if you do both of the following: |
a) Accompany the combined library with a copy of the same work based |
on the Library, uncombined with any other library facilities, |
conveyed under the terms of this License. |
b) Give prominent notice with the combined library that part of it |
is a work based on the Library, and explaining where to find the |
accompanying uncombined form of the same work. |
6. Revised Versions of the GNU Lesser General Public License. |
The Free Software Foundation may publish revised and/or new versions |
of the GNU Lesser General Public License from time to time. Such new |
versions will be similar in spirit to the present version, but may |
differ in detail to address new problems or concerns. |
Each version is given a distinguishing version number. If the |
Library as you received it specifies that a certain numbered version |
of the GNU Lesser General Public License "or any later version" |
applies to it, you have the option of following the terms and |
conditions either of that published version or of any later version |
published by the Free Software Foundation. If the Library as you |
received it does not specify a version number of the GNU Lesser |
General Public License, you may choose any version of the GNU Lesser |
General Public License ever published by the Free Software Foundation. |
If the Library as you received it specifies that a proxy can decide |
whether future versions of the GNU Lesser General Public License shall |
apply, that proxy's public statement of acceptance of any version is |
permanent authorization for you to choose that version for the |
Library. |
/branches/MicroMag3_Nick666/V0.67g/Flight-Ctrl_MEGA644_V0_67g.hex |
---|
0,0 → 1,1981 |
:100000000C948E030C94AB030C94AB030C94AB03D5 |
:100010000C94AB030C94AB030C94AB030C94AB03A8 |
:100020000C94AB030C94AF0C0C94AB030C94AB038B |
:100030000C940D160C94AB030C94AB030C94AB0313 |
:100040000C94AB030C94AB030C94520D0C94DB3664 |
:100050000C9453060C94AB030C941D060C94AB0348 |
:100060000C94FA0D0C94AB030C944B150C94AB034D |
:10007000EC08A409F808A409A409A4093A090B0981 |
:10008000A409A4092D0966096609660966096609B5 |
:100090003E09A409A4092609A4093609240E390E2B |
:1000A000420E4C0E690E810E9A0EB70ED40EF10E52 |
:1000B000BF0F09115111B21108125C12E01287131F |
:1000C000DD13011437147314B114EA14641569159F |
:1000D0007A15881595158D159515A9150A0A0D001F |
:1000E0004E65757472616C0048656164696E67483D |
:1000F0006F6C64000A0D537465756572756E673AAE |
:1001000020004F4B0A0D000A0D4162676C65696360 |
:1001100068204C756674647275636B73656E736F7B |
:10012000722E2E000A0D4B616C69627269657265F0 |
:10013000204B6F6D70617373000A0D42656E7574AC |
:100140007A6520506172616D657465727361747A4D |
:10015000202564000A0D414343206E6963687420C2 |
:1001600061626765676C696368656E21000A0D49A5 |
:100170006E69742E20454550524F4D3A2047656EAA |
:100180006572696572652044656661756C742D5091 |
:100190006172616D657465722E2E2E000A0D3D3DF3 |
:1001A0003D3D3D3D3D3D3D3D3D3D3D3D3D3D3D3D7F |
:1001B0003D3D3D3D3D3D3D3D3D3D3D3D000A0D4606 |
:1001C0006C69676874436F6E74726F6C0A0D486176 |
:1001D0007264776172653A25642E25640A0D536F47 |
:1001E0006674776172653A5625642E25642563200E |
:1001F000002E005A5F52616E67653A2020253469EF |
:1002000000595F52616E67653A20202534690058B5 |
:100210005F52616E67653A2020253469004D4D3389 |
:100220002052616E6765005A5F4F66667365743A67 |
:10023000202025336900595F4F66667365743A2044 |
:100240002025336900585F4F66667365743A202035 |
:10025000253369004D4D33204F66660052616E674D |
:10026000653A2533692D253369005374656C6C75C7 |
:100270006E673A2025336900536574706F696E7438 |
:10028000202025336900536572766F202000506F5F |
:100290007469343A202025336900506F7469333A09 |
:1002A000202025336900506F7469323A20202533AD |
:1002B0006900506F7469313A202025336900537406 |
:1002C0006172743A2020202020253569004D657325 |
:1002D00073776572743A2020253569005269636826 |
:1002E00074756E673A2020253569004B6F6D70611B |
:1002F00073732020202020202000456D70662E5032 |
:100300006567656C3A253569005370616E6E756E70 |
:10031000673A202025356900486F636820253469D5 |
:1003200020282533692900526F6C6C202534692000 |
:100330002825336929004E69636B202534692028FC |
:100340002533692900414343202D2053656E736F87 |
:100350007200476965722025346920282533692990 |
:1003600000526F6C6C2025346920282533692900E0 |
:100370004E69636B2025346920282533692900479D |
:100380006965722025346920282533692900526F58 |
:100390006C6C20253469202825336929004E696357 |
:1003A0006B20253469202825336929004779726F2D |
:1003B000202D2053656E736F720050333A253469D7 |
:1003C000202050343A253469200050313A253469D0 |
:1003D000202050323A253469200047733A25346989 |
:1003E000202047693A25346920004E693A2534694E |
:1003F0002020526F3A25346920004B373A25346962 |
:1004000020204B383A25346920004B353A25346991 |
:1004100020204B363A25346920004B333A25346985 |
:1004200020204B343A25346920004B313A25346979 |
:1004300020204B323A25346920004B6F6D70617378 |
:10044000733A20202025356900526F6C6C3A2020C9 |
:1004500020202020253569004E69636B3A2020203A |
:1004600020202025356900616B742E204C61676562 |
:100470000048F668656E726567656C756E67004B5F |
:1004800065696E6520004F66662020202020203A96 |
:1004900020253569004C756674647275636B3A206B |
:1004A00025356900536F6C6C486F6568653A202587 |
:1004B000356900486F6568653A2020202020253581 |
:1004C000690028632920486F6C6765722042757344 |
:1004D000730053657474696E673A20256420004880 |
:1004E000573A5625642E25642053573A25642E2505 |
:1004F000642563002B2B204D696B726F4B6F7074FA |
:100500006572202B2B005B25695D0000010203044E |
:100510000405060708090A0B0B0C0D0E0F1011112C |
:10052000121314151516171818191A1B1B1C1D1D4C |
:100530001E1F1F202121222323242425252627278F |
:10054000282829292A2A2B2B2C2C2D2D2D2E2E2FF5 |
:100550002F3030303131323232333333343434357A |
:100560003535363636373737373838383939393917 |
:100570003A3A3A3A3B3B3B3B3C3C3C3C3C3D3D3DC4 |
:100580003D3E3E3E3E3E3F3F3F3F3F3F404040407E |
:100590004040414141414141424242424242424344 |
:1005A000434343434343444444444444444445450F |
:1005B00045454545454545464646464646464646E2 |
:1005C00047474747474747474747474848484848B6 |
:1005D0004848484848484949494949494949494991 |
:1005E000494949494A4A4A4A4A4A4A4A4A4A4A4A6F |
:1005F0004A4A4B4B4B4B4B4B4B4B4B4B4B4B4B4B4D |
:100600004B4B4B4C4C4C4C4C4C4C4C4C4C4C4C4C2D |
:100610004C4C4C4C4C4C4D4D4D4D4D4D4D4D4D4D10 |
:100620004D4D4D4D4D4D4D4D4D4D4D4D4E4E4E4EF6 |
:100630004E4E4E4E4E4E4E4E4E4E4E4E4E4E4E4EDA |
:100640004E4E4E4E4E4E4F4F4F4F4F4F4F4F4F4FC0 |
:100650004F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4FAA |
:100660004F4F4F4F4F0000120024003600470059F3 |
:10067000006B007D008F00A000B200C300D500E633 |
:1006800000F80009011A012B013C014D015E016FC8 |
:100690000180019001A001B101C101D101E101F08E |
:1006A0000100020F021F022E023D024B025A026895 |
:1006B00002760284029202A002AD02BA02C702D4FC |
:1006C00002E102ED02F902050310031C03270332C5 |
:1006D000033C03470351035B0364036E037703800A |
:1006E00003880390039803A003A703AF03B503BCDB |
:1006F00003C203C803CE03D303D803DD03E203E63A |
:1007000003EA03ED03F003F303F603F803FA03FC33 |
:1007100003FE03FF03FF03000400040011241FBEB7 |
:10072000CFEFD0E1DEBFCDBF13E0A0E0B1E0EEE05F |
:10073000F9E702C005900D92A23AB107D9F717E088 |
:10074000A2EAB3E001C01D92A13CB107E1F70E940B |
:10075000EB030C94863C0C94000022E030E0D901BD |
:100760000E94683C802D863028F082E0D901082E56 |
:100770000E94753C99270895FB01863008F085E0BA |
:10078000282F2150842F9927A6E42A9FD0011124D5 |
:10079000A65FBF4F019724F001900E94753CFACFED |
:1007A000A2E0B0E0022E0E94753C0895FB01282FC4 |
:1007B000863008F025E0842F99272150A6E42A9F4F |
:1007C000D0011124A65FBF4F019724F00E94683C1E |
:1007D0000192FACF08951F93CF93DF9314B815B801 |
:1007E000189B02C08BE001C08AE08093000181E881 |
:1007F00087B98FEF88B98BE184B981E085B98EE341 |
:100800008AB9579A87EF8BB984B7877F84BF809165 |
:1008100060008861809360001092600080ED97E036 |
:100820009093C1038093C003109254041092530418 |
:1008300010920A0710920907109252041092510464 |
:100840001092500410924F04809100018A3011F4EC |
:10085000289801C0289A0E947C0C0E9423080E94BC |
:10086000F8150E94F40D0E9431150E9421397894E8 |
:100870001092080683E48093090687E080930A06B5 |
:100880002091000187E690E09F938F9383E490E0AE |
:100890009F938F931F921F92822F6AE00E94BB3B0F |
:1008A000892F99279F938F93822F0E94BB3B992773 |
:1008B0009F938F938DEB91E09F938F931F920E9454 |
:1008C000030A8CE991E09F938F931F920E94030A81 |
:1008D000299AA1E0B0E00E94683C802D2DB73EB778 |
:1008E000205F3F4F2DBF843409F43FC08DE691E077 |
:1008F0009F938F931F920E94030A0E942F2310E060 |
:100900000F900F900F90123049F40E949D2246E400 |
:1009100061E377E082E00E94BC0302C0133051F42F |
:100920000E940C2246E461E377E083E00E94BC036E |
:1009300014E002C0143010F00E949D2246E461E3EE |
:1009400077E0812F0E94BC031F5F1630E0F283E046 |
:1009500022E030E0D901082E0E94753C84E4215049 |
:100960003040D901082E0E94753CC4E0D0E0DE0181 |
:100970000E94683C802D853050F084E591E09F9383 |
:100980008F931F920E94030A0F900F900F9022974F |
:10099000DE010E94683C802D863028F082E0DE0176 |
:1009A000082E0E94753C46E461E377E00E94D6037E |
:1009B000DE010E94683C802D863028F082E0DE0156 |
:1009C000082E0E94753C99279F938F9389E391E0AD |
:1009D0009F938F931F920E94030A84EF91E00E94DD |
:1009E0009A0CEC010F900F900F900F900F90CE018A |
:1009F0000E94A30C8823D9F3E0913307FF27EE0F61 |
:100A0000FF1FEB5FF84F8081918185369105C4F01F |
:100A1000E0913407FF27EE0FFF1FEB5FF84F808157 |
:100A200091818536910564F084E291E09F938F93E4 |
:100A30001F920E94030A0E9455380F900F900F904A |
:100A40008091390780FF20C087E091E09F938F93CA |
:100A50001F920E94030A88EE93E00E949A0CEC0118 |
:100A60000E9460100F900F900F90CE010E94A30C77 |
:100A70008823D9F382E091E09F938F931F920E9485 |
:100A8000030A0F900F900F900E949E20809100010A |
:100A90008A3011F4289801C0289A80ED97E090934D |
:100AA000C1038093C00388EE93E090930306809384 |
:100AB000020685E58093FD0584EF90E09F938F9378 |
:100AC0001F920E94030A809139070F900F900F9098 |
:100AD00082FF03C088EE90E002C080EE90E09F931A |
:100AE0008F931F920E94030A0F900F900F908CED2E |
:100AF00090E09F938F931F920E94030A0E94A4107C |
:100B000088E893E190938603809385030F900F907C |
:100B10000F908091BF03882309F462C01092BF0335 |
:100B20000E94C0230E945720209100012A3011F416 |
:100B3000289801C0289A80910301882321F08150D0 |
:100B40008093030110C01092B2031092B30310926D |
:100B50006F0410926E04109271041092700410923F |
:100B600073041092720480914E04882329F08091BE |
:100B70004E04815080934E048091850390918603AA |
:100B8000892B01F585E090E090938603809385039F |
:100B90000E94D21580910403909105038F5F9F4FAF |
:100BA000F9F4809155048823D9F080E197E290937D |
:100BB000C1038093C00380E890E090930503809385 |
:100BC00004030EC080918503909186030197909352 |
:100BD0008603809385032A3011F4289801C0289A4F |
:100BE0000E943E080E94CE08CE010E94A30C8823DA |
:100BF00009F48FCF209108033091090380914907B0 |
:100C00009927281739079CF48091040390910503D4 |
:100C10008F5F9F4F61F480E797E19093C1038093CA |
:100C2000C00380E093E0909305038093040384E67F |
:100C300090E00E949A0CEC016CCF1F920F920FB6BD |
:100C40000F9211248F939F93EF93FF938091010153 |
:100C50008823E1F48091BB039091BC0301969093AB |
:100C6000BC038093BB03FC01E153FB4FE081ED30FB |
:100C700019F08639910539F41092BC031092BB0328 |
:100C800081E080930101E093C60004C01092BC0390 |
:100C90001092BB03FF91EF919F918F910F900FBE28 |
:100CA0000F901F9018951F920F920FB60F9211245C |
:100CB0002F933F934F938F939F93AF93BF93CF9374 |
:100CC000DF93EF93FF938091C6008093A60340913A |
:100CD000B603463910F01092B5038091A6038D300B |
:100CE00009F05CC08091B503823009F057C01092C2 |
:100CF000B503A42FBB27FD01E05FF94F3081ED0163 |
:100D0000CF5ED94F28818091B9039091BA03831B9C |
:100D10009109821B91099F709093BA038093B90344 |
:100D20009C0196E0369527959A95E1F7235C2093F0 |
:100D3000B803982F9F73935C9093B7038081281713 |
:100D400029F48881981711F491E006C08091A903D5 |
:100D50008F5F8093A90390E08091A703882309F017 |
:100D600064C0992309F461C081E08093A703409394 |
:100D7000AA03AE5EB94F8DE08C9380911406823544 |
:100D800009F053C088E190E02CE00FB6F894A895E4 |
:100D9000809360000FBE2093600047C08091B50330 |
:100DA0008130D9F0813018F08230E9F530C080917F |
:100DB000A603833239F48091A703882319F481E0D4 |
:100DC0008093B5038091A6038093120681E08093FF |
:100DD000B6038091A603992715C082E08093B503DE |
:100DE000E42FFF278091A603EE5EF94F80834F5FCB |
:100DF0004093B6032091A6038091B9039091BA0362 |
:100E0000820F911D9093BA038093B9030EC0E42F13 |
:100E1000FF278091A603EE5EF94F8083463938F3B1 |
:100E20001092B503E7CF1092B503FF91EF91DF91D8 |
:100E3000CF91BF91AF919F918F914F913F912F9102 |
:100E40000F900FBE0F901F901895DC0120E030E04E |
:100E500040E050E0EFECF4E005C08191280F311D37 |
:100E60004F5F5F4F4A175B07C1F73F70C90136E01C |
:100E7000969587953A95E1F7835CFD01E153FB4F29 |
:100E8000808311962F73235CFD01E153FB4F208378 |
:100E9000A053BB4F8DE08C93109201018091CF0441 |
:100EA0008093C6000895EF92FF920F931F93CF9304 |
:100EB000DF937A01722F93E29093CF046093D00472 |
:100EC0008093D10403E010E060E0A2EDB4E046C0FE |
:100ED000F701E60FF11D90816F5F715019F4E0E0AA |
:100EE00040E00FC0F701E60FF11D40816F5F7150C8 |
:100EF00011F4E0E006C0F701E60FF11DE0816F5F3D |
:100F00007150892F86958695835C8C935527892F00 |
:100F100099278370907024E0880F991F2A95E1F734 |
:100F20009A0194E0369527959A95E1F7822B835C98 |
:100F3000ED0189834F705070440F551F440F551FAA |
:100F40008E2F8295869586958370842B835C8A8309 |
:100F5000EF73E35CEB830C5F1F4F1496772309F06C |
:100F6000B7CFC8010E942507E6E0CDB7DEB70C94E5 |
:100F7000533C1F93CF93DF93EC0170E0A22FBB276C |
:100F8000129748C0E42FFF27EE5EF94F30814F5F84 |
:100F9000E42FFF27EE5EF94F50814F5FE42FFF27CC |
:100FA000EE5EF94F10814F5FE42FFF27EE5EF94FA1 |
:100FB00020814F5F842F9927A817B90774F15D53DB |
:100FC000FE01E70FF11D3D53330F330F852F82953F |
:100FD0008F70382B3083613001F1912F9D537F5FEB |
:100FE000FE01E70FF11D71505295507F892F8695B4 |
:100FF0008695582B508363506F3F79F07E5FFE01DA |
:10100000E70FF11D9295990F990F907C2D53922B1C |
:1010100090837F5F662309F0B5CFDF91CF911F9159 |
:1010200008951F93182F8A3019F48DE00E9411083B |
:101030008091C00085FFFCCF1093C60080E090E057 |
:101040001F9108950895E1ECF0E088E18083A0EC21 |
:10105000B0E08C9182608C938081806880838081F5 |
:10106000806480838AE28093C40088EC90E00E94D0 |
:101070009A0C9093FC058093FB05089580910101E3 |
:10108000882309F48AC08091A203882371F080919B |
:101090000101882351F02BE04DEF55E06091CE0423 |
:1010A00087E40E9453071092A2038091FB05909160 |
:1010B000FC050E94A30C882321F48091A4038823BB |
:1010C000B1F080910101882391F022E448EA56E0D2 |
:1010D0006091CE0484E40E9453071092A40384EF2D |
:1010E00091E00E949A0C9093FC058093FB0560911F |
:1010F00002016F3F89F0462F552734E0440F551FFA |
:101100003A95E1F74C5F5E4F605D20E181E40E941B |
:1011100053078FEF809302018091A303882359F135 |
:1011200080910101882339F10E94AD101092A30330 |
:101130003091AC03932F9F5F9093AC03943021F0D8 |
:101140008091AD03882359F026E145E057E060E047 |
:1011500084E30E9453078FEF8093AC030CC044E1FB |
:10116000949FA0011124465E5C4F24E160E0832F30 |
:101170008F5C0E9453078091A503882371F08091B2 |
:101180000101882351F02AE048E056E06091CE0446 |
:1011900086E50E9453071092A5030895A2E0B0E0EF |
:1011A000E4EDF8E00C943A3C8091A703882309F41D |
:1011B000CDC08FEF80930301809114069927AA2751 |
:1011C000BB27FC01E156F040E631F10508F0BCC058 |
:1011D000E85CFF4F0C94623C2091AA0343E062E07C |
:1011E000CE0101960E94B907898180930201ACC0AB |
:1011F0002091AA0343E06BE08DEF95E00E94B907D0 |
:101200008091E6039091FF05892B8093E60381E0AE |
:101210008093A40399C02091AA0343E062E0CE0129 |
:1012200001960E94B9078091E6039981892B8093EA |
:10123000E6038A818F3F21F481E08093AD0302C0F1 |
:101240001092AD0381E08093A3037EC02091AA0396 |
:1012500043E064E08EEA93E006C02091AA0343E0F5 |
:1012600063E082EB93E00E94B9076EC081E0809357 |
:10127000A5036AC081E08093A20366C02091AA03FF |
:1012800043E062E0CE0101960E94B90789818F3F59 |
:1012900089F0863010F085E0898346E461E377E0E9 |
:1012A00089810E94D603898126E441E357E0609159 |
:1012B000CE0408C01091CE040E94AD0326E441E3A1 |
:1012C00057E0612F855B0E9453073EC02091AA031F |
:1012D00043E066E481E397E00E94B9078091140639 |
:1012E00046E461E377E08B560E94BC0380911406CC |
:1012F0008B56A2E0B0E0082E0E94753C60915C071E |
:1013000077278827992724EC39E040E050E00E94B5 |
:101310009C3B609387037093880380938903909329 |
:101320008A0360915D077727882799270E949C3B55 |
:1013300060938B0370938C0380938D0390938E0343 |
:101340000E94AD030E94F7211092A703E3E0CE5F55 |
:101350000C94563C982F8091EA06813069F4809174 |
:10136000E503E82FFF27E65EFC4F90838F5F8093B5 |
:10137000E50321E030E005C0892F0E941108282FE5 |
:101380003327C90108951F93182F04C080E30E94DA |
:10139000AA0911501116D4F31F9108951F93182F05 |
:1013A00004C080E20E94AA0911501116D4F31F91C3 |
:1013B00008950F931F93CF93DF938C01EB0108C027 |
:1013C000F8010F5F1F4FE4918E2F0E94AA09219709 |
:1013D0002097B1F7DF91CF911F910F9108950F934F |
:1013E0001F93CF93DF938C01EB0106C0F80181912D |
:1013F0008F010E94AA0921972097C1F7DF91CF9111 |
:101400001F910F910895A3E3B0E0E9E0FAE00C9496 |
:101410002B3C29968FAD29978093EA06CE01855BF8 |
:101420009F4F9D838C832B968EAD9FAD2B979FA74F |
:101430008EA722243324210102C0130124010EA50A |
:101440001FA502C00F5F1F4FF801F490FF2019F095 |
:10145000F5E2FF16B9F7B8018EA59FA5681B790BB9 |
:1014600011F00E94D909FF2009F442C20F5F1F4FFB |
:101470001FA70EA71982AC81BD811BAA1AAA9FEFD4 |
:1014800099ABEEA5FFA5CF0101969FA78EA7B490BB |
:1014900095E7B91621F08B2D8062883789F4EBA986 |
:1014A000E0FF07C02D903D904D905C9013971496EF |
:1014B00007C08D919C9111971C01442455241296CC |
:1014C000F0E2BF1621F489818823D9F685C083E232 |
:1014D000B81609F483C09AE2B91621F0EDE2BE16FF |
:1014E00069F408C0FD011296E081EAABE7FFC9CFBD |
:1014F000E195EAABFBA9F061FF7D72C08BE2B81603 |
:1015000009F46AC09EE2B916B1F52EA53FA52F5F7A |
:101510003F4FEEA5FFA584918A3221F0B82E20E03E |
:1015200030E01BC0FD0112964081518157FF02C07F |
:101530004FEF5FEF49AB3FA72EA7A3CFC90103E051 |
:10154000880F991F0A95E1F7220F331F280F391FC3 |
:101550002B0D311D20533040B49031968B2D80538C |
:101560008A3060F3FFA7EEA7A90137FF02C04FEF53 |
:101570005FEF49AB8DCFF0E3BF1631F48BA984FD4B |
:1015800080CF80628BAB7DCF8B2D81538930E8F487 |
:1015900020E030E0C901F3E0880F991FFA95E1F7E8 |
:1015A000220F331F280F391F2B0D311D20533040C0 |
:1015B000EEA5FFA5CF0101969FA78EA7B4908B2D16 |
:1015C00080538A3038F32AAB63CF98E6B91651F4CA |
:1015D000EBA9E460EBAB55CFB98253CFFBA9F86020 |
:1015E000FBAB4FCF8CE6B81621F49BA991609BAB67 |
:1015F00048CFBD83AC83E3E6BE1639F41296BD83B3 |
:10160000AC8312978C918E8318C1F4E4BF1639F025 |
:1016100084E6B81639F099E6B91659F503C0EBA976 |
:10162000E160EBABFBA9F0FF08C01496BD83AC836F |
:101630005E904E903E902E900AC01296BD83AC8371 |
:101640009E918E911C01442437FC4094542C57FCED |
:1016500003C08AE088AB92C05094409430942094A8 |
:10166000211C311C411C511C8DE289839AE098ABEE |
:1016700085C0EFE4BE1629F0FFE6BF1639F488E016 |
:1016800061C09BA991609BABE8E056C0F0E7BF1634 |
:1016900071F41296BD83AC839E918E911C014424FB |
:1016A00055248BA980648BAB78E7B72E5EC0E3E747 |
:1016B000BE16D9F51296BD83AC83DE90CE90C114D0 |
:1016C000D10489F488E28E838EE68F8385E788874C |
:1016D0008CE689878A8789E28B871C8666E0C62E1E |
:1016E000D12CCC0EDD1EF9A9F7FD13C04F2F5527C5 |
:1016F00047FD509560E070E0C6010E94273A0097D0 |
:1017000011F419A90DC08C1919A981174CF4182FBF |
:1017100007C0F60101900020E9F731971E2F1C1930 |
:1017200019824201310140E094C085E5B81631F0DC |
:1017300095E7B91649F4EAE0E8AB1FC0FBA9F160F0 |
:10174000FBAB8AE088AB19C098E5B91621F0E8E751 |
:10175000BE1609F06EC0FBA9F3FD02C080E1F2CF16 |
:10176000211431044104510419F490E198AB05C0EF |
:10177000EBA9E064EBABF0E1F8AB198289A987FD36 |
:1017800003C09BA99F7D9BAB2114310441045104EC |
:1017900061F4E9A9EE2349F46624772443015EE26B |
:1017A000C52ED12CCC0EDD1E3EC04EE2C42ED12C57 |
:1017B000CC0EDD1EF8A9EF2EFF2400271127C20151 |
:1017C000B101A80197010E94EE3B6A3020F430E39A |
:1017D000A32EA60E08C027E5A22EA60E88E5B816F1 |
:1017E00011F49FEDA922F601A2926F01C201B1018D |
:1017F000A80197010E94EE3B39014A012E143F04D3 |
:101800004006510618F019012A01D9CFF8A9F8307D |
:1018100051F48BA983FF07C090E3A91621F080E360 |
:10182000F60182936F01CE018C19182F125D49A920 |
:1018300010C0BB2009F45CC0BE8219824201310194 |
:1018400000E096E0C92ED12CCC0EDD1E11E021E087 |
:1018500005C0212F042F011B07FD00E0898188238B |
:1018600019F0812F8F5F07C09BA996FD02C0812FC1 |
:1018700002C0822F8E5FA82EA00EEBA9EE2EFF24B1 |
:1018800080E3482E512C4E205F204114510421F456 |
:101890008AA98A190E94CE098981882329F061E0EA |
:1018A00070E0CE01019609C0E6FE09C080E38A839C |
:1018B000BB8262E070E0CE0102960E94EF09F0E286 |
:1018C0004F16510421F48AA98A190E94C309802F56 |
:1018D0000E94C309612F772767FD7095C6010E949A |
:1018E000EF09E4FEAACD8AA98A190E94CE09A5CDE6 |
:1018F000E2E1CD5C0C94473C82E085BD83EA84BD87 |
:1019000017BC88E788BD96E096BD83EC8093B00055 |
:101910009093B100E0E7F0E0808182608083EEE6A2 |
:10192000F0E08081816080838AE08093B300109230 |
:10193000B20008952091BD033091BE032F5F3F4F49 |
:10194000820F931F08952091BD033091BE03821B27 |
:10195000930B892F992786958074992708951F9254 |
:101960000F920FB60F921124EF92FF920F931F93D5 |
:101970002F933F934F935F936F937F938F939F9397 |
:10198000AF93BF93CF93DF93EF93FF9380910603C1 |
:101990008150809306038F3F09F069C083E88093EC |
:1019A000B00080919C03C82FDD27D093C303C09360 |
:1019B000C20380916607E0905307209101043091A3 |
:1019C0000204409103045091040480FF18C0FF24D6 |
:1019D00000271127CA01B90120E830E040E050E0BB |
:1019E0000E94103CC801B7010E949C3B20E032E0FD |
:1019F00040E050E00E94103CC20FD31F17C0FF24EC |
:101A000000271127CA01B90120E830E040E050E08A |
:101A10000E94103CC801B7010E949C3B20E032E0CC |
:101A200040E050E00E94103CC21BD30BD093C30394 |
:101A3000C093C2032091C2033091C3038091540725 |
:101A400099272817390734F080915507992782176D |
:101A5000930724F49093C3038093C2038091C2033D |
:101A60008093B300809156078093060304C083E0FF |
:101A70008093B0005F98FF91EF91DF91CF91BF917C |
:101A8000AF919F918F917F916F915F914F913F9116 |
:101A90002F911F910F91FF90EF900F900FBE0F901D |
:101AA0001F9018951F920F920FB60F9211242F932B |
:101AB0003F934F935F936F937F938F939F93AF93D6 |
:101AC000BF93EF93FF938091C40381508093C4032D |
:101AD0008F3FB9F48AE08093C403809107038F5F3E |
:101AE000817080930703882319F481E08093BF03FA |
:101AF0008091BD039091BE0301969093BE038093A5 |
:101B0000BD038091C0039091C1030297B0F0809112 |
:101B1000C0039091C10301979093C1038093C003C8 |
:101B20008091C0039091C10320910403309105037B |
:101B300082239323892BD1F406C08FEF9FEF9093DC |
:101B4000050380930403809100018A3039F404C0B6 |
:101B50005A9A05C0479A03C05A9801C04798809185 |
:101B6000390783FF08C00E94233805C08091000117 |
:101B70008A3081F7EDCFFF91EF91BF91AF919F91A7 |
:101B80008F917F916F915F914F913F912F910F9026 |
:101B90000FBE0F901F9018952091BD033091BE038A |
:101BA0002F5F3F4F280F391F4FEE02C040937A003E |
:101BB0008091BD039091BE03B901681B790B77FF3B |
:101BC000F5CF08952091BD033091BE032F5F3F4FA5 |
:101BD000280F391F8091BD039091BE03A901481BB6 |
:101BE000590B57FFF7CF089510927C008FEE80932A |
:101BF0007A0008951F920F920FB60F921124DF9270 |
:101C0000EF92FF920F931F932F933F934F935F9306 |
:101C10006F937F938F939F93AF93BF93CF93DF93F4 |
:101C2000EF93FF9310927A008091E103D82ED39422 |
:101C3000D092E103E82FFF27EB30F10508F022C234 |
:101C4000E25BFF4F0C94623C8091780090917900A8 |
:101C50009093E0038093DF0381E08093E20380911F |
:101C6000D9039091DA0301969093DA038093D90314 |
:101C7000FFC180917800909179009093DE0380936A |
:101C8000DD0390C080917800909179009093DC03FF |
:101C90008093DB0384E070C14091080350910903F5 |
:101CA00080917800909179009A01220F331F240FC0 |
:101CB000351F63E070E00E94C73B260F371F369543 |
:101CC000279536952795309309032093080386E0DE |
:101CD00053C18091FB039091FC03209178003091D7 |
:101CE0007900821B930B9093EC068093EB06809116 |
:101CF000EB069091EC069093CC038093CB0387E0A6 |
:101D00003BC180917800909179002091F903309146 |
:101D1000FA03821B930B9093F7068093F60680914B |
:101D2000F6069091F7069093CE038093CD03109220 |
:101D3000E2039EC1809100012091DF033091E00316 |
:101D40008A3049F48091780090917900820F931F36 |
:101D50009695879506C08091780090917900820FC2 |
:101D6000931F9093CA038093C90381E005C18091BA |
:101D700000012091DD033091DE038A3049F4809127 |
:101D8000780090917900820F931F9695879506C0F1 |
:101D90008091780090917900820F931F9093C803EF |
:101DA0008093C70382E0E8C0809100012091DB03AB |
:101DB0003091DC038A3049F4809178009091790069 |
:101DC000820F931F9695879506C080917800909119 |
:101DD0007900820F931F9093C6038093C50385E01B |
:101DE000CBC06091780070917900E090FD03F09095 |
:101DF000FE030091FF0310910004882777FD809572 |
:101E0000982F0E94DA3AA80197010E94343A0E9462 |
:101E1000BD3A7093D0036093CF032091CF033091EC |
:101E2000D003E091EB06F091EC068091F6069091DC |
:101E3000F70697FF03C0909581959F4F64E070E08F |
:101E40000E94DB3BEB01CF01F7FF03C0909581952A |
:101E50009F4F64E070E00E94DB3B260F371F2C0F82 |
:101E60003D1F3093D0032093CF038091CF039091F7 |
:101E7000D003029704F16091FD037091FE038091FD |
:101E8000FF039091000420E030E048E454E40E9415 |
:101E9000E43A88230CF03CC06091FD037091FE038E |
:101EA0008091FF03909100042AE037ED43EA5CE360 |
:101EB0000E94353A25C08091CF039091D0038F5F67 |
:101EC0009F4F34F56091FD037091FE038091FF03F5 |
:101ED0009091000420E030E046E154E40E94E73AAB |
:101EE0001816B4F46091FD037091FE038091FF0316 |
:101EF000909100042AE037ED43EA5CE30E94343A13 |
:101F00006093FD037093FE038093FF03909300049E |
:101F100081E08093D603809178009091790090932E |
:101F2000EE068093ED06E090CF03F090D0030027FB |
:101F3000F7FC0095102F8091390490913A04A091FC |
:101F40003B04B0913C04E80EF91E0A1F1B1FC80198 |
:101F5000B70120E034E040E050E00E94103CE21A7B |
:101F6000F30A040B150BE0923904F0923A04009343 |
:101F70003B0410933C0483E08093E20379C080919A |
:101F8000FB069091FC062091780030917900820F39 |
:101F9000931F9093FC068093FB068091F3068F5F5E |
:101FA0008093F3068091F306853008F46BC080912E |
:101FB00078009091790090930F0380930E03109214 |
:101FC000F3068091EF069091F0062091FB06309188 |
:101FD000FC06821B930B2091560430915704821B00 |
:101FE000930B9093D8038093D7036091FB06709175 |
:101FF000FC06E0900A03F0900B0300910C03109193 |
:102000000D03882777FD8095982FA8019701220F4F |
:10201000331F441F551F2E0D3F1D401F511F620FC0 |
:10202000731F841F951F24E030E040E050E00E94C1 |
:10203000103C20930A0330930B0340930C035093FE |
:102040000D032091EF063091F00680910A039091E4 |
:102050000B03A0910C03B0910D03281B390B309397 |
:102060005704209356041092FC061092FB060AC0F7 |
:102070008091E20380937C00DD2051F08FEE80930D |
:102080007A0006C01092E2031092E10310927C00E5 |
:10209000FF91EF91DF91CF91BF91AF919F918F9180 |
:1020A0007F916F915F914F913F912F911F910F9170 |
:1020B000FF90EF90DF900F900FBE0F901F9018953C |
:1020C000CF93DF93A3E0B0E00E94683C802DC82F3F |
:1020D000DD27C531D10508F02A97C7BD84E690E019 |
:1020E0000E94CC0D80910E0390910F038255934076 |
:1020F000D0F4C0E0D0E017C0C7BD82E390E00E94FA |
:10210000CC0D81EF91E09F938F931F920E94030A61 |
:1021100080910E0390910F030F900F900F908458B1 |
:10212000934020F02196CA3FD10530F3A3E0B0E000 |
:102130000C2E0E94753CC093F8068CE291E00E9440 |
:10214000CC0DDF91CF910895EAE1F3E080E2819335 |
:1021500093E0EA36F907D9F708951F938091E603D3 |
:10216000282F3327C90181709070682F8823A9F028 |
:102170008091E703882311F0815002C080916A03A7 |
:102180008093E703EAE1F3E080E2819393E0EA36AB |
:10219000F907D9F78FEF8093AC03A9014270507013 |
:1021A00021FF10C08091E7038F5F8093E703EAE18E |
:1021B000F3E080E2819393E0EA36F907D9F78FEFF5 |
:1021C0008093AC03662321F0452B11F01092E703B6 |
:1021D00081E18093E5038091E70399279F938F9393 |
:1021E00086E095E09F938F9381E08F930E94030A8E |
:1021F0008091E7030F900F900F900F900F90E82FB2 |
:10220000FF27ED30F10508F023C4E75AFF4F0C9487 |
:10221000623C1092E50384EF94E09F938F9311E06A |
:102220001F930E94030A84E18093E503209100013B |
:1022300087E690E09F938F9383E490E09F938F9342 |
:102240001F921F92822F6AE00E94BB3B892F992721 |
:102250009F938F93822F0E94BB3B99279F938F93CD |
:102260008FED94E09F938F931F930E94030A88E25F |
:102270008093E5030E94AD0399279F938F9382ED8E |
:1022800094E09F938F931F930E94030A8CE38093A3 |
:10229000E50382EC94E09F938F931F930E94030ABF |
:1022A00088C28091390780FF44C01092E503809175 |
:1022B0005604909157049F938F9383EB94E09F93E0 |
:1022C0008F9311E01F930E94030A84E18093E5033A |
:1022D00080915804909159049F938F9384EA94E0DD |
:1022E0009F938F931F930E94030A88E28093E503D4 |
:1022F00080910E0390910F039F938F9385E994E053 |
:102300009F938F931F930E94030A8CE38093E503AE |
:102310008091F80699279F938F9386E894E09F9386 |
:102320008F931F930E94030A8DB79EB744968DBF6B |
:1023300094C384E18093E5038FE794E09F938F93A8 |
:1023400011E01F930E94030A88E28093E50381E76E |
:1023500094E09F938F931F930E94030A8DB79EB7BB |
:102360000696E5CF1092E50387E694E09F938F935E |
:1023700011E01F930E94030A84E18093E5036091BA |
:10238000010470910204809103049091040420E000 |
:1023900034E040E050E00E94103C5F934F933F9345 |
:1023A0002F9388E594E09F938F931F930E94030AD5 |
:1023B00088E28093E5036091090470910A0480919A |
:1023C0000B0490910C0420E034E040E050E00E94C7 |
:1023D000103C5F934F933F932F9389E494E09F9336 |
:1023E0008F931F930E94030A8CE38093E5038091EF |
:1023F0003D0490913E049F938F938AE394E09F93D2 |
:102400008F931F930E94030A8DB79EB746968FCF76 |
:102410001092E5038091090790910A072091070720 |
:10242000309108079F938F933F932F938AE294E014 |
:102430009F938F9311E01F930E94030A84E180937E |
:10244000E50380910D0790910E0720910B073091C5 |
:102450000C079F938F933F932F938AE194E09F9370 |
:102460008F931F930E94030A88E28093E503809173 |
:1024700011079091120720910F07309110079F9339 |
:102480008F933F932F938AE094E09F938F931F93B2 |
:102490000E94030A8CE38093E503809115079091D5 |
:1024A000160720911307309114079F938F933F9342 |
:1024B0002F938AEF93E07BC01092E503E0913207FF |
:1024C000FF27EE0FFF1FEB5FF84F20813181E09176 |
:1024D0003107FF27EE0FFF1FEB5FF84F80819181DF |
:1024E0003F932F939F938F938AEE93E09F938F93C5 |
:1024F00011E01F930E94030A84E18093E503E091B9 |
:102500003407FF27EE0FFF1FEB5FF84F208131816B |
:10251000E0913307FF27EE0FFF1FEB5FF84F80813D |
:1025200091813F932F939F938F938AED93E09F9395 |
:102530008F931F930E94030A88E28093E503E09142 |
:102540003607FF27EE0FFF1FEB5FF84F2081318129 |
:10255000E0913507FF27EE0FFF1FEB5FF84F8081FB |
:1025600091813F932F939F938F938AEC93E09F9356 |
:102570008F931F930E94030A8CE38093E503E091FD |
:102580003807FF27EE0FFF1FEB5FF84F20813181E7 |
:10259000E0913707FF27EE0FFF1FEB5FF84F8081B9 |
:1025A00091813F932F939F938F938AEB93E09F9317 |
:1025B0008F931F930E94030A8DB79EB74C96B7CE98 |
:1025C0001092E5038CEA93E09F938F9311E01F93A1 |
:1025D0000E94030A0F900F900F9080910001E091EC |
:1025E000EF03F091F0038A30F1F584E18093E50385 |
:1025F0008091C5039091C603FF93EF938E1B9F0BB1 |
:102600009F938F938DE993E09F938F931F930E94E5 |
:10261000030A88E28093E5032091F1033091F203ED |
:102620008091C7039091C8033F932F93821B930B14 |
:102630009F938F938EE893E09F938F931F930E94B5 |
:10264000030A8CE38093E5038091F3039091F403F4 |
:102650009F938F938091A0079091A1079F938F9351 |
:102660008FE793E04BC084E18093E5032091C5039D |
:102670003091C603CF0162E070E00E94DB3B7F93A4 |
:102680006F932E1B3F0B3F932F9380E793E09F9315 |
:102690008F931F930E94030A88E28093E503E091E1 |
:1026A000F103F091F2032091C7033091C803CF01E9 |
:1026B00062E070E00E94DB3B7F936F932E1B3F0B29 |
:1026C0003F932F9381E693E09F938F931F930E94F4 |
:1026D000030A8CE38093E5038091F3039091F40364 |
:1026E00062E070E00E94DB3B7F936F938091A007D4 |
:1026F0009091A1079F938F9382E593E09F938F938F |
:102700001F930E94030A8DB79EB7459610CE109274 |
:10271000E50385E493E09F938F9311E01F930E945C |
:10272000030A84E18093E5038091F9039091FA0311 |
:102730002091CD033091CE039F938F933F932F939E |
:1027400086E393E09F938F931F930E94030A88E28E |
:102750008093E5038091FB039091FC032091CB03D0 |
:102760003091CC039F938F933F932F9387E293E015 |
:102770009F938F931F930E94030A8CE38093E5033A |
:102780006091FD037091FE038091FF03909100041E |
:102790000E94BD3A7F936F9380918807909189073B |
:1027A0009F938F9388E193E09F938F931F930E9451 |
:1027B000030A8DB79EB74896BACD84E18093E503AE |
:1027C00080910803909109039F938F9389E093E090 |
:1027D0009F938F9311E01F930E94030A88E28093D6 |
:1027E000E50380914E0499279F938F938AEF92E09F |
:1027F0009F938F931F930E94030A8DB79EB70A96EB |
:1028000096CD1092E5038BEE92E09F938F9311E0AB |
:102810001F930E94030A84E18093E50380914104A1 |
:10282000909142049F938F938CED92E09F938F93AE |
:102830001F930E94030A88E28093E50380913D0480 |
:1028400090913E049F938F938DEC92E09F938F9392 |
:102850001F930E94030A8CE38093E50380913F0459 |
:10286000909140049F938F938EEB92E0E8C010927A |
:10287000E50380914604909147049F938F9382EBE8 |
:1028800092E09F938F9311E01F930E94030A84E1CB |
:102890008093E50380914804909149049F938F931E |
:1028A00086EA92E09F938F931F930E94030A88E227 |
:1028B0008093E50380914A0490914B049F938F93FA |
:1028C0008AE992E09F938F931F930E94030A8CE3FF |
:1028D0008093E50380914C0490914D049F938F93D6 |
:1028E0008EE892E01CCD1092E50386E892E09F937B |
:1028F0008F9311E01F930E94030A84E18093E50304 |
:1029000080919C0399279F938F9388E792E09F93F0 |
:102910008F931F930E94030A88E28093E5038091BE |
:10292000C2039091C3039F938F938AE692E09F9393 |
:102930008F931F930E94030A8CE38093E503809199 |
:10294000550799279F938F938091540799279F93B9 |
:102950008F938CE592E09F938F931F930E94030ABD |
:10296000E3CC1092E50384E592E09F938F9311E00E |
:102970001F930E94030A84E18093E5038091AE07D0 |
:10298000992787FD90959F938F9385E492E09F937D |
:102990008F931F930E94030A88E28093E50380913E |
:1029A000AF07992787FD90959F938F9386E392E0D9 |
:1029B0009F938F931F930E94030A8CE38093E503F8 |
:1029C0008091B007992787FD90959F938F9387E219 |
:1029D00092E035C01092E5038DE192E09F938F93D2 |
:1029E00011E01F930E94030A84E18093E503809124 |
:1029F000B1079091B2079F938F938FE092E09F93DE |
:102A00008F931F930E94030A88E28093E5038091CD |
:102A1000B3079091B4079F938F9381E092E09F93C7 |
:102A20008F931F930E94030A8CE38093E5038091A8 |
:102A3000B5079091B6079F938F9383EF91E09F9393 |
:102A40008F931F930E94030A8DB79EB742966FCC57 |
:102A5000815080936A031092E7031092E6031F915E |
:102A600008951092B9008AE28093B800089585EA2B |
:102A70008093BC0080E090E0089584E98093BC00DE |
:102A800008951092B9008093BB0085E88093BC0044 |
:102A900080E090E008951F920F920FB60F921124DC |
:102AA0008F939F93EF93FF938091E8038F5F8093C1 |
:102AB000E8038150E82FFF27E830F10508F064C0F3 |
:102AC000EA59FF4F0C94623C8091E903880F8E5ABB |
:102AD00009C08091E9038F5F8093E903815027C08B |
:102AE00080917B071092B9008093BB0085E88093AA |
:102AF000BC004AC084E98093BC008091E903843023 |
:102B000018F41092E80302C01092E90385EAEFCFAF |
:102B10008091EA03880F8D5AE5CF8091BB00E09148 |
:102B2000EA03FF27E350F94F80838091EA03813065 |
:102B300039F08130A8F2823031F0833029F506C0B7 |
:102B400080918007CFCF80919807CCCF80919A0752 |
:102B5000C9CF8091EA039091BB00E82FFF27E35093 |
:102B6000F94F94838F5F8093EA03843010F01092C2 |
:102B7000EA0384E98093BC008AE090E090938603A6 |
:102B8000809385031092E8038091BC008068809355 |
:102B9000BC00FF91EF919F918F910F900FBE0F900E |
:102BA0001F9018954CEB50E084E9DA018C93109259 |
:102BB000E8032BEB30E0F90180811092E90380E813 |
:102BC0008C931092BD001092BA001082E9EBF0E0F5 |
:102BD0001082A8EBB0E01C9210828AE28C9385EA06 |
:102BE000DA018C931082F901108285E88C930895A4 |
:102BF00083EC80938100EFE6F0E080818062808347 |
:102C00001092F4031092F3031092F2031092F10366 |
:102C10001092F0031092EF0308951F920F920FB6D7 |
:102C20000F9211240F931F932F933F934F935F9312 |
:102C30006F937F938F939F93AF93BF93CF93DF93C4 |
:102C4000EF93FF9320918600309187008091ED03F0 |
:102C50009091EE03281B390B80918600909187009C |
:102C60009093EE038093ED03C9018D549440C0917D |
:102C7000EB03D091EC03835F9A4158F4249714F04E |
:102C800010926B0381E090E09093EC038093EB0350 |
:102C90005CC0CA30D1050CF058C0C9018B5F9040B0 |
:102CA000845B914008F040C0A901425D5140FE01A3 |
:102CB000EE0FFF1FEB5FF84F80819181FA01E81B57 |
:102CC000F90BCF01F7FF03C0909581959F4F0697B1 |
:102CD0004CF480914E04883C28F480914E04865F29 |
:102CE00080934E04FE01EE0FFF1F8F010B5F184F04 |
:102CF000D8012D913C91C901880F991F820F931F14 |
:102D0000840F951F64E070E00E94DB3BD8018D9139 |
:102D10009C9111979B01281B390BE55EF84F31837D |
:102D2000208311967C936E93FE013196F093EC0311 |
:102D3000E093EB03E530F10511F45D9A05C05D9871 |
:102D4000369711F45C9A01C05C98FF91EF91DF9186 |
:102D5000CF91BF91AF919F918F917F916F915F9133 |
:102D60004F913F912F911F910F910F900FBE0F9098 |
:102D70001F901895A2E1B0E0E0ECF6E10C942B3C3A |
:102D80008091C9039091CA034090F3035090F403DB |
:102D9000481A590A5092A1074092A0078091C70390 |
:102DA0009091C803988B8F87A091F103B091F203A3 |
:102DB000BA8BA98BE091C503F091C603FE87ED871E |
:102DC0008091EF039091F0039C878B876091CD03F6 |
:102DD0007091CE03E0909D07F0909E070027F7FCCE |
:102DE0000095102F882777FD8095982F2CE030E0F4 |
:102DF00040E050E00E949C3BE60EF71E081F191FA2 |
:102E0000C801B70122E030E040E050E00E94103CF1 |
:102E100030939E0720939D076091CB037091CC0364 |
:102E2000E090A707F090A8070027F7FC0095102F67 |
:102E3000882777FD8095982F2CE030E040E050E027 |
:102E40000E949C3BE60EF71E081F191FC801B70120 |
:102E500022E030E040E050E00E94103C3093A807B0 |
:102E60002093A7072091CF033091D003609188076A |
:102E700070918907882777FD8095982F442737FD23 |
:102E80004095542F620F731F841F951F22E030E07E |
:102E900040E050E00E94103C30938907209388075F |
:102EA0002091CD033091CE03C901880F991F820F65 |
:102EB000931F880F991F880F991FAA2797FDA09528 |
:102EC000BA2F2091110430911204409113045091B3 |
:102ED0001404280F391F4A1F5B1F209311043093DD |
:102EE000120440931304509314042091CB033091A7 |
:102EF000CC03C901880F991F820F931F880F991F58 |
:102F0000880F991FAA2797FDA095BA2F2091150425 |
:102F1000309116044091170450911804280F391F5E |
:102F20004A1F5B1F20931504309316044093170427 |
:102F300050931804E090ED06F090EE06A090FD038B |
:102F4000B090FE03C090FF03D0900004609119047C |
:102F500070911A0480911B0490911C040E94DA3A2B |
:102F60003B014C010027F7FC0095102FC801B70169 |
:102F70000E94DA3AA60195010E94343A9B01AC0105 |
:102F8000C401B3010E94353A0E94BD3A609319040E |
:102F900070931A0480931B0490931C045201CC2458 |
:102FA000B7FCC094DC2C60903104709032048090A7 |
:102FB0003304909034046A0C7B1C8C1C9D1C609222 |
:102FC00031047092320480923304909234048091E0 |
:102FD000350490913604A0913704B09138048A0DDD |
:102FE0009B1DAC1DBD1D8093350490933604A093AA |
:102FF0003704B093380490915E049A87992309F0BE |
:103000005FC080915F04882309F05AC0809139071E |
:1030100086FF56C0E0906C04FF24002711276091C2 |
:10302000210470912204809123049091240420E0D3 |
:1030300030E140E050E00E94103CCA01B901A80113 |
:1030400097010E949C3B9B01AC01C601B5010E9407 |
:103050009C3B20E038E040E050E00E94103C209390 |
:10306000B5043093B6044093B7045093B80460910C |
:10307000290470912A0480912B0490912C0420E063 |
:1030800030E140E050E00E94103CCA01B901A801C3 |
:1030900097010E949C3B9B01AC01C601B5010E94B7 |
:1030A0009C3B20E038E040E050E00E94103C209340 |
:1030B000B1043093B2044093B3045093B40410C0ED |
:1030C0001092B1041092B2041092B3041092B4049E |
:1030D0001092B5041092B6041092B7041092B8047E |
:1030E0008091B5049091B604A091B704B091B80452 |
:1030F0008E839F83A887B9878091B1049091B20491 |
:10310000A091B304B091B4048A839B83AC83BD8344 |
:1031100080916D04282E332444245524EF84F888AC |
:10312000A989BA89EA1AFB0AEE81FF81EE0EFF1E19 |
:103130006A817B818C819D81A20191010E949C3BCF |
:1031400020E032E040E050E00E94103CE20EF31E2E |
:10315000F0927A07E09279079701442737FD40956E |
:10316000542F80912D0490912E04A0912F04B091A2 |
:103170003004820F931FA41FB51F80932D049093DA |
:103180002E04A0932F04B093300480915A049091A0 |
:103190005B04E81AF90A0027F7FC0095102F8091CC |
:1031A000290490912A04A0912B04B0912C04E80EDC |
:1031B000F91E0A1F1B1FE0922904F0922A040093B3 |
:1031C0002B0410932C04A0908B03B0908C03C09020 |
:1031D0008D03D0908E03AE14BF04C006D106C4F494 |
:1031E00080E197E2A0E0B0E08A199B09AC09BD0933 |
:1031F0008093290490932A04A0932B04B0932C0469 |
:1032000080932D0490932E04A0932F04B093300448 |
:1032100022273327A9012A193B094C095D0980910E |
:10322000290490912A04A0912B04B0912C048217B8 |
:103230009307A407B507B4F4D601C501805197429E |
:10324000A040B0408093290490932A04A0932B04BB |
:10325000B0932C0480932D0490932E04A0932F04FC |
:10326000B09330048091C7039091C8030F9734F452 |
:1032700088E19CEF90937A07809379078091C70348 |
:103280009091C803079734F480E398EF90937A07FE |
:1032900080937907F0910001F983FA30A9F48091C5 |
:1032A000C7039091C803835F934034F088EE93E0A6 |
:1032B00090937A07809379078091C7039091C80310 |
:1032C0008A5F9340DCF014C08091C7039091C803DB |
:1032D000855E974034F088EE93E090937A07809370 |
:1032E00079078091C7039091C803835F974034F0BA |
:1032F00080ED97E090937A0780937907ED84FE84C0 |
:103300008B859C85E81AF90AAA81BB81EA1AFB0A17 |
:103310006E817F8188859985A20191010E949C3BE5 |
:1033200020E032E040E050E00E94103CE21AF30A54 |
:10333000F0928207E09281079701442737FD40957C |
:10334000542F8091250490912604A0912704B091D8 |
:103350002804820F931FA41FB51F80932504909308 |
:103360002604A0932704B093280480915C049091D4 |
:103370005D04E81AF90A0027F7FC0095102F8091E8 |
:10338000210490912204A0912304B0912404E80E1A |
:10339000F91E0A1F1B1FE0922104F09222040093E1 |
:1033A000230410932404A0908703B0908803C09056 |
:1033B0008903D0908A03AE14BF04C006D106C4F4BA |
:1033C00080E197E2A0E0B0E08A199B09AC09BD0951 |
:1033D0008093210490932204A0932304B0932404A7 |
:1033E0008093250490932604A0932704B093280487 |
:1033F00022273327A9012A193B094C095D0980912D |
:10340000210490912204A0912304B09124048217F6 |
:103410009307A407B507B4F4D601C50180519742BC |
:10342000A040B0408093210490932204A0932304F1 |
:10343000B09324048093250490932604A09327043A |
:10344000B09328048091C5039091C6030F9734F47C |
:1034500088E19CEF90938207809381078091C50358 |
:103460009091C603079734F480E398EF9093820716 |
:1034700080938107B981BA30A9F48091C5039091F6 |
:10348000C603835F934034F088EE93E09093820705 |
:10349000809381078091C5039091C6038A5F934012 |
:1034A000DCF014C08091C5039091C603855E9740FF |
:1034B00034F088EE93E090938207809381078091A7 |
:1034C000C5039091C603835F974034F080ED97E089 |
:1034D00090938207809381078FEE80937A006092A9 |
:1034E0001D0470921E0480921F049092200480910B |
:1034F000210490912204A0912304B091240480938C |
:10350000010490930204A0930304B09304048091F7 |
:10351000290490912A04A0912B04B0912C0480934B |
:10352000090490930A04A0930B04B0930C048091B7 |
:10353000250490912604A0912704B091280480933B |
:10354000050490930604A0930704B09308048091A7 |
:103550002D0490912E04A0912F04B09130048093FB |
:103560000D0490930E04A0930F04B0931004809167 |
:10357000390787FF3FC0BA85BB23E1F580915F041F |
:103580008823C1F52091810730918207293C3105BC |
:1035900024F0C9018052934007C0EFEF28333E0763 |
:1035A0006CF4C901805E9C4F220F331F220F331F22 |
:1035B000280F391F309382072093810720917907C4 |
:1035C00030917A07293C310524F0C901805293409B |
:1035D00007C0FFEF28333F076CF4C901805E9C4FA2 |
:1035E000220F331F220F331F280F391F30937A0702 |
:1035F0002093790720914604309147048091350744 |
:10360000E82FFF27EE0FFF1FEB5FF84F80819181BE |
:1036100082599F4F281739071CF42F5F3F4F0CC06A |
:103620008081918182599F4F821793074CF4211515 |
:10363000310531F021503040309347042093460447 |
:10364000209148043091490480913607E82FFF27E4 |
:10365000EE0FFF1FEB5FF84F8081918182599F4FE2 |
:10366000281739071CF42F5F3F4F0CC080819181D0 |
:1036700082599F4F821793074CF42115310531F081 |
:1036800021503040309349042093480420914A044B |
:1036900030914B0480913707E82FFF27EE0FFF1F73 |
:1036A000EB5FF84F8081918182599F4F281739072E |
:1036B0001CF42F5F3F4F0CC08081918182599F4F36 |
:1036C000821793074CF42115310531F02150304019 |
:1036D00030934B0420934A0420914C0430914D04C4 |
:1036E00080913807E82FFF27EE0FFF1FEB5FF84FA1 |
:1036F0008081918182599F4F281739071CF42F5FD1 |
:103700003F4F0CC08081918182599F4F8217930750 |
:103710004CF42115310531F02150304030934D04E7 |
:1037200020934C04809146049091470497FF05C074 |
:1037300010924704109246040AC08F3F910539F059 |
:1037400034F08FEF90E0909347048093460480918B |
:1037500048049091490497FF05C0109249041092C3 |
:1037600048040AC08F3F910539F034F08FEF90E0A4 |
:10377000909349048093480480914A0490914B04AB |
:1037800097FF05C010924B0410924A040AC08F3F65 |
:10379000910539F034F08FEF90E090934B048093D3 |
:1037A0004A0480914C0490914D0497FF05C01092FB |
:1037B0004D0410924C040AC08F3F910539F034F04B |
:1037C0008FEF90E090934D0480934C04E2E1CE5E45 |
:1037D0000C94473C10927A008091C5039091C603E7 |
:1037E00090938207809381078091C7039091C803CB |
:1037F00090937A07809379078091C9039091CA03C7 |
:103800009093A1078093A0076091CD037091CE03A0 |
:10381000882777FD8095982F2CE030E040E050E03D |
:103820000E949C3B70939E0760939D076091CB0321 |
:103830007091CC03882777FD8095982F0E949C3B40 |
:103840007093A8076093A7078091CF039091D0034E |
:1038500090938907809388078FEE80937A00209158 |
:1038600046043091470480913507E82FFF27EE0F7B |
:10387000FF1FEB5FF84F8081918182599F4F28177E |
:1038800039071CF42F5F3F4F0CC080819181825912 |
:103890009F4F821793074CF42115310531F02150C9 |
:1038A00030403093470420934604209148043091DF |
:1038B000490480913607E82FFF27EE0FFF1FEB5FCB |
:1038C000F84F8081918182599F4F281739071CF446 |
:1038D0002F5F3F4F0CC08081918182599F4F82178B |
:1038E00093074CF42115310531F0215030403093CD |
:1038F00049042093480420914A0430914B0480915C |
:103900003707E82FFF27EE0FFF1FEB5FF84F80818F |
:10391000918182599F4F281739071CF42F5F3F4F21 |
:103920000CC08081918182599F4F821793074CF47C |
:103930002115310531F02150304030934B04209354 |
:103940004A0420914C0430914D0480913807E82FAF |
:10395000FF27EE0FFF1FEB5FF84F808191818259A7 |
:103960009F4F281739071CF42F5F3F4F0CC08081F1 |
:10397000918182599F4F821793074CF4211531058D |
:1039800031F02150304030934D0420934C0480910D |
:1039900046049091470497FF05C010924704109287 |
:1039A00046040AC08F3F910539F034F08FEF90E064 |
:1039B0009093470480934604809148049091490471 |
:1039C00097FF05C010924904109248040AC08F3F27 |
:1039D000910539F034F08FEF90E090934904809393 |
:1039E000480480914A0490914B0497FF05C01092BF |
:1039F0004B0410924A040AC08F3F910539F034F00D |
:103A00008FEF90E090934B0480934A0480914C0494 |
:103A100090914D0497FF05C010924D0410924C04F4 |
:103A20000AC08F3F910539F034F08FEF90E090930A |
:103A30004D0480934C0460915C0777278827992771 |
:103A400024EC39E040E050E00E949C3B6093870307 |
:103A5000709388038093890390938A0360938B0308 |
:103A600070938C0380938D0390938E0308951F931E |
:103A700080913C078B3F98F08B3F19F4809146046E |
:103A80000EC08C3F19F48091480409C08D3F19F491 |
:103A900080914A0404C08E3F21F480914C048093AD |
:103AA000940380919403882319F41092940304C022 |
:103AB0008F3F11F48093940380913B078B3F98F0E4 |
:103AC0008B3F19F4809146040EC08C3F19F480910D |
:103AD000480409C08D3F19F480914A0404C08E3F08 |
:103AE00021F480914C048093930380919303882365 |
:103AF00019F41092930305C0843618F084E680937D |
:103B0000930380913D078B3F98F08B3F19F4809190 |
:103B100046040EC08C3F19F48091480409C08D3FC3 |
:103B200019F480914A0404C08E3F21F480914C0422 |
:103B30008093950380919503882319F4109295033F |
:103B400005C0843618F084E68093950380913F0782 |
:103B50008B3F98F08B3F19F4809146040EC08C3F48 |
:103B600019F48091480409C08D3F19F480914A04EA |
:103B700004C08E3F21F480914C0480939603809181 |
:103B80009603882319F41092960304C08F3F11F412 |
:103B900080939603809146078B3F98F08B3F19F4F2 |
:103BA000809146040EC08C3F19F48091480409C0EE |
:103BB0008D3F19F480914A0404C08E3F21F4809116 |
:103BC0004C048093970380919703882319F41092F3 |
:103BD000970304C08F3F11F48093970380914707A8 |
:103BE0008B3F98F08B3F19F4809146040EC08C3FB8 |
:103BF00019F48091480409C08D3F19F480914A045A |
:103C000004C08E3F21F480914C04809398038091EE |
:103C100098038B3010F48AE002C08F3F11F4809338 |
:103C20009803809148078B3F98F08B3F19F480915F |
:103C300046040EC08C3F19F48091480409C08D3FA2 |
:103C400019F480914A0404C08E3F21F480914C0401 |
:103C50008093990380919903882319F41092990312 |
:103C600004C08F3F11F48093990380914D078B3FDF |
:103C700098F08B3F19F4809146040EC08C3F19F4E4 |
:103C80008091480409C08D3F19F480914A0404C012 |
:103C90008E3F21F480914C0480939B0380919B0381 |
:103CA000882319F410929B0304C08F3F11F4809372 |
:103CB0009B0380914E078B3F98F08B3F19F48091C6 |
:103CC00046040EC08C3F19F48091480409C08D3F12 |
:103CD00019F480914A0404C08E3F21F480914C0471 |
:103CE0008093640480916404882319F4109264041E |
:103CF00004C08F3F11F48093640480914F078B3F81 |
:103D000098F08B3F19F4809146040EC08C3F19F453 |
:103D10008091480409C08D3F19F480914A0404C081 |
:103D20008E3F21F480914C0480936504809165045A |
:103D3000882319F41092650404C08F3F11F4809316 |
:103D40006504809150078B3F98F08B3F19F4809168 |
:103D500046040EC08C3F19F48091480409C08D3F81 |
:103D600019F480914A0404C08E3F21F480914C04E0 |
:103D70008093660480916604882319F41092660487 |
:103D800004C08F3F11F480936604809151078B3FEC |
:103D900098F08B3F19F4809146040EC08C3F19F4C3 |
:103DA0008091480409C08D3F19F480914A0404C0F1 |
:103DB0008E3F21F480914C048093670480916704C6 |
:103DC000882319F41092670404C08F3F11F4809384 |
:103DD0006704809161078B3F98F08B3F19F48091C5 |
:103DE00046040EC08C3F19F48091480409C08D3FF1 |
:103DF00019F480914A0404C08E3F21F480914C0450 |
:103E00008093680480916804882319F410926804F0 |
:103E100004C08F3F11F480936804809162078B3F48 |
:103E200098F08B3F19F4809146040EC08C3F19F432 |
:103E30008091480409C08D3F19F480914A0404C060 |
:103E40008E3F21F480914C04809369048091690431 |
:103E5000882319F41092690404C08F3F11F48093F1 |
:103E60006904809163078B3F98F08B3F19F4809130 |
:103E700046040EC08C3F19F48091480409C08D3F60 |
:103E800019F480914A0404C08E3F21F480914C04BF |
:103E900080936A0480916A04882319F410926A045A |
:103EA00004C08F3F11F480936A04809164078B3FB4 |
:103EB00098F08B3F19F4809146040EC08C3F19F4A2 |
:103EC0008091480409C08D3F19F480914A0404C0D0 |
:103ED0008E3F21F480914C0480936B0480916B049D |
:103EE000882319F410926B0404C08F3F11F480935F |
:103EF0006B04809152078B3F98F08B3F19F48091AF |
:103F000046040EC08C3F19F48091480409C08D3FCF |
:103F100019F480914A0404C08E3F21F480914C042E |
:103F200080939C0380919C03882319F410929C0336 |
:103F300004C08F3F11F480939C03809157078B3FFF |
:103F400098F08B3F19F4809146040EC08C3F19F411 |
:103F50008091480409C08D3F19F480914A0404C03F |
:103F60008E3F21F480914C0480939D0380919D03AA |
:103F7000882319F410929D0304C08F3F11F480939D |
:103F80009D0380915A078B3F98F08B3F19F48091E5 |
:103F900046040EC08C3F19F48091480409C08D3F3F |
:103FA00019F480914A0404C08E3F21F480914C049E |
:103FB00080936C0480916C04882319F410926C0433 |
:103FC00004C08F3F11F480936C0480915B078B3F9A |
:103FD00098F08B3F19F4809146040EC08C3F19F481 |
:103FE0008091480409C08D3F19F480914A0404C0AF |
:103FF0008E3F21F480914C0480936D0480916D0478 |
:10400000882319F410926D0404C08F3F11F480933B |
:104010006D04809160078B3F98F08B3F19F480917D |
:1040200046040EC08C3F19F48091480409C08D3FAE |
:1040300019F480914A0404C08E3F21F480914C040D |
:1040400080939E0380919E03882319F410929E030F |
:1040500004C08F3F11F480939E0310919B03612F46 |
:10406000772767FD7095872F972F0E94DA3A17FF01 |
:1040700006C020E030E040E853E40E94353A27E1F2 |
:1040800037EB41ED58E30E94543B60938F037093EC |
:1040900090038093910390939203809144078093BF |
:1040A0009F0780914307809383071F910895809114 |
:1040B0005504882301F51092800710927B07109217 |
:1040C000980710929A078091AE03882311F080938D |
:1040D0007B078091AF03882311F080938007809144 |
:1040E000B003882311F080939A078091B10388234D |
:1040F00011F08093980780917B0799279093C306CE |
:104100008093C2068091800799279093C50680937B |
:10411000C40680919A0799279093C7068093C60694 |
:104120008091980799279093C9068093C8061092AA |
:10413000E8031092E9030E94371508951092FA03DC |
:104140001092F9031092FC031092FB0380E090E0C0 |
:10415000A0E0B0E08093FD039093FE03A093FF03E3 |
:10416000B09300041092F0031092EF031092F20348 |
:104170001092F1031092F4031092F30310926C0466 |
:1041800010926D040E94EA1B84E690E00E94CC0D20 |
:104190000E94EA1B8091390780FF10C080910E03B6 |
:1041A00090910F03875B934038F480910E039091B8 |
:1041B0000F038E5E924010F40E9460104091C50380 |
:1041C0005091C6035093F0034093EF032091C7032F |
:1041D0003091C8033093F2032093F1038091C90317 |
:1041E0009091CA039093F4038093F3033093F60302 |
:1041F0002093F5035093F8034093F70344E050E015 |
:10420000DA010E94683C802D853038F18091A70743 |
:104210009091A80797FF03C0909581959F4F6CE000 |
:1042200070E00E94DB3B7093FC036093FB03809182 |
:104230009D0790919E0797FF03C0909581959F4F92 |
:104240006CE070E00E94DB3B7093FA036093F9032B |
:104250006091ED067091EE0639C0DA010E94683C6B |
:10426000802D4F5F5F4FDA010E94683C202D992717 |
:10427000982F8827820F911D9093FA038093F9035A |
:104280004F5F5F4FDA010E94683C802D4F5F5F4FA8 |
:10429000DA010E94683C202D9927982F8827820FE9 |
:1042A000911D9093FC038093FB034F5F5F4FDA01F6 |
:1042B0000E94683C602D4F5F5F4FDA010E94683CAE |
:1042C000202D7727762F6627620F711D882777FDAF |
:1042D0008095982F0E94DA3A6093FD037093FE0355 |
:1042E0008093FF0390930004109221041092220403 |
:1042F0001092230410922404109225041092260494 |
:1043000010922704109228041092290410922A0473 |
:1043100010922B0410922C0410922D0410922E0453 |
:1043200010922F0410923004109231041092320433 |
:104330001092330410923404109282071092810775 |
:1043400010927A07109279071092A1071092A00795 |
:1043500080910A0390910B03A0910C03B0910D037F |
:104360009093F0068093EF061092D8031092D70333 |
:104370001092390410923A0410923B0410923C04BB |
:1043800080913D0490913E049093400480933F04BB |
:104390000E94B13682E390E09093C1038093C00302 |
:1043A00060915C0777278827992724EC39E040E063 |
:1043B00050E00E949C3B6093870370938803809336 |
:1043C000890390938A0360915D077727882799274F |
:1043D0000E949C3B60938B0370938C0380938D03AE |
:1043E00090938E031092A00310929F0308951F9341 |
:1043F000182F0EC080915504882361F484E690E064 |
:104400009093C1038093C0038AEF90E00E94E20D75 |
:10441000115080F71F91089581E08093310752E099 |
:104420005093320743E04093330774E070933407AE |
:1044300065E06093350786E08093360787E08093D8 |
:10444000370798E09093380780EC809339078EE126 |
:1044500080933A078BEF80933C073AE030933D0717 |
:1044600022E320933B0720933F0750933E0740935E |
:10447000400710924107909342078FE080934307D3 |
:104480008AEF809344078AE18093450780E8809310 |
:10449000460788EC809347078FEA809348078EE5AC |
:1044A0008093490783E280934A0784E180934B0716 |
:1044B00010924C0730934D0780E580934E07109281 |
:1044C0004F071092500710925107109261071092F7 |
:1044D0006207109263071092640794E69093520764 |
:1044E00088E280935307109266072093540786E969 |
:1044F0008093550760935607209357078AE580936A |
:104500005807209359071092650790935A073093E4 |
:104510005B0790935C0790935D0790935E077093A1 |
:104520005F0720936007ABE6B7E0ECE6F3E08CE0D2 |
:1045300001900D928150E1F7089581E08093310759 |
:1045400092E09093320783E08093330744E04093F6 |
:10455000340755E05093350786E08093360787E0AF |
:104560008093370788E08093380780E48093390789 |
:104570008EE180933A078BEF80933C073AE03093CB |
:104580003D0722E320933B0720933F0790933E078C |
:104590004093400710924107309342078FE0809389 |
:1045A00043078AEF809344078AE18093450780E8B8 |
:1045B000809346078FEA80934707809348078EE5EC |
:1045C0008093490783E280934A0784E180934B07F5 |
:1045D00010924C0780E280934D0780E580934E0750 |
:1045E00010924F07109250071092510710926107D6 |
:1045F00010926207109263071092640794E69093FA |
:10460000520788E28093530710926607209354075D |
:1046100086E98093550750935607209357078AE5FC |
:1046200080935807209359071092650790935A0773 |
:1046300030935B0790935C0790935D0790935E07C0 |
:1046400040935F078BE480936007ABE6B7E0E6E753 |
:10465000F3E08CE001900D928150E1F7089581E044 |
:104660008093310782E08093320783E080933307A1 |
:1046700034E03093340765E06093350786E080933B |
:10468000360787E08093370798E09093380780E4F7 |
:10469000809339078EE180933A078BEF80933C0734 |
:1046A0005AE050933D0722E320933B0720933F07B6 |
:1046B00030933E0730934007909341078EE08093FC |
:1046C00042078FE0809343078AEF809344078AE193 |
:1046D0008093450790E89093460788E780934707C3 |
:1046E00046E9409348078EE58093490783E280932B |
:1046F0004A0784E180934B0710924C0780E2809335 |
:104700004D0790934E0710924F071092500710924A |
:10471000510710926107109262071092630710927E |
:10472000640794E69093520788E2809353071092AF |
:1047300066072093540740935507609356072093CC |
:1047400057078AE580935807209359071092650709 |
:1047500090935A0750935B0790935C0790935D0783 |
:1047600020935E0730935F0790936007ABE6B7E056 |
:10477000EEE7F3E08CE001900D928150E1F70895AF |
:10478000A6E3B0E0E6ECF3E20C942B3C0E94BA16F0 |
:10479000299AE0913307FF27EE0FFF1FEB5FF84FD9 |
:1047A0000190F081E02DE858FF4F80919F079927F5 |
:1047B0004497E817F9070CF4CF019A83898397FF90 |
:1047C00002C01A82198280914E04843608F05DC0BE |
:1047D00080910301882399F480910403909105034B |
:1047E0008F5F9F4F61F488E99AE39093C1038093B0 |
:1047F000C00380E09CE090930503809304038091C4 |
:10480000930490919404009731F00197909394044D |
:104810008093930404C01092550410924404809134 |
:1048200000018A3011F4289A01C0289880918E04E2 |
:1048300090918F04815D974028F180914A07482F1D |
:1048400055275A83498381E080934404E0913107DE |
:10485000FF27EE0FFF1FEB5FF84F11821082E091F0 |
:104860003207FF27EE0FFF1FEB5FF84F1182108218 |
:10487000E0913407FF27EE0FFF1FEB5FF84F118227 |
:1048800010824FC2109255044CC280914E048D3854 |
:1048900008F447C21092440480914B0722E3829FA0 |
:1048A000C0011124909394048093930489819A8188 |
:1048B00089976CF080918E0490918F04AFEF8F3FB9 |
:1048C0009A0781F1019690938F0480938E048091D2 |
:1048D0008E0490918F04883C910520F0E981FA8143 |
:1048E000B89704F51092AD041092AE041092AF0484 |
:1048F0001092B0041092A9041092AA041092AB0472 |
:104900001092AC04109231041092320410923304CD |
:104910001092340410923504109236041092370429 |
:104920001092380429813A81293C31050CF459C18F |
:1049300080915504882309F0F4C180913407E82F51 |
:10494000FF27EE0FFF1FEB5FF84F808191818C34C2 |
:1049500091050CF4BCC0809192048F5F8093920407 |
:10496000893C08F4DEC129981092550410929204F3 |
:1049700010928F0410928E0480913107282F3327D4 |
:10498000F901EE0FFF1FEB5FF84F808191818734B3 |
:1049900091059CF4E0913207FF27EE0FFF1FEB5FBC |
:1049A000F84F0190F081E02DF7FF03C0F095E195FD |
:1049B000FF4FE734F1050CF46CC080913207682F8B |
:1049C0007727DB01AA0FBB1FAB5FB84F8D919C917E |
:1049D0001197873491053CF0F901EE0FFF1FEB5F53 |
:1049E000F84F808191818D919C918734910564F07D |
:1049F000F901EE0FFF1FEB5FF84F80819181873443 |
:104A0000910514F042E001C041E0FB01EE0FFF1FF1 |
:104A1000EB5FF84F80819181863491055CF4F90158 |
:104A2000EE0FFF1FEB5FF84F808191818734910576 |
:104A30000CF043E0FB01EE0FFF1FEB5FF84F8081AE |
:104A400091818A5B9F4F5CF4F901EE0FFF1FEB5FD2 |
:104A5000F84F80819181873491050CF044E0660F16 |
:104A6000771F6B5F784FDB018D919C918A5B9F4F25 |
:104A70005CF4220F331F2B5F384FF9018081918145 |
:104A8000863491050CF445E0A2E0B0E0042E0E94CB |
:104A9000753C8091390780FF10C080910E03909182 |
:104AA0000F03875B934038F480910E0390910F03BE |
:104AB0008E5E924010F40E9460100E94AD0346E4A6 |
:104AC00061E377E00E94D6030E949E2082C080812D |
:104AD0009181855B9F4F0CF081C0809192048F5F24 |
:104AE00080939204893C08F41CC129988FEF04E05C |
:104AF00010E0D801082E0E94753C109255041092C7 |
:104B0000920410928F0410928E040E949E20809135 |
:104B1000F9039091FA0360E071E00E94DB3BD80159 |
:104B2000062E0E94753C8091F9039091FA0360E093 |
:104B300071E00E94DB3B0F5F1F4FD801082E0E94DF |
:104B4000753C8091FB039091FC0360E071E00E9452 |
:104B5000DB3B0F5F1F4FD801062E0E94753C8091F2 |
:104B6000FB039091FC0360E071E00E94DB3B0F5F70 |
:104B70001F4FD801082E0E94753C6091FD03709173 |
:104B8000FE038091FF03909100040E94BD3ADC0176 |
:104B9000CB0160E071E00E94DB3B0F5F1F4FD8014B |
:104BA000062E0E94753C6091FD037091FE0380917A |
:104BB000FF03909100040E94BD3ADC01CB0160E04C |
:104BC00071E00E94DB3B0F5F1F4FD801082E0E944F |
:104BD000753C0E94AD030E94F721A3C0109292047D |
:104BE000A0C0E981FA81B3970CF09BC08091340793 |
:104BF000482F5527FA01EE0FFF1FEB5FF84F80811A |
:104C00009181855B9F4F0CF06DC0809191048F5F07 |
:104C100080939104893C08F467C088EC80939104E8 |
:104C200081E090E090938F0480938E0481E08093E4 |
:104C300055041092A5041092A6041092A704109295 |
:104C4000A80410923104109232041092330410928E |
:104C500034041092350410923604109237041092E6 |
:104C6000380410922104109222041092230410920E |
:104C700024041092290410922A0410922B041092FA |
:104C80002C048091010490910204A0910304B0913E |
:104C900004048093250490932604A0932704B093E2 |
:104CA00028048091090490910A04A0910B04B0910A |
:104CB0000C0480932D0490932E04A0932F04B093A2 |
:104CC00030041092AD041092AE041092AF04109212 |
:104CD000B0041092A9041092AA041092AB0410928E |
:104CE000AC0402C010929104440F551F4B5F584F03 |
:104CF000DA018D919C918C3491058CF08091900417 |
:104D00008F5F80939004893C60F01092550488EC8A |
:104D10008093900410928F0410928E0402C010921F |
:104D2000900480916B03815080936B0380916B039F |
:104D30008F3F29F080914404882309F4FCC20E942B |
:104D4000371D80913107A82EBB24D501AA0FBB1FA8 |
:104D5000FD01EB5FF84F0190F081E02DFCABEBAB78 |
:104D600080914007E82EFF24A55EB84F0D90BC91BE |
:104D7000A02DBAA7A9A780914107482E552480915C |
:104D80003207C82EDD24C601880F991FDC01AB5FF6 |
:104D9000B84F0D90BC91A02DB8A7AFA3855E984FDA |
:104DA000FC0120803180E0913407AE2FBB27AA0F91 |
:104DB000BB1FAB5FB84F0D90BC91A02DBCA3ABA3A4 |
:104DC00010919803612F772767FD7095872F972F94 |
:104DD0000E94DA3A17FF06C020E030E040E853E4D2 |
:104DE0000E94353A20E030E040E251E40E94353A3A |
:104DF00020E030E040E85BE30E94543B3B014C0183 |
:104E00006093A2077093A3078093A4079093A507CC |
:104E100010919903612F772767FD7095872F972F42 |
:104E20000E94DA3A17FF06C020E030E040E853E481 |
:104E30000E94353A20E030EE4BE257E40E94773A88 |
:104E400060939407709395078093960790939707C4 |
:104E50002091B303222311F40C94DC358AE090E016 |
:104E60009093C1038093C003E22FFF27E2FF09C0A4 |
:104E700080916404482F5527440F551F440F551F38 |
:104E800010C0E3FD03C040E050E00BC0809164041B |
:104E90009927880F991F880F991F44275527481B6A |
:104EA000590B20916E0430916F04C901F3E0880F13 |
:104EB000991FFA95E1F7821B930B840F951F68E009 |
:104EC00070E00E94DB3B8B0170936F0460936E0473 |
:104ED000E4FF09C080916404482F5527440F551FF3 |
:104EE000440F551F0FC0E5FD02C00C94F1358091B1 |
:104EF00064049927880F991F880F991F4427552705 |
:104F0000481B590B2091700430917104C90163E072 |
:104F1000880F991F6A95E1F7821B930B840F951FE9 |
:104F200068E070E00E94DB3B7EAB6DAB7093710478 |
:104F3000609370048091B203282F332723FF03C0AE |
:104F400082E390E004C022FF07C08EEC9FEF9093B5 |
:104F500073048093720404C010927304109272045C |
:104F600021FF09C080919F039091A0030196909327 |
:104F7000A00380939F0324FF09C080919F03909119 |
:104F8000A00301979093A00380939F034BA95CA972 |
:104F90004E9D90014F9D300D5E9D300D1124A9A5B1 |
:104FA000BAA5A49DC001A59D900DB49D900D11249E |
:104FB000280F391FC80168E070E00E94DB3B260F14 |
:104FC000371F3CAB2BAB3093500420934F04EFA121 |
:104FD000F8A5EE9D8001EF9D100DFE9D100D112492 |
:104FE000249CC001259C900D349C900D1124080F29 |
:104FF000191F8DA99EA968E070E00E94DB3B060F97 |
:10500000171F1093520400935104809172049091E1 |
:1050100073042BA13CA1821B930B909354048093A7 |
:1050200053048091390782FF0CC080E090E0A0E03B |
:10503000B0E08093940790939507A0939607B09360 |
:10504000970720E030E040E050E0C401B3010E9447 |
:10505000E43A882364F480E090E0A0E0B0E080933C |
:10506000A2079093A307A093A407B093A50720E0FD |
:1050700030E040E050E06091940770919507809196 |
:105080009607909197070E94E43A882364F480E0A1 |
:1050900090E0A0E0B0E08093940790939507A093F0 |
:1050A0009607B093970780916507682F772784E06C |
:1050B000882E912C8622972262FD7FC063FD7DC0E1 |
:1050C00020910104309102044091030450910404A2 |
:1050D00021368AEE380780E0480780E05807E4F080 |
:1050E000C701B3E0880F991FBA95E1F7EBA9FCA9B6 |
:1050F000E81BF90BF0935004E0934F042158384318 |
:1051000041405040E4F0C701A4E0880F991FAA95E0 |
:10511000E1F7E81BF90B0FC0205A35414F4F5F4FA5 |
:1051200074F4C701E3E0880F991FEA95E1F7EBA952 |
:10513000FCA9E80FF91FF0935004E0934F0420916D |
:10514000090430910A0440910B0450910C0421365B |
:10515000FAEE3F07F0E04F07F0E05F07F4F0C70119 |
:1051600073E0880F991F7A95E1F7D801A81BB90B56 |
:10517000B0935204A0935104215838434140504009 |
:10518000E4F094E0EE0CFF1C9A95E1F7AE19BF092C |
:10519000B0935204A093510410C0205A35414F4F90 |
:1051A0005F4F5CF483E0EE0CFF1C8A95E1F70E0D77 |
:1051B0001F1D1093520400935104F601EE0FFF1FC0 |
:1051C000EB5FF84F2081318180915807482F552798 |
:1051D0004217530734F4892821F081E0809360045A |
:1051E00011C0F601EE0FFF1FEB5FF84F20813181F8 |
:1051F00080915907DA01A81BB1092A173B0714F45B |
:1052000010926004F601EE0FFF1FEB5FF84F8081F4 |
:105210009181AA27BB27A41BB50B8A179B0734F4DF |
:1052200063FF04C081E08093610417C08091610432 |
:10523000882399F0CC0CDD1CE5E0F7E0CE0EDF1EF4 |
:10524000F60120813181809159079927841B950BA4 |
:105250008217930714F410926104F501EE0FFF1FFB |
:10526000EB5FF84F808191814817590734F460FF54 |
:1052700004C081E08093630415C080916304882397 |
:1052800089F0F501EE0FFF1FEB5FF84F20813181B0 |
:1052900080915907FA01E81BF1092E173F0714F412 |
:1052A00010926304F501EE0FFF1FEB5FF84F808152 |
:1052B00091818A179B0734F461FF04C081E08093D9 |
:1052C000620417C080916204882399F0AA0CBB1C69 |
:1052D00025E037E0A20EB31ED5012D913C918091BF |
:1052E00059079927841B950B8217930714F4109282 |
:1052F000620480916004882321F4809161048823F2 |
:1053000021F081E080935F0402C010925F048091DD |
:105310006304882321F480916204882351F081E0A2 |
:1053200080935E0410925F041092600410926104F6 |
:105330000EC010925E0480915F04882311F40C94D7 |
:10534000F53584E690E09093C1038093C00380918B |
:1053500057079927E981FA818E179F0714F49A83DA |
:10536000898380914404882341F11092540410925F |
:1053700053041092500410924F0410925204109251 |
:1053800051048DEC9CECACECBDE38093A2079093B0 |
:10539000A307A093A407B093A5078AE097EDA3EA1B |
:1053A000BBE38093940790939507A0939607B093DF |
:1053B000970710925F0410925E04209101043091CF |
:1053C000020440910304509104042FA738AB49AB69 |
:1053D0005AAB80918C0790918D07A0918E07B09168 |
:1053E0008F07820F931FA41FB51F80938C07909384 |
:1053F0008D07A0938E07B0938F0780910904909139 |
:105400000A04A0910B04B0910C048BA79CA7ADA734 |
:10541000BEA78091900790919107A0919207B091BB |
:1054200093072BA53CA54DA55EA5820F931FA41F36 |
:10543000B51F8093900790939107A0939207B09324 |
:1054400093078091050490910604A0910704B09100 |
:1054500008048F8F98A3A9A3BAA380918407909181 |
:105460008507A0918607B09187072F8D38A149A1A4 |
:105470005AA1820F931FA41FB51F80938407909396 |
:105480008507A0938607B093870780910D049091BC |
:105490000E04A0910F04B09110048B8F9C8FAD8FE0 |
:1054A000BE8F80917C0790917D07A0917E07B0917F |
:1054B0007F072B8D3C8D4D8D5E8D820F931FA41F1A |
:1054C000B51F80937C0790937D07A0937E07B093D0 |
:1054D0007F0790905E04992011F00C944D368091D6 |
:1054E0005F04882311F00C944D360C94FD3580EE4A |
:1054F000A8168FEFB8068FEFC8068FEFD80644F4D2 |
:1055000080EEA82E8FEFB82E8FEFC82E8FEFD82EFB |
:10551000213231054105510534F010E2E12EF12C24 |
:10552000012D112D0DC0205E3F4F4F4F5F4F44F4B2 |
:10553000B0EEEB2EBFEFFB2EBFEF0B2FBFEF1B2FFD |
:105540008091210490912204A0912304B09124041D |
:105550008A199B09AC09BD09809321049093220408 |
:10556000A0932304B09324048091290490912A04E9 |
:10557000A0912B04B0912C048E199F09A00BB10BA4 |
:105580008093290490932A04A0932B04B0932C04B5 |
:105590008091D9039091DA038F3F910509F008F4C7 |
:1055A000ADC4992009F02EC480915F04882309F0CE |
:1055B00029C460918C0770918D0780918E0790911E |
:1055C0008F0720E031E040E050E00E94103C1901DC |
:1055D0002A0120938C0730938D0740938E075093B8 |
:1055E0008F07609190077091910780919207909139 |
:1055F000930720E031E040E050E00E94103C2F8B08 |
:10560000388F498F5A8F209390073093910740939A |
:10561000920750939307E0904507FF240027112736 |
:1056200020911104309112044091130450911404FC |
:10563000C801B7010E949C3B20E031E040E050E00F |
:105640000E94103C39014A01209311043093120446 |
:1056500040931304509314042091150430911604C0 |
:105660004091170450911804C801B7010E949C3B57 |
:1056700020E031E040E050E00E94103C59016A0116 |
:105680002093150430931604409317045093180484 |
:105690006091190470911A0480911B0490911C046C |
:1056A00020E031E040E050E00E94103C20931904DB |
:1056B00030931A0440931B0450931C04C201B1019F |
:1056C0006619770988099909E0905E07FF24002789 |
:1056D0001127A80197010E94103C20938604309363 |
:1056E00087044093880450938904CA01B90120E0DB |
:1056F00031E040E050E00E94103C3E8B2D8B309317 |
:105700005D0420935C046F89788D898D9A8D6A1968 |
:105710007B098C099D09A80197010E94103C790121 |
:105720008A01CA01B90120E031E040E050E00E9466 |
:10573000103C3CAB2BAB30935B0420935A0460913C |
:10574000840770918507809186079091870720E0F4 |
:1057500031E040E050E00E94103C209384073093F9 |
:105760008507409386075093870760917C07709167 |
:105770007D0780917E0790917F0720E031E040E037 |
:1057800050E00E94103C20937C0730937D074093AB |
:105790007E0750937F072F8D38A149A15AA18FA56D |
:1057A00098A9A9A9BAA9281B390B4A0B5B0B298B0D |
:1057B0003A8B4B8B5C8B2093A1043093A2044093D3 |
:1057C000A3045093A4042B8D3C8D4D8D5E8D8BA531 |
:1057D0009CA5ADA5BEA5281B390B4A0B5B0B2D87DD |
:1057E0003E874F87588B20939D0430939E044093AF |
:1057F0009F045093A00429893A894B895C8920939E |
:10580000990430939A0440939B0450939C048D8593 |
:105810009E85AF85B8898093950490939604A09354 |
:105820009704B09398048091250490912604A09148 |
:105830002704B0912804821B930BA40BB50B809313 |
:10584000250490932604A0932704B0932804809104 |
:105850002D0490912E04A0912F04B09130042D8539 |
:105860003E854F855889821B930BA40BB50B809303 |
:105870002D0490932E04A0932F04B0933004C40100 |
:10588000B3012AE130E040E050E00E94103C309348 |
:10589000CD062093CC06C601B5012AE130E040E0F8 |
:1058A00050E00E94103C3093CF062093CE064989E9 |
:1058B0005A895093D1064093D0068D859E8590934A |
:1058C000D3068093D206C201B1012AE130E040E064 |
:1058D00050E00E94103C3093D5062093D4066F8987 |
:1058E000788D898D9A8D2AE130E040E050E00E9469 |
:1058F000103C3093D7062093D606F092E506E0924E |
:10590000E4068BA99CA9880F991F2BA93CA9F3E059 |
:10591000220F331FFA95E1F7820F931F9093E7064A |
:105920008093E60681E090E0909381048093800468 |
:105930008091780490917904A0917A04B0917B04CD |
:1059400082199309A409B509815E914BAF4FBF4FEE |
:105950008F539C49A040B04008F0C5C029893A89BE |
:105960004B895C89213080E1380780E0480780E07E |
:1059700058070CF450C080917F04882309F447C075 |
:10598000DA01C901ECE0B595A79597958795EA9559 |
:10599000D1F701969093810480938004DA01C901C4 |
:1059A00073E0B595A795979587957A95D1F78093EC |
:1059B000860490938704A0938804B093890489583F |
:1059C0009341A040B04064F088E893E1A0E0B0E0EB |
:1059D0008093860490938704A0938804B0938904ED |
:1059E0006091860470918704809188049091890465 |
:1059F00020E031E040E050E00E94103C8D899E891B |
:105A0000820F931F90935D0480935C0469C081E0D2 |
:105A100080937F0465C010927F0429893A894B895D |
:105A20005C89203080EF38078FEF48078FEF5807E9 |
:105A30000CF056C080917E04882309F44DC0DA0131 |
:105A4000C901B095A095909581959F4FAF4FBF4FDD |
:105A50006CE0B595A795979587956A95D1F70196CE |
:105A60009093810480938004CA01B90128E030E05A |
:105A700040E050E00E94103C20938604309387045D |
:105A8000409388045093890428573C4E4F4F5F4FF2 |
:105A900064F488E79CEEAFEFBFEF809386049093A9 |
:105AA0008704A0938804B093890460918604709160 |
:105AB0008704809188049091890420E031E040E0DF |
:105AC00050E00E94103CAD89BE89A20FB31FB09375 |
:105AD0005D04A0935C040BC081E080937E0407C04A |
:105AE00010927E0404C01092810410928004809170 |
:105AF0005F07082F11278091800490918104081777 |
:105B0000190724F4109381040093800429893A89A9 |
:105B10004B895C8921503440404050405CF080917A |
:105B2000EF039091F0032091800430918104820F63 |
:105B3000931F13C029893A894B895C8920503C4FB7 |
:105B40004F4F5F4F74F48091EF039091F0032091D9 |
:105B5000800430918104821B930B9093F003809317 |
:105B6000EF0381E090E09093810480938004109291 |
:105B70008204109283041092840410928504809110 |
:105B8000740490917504A0917604B09177042F89E4 |
:105B9000388D498D5A8D821B930BA40BB50B815EFA |
:105BA000914BAF4FBF4F8F539C49A040B04008F07E |
:105BB000C6C08D859E85AF85B88981509041A04033 |
:105BC000B0400CF454C080917D04882309F44BC08C |
:105BD0008D859E85AF85B8893CE0B595A79597954D |
:105BE00087953A95D1F7019690938104809380042C |
:105BF0008D859E85AF85B88923E0B595A795979546 |
:105C000087952A95D1F78093820490938304A0937B |
:105C10008404B093850489589341A040B04064F057 |
:105C200088E893E1A0E0B0E080938204909383043D |
:105C3000A0938404B09385046091820470918304DE |
:105C4000809184049091850420E031E040E050E0B0 |
:105C50000E94103C8BA99CA9820F931F90935B0418 |
:105C600080935A0469C081E080937D0465C01092DE |
:105C70007D042D853E854F855889203080EF38077B |
:105C80008FEF48078FEF58070CF056C080917C04C7 |
:105C9000882309F44DC0DA01C901B095A09590950B |
:105CA00081959F4FAF4FBF4FFCE0B595A795979556 |
:105CB0008795FA95D1F7019690938104809380049B |
:105CC000CA01B90128E030E040E050E00E94103CF9 |
:105CD000209382043093830440938404509385047A |
:105CE00028573C4E4F4F5F4F64F488E79CEEAFEF70 |
:105CF000BFEF8093820490938304A0938404B093B5 |
:105D00008504609182047091830480918404909151 |
:105D1000850420E031E040E050E00E94103CABA957 |
:105D2000BCA9A20FB31FB0935B04A0935A040BC08D |
:105D300081E080937C0407C010927C0404C0109220 |
:105D40008104109280048091820490918304909346 |
:105D5000E1068093E0068091800490918104081709 |
:105D6000190724F410938104009380042D853E8547 |
:105D70004F85588921503440404050405CF080911C |
:105D8000F1039091F2032091800430918104820FFD |
:105D9000931F13C02D853E854F85588920503C4F59 |
:105DA0004F4F5F4F74F48091F1039091F203209173 |
:105DB000800430918104821B930B9093F2038093B3 |
:105DC000F1038091EF039091F0039093D9068093B3 |
:105DD000D8068091F1039091F2032091F503309160 |
:105DE000F603821B930B9C01E3E0220F331FEA951D |
:105DF000E1F7880F991F820F931F9093DB06809322 |
:105E0000DA0608C010925B0410925A0410925D04E6 |
:105E100010925C0420E030E040E050E06091940794 |
:105E20007091950780919607909197070E94E43AA8 |
:105E3000882341F410925B0410925A0410925D047E |
:105E400010925C0480918C0790918D07A0918E0731 |
:105E5000B0918F078093780490937904A0937A048B |
:105E6000B0937B048091900790919107A091920745 |
:105E7000B09193078093740490937504A093760473 |
:105E8000B09377041092110410921204109213042C |
:105E90001092140410921504109216041092170414 |
:105EA000109218041092190410921A0410921B04F4 |
:105EB00010921C0410928C0710928D0710928E077E |
:105EC00010928F07109290071092910710929207EC |
:105ED00010929307109284071092850710928607FC |
:105EE0001092870710927C0710927D0710927E0710 |
:105EF00010927F071092DA031092D9038090530416 |
:105F000090905404940197FE04C022273327281947 |
:105F10003909253131053CF08091390784FD03C0F2 |
:105F200081E080938A04E09042075901CC24B7FCB9 |
:105F3000C094DC2CB401882777FD8095982F2E2DF6 |
:105F40003327442755270E949C3B9B01AC01C60187 |
:105F5000B5010E949C3B20E032E040E050E00E940E |
:105F6000103C89019A01FF24E89CC001E99C900D36 |
:105F7000F89C900D112464E070E00E94DB3B600F00 |
:105F8000711F882777FD8095982F6093A5047093E3 |
:105F9000A6048093A7049093A80420913104309123 |
:105FA00032044091330450913404261B370B480BC4 |
:105FB000590B2093310430933204409333045093AF |
:105FC0003404213593EC390790E0490790E05907F4 |
:105FD0002CF080E593ECA0E0B0E009C0205B3C43EE |
:105FE0004F4F5F4F64F480EB9CE3AFEFBFEF8093C4 |
:105FF000310490933204A0933304B093340480911D |
:10600000390783FF9AC080914304815080934304F1 |
:106010008F3FD9F40E94293790933E0480933D042A |
:1060200020913F0430914004821B930B845E9D4F6E |
:1060300068E671E00E94DB3B845B904090934204F1 |
:106040008093410482E38093430460910104709142 |
:106050000204809103049091040420E032E040E0C7 |
:1060600050E00E94103C890137FF03C01095019554 |
:106070001F4F6091090470910A0480910B04909164 |
:106080000C0420E032E040E050E00E94103CB901F6 |
:1060900037FF03C0709561957F4F601771070CF44F |
:1060A000B8016332710574F480918A04882351F039 |
:1060B00080913D0490913E049093400480933F046E |
:1060C00010928A04209197033327629FC001639F37 |
:1060D000900D729F900D112460E470E00E94DB3BF4 |
:1060E000261B370B1216130644F58091410490913C |
:1060F0004204FC012E9FC0012F9F900D3E9F900DEA |
:10610000112460E270E00E94DB3B882777FD8095D8 |
:10611000982F2091310430913204409133045091F2 |
:106120003404260F371F481F591F20933104309322 |
:106130003204409333045093340480918B04815093 |
:1061400080938B048F3F09F079C088E180938B04A2 |
:10615000E0904507FF24002711276091010470910A |
:1061600002048091030490910404A80197010E9405 |
:10617000103C3093AB062093AA06609109047091FD |
:106180000A0480910B0490910C04A80197010E94CD |
:10619000103C3093AD062093AC0680919D07909102 |
:1061A0009E079093AF068093AE068091A7079091CB |
:1061B000A8079093B1068093B0068091A0079091B4 |
:1061C000A1079093B3068093B206809156049091F4 |
:1061D00057049093B5068093B4066091390470918A |
:1061E0003A0480913B0490913C0420E032E040E08E |
:1061F00050E00E94103C3093B7062093B606809181 |
:106200003D0490913E049093BB068093BA06809122 |
:106210000803909109039093BD068093BC0680917A |
:106220004E0499279093BF068093BE0680918807FD |
:10623000909189079093CB068093CA0680915E0463 |
:10624000C0908107D0908207882391F0B6018827FB |
:1062500077FD8095982F0E94DA3A2091A20730911D |
:10626000A3074091A4075091A5070E94543B2DC05D |
:1062700060910104709102048091030490910404E0 |
:106280000E94DA3A20919407309195074091960741 |
:10629000509197070E94543B7B018C01B6018827DF |
:1062A00077FD8095982F0E94DA3A2091A2073091CD |
:1062B000A3074091A4075091A5070E94543B9B015E |
:1062C000AC01C801B7010E94353A0E94BD3A7093F3 |
:1062D00082076093810780915F04C0907907D09016 |
:1062E0007A07882391F0B601882777FD8095982F4B |
:1062F0000E94DA3A2091A2073091A3074091A407A7 |
:106300005091A5070E94543B2DC0609109047091E3 |
:106310000A0480910B0490910C040E94DA3A2091B7 |
:1063200094073091950740919607509197070E94E6 |
:10633000543B7B018C01B601882777FD8095982F0F |
:106340000E94DA3A2091A2073091A3074091A40756 |
:106350005091A5070E94543B9B01AC01C801B701B5 |
:106360000E94353A0E94BD3A70937A07609379078C |
:10637000209094073090950740909607509097078B |
:106380006091A0077091A107882777FD8095982FCD |
:106390000E94DA3A2091A2073091A3074091A40706 |
:1063A0005091A5070E94543B7B018C0160911D0414 |
:1063B00070911E0480911F04909120040E94DA3A8B |
:1063C000A20191010E94543B20E030E040E05FE3F5 |
:1063D0000E94543B9B01AC01C801B7010E94353AB1 |
:1063E0000E94BD3A8B017093A1076093A007E090D3 |
:1063F0007907F0907A07F092E306E092E206609166 |
:10640000090470910A0480910B0490910C040E947D |
:10641000DA3AA20191010E94543B69877A878B87FF |
:106420009C870E94BD3A7093DD066093DC06209144 |
:106430005104309152043EA32DA33093E9062093DA |
:10644000E806809181079091820738E081309307B8 |
:106450001CF080E098E005C08050984F34F480E054 |
:1064600098EF909382078093810751E0E51658E0FA |
:10647000F5061CF080E098E007C080E0E81688EFA1 |
:10648000F80634F480E098EF90937A0780937907C8 |
:1064900098E0013019071CF080E098E005C000503A |
:1064A000184F34F480E098EF9093A1078093A007F1 |
:1064B00080913907992780FFD9C04091940381FFCB |
:1064C0000EC0423310F580915604909157044497C2 |
:1064D00090935904809358041092450419C0209158 |
:1064E0009F033091A003240F311D80913E0799270F |
:1064F000FC012E9FC0012F9F900D3E9F900D1124F7 |
:106500004497909359048093580481E08093450404 |
:1065100080914404882321F0109259041092580469 |
:1065200020915604309157044091580450915904D9 |
:10653000421753070CF09AC080914504882309F450 |
:1065400095C0241B350B809195039927AC01249F9E |
:10655000C001259F900D349F900D112460E170E0E3 |
:106560000E94DB3B09811A81061B170B2091D70380 |
:106570003091D803809193039927DC012A9FC001B1 |
:106580002B9F900D3A9F900D112468E070E00E94BF |
:10659000DB3B061B170B6091390470913A04809124 |
:1065A0003B0490913C0420E032E040E050E00E9447 |
:1065B000103CCA01B901209196033327442755277F |
:1065C0000E949C3B20E230E040E050E00E94103C02 |
:1065D000BFEF2E3C3B0714F42EEC3FEF80918C0470 |
:1065E00090918D04AC0164E0440F551F6A95E1F76A |
:1065F000481B590B2333310514F022E330E0021B12 |
:10660000130BCA01800F911F60E170E00E94DB3B19 |
:1066100070938D0460938C0480913A0799276817D2 |
:1066200079078CF4E981FA81E817F9072CF0909347 |
:106630008D0480938C0407C029813A8130938D04A6 |
:1066400020938C040DC080918C0490918D0449811D |
:106650005A814817590724F450938D0440938C04B1 |
:1066600080918C0490918D049A838983A981BA8149 |
:10667000B093B906A093B806E090A007F090A107E8 |
:106680000091A5041091A6042091A7043091A804BC |
:1066900080919F07882E992454971CF41C821B829A |
:1066A00029C089819A8162E070E00E94DB3B9701FA |
:1066B000201B310BCB01261737070CF4C90170954D |
:1066C00061957F4F681779070CF4BC01C401E9811B |
:1066D000FA818E1B9F0B681779070CF4CB01298177 |
:1066E0003A81281939093C832B832817390714F478 |
:1066F0009C838B8360904F04709050048091B90408 |
:106700009091BA04681A790A809181079091820762 |
:106710008619970990938B0780938A0720E030E0D1 |
:1067200040E050E0C201B1010E94E43A8823D1F177 |
:106730006091AD047091AE048091AF049091B0046B |
:106740000E94DA3A5B016C016091010470910204CD |
:1067500080910304909104040E94DA3AA20191010D |
:106760000E94543B7B018C01B301882777FD809503 |
:10677000982F0E94DA3A9B01AC01C801B7010E9430 |
:10678000343A9B01AC01C601B5010E94353A0E9422 |
:10679000BD3A6093AD047093AE048093AF049093C0 |
:1067A000B0041CC020918A0730918B07442737FD25 |
:1067B0004095542F8091AD049091AE04A091AF0408 |
:1067C000B091B004820F931FA41FB51F8093AD0436 |
:1067D0009093AE04A093AF04B093B0048091AD0445 |
:1067E0009091AE04A091AF04B091B00418161906B0 |
:1067F0001A061B0624F40297A109B10903C00296E8 |
:10680000A11DB11D8093AD049093AE04A093AF047D |
:10681000B093B0048091AD049091AE04A091AF0408 |
:10682000B091B00481383EE3930730E0A30730E035 |
:10683000B3072CF080E89EE3A0E0B0E009C08058E8 |
:10684000914CAF4FBF4F64F480E891ECAFEFBFEFD6 |
:106850008093AD049093AE04A093AF04B093B004C2 |
:1068600060918A0770918B0780918F0390919003BC |
:10687000A0919103B09192038D839E83AF83B887DB |
:10688000882777FD8095982F0E94DA3A7B018C014A |
:106890006091AD047091AE048091AF049091B0040A |
:1068A0000E94DA3A9B01AC016D817E818F819885CF |
:1068B0000E94543B9B01AC01C801B7010E94353ACC |
:1068C0000E94BD3A5B016C017CAB6BAB80919E0377 |
:1068D000E82EFF24002711278B819C8197FF03C09E |
:1068E000909581959F4F62E070E00E94DB3B9B0199 |
:1068F000A981BA812A0F3B1F442737FD4095542FA9 |
:10690000C801B7010E949C3B20E430E040E050E029 |
:106910000E94103C3901EBA9FCA9E217F3070CF423 |
:106920009501AA24BB24A618B708A501A216B30690 |
:106930000CF4A90189819A812B813C81820F931FDC |
:10694000840F951F97FF03C020E030E005C094013D |
:10695000881599050CF49C0180918307C82EDD24CD |
:10696000C601C216D3060CF4C90180937B07898146 |
:106970009A81841B950B4B815C81840F951F97FF37 |
:1069800003C020E030E005C09401881599050CF49F |
:106990009C01C601C216D3060CF4C901809380077E |
:1069A0008091BB049091BC04ADA1BEA1A81BB90B02 |
:1069B000BCABABAB8091790790917A078A1B9B0B9C |
:1069C000909378078093770720E030E040E050E034 |
:1069D000C201B1010E94E43A882371F16091A904D7 |
:1069E0007091AA048091AB049091AC040E94DA3AB1 |
:1069F0007B018C01EBA9FCA9BF01882777FD80955D |
:106A0000982F0E94DA3A9B01AC0169857A858B85C3 |
:106A10009C850E94343A9B01AC01C801B7010E94D9 |
:106A2000353A0E94BD3A6093A9047093AA048093FA |
:106A3000AB049093AC041CC0209177073091780789 |
:106A4000442737FD4095542F8091A9049091AA04C2 |
:106A5000A091AB04B091AC04820F931FA41FB51F8B |
:106A60008093A9049093AA04A093AB04B093AC04C0 |
:106A70008091A9049091AA04A091AB04B091AC04B8 |
:106A8000181619061A061B0624F40297A109B10963 |
:106A900003C00296A11DB11D8093A9049093AA047E |
:106AA000A093AB04B093AC048091A9049091AA0484 |
:106AB000A091AB04B091AC048138FEE39F07F0E0F5 |
:106AC000AF07F0E0BF072CF080E89EE3A0E0B0E065 |
:106AD00009C08058914CAF4FBF4F64F480E891ECEF |
:106AE000AFEFBFEF8093A9049093AA04A093AB04E7 |
:106AF000B093AC046091770770917807882777FD91 |
:106B00008095982F0E94DA3A7B018C016091A9044C |
:106B10007091AA048091AB049091AC040E94DA3A7F |
:106B20009B01AC016D817E818F8198850E94543BD1 |
:106B30009B01AC01C801B7010E94353A0E94BD3AE1 |
:106B40009301661577050CF49B01C501A216B306E7 |
:106B50000CF4C90149815A81480F591FAB81BC818E |
:106B60004A1B5B0B57FF03C020E030E005C09401D7 |
:106B7000481559050CF49A01A601C216D3060CF467 |
:106B8000A90140939A0729813A81281B390BEB818F |
:106B9000FC812E1B3F0B37FF03C040E050E005C0D7 |
:106BA000A401281539050CF4A901C601C416D5069F |
:106BB0000CF0D1C0CA01CFC020916E0430916F0497 |
:106BC000C90113E0880F991F1A95E1F7821B930BF7 |
:106BD00068E070E00E94DB3B8B0170936F04609370 |
:106BE0006E0440E050E00C94822780915E0488237C |
:106BF00011F40C94B1290C94A729E0904507FF24C7 |
:106C0000002711276FA578A989A99AA9A80197013A |
:106C10000E94103C80919D0790919E07AA2797FDA6 |
:106C2000A095BA2F281B390B4A0B5B0BCA01B9017F |
:106C300020E130E040E050E00E94103C59016A0140 |
:106C40006BA57CA58DA59EA5A80197010E94103C6F |
:106C50008091A7079091A807AA2797FDA095BA2F22 |
:106C6000281B390B4A0B5B0BCA01B90120E130E04C |
:106C700040E050E00E94103C79018A01F1E2AF1639 |
:106C8000B104C104D10414F40C94772AB0E2AB2E01 |
:106C9000B12CC12CD12C0C94882A10921104109282 |
:106CA00012041092130410921404109215041092FE |
:106CB0001604109217041092180410928C07109268 |
:106CC0008D0710928E0710928F07109290071092E6 |
:106CD00091071092920710929307109284071092D6 |
:106CE0008507109286071092870710927C071092F2 |
:106CF0007D0710927E0710927F078091210490916A |
:106D00002204A0912304B09124048093250490933D |
:106D10002604A0932704B09328048091290490911D |
:106D20002A04A0912B04B0912C0480932D049093FD |
:106D30002E04A0932F04B09330041092DA03109223 |
:106D4000D90310925D0410925C0410925B041092BF |
:106D50005A040C94C82A80939807E2E1CA5C0C9408 |
:106D6000473C8091BD049091BE04A091BF04B091B6 |
:106D7000C0048093C5049093C604A093C704B09345 |
:106D8000C8048091C1049091C204A091C304B09141 |
:106D9000C4048093C9049093CA04A093CB04B09315 |
:106DA000CC0408951092BA041092B9041092BC0455 |
:106DB0001092BB0408951F920F920FB60F921124E8 |
:106DC0002F933F934F938F939F938091B707833077 |
:106DD00019F08430A1F508C08EB58093CD041EBC97 |
:106DE00084E08093B7072BC08091CD049927382F7A |
:106DF00022278EB59927282B392BC9018D509E4FFC |
:106E0000875E9340D0F48091BA07853019F08630C0 |
:106E100069F406C03093BC072093BB0786E00BC023 |
:106E20003093BE072093BD0787E005C03093C007AD |
:106E30002093BF0785E08093BA071092B7079F9110 |
:106E40008F914F913F912F910F900FBE0F901F90F8 |
:106E50001895AAE0B0E0EFE2F7E30C942B3CA09089 |
:106E60005007BB2433E0AA0CBB1C3A95E1F7CC24B5 |
:106E7000DD246091010470910204809103049091DB |
:106E80000404A60195010E94103C79018A01FF24A7 |
:106E9000E7FCF094C7010E94DC392C01C7010E9475 |
:106EA0001F3A3C016091090470910A0480910B041F |
:106EB00090910C04A60195010E94103C79018A0171 |
:106EC000FF24E7FCF094C7010E94DC399A87898788 |
:106ED000C7010E941F3A1C016091BB077091BC075B |
:106EE000E090BD07F090BE072091AF07332727FD44 |
:106EF0003095E21AF30A0027F7FC0095102FA090B6 |
:106F0000BF07B090C0072091B007332727FD309509 |
:106F1000A21AB30ACC24B7FCC094DC2C2091AE0793 |
:106F2000332727FD3095621B730B882777FD8095EB |
:106F3000982F882477FC8094982CA40193010E94B8 |
:106F40009C3B3B014C0189859A85AA2797FDA0951A |
:106F5000BA2F8D839E83AF83B887C201AA2797FD7E |
:106F6000A095BA2F89839A83AB83BC83C801B701EC |
:106F70002D813E814F8158850E949C3B29813A8119 |
:106F80004B815C810E949C3B20E034E040E050E07B |
:106F90000E94103C620E731E841E951E442437FC12 |
:106FA0004094542CC601B501A20191010E949C3B62 |
:106FB00029813A814B815C810E949C3B20E034E036 |
:106FC00040E050E00E94103C621A730A840A950A5D |
:106FD000C801B701A20191010E949C3B7B018C0179 |
:106FE000C601B5012D813E814F8158850E949C3B91 |
:106FF000E60EF71E081F191FC801B70120E034E094 |
:1070000040E050E00E94103C79018A01C401B301C4 |
:1070100020E034E040E050E00E94103CDA01C90179 |
:10702000B7010E943D399C0197FF05C08827992729 |
:10703000821B930B04C088E691E0821B930BE2E174 |
:10704000C65F0C94473C8091B707813041F0813096 |
:1070500018F0823049F51CC02A9A81E016C02A989F |
:107060008091BA07853011F481E305C0863011F4B0 |
:1070700082E301C083E38EBD88E090E00E949A0C19 |
:107080009093B9078093B80782E08093B70708957B |
:107090008091B8079091B9070E94A30C882321F032 |
:1070A0001EBC83E08093B7070895A0E0B0E0EBE555 |
:1070B000F8E30C942D3C299A809100018A3011F458 |
:1070C000289801C0289AAA24BB2400E010E0882454 |
:1070D0009924EE24FF2466247724CC24DD2462E363 |
:1070E000462E55248091BB079091BC0708171907BD |
:1070F0002CF40091BB071091BC070BC08091BB071B |
:107100009091BC078A159B0524F4A090BB07B09012 |
:10711000BC078091BD079091BE07E816F9062CF4D4 |
:10712000E090BD07F090BE070BC08091BD07909125 |
:10713000BE078815990524F48090BD079090BE077E |
:107140008091BF079091C007C816D9062CF4C09053 |
:10715000BF07D090C0070BC08091BF079091C007B8 |
:107160008615970524F46090BF077090C0075520DE |
:1071700081F485B191E0892785B985B192E08927AD |
:1071800085B982E390E09093C1038093C00352E3FA |
:10719000552E8AE090E00E949A0CEC01CE010E94EC |
:1071A000A30C8823D9F3E0913307FF27EE0FFF1FCD |
:1071B000EB5FF84F80819181843691050CF44A94FD |
:1071C000442011F05A948ECFC8018A199B099093DC |
:1071D000B2078093B107C701881999099093B40742 |
:1071E0008093B307C601861997099093B6078093D9 |
:1071F000B507EEEAF7E0C8018A0D9B1D62E070E07A |
:107200000E94DB3B6093AE07C701880D991D62E0C9 |
:1072100070E00E94DB3B6093AF07C601860D971DAF |
:1072200062E070E00E94DB3B6093B00789E0A8E673 |
:10723000B1E0182E0E94813CE0E1CDB7DEB70C949E |
:10724000493C83ED8CBD84B1846A84B9809100018E |
:107250008A3019F4539A5B9802C03E9A469885E0AA |
:107260008093BA071092B70789E0EEEAF7E0A8E644 |
:10727000B1E0182E0E94703C08951F93CF93DF93C6 |
:10728000EC01892B31F46115710519F480E090E06F |
:107290008FC077FD02C011E001C01FEF209729F4D5 |
:1072A0008AE51802C001112483C0882777FD8095E4 |
:1072B000982F26E0660F771F881F991F2A95D1F710 |
:1072C0009E01442737FD4095542F0E94103CF90140 |
:1072D00037FF03C0F095E195FF4F41E0EA35F40731 |
:1072E00034F4E55FFA4F8491282F332747C05CE1DF |
:1072F000E73AF5071CF02AE530E040C089E0ED38B8 |
:10730000F8071CF029E530E039C045E0EA3BF40716 |
:107310001CF028E530E032C054E0E731F5071CF0FE |
:1073200027E530E02BC083E0EE32F8071CF026E5BD |
:1073300030E024C042E0E939F4071CF025E530E0F4 |
:107340001DC052E0E233F5071CF024E530E016C022 |
:1073500081E0E73EF8071CF023E530E00FC041E094 |
:10736000ED3AF4071CF022E530E008C0EF57F14099 |
:107370001CF021E530E002C020E530E01C161D06BF |
:107380006CF4812F992787FD9095AC01249FC00153 |
:10739000259F900D349F900D11240AC011162CF4D6 |
:1073A00084EB90E0821B930B03C0C901845B904087 |
:1073B000DF91CF911F910895FC0197FD03C041E03B |
:1073C00050E005C0F095E195FF4F4FEF5FEFEB35D3 |
:1073D000F1055CF0CF018B5590408A35910540F462 |
:1073E00084EB90E08E1B9F0BFC0121E030E010C08D |
:1073F000CF01855B90408A35910518F4E45BF0403D |
:1074000005C088E691E08E1B9F0BFC012FEF3FEF3C |
:10741000EE0FFF1FEB59F94F85919491BC01629FCC |
:10742000C001639F900D729F900D11249C01429F9B |
:10743000C001439F900D529F900D112408952AE59D |
:1074400030E0281B390BC9010E94DC390895FC018A |
:107450004150504030F001900616D1F73197CF01DE |
:1074600008958827992708955058192EEFD001D0F4 |
:10747000D2C0BA176207730784079507B1F188F481 |
:107480000EF410940B2EBA2FA02D062E622F202D55 |
:10749000072E732F302D082E842F402D092E952F67 |
:1074A000502DFF275523B9F0591B49F0573E98F04E |
:1074B000469537952795A795F0405395C9F776F0EF |
:1074C000BA0F621F731F841F30F4879577956795F5 |
:1074D000B795F040939517FA0F2E0895BF1BBB2761 |
:1074E000BA0B620B730B840BF6CFDEF6DBC0AED0AB |
:1074F00001D091C0552359F0992369F09F575F57E8 |
:10750000951B33F442F4903811F4915805C09BC098 |
:1075100091589F3F09F4C6C0BB2711246217730717 |
:10752000840730F4660F771F881FBB1F915098F3B4 |
:1075300011D00F920FD00F920DD0A0E82617370769 |
:1075400048071B0609F0A048BA2F602D7F918F9144 |
:1075500000240895A0E80024621773078407B1058A |
:1075600028F0621B730B840BB1090A2A660F771F80 |
:10757000881FBB1FA69581F7089597FB73D09F378F |
:1075800038F0FEE9F91B982F872F762F6B2F05C057 |
:1075900086C09695879577956795F150D0F73EF41C |
:1075A00090958095709561957F4F8F4F9F4F08956F |
:1075B000E89403C097FB0EF4F3DFB62F672F782F04 |
:1075C000892F9EE9002427C00ED05EF004C00BD0A6 |
:1075D00026F001C008D019F020F48FEF089580E064 |
:1075E000089581E0089597FB092E052600F8689418 |
:1075F00030D0E89407FC07C062177307840795072B |
:1076000021F008F400940794989408959A95BB0F7C |
:10761000661F771F881F11249923A1F08823B2F7D2 |
:107620009F3F59F0BB0F48F421F4002011F460FF94 |
:1076300004C06F5F7F4F8F4F9F4F881F979587952F |
:1076400097F908952CC09FEF80EC0895052E092628 |
:1076500007FA440F551F5F3F79F0AA27A51708F0D6 |
:1076600051E04795880F991F9F3F31F0BB27B9170D |
:1076700008F091E0879508959F919F911124E3CFA1 |
:1076800097FB880F991F9F3F31F0BB27B91708F070 |
:1076900091E0879508959F919F911124D4CF6627FB |
:1076A0007727882799270895D1DF01D0B4CF992370 |
:1076B00039F0552329F09F575F57950F13F49AF12E |
:1076C000F1CF91589F3FE1F3629FA12D0F92BB270D |
:1076D000639FA00DB11DEE27729FA00DB11DEE1F7F |
:1076E000AF93AA27649FB00DE11D739FB00DE11DFC |
:1076F000AA1F6627829FB00DE11DA61F5527749F04 |
:10770000E00DA11D551F839FE00DA11D561F849FF5 |
:10771000A00D511D852F7A2F6E2F1F900F9088235B |
:107720001AF4939539F48FCF000C111CBB1F661F00 |
:10773000771F881F01280895629FD001739FF00171 |
:10774000829FE00DF11D649FE00DF11D929FF00DF1 |
:10775000839FF00D749FF00D659FF00D9927729F28 |
:10776000B00DE11DF91F639FB00DE11DF91FBD01B3 |
:10777000CF0111240895991B79E004C0991F961731 |
:1077800008F0961B881F7A95C9F780950895AA1B63 |
:10779000BB1B51E107C0AA1FBB1FA617B70710F0FC |
:1077A000A61BB70B881F991F5A95A9F7809590952E |
:1077B000BC01CD01089597FB092E07260AD077FD5D |
:1077C00004D0E5DF06D000201AF4709561957F4F54 |
:1077D0000895F6F7909581959F4F0895A1E21A2E8E |
:1077E000AA1BBB1BFD010DC0AA1FBB1FEE1FFF1F65 |
:1077F000A217B307E407F50720F0A21BB30BE40BB5 |
:10780000F50B661F771F881F991F1A9469F76095FB |
:107810007095809590959B01AC01BD01CF010895B5 |
:1078200097FB092E05260ED057FD04D0D7DF0AD0CE |
:10783000001C38F450954095309521953F4F4F4F9F |
:107840005F4F0895F6F790958095709561957F4FFD |
:107850008F4F9F4F08952F923F924F925F926F925A |
:107860007F928F929F92AF92BF92CF92DF92EF92D0 |
:10787000FF920F931F93CF93DF93CDB7DEB7CA1B51 |
:10788000DB0B0FB6F894DEBF0FBECDBF09942A887C |
:10789000398848885F846E847D848C849B84AA8424 |
:1078A000B984C884DF80EE80FD800C811B81AA81B1 |
:1078B000B981CE0FD11D0FB6F894DEBF0FBECDBF7C |
:1078C000ED010895EE0FFF1F0590F491E02D09944E |
:1078D000F999FECFB2BDA1BDF89A119600B40895F2 |
:1078E000F7DF01921A94E1F70895F999FECFB2BD3E |
:1078F000A1BD00BC11960FB6F894FA9AF99A0FBE82 |
:0E79000008950190F2DF1A94E1F70895FFCF89 |
:10790E000A01FF64496E74656772616C4E69636B40 |
:10791E0020202020496E74656772616C526F6C6C0A |
:10792E00202020204163634E69636B20202020209D |
:10793E0020202020416363526F6C6C202020202079 |
:10794E00202020204779726F476965722020202001 |
:10795E0020202020486F6568656E57657274202060 |
:10796E00202020204163635A202020202020202028 |
:10797E00202020204761732020202020202020203E |
:10798E00202020204B6F6D7061737356616C75658E |
:10799E00202020205370616E6E756E67202020208F |
:1079AE0020202020456D7066616E672020202020EB |
:1079BE0020202020416E616C6F6731312020202005 |
:1079CE00202020204D6F746F725F566F726E65208F |
:1079DE00202020204D6F746F725F48696E74656E43 |
:1079EE00202020204D6F746F725F4C696E6B732078 |
:1079FE00202020204D6F746F725F52656368747320 |
:107A0E00202020204163635F5A2020202020202048 |
:107A1E00202020204D697474656C4163634E696348 |
:107A2E006B2020204D697474656C416363526F6CDA |
:107A3E006C202020496E74656772616C4572724EBF |
:107A4E0069636B20496E74656772616C4572725220 |
:107A5E006F6C6C204D697474656C496E744E6963FD |
:107A6E006B2020204D697474656C496E74526F6C76 |
:107A7E006C0920004E65757472616C4E69636B20E3 |
:107A8E0020202020526F6C6C4F6666736574202028 |
:107A9E0020202020496E74526F6C6C2A46616B74E4 |
:107AAE006F722020416E616C6F673236202020206D |
:107ABE0020202020446972656B74417573676C5287 |
:107ACE006F6C6C204D65737377657274526F6C6C4E |
:107ADE0020202020417573676C65696368526F6C56 |
:107AEE006C202020492D4C616765526F6C6C2020F4 |
:107AFE0020202020537469636B526F6C6C20202001 |
:107B0E0020202020FFFF0A016400007D0000FF03FB |
:107B1E000102030405060708090A48616C6C6F2010 |
:107B2E0057656C74000000000000000000000000AB |
:107B3E000000000000000000000000000000000037 |
:107B4E000000000000000000000000000000000027 |
:107B5E000000000000000000000000000000000017 |
:107B6E00000000000000000000000C014265676983 |
:107B7E006E6E657200004E6F726D616C0000537018 |
:107B8E006F72740000640090D0030090D003001751 |
:107B9E00B7D13830FB103A409696020A644664EC30 |
:027BAE00FF00D6 |
:00000001FF |
/branches/MicroMag3_Nick666/V0.67g/FlightCtrl.aps |
---|
0,0 → 1,0 |
<AVRStudio><MANAGEMENT><ProjectName>FlightCtrl</ProjectName><Created>15-May-2007 11:20:41</Created><LastEdit>11-Oct-2007 22:58:54</LastEdit><ICON>241</ICON><ProjectType>0</ProjectType><Created>15-May-2007 11:20:41</Created><Version>4</Version><Build>4, 13, 0, 528</Build><ProjectTypeName>AVR GCC</ProjectTypeName></MANAGEMENT><CODE_CREATION><ObjectFile>default\Flight-Ctrl.elf</ObjectFile><EntryFile></EntryFile><SaveFolder>F:\SVN\MikroKopter\FlightCtrl\branches\V0.64_ZeroWarnings\</SaveFolder></CODE_CREATION><DEBUG_TARGET><CURRENT_TARGET>AVR Simulator</CURRENT_TARGET><CURRENT_PART>ATmega644.xml</CURRENT_PART><BREAKPOINTS></BREAKPOINTS><IO_EXPAND><HIDE>false</HIDE></IO_EXPAND><REGISTERNAMES><Register>R00</Register><Register>R01</Register><Register>R02</Register><Register>R03</Register><Register>R04</Register><Register>R05</Register><Register>R06</Register><Register>R07</Register><Register>R08</Register><Register>R09</Register><Register>R10</Register><Register>R11</Register><Register>R12</Register><Register>R13</Register><Register>R14</Register><Register>R15</Register><Register>R16</Register><Register>R17</Register><Register>R18</Register><Register>R19</Register><Register>R20</Register><Register>R21</Register><Register>R22</Register><Register>R23</Register><Register>R24</Register><Register>R25</Register><Register>R26</Register><Register>R27</Register><Register>R28</Register><Register>R29</Register><Register>R30</Register><Register>R31</Register></REGISTERNAMES><COM>Auto</COM><COMType>0</COMType><WATCHNUM>0</WATCHNUM><WATCHNAMES><Pane0></Pane0><Pane1></Pane1><Pane2></Pane2><Pane3></Pane3></WATCHNAMES><BreakOnTrcaeFull>0</BreakOnTrcaeFull></DEBUG_TARGET><Debugger><Triggers></Triggers></Debugger><AVRGCCPLUGIN><FILES><SOURCEFILE>uart.c</SOURCEFILE><SOURCEFILE>analog.c</SOURCEFILE><SOURCEFILE>eeprom.c</SOURCEFILE><SOURCEFILE>fc.c</SOURCEFILE><SOURCEFILE>GPS.c</SOURCEFILE><SOURCEFILE>main.c</SOURCEFILE><SOURCEFILE>menu.c</SOURCEFILE><SOURCEFILE>printf_P.c</SOURCEFILE><SOURCEFILE>rc.c</SOURCEFILE><SOURCEFILE>timer0.c</SOURCEFILE><SOURCEFILE>twimaster.c</SOURCEFILE><HEADERFILE>uart.h</HEADERFILE><HEADERFILE>_Settings.h</HEADERFILE><HEADERFILE>analog.h</HEADERFILE><HEADERFILE>fc.h</HEADERFILE><HEADERFILE>gps.h</HEADERFILE><HEADERFILE>main.h</HEADERFILE><HEADERFILE>menu.h</HEADERFILE><HEADERFILE>old_macros.h</HEADERFILE><HEADERFILE>printf_P.h</HEADERFILE><HEADERFILE>rc.h</HEADERFILE><HEADERFILE>Settings.h</HEADERFILE><HEADERFILE>timer0.h</HEADERFILE><HEADERFILE>twimaster.h</HEADERFILE></FILES><CONFIGS><CONFIG><NAME>default</NAME><USESEXTERNALMAKEFILE>NO</USESEXTERNALMAKEFILE><EXTERNALMAKEFILE></EXTERNALMAKEFILE><PART>atmega644</PART><HEX>1</HEX><LIST>1</LIST><MAP>1</MAP><OUTPUTFILENAME>Flight-Ctrl.elf</OUTPUTFILENAME><OUTPUTDIR>default\</OUTPUTDIR><ISDIRTY>1</ISDIRTY><OPTIONS><OPTION><FILE>GPS.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>analog.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>eeprom.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>fc.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>main.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>menu.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>printf_P.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>rc.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>timer0.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>twimaster.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>uart.c</FILE><OPTIONLIST></OPTIONLIST></OPTION></OPTIONS><INCDIRS/><LIBDIRS/><LIBS><LIB>libc.a</LIB><LIB>libm.a</LIB></LIBS><LINKOBJECTS/><OPTIONSFORALL>-Wall -gdwarf-2 -Wstrict-prototypes -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -DVERSION_HAUPTVERSION=0 -DVERSION_NEBENVERSION=64 -DVERSION_KOMPATIBEL=5</OPTIONSFORALL><LINKEROPTIONS></LINKEROPTIONS><SEGMENTS/></CONFIG></CONFIGS><LASTCONFIG>default</LASTCONFIG><USES_WINAVR>1</USES_WINAVR><GCC_LOC>C:\Program Files\WinAVR\bin\avr-gcc.exe</GCC_LOC><MAKE_LOC>C:\Program Files\WinAVR\utils\bin\make.exe</MAKE_LOC></AVRGCCPLUGIN><IOView><usergroups/></IOView><Files><File00000><FileId>00000</FileId><FileName>main.c</FileName><Status>1</Status></File00000><File00001><FileId>00001</FileId><FileName>uart.c</FileName><Status>1</Status></File00001><File00002><FileId>00002</FileId><FileName>menu.c</FileName><Status>1</Status></File00002><File00003><FileId>00003</FileId><FileName>timer0.c</FileName><Status>1</Status></File00003><File00004><FileId>00004</FileId><FileName>fc.c</FileName><Status>1</Status></File00004><File00005><FileId>00005</FileId><FileName>fc.h</FileName><Status>1</Status></File00005><File00006><FileId>00006</FileId><FileName>menu.h</FileName><Status>1</Status></File00006><File00007><FileId>00007</FileId><FileName>TWIMASTER.C</FileName><Status>1</Status></File00007><File00008><FileId>00008</FileId><FileName>twimaster.h</FileName><Status>1</Status></File00008><File00009><FileId>00009</FileId><FileName>uart.h</FileName><Status>1</Status></File00009><File00010><FileId>00010</FileId><FileName>_Settings.h</FileName><Status>1</Status></File00010><File00011><FileId>00011</FileId><FileName>analog.h</FileName><Status>1</Status></File00011><File00012><FileId>00012</FileId><FileName>gps.h</FileName><Status>1</Status></File00012><File00013><FileId>00013</FileId><FileName>main.h</FileName><Status>1</Status></File00013><File00014><FileId>00014</FileId><FileName>old_macros.h</FileName><Status>1</Status></File00014><File00015><FileId>00015</FileId><FileName>printf_P.h</FileName><Status>1</Status></File00015><File00016><FileId>00016</FileId><FileName>rc.h</FileName><Status>1</Status></File00016><File00017><FileId>00017</FileId><FileName>Settings.h</FileName><Status>1</Status></File00017><File00018><FileId>00018</FileId><FileName>timer0.h</FileName><Status>1</Status></File00018></Files><Events><Bookmarks></Bookmarks></Events><Trace><Filters></Filters></Trace></AVRStudio> |
/branches/MicroMag3_Nick666/V0.67g/GPS.c |
---|
0,0 → 1,30 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
signed int GPS_Nick = 0; |
signed int GPS_Roll = 0; |
long GpsAktuell_X = 0; |
long GpsAktuell_Y = 0; |
long GpsZiel_X = 0; |
long GpsZiel_Y = 0; |
void GPS_Neutral(void) |
{ |
GpsZiel_X = GpsAktuell_X; |
GpsZiel_Y = GpsAktuell_Y; |
} |
void GPS_BerechneZielrichtung(void) |
{ |
GPS_Nick = 0; |
GPS_Roll = 0; |
} |
/branches/MicroMag3_Nick666/V0.67g/License.txt |
---|
0,0 → 1,52 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten und nichtkommerziellen Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt und genannt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-profit use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet, our webpage (http://www.MikroKopter.de) must be |
// + clearly linked and named as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
/branches/MicroMag3_Nick666/V0.67g/Readme.pdf |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/MicroMag3_Nick666/V0.67g/Settings.h |
---|
--- branches/MicroMag3_Nick666/V0.67g/_Settings.h (nonexistent) |
+++ branches/MicroMag3_Nick666/V0.67g/_Settings.h (revision 715) |
@@ -0,0 +1,50 @@ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Testmodi |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define MOTOR_OFF 0 |
+#define MOTOR_TEST 0 |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Abstimmung |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define ACC_AMPLIFY 12 |
+#define FAKTOR_P 1 |
+#define FAKTOR_I 0.0001 |
+ |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Debug-Interface |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define SIO_DEBUG 1 // Soll der Debugger aktiviert sein? |
+#define MIN_DEBUG_INTERVALL 500 // in diesem Intervall werden Degugdaten ohne Aufforderung gesendet |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Sender |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+ #define K_NICK 0 |
+ #define K_ROLL 1 |
+ #define K_GAS 2 |
+ #define K_GIER 3 |
+ #define K_POTI1 4 |
+ #define K_POTI2 5 |
+ #define K_POTI3 6 |
+ #define K_POTI4 7 |
+// +++++++++++++++++++++++++++++++ |
+// + Getestete Settings: |
+// +++++++++++++++++++++++++++++++ |
+// Setting: Kamera |
+// Stick_P:3 |
+// Stick_D:0 |
+// Gyro_P: 175 |
+// Gyro_I: 175 |
+// Ki_Anteil: 10 |
+// +++++++++++++++++++++++++++++++ |
+// + Getestete Settings: |
+// +++++++++++++++++++++++++++++++ |
+// Setting: Normal |
+// Stick_P:2 |
+// Stick_D:8 |
+// Gyro_P: 80 |
+// Gyro_I: 150 |
+// Ki_Anteil: 5 |
+ |
/branches/MicroMag3_Nick666/V0.67g/analog.c |
---|
0,0 → 1,147 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az, UBat = 100; |
volatile int AdWertNick = 0, AdWertRoll = 0, AdWertGier = 0; |
volatile int AdWertAccRoll = 0,AdWertAccNick = 0,AdWertAccHoch = 0; |
volatile char MessanzahlNick = 0, MessanzahlRoll = 0, MessanzahlGier = 0; |
volatile char messanzahl_AccNick = 0, messanzahl_AccRoll = 0, messanzahl_AccHoch = 0; |
volatile long Luftdruck = 32000; |
volatile int StartLuftdruck; |
volatile unsigned int MessLuftdruck = 1023; |
unsigned char DruckOffsetSetting; |
volatile int HoeheD = 0; |
volatile char messanzahl_Druck; |
volatile int tmpLuftdruck; |
volatile unsigned int ZaehlMessungen = 0; |
//####################################################################################### |
// |
void ADC_Init(void) |
//####################################################################################### |
{ |
ADMUX = 0;//Referenz ist extern |
ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE); |
//Free Running Mode, Division Factor 128, Interrupt on |
} |
void SucheLuftruckOffset(void) |
{ |
unsigned int off; |
off = eeprom_read_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET]); |
if(off > 20) off -= 10; |
OCR0A = off; |
Delay_ms_Mess(100); |
if(MessLuftdruck < 850) off = 0; |
for(; off < 250;off++) |
{ |
OCR0A = off; |
Delay_ms_Mess(50); |
printf("."); |
if(MessLuftdruck < 900) break; |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET], off); |
DruckOffsetSetting = off; |
Delay_ms_Mess(300); |
} |
//####################################################################################### |
// |
SIGNAL(SIG_ADC) |
//####################################################################################### |
{ |
static unsigned char kanal=0,state = 0; |
static unsigned int gier1, roll1, nick1; |
ANALOG_OFF; |
switch(state++) |
{ |
case 0: |
gier1 = ADC; |
kanal = 1; |
ZaehlMessungen++; |
break; |
case 1: |
roll1 = ADC; |
kanal = 2; |
break; |
case 2: |
nick1 = ADC; |
kanal = 4; |
break; |
case 3: |
UBat = (3 * UBat + ADC / 3) / 4;//(UBat + ((ADC * 39) / 256) + 19) / 2; |
kanal = 6; |
break; |
case 4: |
Aktuell_ay = NeutralAccY - ADC; |
AdWertAccRoll = Aktuell_ay; |
kanal = 7; |
break; |
case 5: |
Aktuell_ax = ADC - NeutralAccX; |
AdWertAccNick = Aktuell_ax; |
kanal = 0; |
break; |
case 6: |
if(PlatinenVersion == 10) AdWertGier = (ADC + gier1) / 2; |
else AdWertGier = ADC + gier1; |
kanal = 1; |
break; |
case 7: |
if(PlatinenVersion == 10) AdWertRoll = (ADC + roll1) / 2; |
else AdWertRoll = ADC + roll1; |
kanal = 2; |
break; |
case 8: |
if(PlatinenVersion == 10) AdWertNick = (ADC + nick1) / 2; |
else AdWertNick = ADC + nick1; |
//AdWertNick = 0; |
//AdWertNick += Poti2; |
kanal = 5; |
break; |
case 9: |
AdWertAccHoch = (signed int) ADC - NeutralAccZ; |
AdWertAccHoch += abs(Aktuell_ay) / 4 + abs(Aktuell_ax) / 4; |
if(AdWertAccHoch > 1) |
{ |
if(NeutralAccZ < 800) NeutralAccZ+= 0.02; |
} |
else if(AdWertAccHoch < -1) |
{ |
if(NeutralAccZ > 600) NeutralAccZ-= 0.02; |
} |
messanzahl_AccHoch = 1; |
Aktuell_az = ADC; |
Mess_Integral_Hoch += AdWertAccHoch; // Integrieren |
Mess_Integral_Hoch -= Mess_Integral_Hoch / 1024; // dämfen |
kanal = 3; |
break; |
case 10: |
tmpLuftdruck += ADC; |
if(++messanzahl_Druck >= 5) |
{ |
MessLuftdruck = ADC; |
messanzahl_Druck = 0; |
HoeheD = (int)(StartLuftdruck - tmpLuftdruck - HoehenWert); // D-Anteil = neuerWert - AlterWert |
Luftdruck = (tmpLuftdruck + 3 * Luftdruck) / 4; |
HoehenWert = StartLuftdruck - Luftdruck; |
tmpLuftdruck = 0; |
} |
kanal = 0; |
state = 0; |
break; |
default: |
kanal = 0; |
state = 0; |
break; |
} |
ADMUX = kanal; |
if(state != 0) ANALOG_ON; |
} |
/branches/MicroMag3_Nick666/V0.67g/analog.h |
---|
0,0 → 1,24 |
/*####################################################################################### |
#######################################################################################*/ |
extern volatile int UBat; |
extern volatile int AdWertNick, AdWertRoll, AdWertGier; |
extern volatile int AdWertAccRoll,AdWertAccNick,AdWertAccHoch; |
extern volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az; |
extern volatile long Luftdruck; |
extern volatile char messanzahl_Druck; |
extern volatile unsigned int ZaehlMessungen; |
extern unsigned char DruckOffsetSetting; |
extern volatile int HoeheD; |
extern volatile unsigned int MessLuftdruck; |
extern volatile int StartLuftdruck; |
extern volatile char MessanzahlNick; |
unsigned int ReadADC(unsigned char adc_input); |
void ADC_Init(void); |
void SucheLuftruckOffset(void); |
#define ANALOG_OFF ADCSRA=0 |
#define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE) |
/branches/MicroMag3_Nick666/V0.67g/compass.c |
---|
0,0 → 1,243 |
/* |
Copyright 2007, Niklas Nold |
This program (files compass.c and compass.h) is free software; you can redistribute it and/or modify |
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; |
either version 3 of the License, or (at your option) any later version. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Please note: All the other files for the project "Mikrokopter" by H. Buss are under the license (license_buss.txt) published by www.mikrokopter.de |
*/ |
#include "main.h" |
struct MM3_calib_struct ee_calib EEMEM; // Reservierung im EEPROM |
struct MM3_working_struct MM3; |
struct MM3_calib_struct MM3_calib; |
//############################################################################ |
// Initialisierung |
void init_MM3(void) |
//############################################################################ |
{ |
// SPI-Schnittstelle initialisieren |
SPCR = (1<<SPIE)|(1<<SPE)|(1<<MSTR)|(1<<SPR1)|(1<<SPR0); // Interrupt an, Master, 156 kHz Oszillator |
DDRB |= (1<<PB7)|(1<<PB5)|(1<<PB2); // J8, MOSI, SCK Ausgang |
if(PlatinenVersion == 10) |
{ |
DDRD |= (1<<PD3); // PD3 als Ausgang |
PORTD &= ~(1<<PD3); // J5 permanent auf Low |
} |
else |
{ |
DDRC |= (1<<PC6); // PC6 als Ausgang |
PORTC &= ~(1<<PC6); // J9 permanent auf Low |
} |
// Init Statemachine |
MM3.AXIS = MM3_X; |
MM3.STATE = MM3_RESET; |
// Kalibrierung aus dem EEprom lesen |
eeprom_read_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Wird in der SIGNAL (SIG_OVERFLOW0) aufgerufen |
void timer0_MM3(void) |
//############################################################################ |
{ |
switch (MM3.STATE) |
{ |
case MM3_RESET: |
PORTB |= (1<<PB2); // J8 auf High, MM3 Reset |
MM3.STATE = MM3_START_TRANSFER; |
return; |
case MM3_START_TRANSFER: |
PORTB &= ~(1<<PB2); // J8 auf Low (war ~125 µs auf High) |
if (MM3.AXIS == MM3_X) SPDR = 0x31; // Schreiben ins SPDR löst automatisch SPI-Übertragung (MOSI und MISO) aus |
else if (MM3.AXIS == MM3_Y) SPDR = 0x32; // Micromag Period Select ist auf 256 (0x30) |
else SPDR = 0x33; //if (MM3.AXIS == MM3_Z) // 1: x-Achse, 2: Y-Achse, 3: Z-Achse |
MM3.DRDY = SetDelay(8); // Laut Datenblatt max. Zeit bis Messung fertig (bei PS 256 eigentlich 4 ms) |
MM3.STATE = MM3_WAIT_DRDY; |
return; |
case MM3_WAIT_DRDY: |
if (CheckDelay(MM3.DRDY)) {SPDR = 0x00;MM3.STATE = MM3_DRDY;} // Irgendwas ins SPDR, damit Übertragung ausgelöst wird, wenn Wartezeit vorbei |
return; // Jetzt gehts weiter in SIGNAL (SIG_SPI) |
} |
} |
//############################################################################ |
// SPI byte ready |
SIGNAL (SIG_SPI) |
//############################################################################ |
{ |
static char tmp; |
int wert; |
switch (MM3.STATE) |
{ |
case MM3_DRDY: // 1. Byte ist da, zwischenspeichern |
tmp = SPDR; |
SPDR = 0x00; // Übertragung von 2. Byte auslösen |
MM3.STATE = MM3_BYTE2; |
return; |
case MM3_BYTE2: // 2. Byte der entsprechenden Achse ist da |
wert = tmp; |
wert <<= 8; // 1. Byte an MSB-Stelle rücken |
wert |= SPDR; // 2. Byte dranpappen |
if(abs(wert) < Max_Axis_Value) // Spikes filtern. Zuweisung nur, wenn Max-Wert nicht überschritten |
switch (MM3.AXIS) |
{ |
case MM3_X: |
MM3.x_axis = wert; |
MM3.AXIS = MM3_Y; |
break; |
case MM3_Y: |
MM3.y_axis = wert; |
MM3.AXIS = MM3_Z; |
break; |
default: //case MM3_Z: |
MM3.z_axis = wert; |
MM3.AXIS = MM3_X; |
} |
MM3.STATE = MM3_RESET; |
} |
} |
//############################################################################ |
// Kompass kalibrieren |
void calib_MM3(void) |
//############################################################################ |
{ |
signed int x_min=0,x_max=0,y_min=0,y_max=0,z_min=0,z_max=0; |
uint8_t measurement=50,beeper=0; |
unsigned int timer; |
GRN_ON; |
ROT_OFF; |
while (measurement) |
{ |
//H_earth = MM3.x_axis*MM3.x_axis + MM3.y_axis*MM3.y_axis + MM3.z_axis*MM3.z_axis; |
if (MM3.x_axis > x_max) x_max = MM3.x_axis; |
else if (MM3.x_axis < x_min) x_min = MM3.x_axis; |
if (MM3.y_axis > y_max) y_max = MM3.y_axis; |
else if (MM3.y_axis < y_min) y_min = MM3.y_axis; |
if (MM3.z_axis > z_max) z_max = MM3.z_axis; |
else if (MM3.z_axis < z_min) z_min = MM3.z_axis; |
if (!beeper) |
{ |
ROT_FLASH; |
GRN_FLASH; |
beeptime = 50; |
beeper = 50; |
} |
beeper--; |
// Schleife mit 100 Hz |
timer = SetDelay(10); |
while(!CheckDelay(timer)); |
// Wenn Gas zurück genommen wird, Kalibrierung mit 1/2 Sekunde Verzögerung beenden |
if (PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] < 100) measurement--; |
} |
// Wertebereich der Achsen |
MM3_calib.X_range = (x_max - x_min); |
MM3_calib.Y_range = (y_max - y_min); |
MM3_calib.Z_range = (z_max - z_min); |
// Offset der Achsen |
MM3_calib.X_off = (x_max + x_min) / 2; |
MM3_calib.Y_off = (y_max + y_min) / 2; |
MM3_calib.Z_off = (z_max + z_min) / 2; |
// und im EEProm abspeichern |
eeprom_write_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Neigungskompensierung und Berechnung der Ausrichtung |
int heading_MM3(void) |
//############################################################################ |
{ |
signed int sin_nick, cos_nick, sin_roll, cos_roll; |
long x_axis, y_axis, z_axis; |
long x_corr, y_corr; |
signed int heading; |
int8_t nicktilt,rolltilt; |
unsigned int div_faktor; |
div_faktor = (uint16_t)EE_Parameter.UserParam3 * 8; |
// Berechung von sinus und cosinus |
nicktilt = (IntegralNick/div_faktor); |
sin_nick = sin_i(nicktilt); |
cos_nick = cos_i(nicktilt); |
rolltilt = (IntegralRoll/div_faktor); |
sin_roll = sin_i(rolltilt); |
cos_roll = cos_i(rolltilt); |
// Offset |
x_axis = (MM3.x_axis - MM3_calib.X_off); |
y_axis = (MM3.y_axis - MM3_calib.Y_off); |
z_axis = (MM3.z_axis - MM3_calib.Z_off); |
/* |
// Normierung Wertebereich |
if ((MM3_calib.X_range > MM3_calib.Y_range) && (MM3_calib.X_range > MM3_calib.Z_range)) |
{ |
y_axis = (y_axis * MM3_calib.X_range) / MM3_calib.Y_range; |
z_axis = (z_axis * MM3_calib.X_range) / MM3_calib.Z_range; |
} |
else if ((MM3_calib.Y_range > MM3_calib.X_range) && (MM3_calib.Y_range > MM3_calib.Z_range)) |
{ |
x_axis = (x_axis * MM3_calib.Y_range) / MM3_calib.X_range; |
z_axis = (z_axis * MM3_calib.Y_range) / MM3_calib.Z_range; |
} |
else //if ((MM3_calib.Z_range > MM3_calib.X_range) && (MM3_calib.Z_range > MM3_calib.Y_range)) |
{ |
x_axis = (x_axis * MM3_calib.Z_range) / MM3_calib.X_range; |
y_axis = (y_axis * MM3_calib.Z_range) / MM3_calib.Y_range; |
} |
*/ |
// Neigungskompensierung |
x_corr = x_axis * cos_nick; |
x_corr += (y_axis * sin_roll * sin_nick) /1024; |
x_corr -= (z_axis * cos_roll * sin_nick) /1024; |
x_corr /= 1024; |
y_corr = y_axis * cos_roll; |
y_corr += z_axis * sin_roll; |
y_corr /= 1024; |
// Winkelberechnung |
heading = atan2_i(x_corr, y_corr); |
if (heading < 0) heading = -heading; |
else heading = 360 - heading; |
return (heading); |
} |
/branches/MicroMag3_Nick666/V0.67g/compass.h |
---|
0,0 → 1,44 |
struct MM3_working_struct |
{ |
uint8_t STATE; |
unsigned int DRDY; |
uint8_t AXIS; |
volatile signed int x_axis; |
volatile signed int y_axis; |
volatile signed int z_axis; |
}; |
struct MM3_calib_struct |
{ |
int8_t X_off; |
int8_t Y_off; |
int8_t Z_off; |
uint16_t X_range; |
uint16_t Y_range; |
uint16_t Z_range; |
}; |
extern struct MM3_working_struct MM3; |
extern struct MM3_calib_struct MM3_calib; |
void init_MM3(void); |
void timer0_MM3(void); |
void calib_MM3(void); |
int heading_MM3(void); |
#define Max_Axis_Value 500 |
// Die Werte der Statemachine |
#define MM3_RESET 0 |
#define MM3_START_TRANSFER 1 |
#define MM3_WAIT_DRDY 2 |
#define MM3_DRDY 3 |
#define MM3_BYTE2 4 |
#define MM3_X 5 |
#define MM3_Y 6 |
#define MM3_Z 7 |
#define MM3_TILT 8 |
#define MM3_IDLE 9 |
/branches/MicroMag3_Nick666/V0.67g/eeprom.c |
---|
0,0 → 1,182 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Konstanten |
// + 0-250 -> normale Werte |
// + 251 -> Poti1 |
// + 252 -> Poti2 |
// + 253 -> Poti3 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
void DefaultKonstanten1(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV | CFG_KOMPASS_FIX;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-250 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 4; // Wert : 0-50 |
EE_Parameter.Stick_P = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 8; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 14; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 26; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 128; // Wert : 0-250 |
EE_Parameter.Gyro_P = 120; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 150; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 32; |
EE_Parameter.UserParam1 = 32 * 4; //zur freien Verwendung |
EE_Parameter.UserParam2 = 0; //zur freien Verwendung |
EE_Parameter.UserParam3 = 0; //zur freien Verwendung |
EE_Parameter.UserParam4 = 0; //zur freien Verwendung |
EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
EE_Parameter.LoopGasLimit = 50; |
EE_Parameter.LoopThreshold = 90; // Wert: 0-250 Schwelle für Stickausschlag |
EE_Parameter.LoopHysterese = 50; |
EE_Parameter.LoopConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
EE_Parameter.AchsKopplung1 = 100; |
EE_Parameter.AchsGegenKopplung1 = 10; |
EE_Parameter.WinkelUmschlagNick = 100; |
EE_Parameter.WinkelUmschlagRoll = 100; |
EE_Parameter.GyroAccAbgleich = 50; // 1/k |
EE_Parameter.Driftkomp = 4; |
EE_Parameter.DynamicStability = 100; |
memcpy(EE_Parameter.Name, "Sport\0", 12); |
} |
void DefaultKonstanten2(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-250 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 2; // Wert : 0-50 |
EE_Parameter.Stick_P = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 0; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 10; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 26; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 128; // Wert : 0-250 |
EE_Parameter.Gyro_P = 175; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 175; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 32; |
EE_Parameter.UserParam1 = 20 * 4; // zur freien Verwendung |
EE_Parameter.UserParam2 = 0; // zur freien Verwendung |
EE_Parameter.UserParam3 = 0; // zur freien Verwendung |
EE_Parameter.UserParam4 = 0; // zur freien Verwendung |
EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
EE_Parameter.LoopGasLimit = 50; |
EE_Parameter.LoopThreshold = 90; // Wert: 0-250 Schwelle für Stickausschlag |
EE_Parameter.LoopHysterese = 50; |
EE_Parameter.LoopConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts |
EE_Parameter.AchsKopplung1 = 100; // Faktor, mit dem Gier die Achsen Roll und Nick verkoppelt |
EE_Parameter.AchsGegenKopplung1 = 10; |
EE_Parameter.WinkelUmschlagNick = 100; |
EE_Parameter.WinkelUmschlagRoll = 100; |
EE_Parameter.GyroAccAbgleich = 100; // 1/k |
EE_Parameter.Driftkomp = 4; |
EE_Parameter.DynamicStability = 75; |
memcpy(EE_Parameter.Name, "Normal\0", 12); |
} |
void DefaultKonstanten3(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = CFG_DREHRATEN_BEGRENZER | CFG_ACHSENKOPPLUNG_AKTIV;///*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-250 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 2; // Wert : 0-50 |
EE_Parameter.Stick_P = 3; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 0; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 8; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 26; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 128; // Wert : 0-250 |
EE_Parameter.Gyro_P = 200; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 175; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 10; |
EE_Parameter.UserParam1 = 20 * 4; // zur freien Verwendung |
EE_Parameter.UserParam2 = 0; // zur freien Verwendung |
EE_Parameter.UserParam3 = 0; // zur freien Verwendung |
EE_Parameter.UserParam4 = 0; // zur freien Verwendung |
EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
EE_Parameter.LoopGasLimit = 50; |
EE_Parameter.LoopThreshold = 90; // Wert: 0-250 Schwelle für Stickausschlag |
EE_Parameter.LoopHysterese = 50; |
EE_Parameter.LoopConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts |
EE_Parameter.AchsKopplung1 = 100; // Faktor, mit dem Gier die Achsen Roll und Nick verkoppelt |
EE_Parameter.AchsGegenKopplung1 = 10; |
EE_Parameter.WinkelUmschlagNick = 100; |
EE_Parameter.WinkelUmschlagRoll = 100; |
EE_Parameter.GyroAccAbgleich = 100; // 1/k |
EE_Parameter.Driftkomp = 4; |
EE_Parameter.DynamicStability = 50; |
memcpy(EE_Parameter.Name, "Beginner\0", 12); |
} |
/branches/MicroMag3_Nick666/V0.67g/fc.c |
---|
0,0 → 1,1148 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten (nicht-kommerziellen) Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-commercial use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
// + clearly linked as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
#include "eeprom.c" |
unsigned char h,m,s; |
volatile unsigned int I2CTimeout = 100; |
int MesswertNick,MesswertRoll,MesswertGier; |
int AdNeutralNick = 0,AdNeutralRoll = 0,AdNeutralGier = 0,StartNeutralRoll = 0,StartNeutralNick = 0; |
int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
volatile int NeutralAccX=0, NeutralAccY=0; |
volatile float NeutralAccZ = 0; |
long IntegralNick = 0,IntegralNick2 = 0; |
long IntegralRoll = 0,IntegralRoll2 = 0; |
long IntegralAccNick = 0,IntegralAccRoll = 0,IntegralAccZ = 0; |
long Integral_Gier = 0; |
long Mess_IntegralNick = 0,Mess_IntegralNick2 = 0; |
long Mess_IntegralRoll = 0,Mess_IntegralRoll2 = 0; |
long Mess_Integral_Gier = 0,Mess_Integral_Gier2 = 0; |
long MittelIntegralNick,MittelIntegralRoll,MittelIntegralNick2,MittelIntegralRoll2; |
volatile long Mess_Integral_Hoch = 0; |
int KompassValue = 0; |
int KompassStartwert = 0; |
int KompassRichtung = 0; |
uint8_t updKompass = 0; |
unsigned char MAX_GAS,MIN_GAS; |
unsigned char Notlandung = 0; |
unsigned char HoehenReglerAktiv = 0; |
long Umschlag180Nick = 250000L, Umschlag180Roll = 250000L; |
float GyroFaktor; |
float IntegralFaktor; |
volatile int DiffNick,DiffRoll; |
int Poti1 = 0, Poti2 = 0, Poti3 = 0, Poti4 = 0; |
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links, Count; |
unsigned char MotorWert[5]; |
volatile unsigned char SenderOkay = 0; |
int StickNick = 0,StickRoll = 0,StickGier = 0; |
char MotorenEin = 0; |
int HoehenWert = 0; |
int SollHoehe = 0; |
int LageKorrekturRoll = 0,LageKorrekturNick = 0; |
float Ki = FAKTOR_I; |
unsigned char Looping_Nick = 0,Looping_Roll = 0; |
unsigned char Looping_Links = 0, Looping_Rechts = 0, Looping_Unten = 0, Looping_Oben = 0; |
unsigned char Parameter_Luftdruck_D = 48; // Wert : 0-250 |
unsigned char Parameter_MaxHoehe = 251; // Wert : 0-250 |
unsigned char Parameter_Hoehe_P = 16; // Wert : 0-32 |
unsigned char Parameter_Hoehe_ACC_Wirkung = 58; // Wert : 0-250 |
unsigned char Parameter_KompassWirkung = 64; // Wert : 0-250 |
unsigned char Parameter_Gyro_P = 150; // Wert : 10-250 |
unsigned char Parameter_Gyro_I = 150; // Wert : 0-250 |
unsigned char Parameter_Gier_P = 2; // Wert : 1-20 |
unsigned char Parameter_I_Faktor = 10; // Wert : 1-20 |
unsigned char Parameter_UserParam1 = 0; |
unsigned char Parameter_UserParam2 = 0; |
unsigned char Parameter_UserParam3 = 0; |
unsigned char Parameter_UserParam4 = 0; |
unsigned char Parameter_UserParam5 = 0; |
unsigned char Parameter_UserParam6 = 0; |
unsigned char Parameter_UserParam7 = 0; |
unsigned char Parameter_UserParam8 = 0; |
unsigned char Parameter_ServoNickControl = 100; |
unsigned char Parameter_LoopGasLimit = 70; |
unsigned char Parameter_AchsKopplung1 = 0; |
unsigned char Parameter_AchsGegenKopplung1 = 0; |
unsigned char Parameter_DynamicStability = 100; |
struct mk_param_struct EE_Parameter; |
signed int ExternStickNick = 0,ExternStickRoll = 0,ExternStickGier = 0, ExternHoehenValue = -20; |
void Piep(unsigned char Anzahl) |
{ |
while(Anzahl--) |
{ |
if(MotorenEin) return; //auf keinen Fall im Flug! |
beeptime = 100; |
Delay_ms(250); |
} |
} |
/* |
//############################################################################ |
// Neutrallage kalibrieren und fest im EEPROM abspeichern |
void calib_acc(void) |
//############################################################################ |
{ |
unsigned int timer; |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
CalibrierMittelwert(); |
timer = SetDelay(5); |
while (!CheckDelay(timer)); |
CalibrierMittelwert(); |
acc_neutral.X = abs(Mittelwert_AccNick) / ACC_AMPLIFY; |
acc_neutral.Y = abs(Mittelwert_AccRoll) / ACC_AMPLIFY; |
acc_neutral.Z = Aktuell_az; |
eeprom_write_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
} |
*/ |
//############################################################################ |
// Nullwerte ermitteln |
void SetNeutral(void) |
//############################################################################ |
{ |
NeutralAccX = 0; |
NeutralAccY = 0; |
NeutralAccZ = 0; |
AdNeutralNick = 0; |
AdNeutralRoll = 0; |
AdNeutralGier = 0; |
Parameter_AchsKopplung1 = 0; |
Parameter_AchsGegenKopplung1 = 0; |
CalibrierMittelwert(); |
Delay_ms_Mess(100); |
CalibrierMittelwert(); |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
AdNeutralNick= AdWertNick; |
AdNeutralRoll= AdWertRoll; |
AdNeutralGier= AdWertGier; |
StartNeutralRoll = AdNeutralRoll; |
StartNeutralNick = AdNeutralNick; |
if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_NICK]) > 4) |
{ |
NeutralAccY = abs(Mittelwert_AccRoll) / ACC_AMPLIFY; |
NeutralAccX = abs(Mittelwert_AccNick) / ACC_AMPLIFY; |
NeutralAccZ = Aktuell_az; |
} |
else |
{ |
NeutralAccX = (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_NICK]) * 256 + (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_NICK+1]); |
NeutralAccY = (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL]) * 256 + (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL+1]); |
NeutralAccZ = (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_Z]) * 256 + (int)eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_Z+1]); |
} |
Mess_IntegralNick = 0; |
Mess_IntegralNick2 = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralRoll2 = 0; |
Mess_Integral_Gier = 0; |
MesswertNick = 0; |
MesswertRoll = 0; |
MesswertGier = 0; |
StartLuftdruck = Luftdruck; |
HoeheD = 0; |
Mess_Integral_Hoch = 0; |
KompassStartwert = KompassValue; |
GPS_Neutral(); |
beeptime = 50; |
Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagRoll * 2500L; |
ExternHoehenValue = 0; |
} |
//############################################################################ |
// Bearbeitet die Messwerte |
void Mittelwert(void) |
//############################################################################ |
{ |
static signed long tmpl,tmpl2; |
MesswertGier = (signed int) AdNeutralGier - AdWertGier; |
MesswertRoll = (signed int) AdWertRoll - AdNeutralRoll; |
MesswertNick = (signed int) AdWertNick - AdNeutralNick; |
// Beschleunigungssensor ++++++++++++++++++++++++++++++++++++++++++++++++ |
Mittelwert_AccNick = ((long)Mittelwert_AccNick * 1 + ((ACC_AMPLIFY * (long)AdWertAccNick))) / 2L; |
Mittelwert_AccRoll = ((long)Mittelwert_AccRoll * 1 + ((ACC_AMPLIFY * (long)AdWertAccRoll))) / 2L; |
Mittelwert_AccHoch = ((long)Mittelwert_AccHoch * 1 + ((long)AdWertAccHoch)) / 2L; |
IntegralAccNick += ACC_AMPLIFY * AdWertAccNick; |
IntegralAccRoll += ACC_AMPLIFY * AdWertAccRoll; |
IntegralAccZ += Aktuell_az - NeutralAccZ; |
// Gier ++++++++++++++++++++++++++++++++++++++++++++++++ |
Mess_Integral_Gier += MesswertGier; |
Mess_Integral_Gier2 += MesswertGier; |
// Kopplungsanteil +++++++++++++++++++++++++++++++++++++ |
if(!Looping_Nick && !Looping_Roll && (EE_Parameter.GlobalConfig & CFG_ACHSENKOPPLUNG_AKTIV)) |
{ |
tmpl = Mess_IntegralNick / 4096L; |
tmpl *= MesswertGier; |
tmpl *= Parameter_AchsKopplung1; //125 |
tmpl /= 2048L; |
tmpl2 = Mess_IntegralRoll / 4096L; |
tmpl2 *= MesswertGier; |
tmpl2 *= Parameter_AchsKopplung1; |
tmpl2 /= 2048L; |
} |
else tmpl = tmpl2 = 0; |
// Roll ++++++++++++++++++++++++++++++++++++++++++++++++ |
MesswertRoll += tmpl; |
MesswertRoll += (tmpl2*Parameter_AchsGegenKopplung1)/512L; //109 |
Mess_IntegralRoll2 += MesswertRoll; |
Mess_IntegralRoll += MesswertRoll - LageKorrekturRoll; |
if(Mess_IntegralRoll > Umschlag180Roll) |
{ |
Mess_IntegralRoll = -(Umschlag180Roll - 10000L); |
Mess_IntegralRoll2 = Mess_IntegralRoll; |
} |
if(Mess_IntegralRoll <-Umschlag180Roll) |
{ |
Mess_IntegralRoll = (Umschlag180Roll - 10000L); |
Mess_IntegralRoll2 = Mess_IntegralRoll; |
} |
if(AdWertRoll < 15) MesswertRoll = -1000; |
if(AdWertRoll < 7) MesswertRoll = -2000; |
if(PlatinenVersion == 10) |
{ |
if(AdWertRoll > 1010) MesswertRoll = +1000; |
if(AdWertRoll > 1017) MesswertRoll = +2000; |
} |
else |
{ |
if(AdWertRoll > 2020) MesswertRoll = +1000; |
if(AdWertRoll > 2034) MesswertRoll = +2000; |
} |
// Nick ++++++++++++++++++++++++++++++++++++++++++++++++ |
MesswertNick -= tmpl2; |
MesswertNick -= (tmpl*Parameter_AchsGegenKopplung1)/512L; |
Mess_IntegralNick2 += MesswertNick; |
Mess_IntegralNick += MesswertNick - LageKorrekturNick; |
if(Mess_IntegralNick > Umschlag180Nick) |
{ |
Mess_IntegralNick = -(Umschlag180Nick - 10000L); |
Mess_IntegralNick2 = Mess_IntegralNick; |
} |
if(Mess_IntegralNick <-Umschlag180Nick) |
{ |
Mess_IntegralNick = (Umschlag180Nick - 10000L); |
Mess_IntegralNick2 = Mess_IntegralNick; |
} |
if(AdWertNick < 15) MesswertNick = -1000; |
if(AdWertNick < 7) MesswertNick = -2000; |
if(PlatinenVersion == 10) |
{ |
if(AdWertNick > 1010) MesswertNick = +1000; |
if(AdWertNick > 1017) MesswertNick = +2000; |
} |
else |
{ |
if(AdWertNick > 2020) MesswertNick = +1000; |
if(AdWertNick > 2034) MesswertNick = +2000; |
} |
//++++++++++++++++++++++++++++++++++++++++++++++++ |
// ADC einschalten |
ANALOG_ON; |
//++++++++++++++++++++++++++++++++++++++++++++++++ |
Integral_Gier = Mess_Integral_Gier; |
IntegralNick = Mess_IntegralNick; |
IntegralRoll = Mess_IntegralRoll; |
IntegralNick2 = Mess_IntegralNick2; |
IntegralRoll2 = Mess_IntegralRoll2; |
if(EE_Parameter.GlobalConfig & CFG_DREHRATEN_BEGRENZER && !Looping_Nick && !Looping_Roll) |
{ |
if(MesswertNick > 200) MesswertNick += 4 * (MesswertNick - 200); |
else if(MesswertNick < -200) MesswertNick += 4 * (MesswertNick + 200); |
if(MesswertRoll > 200) MesswertRoll += 4 * (MesswertRoll - 200); |
else if(MesswertRoll < -200) MesswertRoll += 4 * (MesswertRoll + 200); |
} |
if(Poti1 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110) Poti1++; else if(Poti1 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110 && Poti1) Poti1--; |
if(Poti2 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110) Poti2++; else if(Poti2 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110 && Poti2) Poti2--; |
if(Poti3 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110) Poti3++; else if(Poti3 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110 && Poti3) Poti3--; |
if(Poti4 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110) Poti4++; else if(Poti4 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110 && Poti4) Poti4--; |
if(Poti1 < 0) Poti1 = 0; else if(Poti1 > 255) Poti1 = 255; |
if(Poti2 < 0) Poti2 = 0; else if(Poti2 > 255) Poti2 = 255; |
if(Poti3 < 0) Poti3 = 0; else if(Poti3 > 255) Poti3 = 255; |
if(Poti4 < 0) Poti4 = 0; else if(Poti4 > 255) Poti4 = 255; |
} |
//############################################################################ |
// Messwerte beim Ermitteln der Nullage |
void CalibrierMittelwert(void) |
//############################################################################ |
{ |
// ADC auschalten, damit die Werte sich nicht während der Berechnung ändern |
ANALOG_OFF; |
MesswertNick = AdWertNick; |
MesswertRoll = AdWertRoll; |
MesswertGier = AdWertGier; |
Mittelwert_AccNick = ACC_AMPLIFY * (long)AdWertAccNick; |
Mittelwert_AccRoll = ACC_AMPLIFY * (long)AdWertAccRoll; |
Mittelwert_AccHoch = AdWertAccHoch; |
// ADC einschalten |
ANALOG_ON; |
if(Poti1 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110) Poti1++; else if(Poti1 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110 && Poti1) Poti1--; |
if(Poti2 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110) Poti2++; else if(Poti2 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110 && Poti2) Poti2--; |
if(Poti3 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110) Poti3++; else if(Poti3 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110 && Poti3) Poti3--; |
if(Poti4 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110) Poti4++; else if(Poti4 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110 && Poti4) Poti4--; |
if(Poti1 < 0) Poti1 = 0; else if(Poti1 > 255) Poti1 = 255; |
if(Poti2 < 0) Poti2 = 0; else if(Poti2 > 255) Poti2 = 255; |
if(Poti3 < 0) Poti3 = 0; else if(Poti3 > 255) Poti3 = 255; |
if(Poti4 < 0) Poti4 = 0; else if(Poti4 > 255) Poti4 = 255; |
Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
} |
//############################################################################ |
// Senden der Motorwerte per I2C-Bus |
void SendMotorData(void) |
//############################################################################ |
{ |
if(MOTOR_OFF || !MotorenEin) |
{ |
Motor_Hinten = 0; |
Motor_Vorne = 0; |
Motor_Rechts = 0; |
Motor_Links = 0; |
if(MotorTest[0]) Motor_Vorne = MotorTest[0]; |
if(MotorTest[1]) Motor_Hinten = MotorTest[1]; |
if(MotorTest[2]) Motor_Links = MotorTest[2]; |
if(MotorTest[3]) Motor_Rechts = MotorTest[3]; |
} |
DebugOut.Analog[12] = Motor_Vorne; |
DebugOut.Analog[13] = Motor_Hinten; |
DebugOut.Analog[14] = Motor_Links; |
DebugOut.Analog[15] = Motor_Rechts; |
//Start I2C Interrupt Mode |
twi_state = 0; |
motor = 0; |
i2c_start(); |
} |
//############################################################################ |
// Trägt ggf. das Poti als Parameter ein |
void ParameterZuordnung(void) |
//############################################################################ |
{ |
#define CHK_POTI(b,a,min,max) { if(a > 250) { if(a == 251) b = Poti1; else if(a == 252) b = Poti2; else if(a == 253) b = Poti3; else if(a == 254) b = Poti4;} else b = a; if(b <= min) b = min; else if(b >= max) b = max;} |
CHK_POTI(Parameter_MaxHoehe,EE_Parameter.MaxHoehe,0,255); |
CHK_POTI(Parameter_Luftdruck_D,EE_Parameter.Luftdruck_D,0,100); |
CHK_POTI(Parameter_Hoehe_P,EE_Parameter.Hoehe_P,0,100); |
CHK_POTI(Parameter_Hoehe_ACC_Wirkung,EE_Parameter.Hoehe_ACC_Wirkung,0,255); |
CHK_POTI(Parameter_KompassWirkung,EE_Parameter.KompassWirkung,0,255); |
CHK_POTI(Parameter_Gyro_P,EE_Parameter.Gyro_P,10,255); |
CHK_POTI(Parameter_Gyro_I,EE_Parameter.Gyro_I,0,255); |
CHK_POTI(Parameter_I_Faktor,EE_Parameter.I_Faktor,0,255); |
CHK_POTI(Parameter_UserParam1,EE_Parameter.UserParam1,0,255); |
CHK_POTI(Parameter_UserParam2,EE_Parameter.UserParam2,0,255); |
CHK_POTI(Parameter_UserParam3,EE_Parameter.UserParam3,0,255); |
CHK_POTI(Parameter_UserParam4,EE_Parameter.UserParam4,0,255); |
CHK_POTI(Parameter_UserParam5,EE_Parameter.UserParam5,0,255); |
CHK_POTI(Parameter_UserParam6,EE_Parameter.UserParam6,0,255); |
CHK_POTI(Parameter_UserParam7,EE_Parameter.UserParam7,0,255); |
CHK_POTI(Parameter_UserParam8,EE_Parameter.UserParam8,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
CHK_POTI(Parameter_LoopGasLimit,EE_Parameter.LoopGasLimit,0,255); |
CHK_POTI(Parameter_AchsKopplung1, EE_Parameter.AchsKopplung1,0,255); |
CHK_POTI(Parameter_AchsGegenKopplung1,EE_Parameter.AchsGegenKopplung1,0,255); |
CHK_POTI(Parameter_DynamicStability,EE_Parameter.DynamicStability,0,255); |
Ki = (float) Parameter_I_Faktor * 0.0001; |
MAX_GAS = EE_Parameter.Gas_Max; |
MIN_GAS = EE_Parameter.Gas_Min; |
} |
//############################################################################ |
// |
void MotorRegler(void) |
//############################################################################ |
{ |
int motorwert,pd_ergebnis,h,tmp_int; |
int GierMischanteil,GasMischanteil; |
static long SummeNick=0,SummeRoll=0; |
static long sollGier = 0,tmp_long,tmp_long2; |
static long IntegralFehlerNick = 0; |
static long IntegralFehlerRoll = 0; |
static unsigned int RcLostTimer; |
static unsigned char delay_neutral = 0; |
static unsigned char delay_einschalten = 0,delay_ausschalten = 0; |
static unsigned int modell_fliegt = 0; |
static int hoehenregler = 0; |
static char TimerWerteausgabe = 0; |
static char NeueKompassRichtungMerken = 0; |
static long ausgleichNick, ausgleichRoll; |
Mittelwert(); |
GRN_ON; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gaswert ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GasMischanteil = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + 120; |
if(GasMischanteil > MAX_GAS - 20) GasMischanteil = MAX_GAS - 20; |
if(GasMischanteil < 0) GasMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang schlecht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay < 100) |
{ |
if(!PcZugriff) |
{ |
if(BeepMuster == 0xffff) |
{ |
beeptime = 15000; |
BeepMuster = 0x0c00; |
} |
} |
if(RcLostTimer) RcLostTimer--; |
else |
{ |
MotorenEin = 0; |
Notlandung = 0; |
} |
ROT_ON; |
if(modell_fliegt > 2000) // wahrscheinlich in der Luft --> langsam absenken |
{ |
GasMischanteil = EE_Parameter.NotGas; |
Notlandung = 1; |
PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] = 0; |
PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] = 0; |
PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] = 0; |
} |
else MotorenEin = 0; |
} |
else |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang gut |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay > 140) |
{ |
Notlandung = 0; |
RcLostTimer = EE_Parameter.NotGasZeit * 50; |
if(GasMischanteil > 40) |
{ |
if(modell_fliegt < 0xffff) modell_fliegt++; |
} |
if((modell_fliegt < 200) || (GasMischanteil < 40)) |
{ |
SummeNick = 0; |
SummeRoll = 0; |
Mess_Integral_Gier = 0; |
Mess_Integral_Gier2 = 0; |
} |
if((GasMischanteil > 200) && MotorenEin == 0) |
{ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// auf Nullwerte kalibrieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) // Neutralwerte |
{ |
if(++delay_neutral > 200) // nicht sofort |
{ |
GRN_OFF; |
MotorenEin = 0; |
delay_neutral = 0; |
modell_fliegt = 0; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70 || abs(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]) > 70) |
{ |
unsigned char setting=1; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < 70) setting = 1; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 2; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 3; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] <-70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 4; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] <-70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < 70) setting = 5; |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], setting); // aktiven Datensatz merken |
} |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
SetNeutral(); |
Piep(GetActiveParamSetNumber()); |
} |
} |
else |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -75) // ACC Neutralwerte speichern |
{ |
if(++delay_neutral > 200) // nicht sofort |
{ |
GRN_OFF; |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK],0xff); // Werte löschen |
MotorenEin = 0; |
delay_neutral = 0; |
modell_fliegt = 0; |
SetNeutral(); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK],NeutralAccX / 256); // ACC-NeutralWerte speichern |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK+1],NeutralAccX % 256); // ACC-NeutralWerte speichern |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL],NeutralAccY / 256); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL+1],NeutralAccY % 256); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z],(int)NeutralAccZ / 256); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z+1],(int)NeutralAccZ % 256); |
Piep(GetActiveParamSetNumber()); |
} |
} |
else delay_neutral = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gas ist unten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(GasMischanteil < 35) |
{ |
// Starten |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -75) |
{ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Einschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(++delay_einschalten > 200) |
{ |
delay_einschalten = 200; |
modell_fliegt = 1; |
MotorenEin = 1; |
sollGier = 0; |
Mess_Integral_Gier = 0; |
Mess_Integral_Gier2 = 0; |
Mess_IntegralNick = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralNick2 = IntegralNick; |
Mess_IntegralRoll2 = IntegralRoll; |
SummeNick = 0; |
SummeRoll = 0; |
} |
} |
else delay_einschalten = 0; |
//Auf Neutralwerte setzen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Auschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) |
{ |
if(++delay_ausschalten > 200) // nicht sofort |
{ |
MotorenEin = 0; |
delay_ausschalten = 200; |
modell_fliegt = 0; |
} |
} |
else delay_ausschalten = 0; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// neue Werte von der Funke |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!NewPpmData-- || Notlandung) |
{ |
int tmp_int; |
ParameterZuordnung(); |
StickNick = PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] * EE_Parameter.Stick_P; |
StickNick += PPM_diff[EE_Parameter.Kanalbelegung[K_NICK]] * EE_Parameter.Stick_D; |
StickRoll = PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] * EE_Parameter.Stick_P; |
StickRoll += PPM_diff[EE_Parameter.Kanalbelegung[K_ROLL]] * EE_Parameter.Stick_D; |
StickGier = -PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]; |
GyroFaktor = ((float)Parameter_Gyro_P + 10.0) / 256.0; |
IntegralFaktor = ((float) Parameter_Gyro_I) / 44000; |
#define KEY_VALUE (Parameter_UserParam1 * 4) //(Poti3 * 8) |
if(DubWiseKeys[1]) beeptime = 10; |
if(DubWiseKeys[1] & DUB_KEY_UP) tmp_int = KEY_VALUE; else |
if(DubWiseKeys[1] & DUB_KEY_DOWN) tmp_int = -KEY_VALUE; else tmp_int = 0; |
ExternStickNick = (ExternStickNick * 7 + tmp_int) / 8; |
if(DubWiseKeys[1] & DUB_KEY_LEFT) tmp_int = KEY_VALUE; else |
if(DubWiseKeys[1] & DUB_KEY_RIGHT) tmp_int = -KEY_VALUE; else tmp_int = 0; |
ExternStickRoll = (ExternStickRoll * 7 + tmp_int) / 8; |
if(DubWiseKeys[0] & 8) ExternStickGier = 50;else |
if(DubWiseKeys[0] & 4) ExternStickGier =-50;else ExternStickGier = 0; |
if(DubWiseKeys[0] & 2) ExternHoehenValue++; |
if(DubWiseKeys[0] & 16) ExternHoehenValue--; |
StickNick += ExternStickNick / 8; |
StickRoll += ExternStickRoll / 8; |
StickGier += ExternStickGier; |
if(EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) IntegralFaktor = 0; |
if(GyroFaktor < 0) GyroFaktor = 0; |
if(IntegralFaktor < 0) IntegralFaktor = 0; |
// greift in den Stick ein, um ungewolltes überschlagen zu verhindern |
if(!(EE_Parameter.LoopConfig & CFG_LOOP_LINKS) && !(EE_Parameter.LoopConfig & CFG_LOOP_RECHTS)) |
{ |
if(IntegralNick > 60000) |
{ |
StickNick -= 8 * EE_Parameter.Stick_P; |
if(IntegralNick > 80000) StickNick -= 16 * EE_Parameter.Stick_P; |
} |
else |
if(IntegralNick < -60000) |
{ |
StickNick += 8 * EE_Parameter.Stick_P; |
if(IntegralNick > 80000) StickNick -= 16 * EE_Parameter.Stick_P; |
} |
if(IntegralRoll > 60000) |
{ |
StickRoll -= 8 * EE_Parameter.Stick_P; |
if(IntegralRoll > 80000) StickRoll -= 16 * EE_Parameter.Stick_P; |
} |
else |
if(IntegralRoll < -60000) |
{ |
StickRoll += 8 * EE_Parameter.Stick_P; |
if(IntegralRoll > 80000) StickRoll -= 16 * EE_Parameter.Stick_P; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Looping? |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if((PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_LINKS) Looping_Links = 1; |
else |
{ |
{ |
if((PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < (EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese))) Looping_Links = 0; |
} |
} |
if((PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < -EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_RECHTS) Looping_Rechts = 1; |
else |
{ |
if(Looping_Rechts) // Hysterese |
{ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > -(EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese)) Looping_Rechts = 0; |
} |
} |
if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_OBEN) Looping_Oben = 1; |
else |
{ |
if(Looping_Oben) // Hysterese |
{ |
if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < (EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese))) Looping_Oben = 0; |
} |
} |
if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < -EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_UNTEN) Looping_Unten = 1; |
else |
{ |
if(Looping_Unten) // Hysterese |
{ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > -(EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese)) Looping_Unten = 0; |
} |
} |
if(Looping_Links || Looping_Rechts) Looping_Roll = 1; else Looping_Roll = 0; |
if(Looping_Oben || Looping_Unten) {Looping_Nick = 1; Looping_Roll = 0; Looping_Links = 0; Looping_Rechts = 0;} else Looping_Nick = 0; |
} // Ende neue Funken-Werte |
if(Looping_Roll) beeptime = 100; |
if(Looping_Roll || Looping_Nick) |
{ |
if(GasMischanteil > EE_Parameter.LoopGasLimit) GasMischanteil = EE_Parameter.LoopGasLimit; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Bei Empfangsausfall im Flug |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(Notlandung) |
{ |
StickGier = 0; |
StickNick = 0; |
StickRoll = 0; |
GyroFaktor = 0.1; |
IntegralFaktor = 0.005; |
Looping_Roll = 0; |
Looping_Nick = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Integrale auf ACC-Signal abgleichen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define ABGLEICH_ANZAHL 256L |
MittelIntegralNick += IntegralNick; // Für die Mittelwertbildung aufsummieren |
MittelIntegralRoll += IntegralRoll; |
MittelIntegralNick2 += IntegralNick2; |
MittelIntegralRoll2 += IntegralRoll2; |
if(Looping_Nick || Looping_Roll) |
{ |
IntegralAccNick = 0; |
IntegralAccRoll = 0; |
MittelIntegralNick = 0; |
MittelIntegralRoll = 0; |
MittelIntegralNick2 = 0; |
MittelIntegralRoll2 = 0; |
Mess_IntegralNick2 = Mess_IntegralNick; |
Mess_IntegralRoll2 = Mess_IntegralRoll; |
ZaehlMessungen = 0; |
LageKorrekturNick = 0; |
LageKorrekturRoll = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!Looping_Nick && !Looping_Roll) |
{ |
long tmp_long, tmp_long2; |
tmp_long = (long)(IntegralNick / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccNick); |
tmp_long /= 16; |
tmp_long2 = (long)(IntegralRoll / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccRoll); |
tmp_long2 /= 16; |
#define AUSGLEICH 32 //(Parameter_UserParam1 / 2) |
if(tmp_long > AUSGLEICH) tmp_long = AUSGLEICH; |
if(tmp_long < -AUSGLEICH) tmp_long =-AUSGLEICH; |
if(tmp_long2 > AUSGLEICH) tmp_long2 = AUSGLEICH; |
if(tmp_long2 <-AUSGLEICH) tmp_long2 =-AUSGLEICH; |
Mess_IntegralNick -= tmp_long; |
Mess_IntegralRoll -= tmp_long2; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(ZaehlMessungen >= ABGLEICH_ANZAHL) |
{ |
static int cnt = 0; |
static char last_n_p,last_n_n,last_r_p,last_r_n; |
static long MittelIntegralNick_Alt,MittelIntegralRoll_Alt; |
if(!Looping_Nick && !Looping_Roll) |
{ |
MittelIntegralNick /= ABGLEICH_ANZAHL; |
MittelIntegralRoll /= ABGLEICH_ANZAHL; |
IntegralAccNick = (EE_Parameter.GyroAccFaktor * IntegralAccNick) / ABGLEICH_ANZAHL; |
IntegralAccRoll = (EE_Parameter.GyroAccFaktor * IntegralAccRoll) / ABGLEICH_ANZAHL; |
IntegralAccZ = IntegralAccZ / ABGLEICH_ANZAHL; |
#define MAX_I 0//(Poti2/10) |
// Nick ++++++++++++++++++++++++++++++++++++++++++++++++ |
IntegralFehlerNick = (long)(MittelIntegralNick - (long)IntegralAccNick); |
ausgleichNick = IntegralFehlerNick / EE_Parameter.GyroAccAbgleich; |
LageKorrekturNick = ausgleichNick / ABGLEICH_ANZAHL; |
// Roll ++++++++++++++++++++++++++++++++++++++++++++++++ |
IntegralFehlerRoll = (long)(MittelIntegralRoll - (long)IntegralAccRoll); |
ausgleichRoll = IntegralFehlerRoll / EE_Parameter.GyroAccAbgleich; |
LageKorrekturRoll = ausgleichRoll / ABGLEICH_ANZAHL; |
// Mess_IntegralNick -= ausgleichNick; |
// Mess_IntegralRoll -= ausgleichRoll; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gyro-Drift ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
MittelIntegralNick2 /= ABGLEICH_ANZAHL; |
MittelIntegralRoll2 /= ABGLEICH_ANZAHL; |
// tmp_long = (long)(MittelIntegralNick2 - (long)IntegralAccNick); |
// tmp_long2 = (long)(MittelIntegralRoll2 - (long)IntegralAccRoll); |
tmp_long = IntegralNick2 - IntegralNick; |
tmp_long2 = IntegralRoll2 - IntegralRoll; |
//DebugOut.Analog[25] = MittelIntegralRoll2 / 26; |
IntegralFehlerNick = tmp_long; |
IntegralFehlerRoll = tmp_long2; |
Mess_IntegralNick2 -= IntegralFehlerNick; |
Mess_IntegralRoll2 -= IntegralFehlerRoll; |
// IntegralFehlerNick = (IntegralFehlerNick * 1 + tmp_long) / 2; |
// IntegralFehlerRoll = (IntegralFehlerRoll * 1 + tmp_long2) / 2; |
DebugOut.Analog[17] = IntegralAccNick / 26; |
DebugOut.Analog[18] = IntegralAccRoll / 26; |
DebugOut.Analog[19] = IntegralFehlerNick;// / 26; |
DebugOut.Analog[20] = IntegralFehlerRoll;// / 26; |
DebugOut.Analog[21] = MittelIntegralNick / 26; |
DebugOut.Analog[22] = MittelIntegralRoll / 26; |
//DebugOut.Analog[28] = ausgleichNick; |
DebugOut.Analog[29] = ausgleichRoll; |
DebugOut.Analog[30] = LageKorrekturRoll * 10; |
#define FEHLER_LIMIT (ABGLEICH_ANZAHL * 4) |
#define FEHLER_LIMIT2 (ABGLEICH_ANZAHL * 16) |
#define BEWEGUNGS_LIMIT 20000 |
// Nick +++++++++++++++++++++++++++++++++++++++++++++++++ |
cnt = 1;// + labs(IntegralFehlerNick) / 4096; |
if(labs(MittelIntegralNick_Alt - MittelIntegralNick) < BEWEGUNGS_LIMIT) |
{ |
if(IntegralFehlerNick > FEHLER_LIMIT2) |
{ |
if(last_n_p) |
{ |
cnt += labs(IntegralFehlerNick) / FEHLER_LIMIT2; |
ausgleichNick = IntegralFehlerNick / 8; |
if(ausgleichNick > 5000) ausgleichNick = 5000; |
LageKorrekturNick += ausgleichNick / ABGLEICH_ANZAHL; |
} |
else last_n_p = 1; |
} else last_n_p = 0; |
if(IntegralFehlerNick < -FEHLER_LIMIT2) |
{ |
if(last_n_n) |
{ |
cnt += labs(IntegralFehlerNick) / FEHLER_LIMIT2; |
ausgleichNick = IntegralFehlerNick / 8; |
if(ausgleichNick < -5000) ausgleichNick = -5000; |
LageKorrekturNick += ausgleichNick / ABGLEICH_ANZAHL; |
} |
else last_n_n = 1; |
} else last_n_n = 0; |
} else cnt = 0; |
if(cnt > EE_Parameter.Driftkomp) cnt = EE_Parameter.Driftkomp; |
if(IntegralFehlerNick > FEHLER_LIMIT) AdNeutralNick += cnt; |
if(IntegralFehlerNick < -FEHLER_LIMIT) AdNeutralNick -= cnt; |
// Roll +++++++++++++++++++++++++++++++++++++++++++++++++ |
cnt = 1;// + labs(IntegralFehlerNick) / 4096; |
ausgleichRoll = 0; |
if(labs(MittelIntegralRoll_Alt - MittelIntegralRoll) < BEWEGUNGS_LIMIT) |
{ |
if(IntegralFehlerRoll > FEHLER_LIMIT2) |
{ |
if(last_r_p) |
{ |
cnt += labs(IntegralFehlerRoll) / FEHLER_LIMIT2; |
ausgleichRoll = IntegralFehlerRoll / 8; |
if(ausgleichRoll > 5000) ausgleichRoll = 5000; |
LageKorrekturRoll += ausgleichRoll / ABGLEICH_ANZAHL; |
} |
else last_r_p = 1; |
} else last_r_p = 0; |
if(IntegralFehlerRoll < -FEHLER_LIMIT2) |
{ |
if(last_r_n) |
{ |
cnt += labs(IntegralFehlerRoll) / FEHLER_LIMIT2; |
ausgleichRoll = IntegralFehlerRoll / 8; |
if(ausgleichRoll < -5000) ausgleichRoll = -5000; |
LageKorrekturRoll += ausgleichRoll / ABGLEICH_ANZAHL; |
} |
else last_r_n = 1; |
} else last_r_n = 0; |
} else |
{ |
cnt = 0; |
} |
DebugOut.Analog[27] = ausgleichRoll; |
if(cnt > EE_Parameter.Driftkomp) cnt = EE_Parameter.Driftkomp; |
//if(cnt > 1) beeptime = 50; |
if(IntegralFehlerRoll > FEHLER_LIMIT) AdNeutralRoll += cnt; |
if(IntegralFehlerRoll < -FEHLER_LIMIT) AdNeutralRoll -= cnt; |
DebugOut.Analog[23] = AdNeutralNick;//10*(AdNeutralNick - StartNeutralNick); |
DebugOut.Analog[24] = 10*(AdNeutralRoll - StartNeutralRoll); |
} |
else |
{ |
LageKorrekturRoll = 0; |
LageKorrekturNick = 0; |
} |
if(!IntegralFaktor) { LageKorrekturRoll = 0; LageKorrekturNick = 0;} // z.B. bei HH |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++ |
MittelIntegralNick_Alt = MittelIntegralNick; |
MittelIntegralRoll_Alt = MittelIntegralRoll; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++ |
IntegralAccNick = 0; |
IntegralAccRoll = 0; |
IntegralAccZ = 0; |
MittelIntegralNick = 0; |
MittelIntegralRoll = 0; |
MittelIntegralNick2 = 0; |
MittelIntegralRoll2 = 0; |
ZaehlMessungen = 0; |
} |
//DebugOut.Analog[31] = StickRoll / (26*IntegralFaktor); |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(abs(StickGier) > 20) // war 35 |
{ |
if(!(EE_Parameter.GlobalConfig & CFG_KOMPASS_FIX)) NeueKompassRichtungMerken = 1; |
} |
tmp_int = (long) EE_Parameter.Gier_P * ((long)StickGier * abs(StickGier)) / 512L; // expo y = ax + bx² |
tmp_int += (EE_Parameter.Gier_P * StickGier) / 4; |
sollGier = tmp_int; |
Mess_Integral_Gier -= tmp_int; |
if(Mess_Integral_Gier > 50000) Mess_Integral_Gier = 50000; // begrenzen |
if(Mess_Integral_Gier <-50000) Mess_Integral_Gier =-50000; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Kompass |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
{ |
int w,v; |
if (!updKompass--) // Aufruf mit ~10 Hz |
{ |
KompassValue = heading_MM3(); |
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
updKompass = 50; |
} |
w = abs(IntegralNick /512); // mit zunehmender Neigung den Einfluss drosseln |
v = abs(IntegralRoll /512); |
if(v > w) w = v; // grösste Neigung ermitteln |
if(w < 35 && NeueKompassRichtungMerken) |
{ |
KompassStartwert = KompassValue; |
NeueKompassRichtungMerken = 0; |
} |
w = (w * Parameter_KompassWirkung) / 64; // auf die Wirkung normieren |
w = Parameter_KompassWirkung - w; // Wirkung ggf drosseln |
if(w > 0) |
{ |
Mess_Integral_Gier += (KompassRichtung * w) / 32; // nach Kompass ausrichten |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Debugwerte zuordnen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!TimerWerteausgabe--) |
{ |
TimerWerteausgabe = 24; |
DebugOut.Analog[0] = IntegralNick / EE_Parameter.GyroAccFaktor; |
DebugOut.Analog[1] = IntegralRoll / EE_Parameter.GyroAccFaktor; |
DebugOut.Analog[2] = Mittelwert_AccNick; |
DebugOut.Analog[3] = Mittelwert_AccRoll; |
DebugOut.Analog[4] = MesswertGier; |
DebugOut.Analog[5] = HoehenWert; |
DebugOut.Analog[6] =(Mess_Integral_Hoch / 512); |
DebugOut.Analog[8] = KompassValue; |
DebugOut.Analog[9] = UBat; |
DebugOut.Analog[10] = SenderOkay; |
DebugOut.Analog[16] = Mittelwert_AccHoch; |
/* DebugOut.Analog[16] = motor_rx[0]; |
DebugOut.Analog[17] = motor_rx[1]; |
DebugOut.Analog[18] = motor_rx[2]; |
DebugOut.Analog[19] = motor_rx[3]; |
DebugOut.Analog[20] = motor_rx[0] + motor_rx[1] + motor_rx[2] + motor_rx[3]; |
DebugOut.Analog[20] /= 14; |
DebugOut.Analog[21] = motor_rx[4]; |
DebugOut.Analog[22] = motor_rx[5]; |
DebugOut.Analog[23] = motor_rx[6]; |
DebugOut.Analog[24] = motor_rx[7]; |
DebugOut.Analog[25] = motor_rx[4] + motor_rx[5] + motor_rx[6] + motor_rx[7]; |
*/ |
// DebugOut.Analog[9] = MesswertNick; |
// DebugOut.Analog[9] = SollHoehe; |
// DebugOut.Analog[10] = Mess_Integral_Gier / 128; |
// DebugOut.Analog[11] = KompassStartwert; |
// DebugOut.Analog[10] = Parameter_Gyro_I; |
// DebugOut.Analog[10] = EE_Parameter.Gyro_I; |
// DebugOut.Analog[9] = KompassRichtung; |
// DebugOut.Analog[10] = GasMischanteil; |
// DebugOut.Analog[3] = HoeheD * 32; |
// DebugOut.Analog[4] = hoehenregler; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Drehgeschwindigkeit und -winkel zu einem Istwert zusammenfassen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(Looping_Nick) MesswertNick = MesswertNick * GyroFaktor; |
else MesswertNick = IntegralNick * IntegralFaktor + MesswertNick * GyroFaktor; |
if(Looping_Roll) MesswertRoll = MesswertRoll * GyroFaktor; |
else MesswertRoll = IntegralRoll * IntegralFaktor + MesswertRoll * GyroFaktor; |
// MesswertGier = MesswertGier * (GyroFaktor/2) + Integral_Gier * IntegralFaktor; |
MesswertGier = MesswertGier * (GyroFaktor) + Integral_Gier * IntegralFaktor/2; |
DebugOut.Analog[28] = MesswertRoll; |
DebugOut.Analog[25] = IntegralRoll * IntegralFaktor; |
DebugOut.Analog[31] = StickRoll;// / (26*IntegralFaktor); |
// Maximalwerte abfangen |
#define MAX_SENSOR 2048 |
if(MesswertNick > MAX_SENSOR) MesswertNick = MAX_SENSOR; |
if(MesswertNick < -MAX_SENSOR) MesswertNick = -MAX_SENSOR; |
if(MesswertRoll > MAX_SENSOR) MesswertRoll = MAX_SENSOR; |
if(MesswertRoll < -MAX_SENSOR) MesswertRoll = -MAX_SENSOR; |
if(MesswertGier > MAX_SENSOR) MesswertGier = MAX_SENSOR; |
if(MesswertGier < -MAX_SENSOR) MesswertGier = -MAX_SENSOR; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Höhenregelung |
// Die Höhenregelung schwächt lediglich das Gas ab, erhöht es allerdings nicht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//OCR0B = 180 - (Poti1 + 120) / 4; |
//DruckOffsetSetting = OCR0B; |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung |
{ |
int tmp_int; |
if(EE_Parameter.GlobalConfig & CFG_HOEHEN_SCHALTER) // Regler wird über Schalter gesteuert |
{ |
if(Parameter_MaxHoehe < 50) |
{ |
SollHoehe = HoehenWert - 20; // Parameter_MaxHoehe ist der PPM-Wert des Schalters |
HoehenReglerAktiv = 0; |
} |
else |
HoehenReglerAktiv = 1; |
} |
else |
{ |
SollHoehe = ((int) ExternHoehenValue + (int) Parameter_MaxHoehe) * (int)EE_Parameter.Hoehe_Verstaerkung - 20; |
HoehenReglerAktiv = 1; |
} |
if(Notlandung) SollHoehe = 0; |
h = HoehenWert; |
if((h > SollHoehe) && HoehenReglerAktiv) // zu hoch --> drosseln |
{ h = ((h - SollHoehe) * (int) Parameter_Hoehe_P) / 16; // Differenz bestimmen --> P-Anteil |
h = GasMischanteil - h; // vom Gas abziehen |
h -= (HoeheD * Parameter_Luftdruck_D)/8; // D-Anteil |
tmp_int = ((Mess_Integral_Hoch / 512) * (signed long) Parameter_Hoehe_ACC_Wirkung) / 32; |
if(tmp_int > 50) tmp_int = 50; |
else if(tmp_int < -50) tmp_int = -50; |
h -= tmp_int; |
hoehenregler = (hoehenregler*15 + h) / 16; |
if(hoehenregler < EE_Parameter.Hoehe_MinGas) // nicht unter MIN |
{ |
if(GasMischanteil >= EE_Parameter.Hoehe_MinGas) hoehenregler = EE_Parameter.Hoehe_MinGas; |
if(GasMischanteil < EE_Parameter.Hoehe_MinGas) hoehenregler = GasMischanteil; |
} |
if(hoehenregler > GasMischanteil) hoehenregler = GasMischanteil; // nicht mehr als Gas |
GasMischanteil = hoehenregler; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Mischer und PI-Regler |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DebugOut.Analog[7] = GasMischanteil; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gier-Anteil |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define MUL_G 1.0 |
GierMischanteil = MesswertGier - sollGier; // Regler für Gier |
//GierMischanteil = 0; |
if(GierMischanteil > (GasMischanteil / 2)) GierMischanteil = GasMischanteil / 2; |
if(GierMischanteil < -(GasMischanteil / 2)) GierMischanteil = -(GasMischanteil / 2); |
if(GierMischanteil > ((MAX_GAS - GasMischanteil))) GierMischanteil = ((MAX_GAS - GasMischanteil)); |
if(GierMischanteil < -((MAX_GAS - GasMischanteil))) GierMischanteil = -((MAX_GAS - GasMischanteil)); |
if(GasMischanteil < 20) GierMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Nick-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffNick = MesswertNick - (StickNick - GPS_Nick); // Differenz bestimmen |
if(IntegralFaktor) SummeNick += IntegralNick * IntegralFaktor - (StickNick - GPS_Nick); // I-Anteil bei Winkelregelung |
else SummeNick += DiffNick; // I-Anteil bei HH |
if(SummeNick > 0) SummeNick-= 2 ; else SummeNick += 2 ; |
if(SummeNick > 16000) SummeNick = 16000; |
if(SummeNick < -16000) SummeNick = -16000; |
pd_ergebnis = DiffNick + Ki * SummeNick; // PI-Regler für Nick |
// Motor Vorn |
tmp_int = ((long)Parameter_DynamicStability * (long)(GasMischanteil + abs(GierMischanteil)/2)) / 64; |
if(pd_ergebnis > tmp_int) pd_ergebnis = tmp_int; |
if(pd_ergebnis < -tmp_int) pd_ergebnis = -tmp_int; |
motorwert = GasMischanteil + pd_ergebnis + GierMischanteil; // Mischer |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Vorne = motorwert; |
// Motor Heck |
motorwert = GasMischanteil - pd_ergebnis + GierMischanteil; |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Hinten = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Roll-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffRoll = MesswertRoll - (StickRoll - GPS_Roll); // Differenz bestimmen |
if(IntegralFaktor) SummeRoll += IntegralRoll * IntegralFaktor - (StickRoll - GPS_Roll);// I-Anteil bei Winkelregelung |
else SummeRoll += DiffRoll; // I-Anteil bei HH |
if(SummeRoll > 0) SummeRoll-= 2 ; else SummeRoll += 2 ; |
if(SummeRoll > 16000) SummeRoll = 16000; |
if(SummeRoll < -16000) SummeRoll = -16000; |
pd_ergebnis = DiffRoll + Ki * SummeRoll; // PI-Regler für Roll |
tmp_int = ((long)Parameter_DynamicStability * (long)(GasMischanteil + abs(GierMischanteil)/2)) / 64; |
if(pd_ergebnis > tmp_int) pd_ergebnis = tmp_int; |
if(pd_ergebnis < -tmp_int) pd_ergebnis = -tmp_int; |
// Motor Links |
motorwert = GasMischanteil + pd_ergebnis - GierMischanteil; |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Links = motorwert; |
// Motor Rechts |
motorwert = GasMischanteil - pd_ergebnis - GierMischanteil; |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Rechts = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++ |
} |
/branches/MicroMag3_Nick666/V0.67g/fc.h |
---|
0,0 → 1,153 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
#ifndef _FC_H |
#define _FC_H |
extern volatile unsigned int I2CTimeout; |
extern unsigned char Sekunde,Minute; |
extern long Mess_IntegralNick,Mess_IntegralNick2; |
extern long Mess_IntegralRoll,Mess_IntegralRoll2; |
extern volatile long Mess_Integral_Hoch; |
extern long Mess_Integral_Gier,Mess_Integral_Gier2; |
extern int KompassValue; |
extern int KompassStartwert; |
extern int KompassRichtung; |
extern long IntegralNick,IntegralNick2; |
extern long IntegralRoll,IntegralRoll2; |
extern long IntegralAccNick,IntegralAccRoll,IntegralAccZ; |
extern long Integral_Gier; |
extern int HoehenWert; |
extern int SollHoehe; |
extern int MesswertNick,MesswertRoll,MesswertGier; |
extern int AdNeutralNick,AdNeutralRoll,AdNeutralGier, Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
extern volatile int NeutralAccX, NeutralAccY; |
extern volatile float NeutralAccZ; |
extern long Umschlag180Nick, Umschlag180Roll; |
extern signed int ExternStickNick,ExternStickRoll,ExternStickGier; |
extern unsigned char Parameter_UserParam1,Parameter_UserParam2,Parameter_UserParam3,Parameter_UserParam4,Parameter_UserParam5,Parameter_UserParam6,Parameter_UserParam7,Parameter_UserParam8; |
void MotorRegler(void); |
void SendMotorData(void); |
void CalibrierMittelwert(void); |
void Mittelwert(void); |
void SetNeutral(void); |
void Piep(unsigned char Anzahl); |
extern void DefaultKonstanten(void); |
void DefaultKonstanten1(void); |
void DefaultKonstanten2(void); |
extern unsigned char h,m,s; |
extern volatile unsigned char Timeout ; |
extern volatile int DiffNick,DiffRoll; |
extern int Poti1, Poti2, Poti3, Poti4; |
extern volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links, Count; |
extern unsigned char MotorWert[5]; |
extern volatile unsigned char SenderOkay; |
extern int StickNick,StickRoll,StickGier; |
extern char MotorenEin; |
extern void DefaultKonstanten1(void); |
extern void DefaultKonstanten2(void); |
struct acc_neutral_struct |
{ |
volatile int X; |
volatile int Y; |
volatile float Z; |
}; |
extern struct acc_neutral_struct acc_neutral; |
extern void calib_acc(void); |
struct mk_param_struct |
{ |
unsigned char Kanalbelegung[8]; // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3 |
unsigned char GlobalConfig; // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv |
unsigned char Hoehe_MinGas; // Wert : 0-100 |
unsigned char Luftdruck_D; // Wert : 0-250 |
unsigned char MaxHoehe; // Wert : 0-32 |
unsigned char Hoehe_P; // Wert : 0-32 |
unsigned char Hoehe_Verstaerkung; // Wert : 0-50 |
unsigned char Hoehe_ACC_Wirkung; // Wert : 0-250 |
unsigned char Stick_P; // Wert : 1-6 |
unsigned char Stick_D; // Wert : 0-64 |
unsigned char Gier_P; // Wert : 1-20 |
unsigned char Gas_Min; // Wert : 0-32 |
unsigned char Gas_Max; // Wert : 33-250 |
unsigned char GyroAccFaktor; // Wert : 1-64 |
unsigned char KompassWirkung; // Wert : 0-32 |
unsigned char Gyro_P; // Wert : 10-250 |
unsigned char Gyro_I; // Wert : 0-250 |
unsigned char UnterspannungsWarnung; // Wert : 0-250 |
unsigned char NotGas; // Wert : 0-250 //Gaswert bei Empängsverlust |
unsigned char NotGasZeit; // Wert : 0-250 // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen |
unsigned char UfoAusrichtung; // X oder + Formation |
unsigned char I_Faktor; // Wert : 0-250 |
unsigned char UserParam1; // Wert : 0-250 |
unsigned char UserParam2; // Wert : 0-250 |
unsigned char UserParam3; // Wert : 0-250 |
unsigned char UserParam4; // Wert : 0-250 |
unsigned char ServoNickControl; // Wert : 0-250 // Stellung des Servos |
unsigned char ServoNickComp; // Wert : 0-250 // Einfluss Gyro/Servo |
unsigned char ServoNickMin; // Wert : 0-250 // Anschlag |
unsigned char ServoNickMax; // Wert : 0-250 // Anschlag |
unsigned char ServoNickRefresh; // |
unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
unsigned char LoopHysterese; // Wert: 0-250 Hysterese für Stickausschlag |
unsigned char AchsKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung) |
unsigned char AchsGegenKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick Gegenkoppelt (NickRollGegenkopplung) |
unsigned char WinkelUmschlagNick; // Wert: 0-250 180°-Punkt |
unsigned char WinkelUmschlagRoll; // Wert: 0-250 180°-Punkt |
unsigned char GyroAccAbgleich; // 1/k (Koppel_ACC_Wirkung) |
unsigned char Driftkomp; |
unsigned char DynamicStability; |
unsigned char UserParam5; // Wert : 0-250 |
unsigned char UserParam6; // Wert : 0-250 |
unsigned char UserParam7; // Wert : 0-250 |
unsigned char UserParam8; // Wert : 0-250 |
//------------------------------------------------ |
unsigned char LoopConfig; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
unsigned char ServoNickCompInvert; // Wert : 0-250 0 oder 1 // WICHTIG!!! am Ende lassen |
unsigned char Reserved[4]; |
char Name[12]; |
}; |
/* |
unsigned char ServoNickMax; // Wert : 0-250 |
unsigned char ServoNickRefresh; // |
unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
//------------------------------------------------ |
unsigned char LoopConfig; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
unsigned char ServoNickCompInvert; // Wert : 0-250 0 oder 1 // WICHTIG!!! am Ende lassen |
unsigned char Reserved[4]; |
char Name[12]; |
*/ |
extern struct mk_param_struct EE_Parameter; |
extern unsigned char Parameter_Luftdruck_D; |
extern unsigned char Parameter_MaxHoehe; |
extern unsigned char Parameter_Hoehe_P; |
extern unsigned char Parameter_Hoehe_ACC_Wirkung; |
extern unsigned char Parameter_KompassWirkung; |
extern unsigned char Parameter_Gyro_P; |
extern unsigned char Parameter_Gyro_I; |
extern unsigned char Parameter_Gier_P; |
extern unsigned char Parameter_ServoNickControl; |
extern unsigned char Parameter_AchsKopplung1; |
extern unsigned char Parameter_AchsGegenKopplung1; |
#endif //_FC_H |
/branches/MicroMag3_Nick666/V0.67g/flight.pnproj |
---|
0,0 → 1,0 |
<Project name="Flight-Ctrl"><File path="uart.h"></File><File path="main.c"></File><File path="main.h"></File><File path="makefile"></File><File path="uart.c"></File><File path="printf_P.h"></File><File path="printf_P.c"></File><File path="timer0.c"></File><File path="timer0.h"></File><File path="old_macros.h"></File><File path="twimaster.c"></File><File path="version.txt"></File><File path="twimaster.h"></File><File path="rc.c"></File><File path="rc.h"></File><File path="fc.h"></File><File path="fc.c"></File><File path="menu.h"></File><File path="menu.c"></File><File path="_Settings.h"></File><File path="analog.c"></File><File path="analog.h"></File><File path="GPS.c"></File><File path="gps.h"></File><File path="License.txt"></File><File path="eeprom.c"></File><File path="compass.c"></File><File path="compass.h"></File><File path="mymath.c"></File><File path="mymath.h"></File></Project> |
/branches/MicroMag3_Nick666/V0.67g/flight.pnps |
---|
0,0 → 1,0 |
<pd><ViewState><e p="Flight-Ctrl" x="true"></e></ViewState></pd> |
/branches/MicroMag3_Nick666/V0.67g/gps.h |
---|
0,0 → 1,14 |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Roll; |
void GPS_Neutral(void); |
void GPS_BerechneZielrichtung(void); |
/branches/MicroMag3_Nick666/V0.67g/main.c |
---|
0,0 → 1,263 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten und nicht-kommerziellen Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt und genannt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-commercial use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
// + clearly linked as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
// Reservierung im EEPROM |
unsigned char EEPromArray[10] EEMEM; |
struct mk_param_struct EEParameterArray[5] EEMEM; |
unsigned char PlatinenVersion = 10; |
// -- Parametersatz aus EEPROM lesen --- |
// number [0..5] |
void ReadParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if (number > 5) number = 5; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_read_block(buffer, &EEParameterArray[number], length); |
} |
// -- Parametersatz ins EEPROM schreiben --- |
// number [0..5] |
void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if (number > 5) number = 5; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_write_block(buffer, &EEParameterArray[number], length); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], number); // diesen Parametersatz als aktuell merken |
} |
unsigned char GetActiveParamSetNumber(void) |
{ |
unsigned char set; |
set = eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET]); |
if(set > 5) |
{ |
set = 2; |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], set); // diesen Parametersatz als aktuell merken |
} |
return(set); |
} |
//############################################################################ |
//Hauptprogramm |
int main (void) |
//############################################################################ |
{ |
unsigned int timer; |
//unsigned int timer2 = 0; |
DDRB = 0x00; |
PORTB = 0x00; |
for(timer = 0; timer < 1000; timer++); // verzögern |
if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10; |
DDRC = 0x81; // SCL |
PORTC = 0xff; // Pullup SDA |
DDRB = 0x1B; // LEDs und Druckoffset |
PORTB = 0x01; // LED_Rot |
DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
DDRD |=0x80; // J7 |
PORTD = 0xF7; // LED |
MCUSR &=~(1<<WDRF); |
WDTCSR |= (1<<WDCE)|(1<<WDE); |
WDTCSR = 0; |
beeptime = 2000; |
StickGier = 0; PPM_in[K_GAS] = 0;StickRoll = 0; StickNick = 0; |
ROT_OFF; |
Timer_Init(); |
UART_Init(); |
rc_sum_init(); |
ADC_Init(); |
i2c_init(); |
init_MM3(); |
sei(); |
VersionInfo.Hauptversion = VERSION_HAUPTVERSION; |
VersionInfo.Nebenversion = VERSION_NEBENVERSION; |
VersionInfo.PCKompatibel = VERSION_KOMPATIBEL; |
printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",PlatinenVersion/10,PlatinenVersion%10, VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX + 'a'); |
printf("\n\r=============================="); |
GRN_ON; |
#define EE_DATENREVISION 68 // wird angepasst, wenn sich die EEPROM-Daten geändert haben |
if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_VALID]) != EE_DATENREVISION) |
{ |
printf("\n\rInit. EEPROM: Generiere Default-Parameter..."); |
DefaultKonstanten1(); |
for (unsigned char i=0;i<6;i++) |
{ |
if(i==2) DefaultKonstanten2(); // Kamera |
if(i==3) DefaultKonstanten3(); // Beginner |
if(i>3) DefaultKonstanten2(); // Kamera |
WriteParameterSet(i, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], 3); // default-Setting |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], EE_DATENREVISION); |
} |
if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACC_NICK]) > 4) |
{ |
printf("\n\rACC nicht abgeglichen!"); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
printf("\n\rBenutze Parametersatz %d", GetActiveParamSetNumber()); |
//kurze Wartezeit (sonst reagiert die "Kompass kalibrieren?"-Abfrage nicht |
timer = SetDelay(500); |
while(!CheckDelay(timer)); |
//Kompass kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 100) |
{ |
printf("\n\rKalibriere Kompass"); |
calib_MM3(); |
} |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
printf("\n\rAbgleich Luftdrucksensor.."); |
timer = SetDelay(1000); |
SucheLuftruckOffset(); |
while (!CheckDelay(timer)); |
printf("OK\n\r"); |
} |
SetNeutral(); |
ROT_OFF; |
beeptime = 2000; |
DebugIn.Analog[1] = 1000; |
DebugIn.Digital[0] = 0x55; |
printf("\n\rSteuerung: "); |
if (EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) printf("HeadingHold"); |
else printf("Neutral"); |
printf("\n\n\r"); |
LcdClear(); |
I2CTimeout = 5000; |
while (1) |
{ |
if (UpdateMotor) // ReglerIntervall |
{ |
// SPI_TransmitByte(); |
UpdateMotor=0; |
//PORTD |= 0x08; |
MotorRegler(); |
//PORTD &= ~0x08; |
SendMotorData(); |
ROT_OFF; |
if(PcZugriff) PcZugriff--; |
else |
{ |
DubWiseKeys[0] = 0; |
DubWiseKeys[1] = 0; |
ExternStickNick = 0; |
ExternStickRoll = 0; |
ExternStickGier = 0; |
} |
if(SenderOkay) SenderOkay--; |
if(!I2CTimeout) |
{ |
I2CTimeout = 5; |
i2c_reset(); |
if((BeepMuster == 0xffff) && MotorenEin) |
{ |
beeptime = 10000; |
BeepMuster = 0x0080; |
} |
} |
else |
{ |
I2CTimeout--; |
ROT_OFF; |
} |
} |
if(SIO_DEBUG) |
{ |
DatenUebertragung(); |
BearbeiteRxDaten(); |
} |
else BearbeiteRxDaten(); |
if(CheckDelay(timer)) |
{ |
if(UBat < EE_Parameter.UnterspannungsWarnung) |
{ |
if(BeepMuster == 0xffff) |
{ |
beeptime = 6000; |
BeepMuster = 0x0300; |
} |
} |
// SPI_StartTransmitPacket(); |
timer = SetDelay(100); |
} |
} |
return (1); |
} |
/branches/MicroMag3_Nick666/V0.67g/main.h |
---|
0,0 → 1,100 |
#ifndef _MAIN_H |
#define _MAIN_H |
//Hier die Quarz Frequenz einstellen |
#if defined (__AVR_ATmega32__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
#endif |
#if defined (__AVR_ATmega644__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
//#define SYSCLK 16000000L //Quarz Frequenz in Hz |
#endif |
// neue Hardware |
#define ROT_OFF {if(PlatinenVersion == 10) PORTB &=~0x01; else PORTB |= 0x01;} |
#define ROT_ON {if(PlatinenVersion == 10) PORTB |= 0x01; else PORTB &=~0x01;} |
#define ROT_FLASH PORTB ^= 0x01 |
#define GRN_OFF PORTB &=~0x02 |
#define GRN_ON PORTB |= 0x02 |
#define GRN_FLASH PORTB ^= 0x02 |
#define F_CPU SYSCLK |
//#ifndef F_CPU |
//#error ################## F_CPU nicht definiert oder ungültig ############# |
//#endif |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define EEPROM_ADR_VALID 1 |
#define EEPROM_ADR_ACTIVE_SET 2 |
#define EEPROM_ADR_LAST_OFFSET 3 |
#define EEPROM_ADR_ACC_NICK 4 |
#define EEPROM_ADR_ACC_ROLL 6 |
#define EEPROM_ADR_ACC_Z 8 |
#define CFG_HOEHENREGELUNG 0x01 |
#define CFG_HOEHEN_SCHALTER 0x02 |
#define CFG_HEADING_HOLD 0x04 |
#define CFG_KOMPASS_AKTIV 0x08 |
#define CFG_KOMPASS_FIX 0x10 |
#define CFG_GPS_AKTIV 0x20 |
#define CFG_ACHSENKOPPLUNG_AKTIV 0x40 |
#define CFG_DREHRATEN_BEGRENZER 0x80 |
#define CFG_LOOP_OBEN 0x01 |
#define CFG_LOOP_UNTEN 0x02 |
#define CFG_LOOP_LINKS 0x04 |
#define CFG_LOOP_RECHTS 0x08 |
//#define SYSCLK |
//extern unsigned long SYSCLK; |
extern volatile unsigned char SenderOkay; |
extern unsigned char PlatinenVersion; |
void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length); |
void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length); |
extern unsigned char GetActiveParamSetNumber(void); |
extern unsigned char EEPromArray[]; |
#include <stdlib.h> |
#include <string.h> |
#include <avr/io.h> |
#include <avr/pgmspace.h> |
#include <avr/interrupt.h> |
#include <avr/eeprom.h> |
#include <avr/boot.h> |
#include <avr/wdt.h> |
#include "old_macros.h" |
#include "_Settings.h" |
#include "printf_P.h" |
#include "timer0.h" |
#include "uart.h" |
#include "analog.h" |
#include "twimaster.h" |
#include "menu.h" |
#include "rc.h" |
#include "fc.h" |
#include "gps.h" |
#include "compass.h" |
#include "mymath.h" |
#ifndef EEMEM |
#define EEMEM __attribute__ ((section (".eeprom"))) |
#endif |
#define DEBUG_DISPLAY_INTERVALL 123 // in ms |
#define DELAY_US(x) ((unsigned int)( (x) * 1e-6 * F_CPU )) |
#endif //_MAIN_H |
/branches/MicroMag3_Nick666/V0.67g/makefile |
---|
0,0 → 1,419 |
#-------------------------------------------------------------------- |
# MCU name |
MCU = atmega644 |
F_CPU = 20000000 |
#------------------------------------------------------------------- |
HAUPT_VERSION = 0 |
NEBEN_VERSION = 67 |
VERSION_INDEX = 6 |
VERSION_KOMPATIBEL = 7 # PC-Kompatibilität |
#------------------------------------------------------------------- |
ifeq ($(MCU), atmega32) |
# FUSE_SETTINGS= -u -U lfuse:w:0xff:m -U hfuse:w:0xcf:m |
HEX_NAME = MEGA32 |
endif |
ifeq ($(MCU), atmega644) |
FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
#FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
# -u bei neuen Controllern wieder einspielen |
HEX_NAME = MEGA644 |
endif |
ifeq ($(F_CPU), 16000000) |
QUARZ = 16MHZ |
endif |
ifeq ($(F_CPU), 20000000) |
QUARZ = 20MHZ |
endif |
# Output format. (can be srec, ihex, binary) |
FORMAT = ihex |
# Target file name (without extension). |
ifeq ($(VERSION_INDEX), 0) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)a |
endif |
ifeq ($(VERSION_INDEX), 1) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)b |
endif |
ifeq ($(VERSION_INDEX), 2) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)c |
endif |
ifeq ($(VERSION_INDEX), 3) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)d |
endif |
ifeq ($(VERSION_INDEX), 4) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)e |
endif |
ifeq ($(VERSION_INDEX), 5) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)f |
endif |
ifeq ($(VERSION_INDEX), 6) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)g |
endif |
ifeq ($(VERSION_INDEX), 7) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)h |
endif |
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization. |
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
OPT = s |
########################################################################################################## |
# List C source files here. (C dependencies are automatically generated.) |
SRC = main.c uart.c printf_P.c timer0.c analog.c menu.c |
SRC += twimaster.c rc.c fc.c GPS.c |
SRC += compass.c mymath.c |
#spi.c |
########################################################################################################## |
# List Assembler source files here. |
# Make them always end in a capital .S. Files ending in a lowercase .s |
# will not be considered source files but generated files (assembler |
# output from the compiler), and will be deleted upon "make clean"! |
# Even though the DOS/Win* filesystem matches both .s and .S the same, |
# it will preserve the spelling of the filenames, and gcc itself does |
# care about how the name is spelled on its command-line. |
ASRC = |
# List any extra directories to look for include files here. |
# Each directory must be seperated by a space. |
EXTRAINCDIRS = |
# Optional compiler flags. |
# -g: generate debugging information (for GDB, or for COFF conversion) |
# -O*: optimization level |
# -f...: tuning, see gcc manual and avr-libc documentation |
# -Wall...: warning level |
# -Wa,...: tell GCC to pass this to the assembler. |
# -ahlms: create assembler listing |
CFLAGS = -O$(OPT) \ |
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \ |
-mtiny-stack -mcall-prologues \ |
-Wall -Wstrict-prototypes \ |
-Wa,-adhlns=$(<:.c=.lst) \ |
$(patsubst %,-I%,$(EXTRAINCDIRS)) |
# Set a "language standard" compiler flag. |
# Unremark just one line below to set the language standard to use. |
# gnu99 = C99 + GNU extensions. See GCC manual for more information. |
#CFLAGS += -std=c89 |
#CFLAGS += -std=gnu89 |
#CFLAGS += -std=c99 |
CFLAGS += -std=gnu99 |
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) -DVERSION_KOMPATIBEL=$(VERSION_KOMPATIBEL) -DVERSION_INDEX=$(VERSION_INDEX) |
# Optional assembler flags. |
# -Wa,...: tell GCC to pass this to the assembler. |
# -ahlms: create listing |
# -gstabs: have the assembler create line number information; note that |
# for use in COFF files, additional information about filenames |
# and function names needs to be present in the assembler source |
# files -- see avr-libc docs [FIXME: not yet described there] |
ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs |
# Optional linker flags. |
# -Wl,...: tell GCC to pass this to linker. |
# -Map: create map file |
# --cref: add cross reference to map file |
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref |
# Additional libraries |
# Minimalistic printf version |
#LDFLAGS += -Wl,-u,vfprintf -lprintf_min |
# Floating point printf version (requires -lm below) |
#LDFLAGS += -Wl,-u,vfprintf -lprintf_flt |
# -lm = math library |
LDFLAGS += -lm |
##LDFLAGS += -T./linkerfile/avr5.x |
# Programming support using avrdude. Settings and variables. |
# Programming hardware: alf avr910 avrisp bascom bsd |
# dt006 pavr picoweb pony-stk200 sp12 stk200 stk500 |
# |
# Type: avrdude -c ? |
# to get a full listing. |
# |
#AVRDUDE_PROGRAMMER = stk200 |
AVRDUDE_PROGRAMMER = dt006 |
#AVRDUDE_PROGRAMMER = ponyser |
#falls Ponyser ausgewählt wird, muss sich unsere avrdude-Configdatei im Bin-Verzeichnis des Compilers befinden |
#AVRDUDE_PORT = com1 # programmer connected to serial device |
AVRDUDE_PORT = lpt1 # programmer connected to parallel port |
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS) |
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) |
# Uncomment the following if you want avrdude's erase cycle counter. |
# Note that this counter needs to be initialized first using -Yn, |
# see avrdude manual. |
#AVRDUDE_ERASE += -y |
# Uncomment the following if you do /not/ wish a verification to be |
# performed after programming the device. |
AVRDUDE_FLAGS += -V |
# Increase verbosity level. Please use this when submitting bug |
# reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> |
# to submit bug reports. |
#AVRDUDE_FLAGS += -v -v |
# --------------------------------------------------------------------------- |
# Define directories, if needed. |
DIRAVR = c:/winavr |
DIRAVRBIN = $(DIRAVR)/bin |
DIRAVRUTILS = $(DIRAVR)/utils/bin |
DIRINC = . |
DIRLIB = $(DIRAVR)/avr/lib |
# Define programs and commands. |
SHELL = sh |
CC = avr-gcc |
OBJCOPY = avr-objcopy |
OBJDUMP = avr-objdump |
SIZE = avr-size |
# Programming support using avrdude. |
AVRDUDE = avrdude |
REMOVE = rm -f |
COPY = cp |
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex |
ELFSIZE = $(SIZE) -A $(TARGET).elf |
# Define Messages |
# English |
MSG_ERRORS_NONE = Errors: none |
MSG_BEGIN = -------- begin -------- |
MSG_END = -------- end -------- |
MSG_SIZE_BEFORE = Size before: |
MSG_SIZE_AFTER = Size after: |
MSG_COFF = Converting to AVR COFF: |
MSG_EXTENDED_COFF = Converting to AVR Extended COFF: |
MSG_FLASH = Creating load file for Flash: |
MSG_EEPROM = Creating load file for EEPROM: |
MSG_EXTENDED_LISTING = Creating Extended Listing: |
MSG_SYMBOL_TABLE = Creating Symbol Table: |
MSG_LINKING = Linking: |
MSG_COMPILING = Compiling: |
MSG_ASSEMBLING = Assembling: |
MSG_CLEANING = Cleaning project: |
# Define all object files. |
OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) |
# Define all listing files. |
LST = $(ASRC:.S=.lst) $(SRC:.c=.lst) |
# Combine all necessary flags and optional flags. |
# Add target processor to flags. |
#ALL_CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I. $(CFLAGS) |
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) |
ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS) |
# Default target. |
all: begin gccversion sizebefore $(TARGET).elf $(TARGET).hex $(TARGET).eep \ |
$(TARGET).lss $(TARGET).sym sizeafter finished end |
# Eye candy. |
# AVR Studio 3.x does not check make's exit code but relies on |
# the following magic strings to be generated by the compile job. |
begin: |
@echo |
@echo $(MSG_BEGIN) |
finished: |
@echo $(MSG_ERRORS_NONE) |
end: |
@echo $(MSG_END) |
@echo |
# Display size of file. |
sizebefore: |
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi |
sizeafter: |
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi |
# Display compiler version information. |
gccversion : |
@$(CC) --version |
# Convert ELF to COFF for use in debugging / simulating in |
# AVR Studio or VMLAB. |
COFFCONVERT=$(OBJCOPY) --debugging \ |
--change-section-address .data-0x800000 \ |
--change-section-address .bss-0x800000 \ |
--change-section-address .noinit-0x800000 \ |
--change-section-address .eeprom-0x810000 |
coff: $(TARGET).elf |
@echo |
@echo $(MSG_COFF) $(TARGET).cof |
$(COFFCONVERT) -O coff-avr $< $(TARGET).cof |
extcoff: $(TARGET).elf |
@echo |
@echo $(MSG_EXTENDED_COFF) $(TARGET).cof |
$(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof |
# Program the device. |
program: $(TARGET).hex $(TARGET).eep |
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) |
# Create final output files (.hex, .eep) from ELF output file. |
%.hex: %.elf |
@echo |
@echo $(MSG_FLASH) $@ |
$(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@ |
%.eep: %.elf |
@echo |
@echo $(MSG_EEPROM) $@ |
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \ |
--change-section-lma .eeprom=0 -O $(FORMAT) $< $@ |
# Create extended listing file from ELF output file. |
%.lss: %.elf |
@echo |
@echo $(MSG_EXTENDED_LISTING) $@ |
$(OBJDUMP) -h -S $< > $@ |
# Create a symbol table from ELF output file. |
%.sym: %.elf |
@echo |
@echo $(MSG_SYMBOL_TABLE) $@ |
avr-nm -n $< > $@ |
# Link: create ELF output file from object files. |
.SECONDARY : $(TARGET).elf |
.PRECIOUS : $(OBJ) |
%.elf: $(OBJ) |
@echo |
@echo $(MSG_LINKING) $@ |
$(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS) |
# Compile: create object files from C source files. |
%.o : %.c |
@echo |
@echo $(MSG_COMPILING) $< |
$(CC) -c $(ALL_CFLAGS) $< -o $@ |
# Compile: create assembler files from C source files. |
%.s : %.c |
$(CC) -S $(ALL_CFLAGS) $< -o $@ |
# Assemble: create object files from assembler source files. |
%.o : %.S |
@echo |
@echo $(MSG_ASSEMBLING) $< |
$(CC) -c $(ALL_ASFLAGS) $< -o $@ |
# Target: clean project. |
clean: begin clean_list finished end |
clean_list : |
@echo |
@echo $(MSG_CLEANING) |
# $(REMOVE) $(TARGET).hex |
$(REMOVE) $(TARGET).eep |
$(REMOVE) $(TARGET).obj |
$(REMOVE) $(TARGET).cof |
$(REMOVE) $(TARGET).elf |
$(REMOVE) $(TARGET).map |
$(REMOVE) $(TARGET).obj |
$(REMOVE) $(TARGET).a90 |
$(REMOVE) $(TARGET).sym |
$(REMOVE) $(TARGET).lnk |
$(REMOVE) $(TARGET).lss |
$(REMOVE) $(OBJ) |
$(REMOVE) $(LST) |
$(REMOVE) $(SRC:.c=.s) |
$(REMOVE) $(SRC:.c=.d) |
# Automatically generate C source code dependencies. |
# (Code originally taken from the GNU make user manual and modified |
# (See README.txt Credits).) |
# |
# Note that this will work with sh (bash) and sed that is shipped with WinAVR |
# (see the SHELL variable defined above). |
# This may not work with other shells or other seds. |
# |
%.d: %.c |
set -e; $(CC) -MM $(ALL_CFLAGS) $< \ |
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > $@; \ |
[ -s $@ ] || rm -f $@ |
# Remove the '-' if you want to see the dependency files generated. |
-include $(SRC:.c=.d) |
# Listing of phony targets. |
.PHONY : all begin finish end sizebefore sizeafter gccversion coff extcoff \ |
clean clean_list program |
/branches/MicroMag3_Nick666/V0.67g/menu.c |
---|
0,0 → 1,139 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
unsigned int TestInt = 0; |
#define ARRAYGROESSE 10 |
unsigned char Array[ARRAYGROESSE] = {1,2,3,4,5,6,7,8,9,10}; |
char DisplayBuff[80] = "Hallo Welt"; |
unsigned char DispPtr = 0; |
unsigned char RemoteTasten = 0; |
#define KEY1 0x01 |
#define KEY2 0x02 |
#define KEY3 0x04 |
#define KEY4 0x08 |
#define KEY5 0x10 |
void LcdClear(void) |
{ |
unsigned char i; |
for(i=0;i<80;i++) DisplayBuff[i] = ' '; |
} |
void Menu(void) |
{ |
static unsigned char MaxMenue = 12,MenuePunkt=0; |
if(RemoteTasten & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue; LcdClear(); RemotePollDisplayLine = -1; } |
if(RemoteTasten & KEY2) { MenuePunkt++; LcdClear(); RemotePollDisplayLine = -1;} |
if((RemoteTasten & KEY1) && (RemoteTasten & KEY2)) MenuePunkt = 0; |
LCD_printfxy(17,0,"[%i]",MenuePunkt); |
switch(MenuePunkt) |
{ |
case 0: |
LCD_printfxy(0,0,"++ MikroKopter ++"); |
LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10,VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX+'a'); |
LCD_printfxy(0,2,"Setting: %d ",GetActiveParamSetNumber()); |
LCD_printfxy(0,3,"(c) Holger Buss"); |
// if(RemoteTasten & KEY3) TestInt--; |
// if(RemoteTasten & KEY4) TestInt++; |
break; |
case 1: |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
LCD_printfxy(0,0,"Hoehe: %5i",HoehenWert); |
LCD_printfxy(0,1,"SollHoehe: %5i",SollHoehe); |
LCD_printfxy(0,2,"Luftdruck: %5i",MessLuftdruck); |
LCD_printfxy(0,3,"Off : %5i",DruckOffsetSetting); |
} |
else |
{ |
LCD_printfxy(0,1,"Keine "); |
LCD_printfxy(0,2,"Höhenregelung"); |
} |
break; |
case 2: |
LCD_printfxy(0,0,"akt. Lage"); |
LCD_printfxy(0,1,"Nick: %5i",IntegralNick/1024); |
LCD_printfxy(0,2,"Roll: %5i",IntegralRoll/1024); |
LCD_printfxy(0,3,"Kompass: %5i",KompassValue); |
break; |
case 3: |
LCD_printfxy(0,0,"K1:%4i K2:%4i ",PPM_in[1],PPM_in[2]); |
LCD_printfxy(0,1,"K3:%4i K4:%4i ",PPM_in[3],PPM_in[4]); |
LCD_printfxy(0,2,"K5:%4i K6:%4i ",PPM_in[5],PPM_in[6]); |
LCD_printfxy(0,3,"K7:%4i K8:%4i ",PPM_in[7],PPM_in[8]); |
break; |
case 4: |
LCD_printfxy(0,0,"Ni:%4i Ro:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_NICK]],PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]); |
LCD_printfxy(0,1,"Gs:%4i Gi:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_GAS]],PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]); |
LCD_printfxy(0,2,"P1:%4i P2:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]],PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]]); |
LCD_printfxy(0,3,"P3:%4i P4:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]],PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]]); |
break; |
case 5: |
LCD_printfxy(0,0,"Gyro - Sensor"); |
if(PlatinenVersion == 10) |
{ |
LCD_printfxy(0,1,"Nick %4i (%3i)",AdWertNick - AdNeutralNick, AdNeutralNick); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AdWertRoll - AdNeutralRoll, AdNeutralRoll); |
LCD_printfxy(0,3,"Gier %4i (%3i)",MesswertGier, AdNeutralGier); |
} |
else |
{ |
LCD_printfxy(0,1,"Nick %4i (%3i)",AdWertNick - AdNeutralNick, AdNeutralNick/2); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AdWertRoll - AdNeutralRoll, AdNeutralRoll/2); |
LCD_printfxy(0,3,"Gier %4i (%3i)",MesswertGier, AdNeutralGier/2); |
} |
break; |
case 6: |
LCD_printfxy(0,0,"ACC - Sensor"); |
LCD_printfxy(0,1,"Nick %4i (%3i)",AdWertAccNick,NeutralAccX); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AdWertAccRoll,NeutralAccY); |
LCD_printfxy(0,3,"Hoch %4i (%3i)",Mittelwert_AccHoch/*accumulate_AccHoch / messanzahl_AccHoch*/,(int)NeutralAccZ); |
break; |
case 7: |
LCD_printfxy(0,1,"Spannung: %5i",UBat); |
LCD_printfxy(0,2,"Empf.Pegel:%5i",SenderOkay); |
break; |
case 8: |
LCD_printfxy(0,0,"Kompass "); |
LCD_printfxy(0,1,"Richtung: %5i",KompassRichtung); |
LCD_printfxy(0,2,"Messwert: %5i",KompassValue); |
LCD_printfxy(0,3,"Start: %5i",KompassStartwert); |
break; |
case 9: |
LCD_printfxy(0,0,"Poti1: %3i",Poti1); |
LCD_printfxy(0,1,"Poti2: %3i",Poti2); |
LCD_printfxy(0,2,"Poti3: %3i",Poti3); |
LCD_printfxy(0,3,"Poti4: %3i",Poti4); |
break; |
case 10: |
LCD_printfxy(0,0,"Servo " ); |
LCD_printfxy(0,1,"Setpoint %3i",Parameter_ServoNickControl); |
LCD_printfxy(0,2,"Stellung: %3i",ServoValue); |
LCD_printfxy(0,3,"Range:%3i-%3i",EE_Parameter.ServoNickMin,EE_Parameter.ServoNickMax); |
break; |
case 11: |
LCD_printfxy(0,0,"MM3 Off"); |
LCD_printfxy(0,1,"X_Offset: %3i",MM3_calib.X_off); |
LCD_printfxy(0,2,"Y_Offset: %3i",MM3_calib.Y_off); |
LCD_printfxy(0,3,"Z_Offset: %3i",MM3_calib.Z_off); |
break; |
case 12: |
LCD_printfxy(0,0,"MM3 Range"); |
LCD_printfxy(0,1,"X_Range: %4i",MM3_calib.X_range); |
LCD_printfxy(0,2,"Y_Range: %4i",MM3_calib.Y_range); |
LCD_printfxy(0,3,"Z_Range: %4i",MM3_calib.Z_range); |
break; |
default: MaxMenue = MenuePunkt - 1; |
MenuePunkt = 0; |
break; |
} |
RemoteTasten = 0; |
} |
/branches/MicroMag3_Nick666/V0.67g/menu.h |
---|
0,0 → 1,6 |
extern void Menu(void); |
extern void LcdClear(void); |
extern char DisplayBuff[80]; |
extern unsigned char DispPtr; |
extern unsigned char RemoteTasten; |
/branches/MicroMag3_Nick666/V0.67g/mymath.c |
---|
0,0 → 1,110 |
/* |
Copyright 2007, Niklas Nold |
This program (files math.c and math.h) is free software; you can redistribute it and/or modify |
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; |
either version 3 of the License, or (at your option) any later version. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Please note: All the other files for the project "Mikrokopter" by H. Buss are under the license (license_buss.txt) published by www.mikrokopter.de |
*/ |
#include "main.h" |
const uint8_t pgm_atan[346] PROGMEM = {0,1,2,3,4,4,5,6,7,8,9,10,11,11,12,13,14,15,16,17,17,18,19,20,21,21,22,23,24,24,25,26,27,27,28,29,29,30,31,31,32,33,33,34,35,35,36,36,37,37,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,45,46,46,47,47,48,48,48,49,49,50,50,50,51,51,51,52,52,52,53,53,53,54,54,54,55,55,55,55,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,60,61,61,61,61,62,62,62,62,62,63,63,63,63,63,63,64,64,64,64,64,64,65,65,65,65,65,65,66,66,66,66,66,66,66,67,67,67,67,67,67,67,68,68,68,68,68,68,68,68,69,69,69,69,69,69,69,69,69,70,70,70,70,70,70,70,70,70,71,71,71,71,71,71,71,71,71,71,71,72,72,72,72,72,72,72,72,72,72,72,73,73,73,73,73,73,73,73,73,73,73,73,73,73,74,74,74,74,74,74,74,74,74,74,74,74,74,74,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79}; |
//############################################################################ |
// Arkustangens2 im Gradmaß |
signed int atan2_i(signed int x, signed int y) |
//############################################################################ |
{ |
int i,angle; |
int8_t m; |
if (!x && !y) return 0; //atan2 = 0 für x und y = 0 |
if (y < 0) m=-1; |
else m=1; |
if (!x) return (90*m); // atan2 = 90° für x = 0 |
i = abs(((long)y*64) / x); // Berechne i für die Lookup table (Schrittweite atan(x) ist 0,015625 -> y *64) |
if (i<346) angle = pgm_read_byte(&pgm_atan[i]); // Lookup für 1° bis 79° |
else if (i>7334) angle = 90; // Grenzwert ist 90° |
else if (i>2444) angle = 89; // 89° bis 80° über Wertebereiche |
else if (i>1465) angle = 88; |
else if (i>1046) angle = 87; |
else if (i>813) angle = 86; |
else if (i>664) angle = 85; |
else if (i>561) angle = 84; |
else if (i>486) angle = 83; |
else if (i>428) angle = 82; |
else if (i>382) angle = 81; |
else angle = 80; // (i>345) |
if (x > 0) return (angle*m); // Quadrant I und IV |
else if ((x < 0) && (m > 0)) return (-angle + 180); // Quadrant II |
else return (angle - 180); // x < 0 && y < 0 Quadrant III |
} |
const uint16_t pgm_sinus_i[91] PROGMEM = {0,18,36,54,71,89,107,125,143,160,178,195,213,230,248,265,282,299,316,333,350,367,384,400,416,433,449,465,481,496,512,527,543,558,573,587,602,616,630,644,658,672,685,698,711,724,737,749,761,773,784,796,807,818,828,839,849,859,868,878,887,896,904,912,920,928,935,943,949,956,962,968,974,979,984,989,994,998,1002,1005,1008,1011,1014,1016,1018,1020,1022,1023,1023,1024,1024}; |
//############################################################################ |
// Kosinusfunktion im Gradmaß |
signed int cos_i(signed int winkel) |
//############################################################################ |
{ |
return (sin_i(90-winkel)); |
} |
//############################################################################ |
// Sinusfunktion im Gradmaß |
signed int sin_i(signed int winkel) |
//############################################################################ |
{ |
short int m,n; |
signed int sinus; |
if (winkel < 0) |
{ |
m = -1; |
winkel = abs(winkel); |
} |
else m = +1; |
// Quadranten auswerten |
if (winkel <= 90) n=1; |
else if ((winkel > 90) && (winkel <= 180)) {winkel = 180 - winkel; n = 1;} |
else if ((winkel > 180) && (winkel <= 270)) {winkel = winkel - 180; n = -1;} |
else {winkel = 360 - winkel; n = -1;} //if ((winkel > 270) && (winkel <= 360)) |
sinus = pgm_read_word(&pgm_sinus_i[winkel]); |
return (sinus*m*n); |
} |
/* |
const uint8_t pgm_asin[201] PROGMEM = {0,0,1,1,1,1,2,2,2,3,3,3,3,4,4,4,5,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9,10,10,10,11,11,11,12,12,12,12,13,13,13,14,14,14,14,15,15,15,16,16,16,17,17,17,17,18,18,18,19,19,19,20,20,20,20,21,21,21,22,22,22,23,23,23,24,24,24,25,25,25,25,26,26,26,27,27,27,28,28,28,29,29,29,30,30,30,31,31,31,32,32,32,33,33,33,34,34,34,35,35,35,36,36,37,37,37,38,38,38,39,39,39,40,40,41,41,41,42,42,42,43,43,44,44,44,45,45,46,46,46,47,47,48,48,49,49,49,50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57,58,58,59,59,60,60,61,62,62,63,64,64,65,66,66,67,68,68,69,70,71,72,73,74,75,76,77,79,80,82,84,90}; |
//############################################################################ |
// Akurssinusfunktion im Gradmaß |
int8_t asin_i(signed int i) |
//############################################################################ |
{ |
signed char m; |
if (i < 0) {m=-1;i=abs(i);} |
else m=1; |
i %= 200; |
return (pgm_read_byte(&pgm_asin[i]) * m); |
} |
*/ |
/branches/MicroMag3_Nick666/V0.67g/mymath.h |
---|
0,0 → 1,8 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
extern signed int atan2_i(signed int x, signed int y); |
extern signed int cos_i(signed int winkel); |
extern signed int sin_i(signed int winkel); |
//extern int8_t asin_i(signed int i); |
/branches/MicroMag3_Nick666/V0.67g/old_macros.h |
---|
0,0 → 1,47 |
/* |
For backwards compatibility only. |
Ingo Busker ingo@mikrocontroller.com |
*/ |
#ifndef cbi |
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) |
#endif |
#ifndef sbi |
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) |
#endif |
#ifndef inb |
#define inb(sfr) _SFR_BYTE(sfr) |
#endif |
#ifndef outb |
#define outb(sfr, val) (_SFR_BYTE(sfr) = (val)) |
#endif |
#ifndef inw |
#define inw(sfr) _SFR_WORD(sfr) |
#endif |
#ifndef outw |
#define outw(sfr, val) (_SFR_WORD(sfr) = (val)) |
#endif |
#ifndef outp |
#define outp(val, sfr) outb(sfr, val) |
#endif |
#ifndef inp |
#define inp(sfr) inb(sfr) |
#endif |
#ifndef BV |
#define BV(bit) _BV(bit) |
#endif |
#ifndef PRG_RDB |
#define PRG_RDB pgm_read_byte |
#endif |
/branches/MicroMag3_Nick666/V0.67g/printf_P.c |
---|
0,0 → 1,480 |
// Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist nicht von der Lizenz für den MikroKopter-Teil unterstellt |
/* |
Copyright (C) 1993 Free Software Foundation |
This file is part of the GNU IO Library. This library is free |
software; you can redistribute it and/or modify it under the |
terms of the GNU General Public License as published by the |
Free Software Foundation; either version 2, or (at your option) |
any later version. |
This library is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this library; see the file COPYING. If not, write to the Free |
Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
As a special exception, if you link this library with files |
compiled with a GNU compiler to produce an executable, this does not cause |
the resulting executable to be covered by the GNU General Public License. |
This exception does not however invalidate any other reasons why |
the executable file might be covered by the GNU General Public License. */ |
/* |
* Copyright (c) 1990 Regents of the University of California. |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* are met: |
* 1. Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* 2. Redistributions in binary form must reproduce the above copyright |
* notice, this list of conditions and the following disclaimer in the |
* documentation and/or other materials provided with the distribution. |
* 3. [rescinded 22 July 1999] |
* 4. Neither the name of the University nor the names of its contributors |
* may be used to endorse or promote products derived from this software |
* without specific prior written permission. |
* |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* SUCH DAMAGE. |
*/ |
/****************************************************************************** |
This file is a patched version of printf called _printf_P |
It is made to work with avr-gcc for Atmel AVR MCUs. |
There are some differences from standard printf: |
1. There is no floating point support (with fp the code is about 8K!) |
2. Return type is void |
3. Format string must be in program memory (by using macro printf this is |
done automaticaly) |
4. %n is not implemented (just remove the comment around it if you need it) |
5. If LIGHTPRINTF is defined, the code is about 550 bytes smaller and the |
folowing specifiers are disabled : |
space # * . - + p s o O |
6. A function void uart_sendchar(char c) is used for output. The UART must |
be initialized before using printf. |
Alexander Popov |
sasho@vip.orbitel.bg |
******************************************************************************/ |
/* |
* Actual printf innards. |
* |
* This code is large and complicated... |
*/ |
#include <string.h> |
#ifdef __STDC__ |
#include <stdarg.h> |
#else |
#include <varargs.h> |
#endif |
#include "main.h" |
//#define LIGHTPRINTF |
char PrintZiel; |
char Putchar(char zeichen) |
{ |
if(PrintZiel == OUT_LCD) { DisplayBuff[DispPtr++] = zeichen; return(1);} |
else return(uart_putchar(zeichen)); |
} |
void PRINT(const char * ptr, unsigned int len) |
{ |
for(;len;len--) Putchar(*ptr++); |
} |
void PRINTP(const char * ptr, unsigned int len) |
{ |
for(;len;len--) Putchar(pgm_read_byte(ptr++)); |
} |
void PAD_SP(signed char howmany) |
{ |
for(;howmany>0;howmany--) Putchar(' '); |
} |
void PAD_0(signed char howmany) |
{ |
for(;howmany>0;howmany--) Putchar('0'); |
} |
#define BUF 40 |
/* |
* Macros for converting digits to letters and vice versa |
*/ |
#define to_digit(c) ((c) - '0') |
#define is_digit(c) ((c)<='9' && (c)>='0') |
#define to_char(n) ((n) + '0') |
/* |
* Flags used during conversion. |
*/ |
#define LONGINT 0x01 /* long integer */ |
#define LONGDBL 0x02 /* long double; unimplemented */ |
#define SHORTINT 0x04 /* short integer */ |
#define ALT 0x08 /* alternate form */ |
#define LADJUST 0x10 /* left adjustment */ |
#define ZEROPAD 0x20 /* zero (as opposed to blank) pad */ |
#define HEXPREFIX 0x40 /* add 0x or 0X prefix */ |
void _printf_P (char ziel,char const *fmt0, ...) /* Works with string from FLASH */ |
{ |
va_list ap; |
register const char *fmt; /* format string */ |
register char ch; /* character from fmt */ |
register int n; /* handy integer (short term usage) */ |
register char *cp; /* handy char pointer (short term usage) */ |
const char *fmark; /* for remembering a place in fmt */ |
register unsigned char flags; /* flags as above */ |
signed char width; /* width from format (%8d), or 0 */ |
signed char prec; /* precision from format (%.3d), or -1 */ |
char sign; /* sign prefix (' ', '+', '-', or \0) */ |
unsigned long _ulong=0; /* integer arguments %[diouxX] */ |
#define OCT 8 |
#define DEC 10 |
#define HEX 16 |
unsigned char base; /* base for [diouxX] conversion */ |
signed char dprec; /* a copy of prec if [diouxX], 0 otherwise */ |
signed char dpad; /* extra 0 padding needed for integers */ |
signed char fieldsz; /* field size expanded by sign, dpad etc */ |
/* The initialization of 'size' is to suppress a warning that |
'size' might be used unitialized. It seems gcc can't |
quite grok this spaghetti code ... */ |
signed char size = 0; /* size of converted field or string */ |
char buf[BUF]; /* space for %c, %[diouxX], %[eEfgG] */ |
char ox[2]; /* space for 0x hex-prefix */ |
PrintZiel = ziel; // bestimmt, LCD oder UART |
va_start(ap, fmt0); |
fmt = fmt0; |
/* |
* Scan the format for conversions (`%' character). |
*/ |
for (;;) { |
for (fmark = fmt; (ch = pgm_read_byte(fmt)) != '\0' && ch != '%'; fmt++) |
/* void */; |
if ((n = fmt - fmark) != 0) { |
PRINTP(fmark, n); |
} |
if (ch == '\0') |
goto done; |
fmt++; /* skip over '%' */ |
flags = 0; |
dprec = 0; |
width = 0; |
prec = -1; |
sign = '\0'; |
rflag: ch = PRG_RDB(fmt++); |
reswitch: |
#ifdef LIGHTPRINTF |
if (ch=='o' || ch=='u' || (ch|0x20)=='x') { |
#else |
if (ch=='u' || (ch|0x20)=='x') { |
#endif |
if (flags&LONGINT) { |
_ulong=va_arg(ap, unsigned long); |
} else { |
register unsigned int _d; |
_d=va_arg(ap, unsigned int); |
_ulong = flags&SHORTINT ? (unsigned long)(unsigned short)_d : (unsigned long)_d; |
} |
} |
#ifndef LIGHTPRINTF |
if(ch==' ') { |
/* |
* ``If the space and + flags both appear, the space |
* flag will be ignored.'' |
* -- ANSI X3J11 |
*/ |
if (!sign) |
sign = ' '; |
goto rflag; |
} else if (ch=='#') { |
flags |= ALT; |
goto rflag; |
} else if (ch=='*'||ch=='-') { |
if (ch=='*') { |
/* |
* ``A negative field width argument is taken as a |
* - flag followed by a positive field width.'' |
* -- ANSI X3J11 |
* They don't exclude field widths read from args. |
*/ |
if ((width = va_arg(ap, int)) >= 0) |
goto rflag; |
width = -width; |
} |
flags |= LADJUST; |
flags &= ~ZEROPAD; /* '-' disables '0' */ |
goto rflag; |
} else if (ch=='+') { |
sign = '+'; |
goto rflag; |
} else if (ch=='.') { |
if ((ch = PRG_RDB(fmt++)) == '*') { |
n = va_arg(ap, int); |
prec = n < 0 ? -1 : n; |
goto rflag; |
} |
n = 0; |
while (is_digit(ch)) { |
n = n*10 + to_digit(ch); |
ch = PRG_RDB(fmt++); |
} |
prec = n < 0 ? -1 : n; |
goto reswitch; |
} else |
#endif /* LIGHTPRINTF */ |
if (ch=='0') { |
/* |
* ``Note that 0 is taken as a flag, not as the |
* beginning of a field width.'' |
* -- ANSI X3J11 |
*/ |
if (!(flags & LADJUST)) |
flags |= ZEROPAD; /* '-' disables '0' */ |
goto rflag; |
} else if (ch>='1' && ch<='9') { |
n = 0; |
do { |
n = 10 * n + to_digit(ch); |
ch = PRG_RDB(fmt++); |
} while (is_digit(ch)); |
width = n; |
goto reswitch; |
} else if (ch=='h') { |
flags |= SHORTINT; |
goto rflag; |
} else if (ch=='l') { |
flags |= LONGINT; |
goto rflag; |
} else if (ch=='c') { |
*(cp = buf) = va_arg(ap, int); |
size = 1; |
sign = '\0'; |
} else if (ch=='D'||ch=='d'||ch=='i') { |
if(ch=='D') |
flags |= LONGINT; |
if (flags&LONGINT) { |
_ulong=va_arg(ap, long); |
} else { |
register int _d; |
_d=va_arg(ap, int); |
_ulong = flags&SHORTINT ? (long)(short)_d : (long)_d; |
} |
if ((long)_ulong < 0) { |
_ulong = -_ulong; |
sign = '-'; |
} |
base = DEC; |
goto number; |
} else |
/* |
if (ch=='n') { |
if (flags & LONGINT) |
*va_arg(ap, long *) = ret; |
else if (flags & SHORTINT) |
*va_arg(ap, short *) = ret; |
else |
*va_arg(ap, int *) = ret; |
continue; // no output |
} else |
*/ |
#ifndef LIGHTPRINTF |
if (ch=='O'||ch=='o') { |
if (ch=='O') |
flags |= LONGINT; |
base = OCT; |
goto nosign; |
} else if (ch=='p') { |
/* |
* ``The argument shall be a pointer to void. The |
* value of the pointer is converted to a sequence |
* of printable characters, in an implementation- |
* defined manner.'' |
* -- ANSI X3J11 |
*/ |
/* NOSTRICT */ |
_ulong = (unsigned int)va_arg(ap, void *); |
base = HEX; |
flags |= HEXPREFIX; |
ch = 'x'; |
goto nosign; |
} else if (ch=='s') { // print a string from RAM |
if ((cp = va_arg(ap, char *)) == NULL) { |
cp=buf; |
cp[0] = '('; |
cp[1] = 'n'; |
cp[2] = 'u'; |
cp[4] = cp[3] = 'l'; |
cp[5] = ')'; |
cp[6] = '\0'; |
} |
if (prec >= 0) { |
/* |
* can't use strlen; can only look for the |
* NUL in the first `prec' characters, and |
* strlen() will go further. |
*/ |
char *p = (char*)memchr(cp, 0, prec); |
if (p != NULL) { |
size = p - cp; |
if (size > prec) |
size = prec; |
} else |
size = prec; |
} else |
size = strlen(cp); |
sign = '\0'; |
} else |
#endif /* LIGHTPRINTF */ |
if(ch=='U'||ch=='u') { |
if (ch=='U') |
flags |= LONGINT; |
base = DEC; |
goto nosign; |
} else if (ch=='X'||ch=='x') { |
base = HEX; |
/* leading 0x/X only if non-zero */ |
if (flags & ALT && _ulong != 0) |
flags |= HEXPREFIX; |
/* unsigned conversions */ |
nosign: sign = '\0'; |
/* |
* ``... diouXx conversions ... if a precision is |
* specified, the 0 flag will be ignored.'' |
* -- ANSI X3J11 |
*/ |
number: if ((dprec = prec) >= 0) |
flags &= ~ZEROPAD; |
/* |
* ``The result of converting a zero value with an |
* explicit precision of zero is no characters.'' |
* -- ANSI X3J11 |
*/ |
cp = buf + BUF; |
if (_ulong != 0 || prec != 0) { |
register unsigned char _d,notlastdigit; |
do { |
notlastdigit=(_ulong>=base); |
_d = _ulong % base; |
if (_d<10) { |
_d+='0'; |
} else { |
_d+='a'-10; |
if (ch=='X') _d&=~0x20; |
} |
*--cp=_d; |
_ulong /= base; |
} while (notlastdigit); |
#ifndef LIGHTPRINTF |
// handle octal leading 0 |
if (base==OCT && flags & ALT && *cp != '0') |
*--cp = '0'; |
#endif |
} |
size = buf + BUF - cp; |
} else { //default |
/* "%?" prints ?, unless ? is NUL */ |
if (ch == '\0') |
goto done; |
/* pretend it was %c with argument ch */ |
cp = buf; |
*cp = ch; |
size = 1; |
sign = '\0'; |
} |
/* |
* All reasonable formats wind up here. At this point, |
* `cp' points to a string which (if not flags&LADJUST) |
* should be padded out to `width' places. If |
* flags&ZEROPAD, it should first be prefixed by any |
* sign or other prefix; otherwise, it should be blank |
* padded before the prefix is emitted. After any |
* left-hand padding and prefixing, emit zeroes |
* required by a decimal [diouxX] precision, then print |
* the string proper, then emit zeroes required by any |
* leftover floating precision; finally, if LADJUST, |
* pad with blanks. |
*/ |
/* |
* compute actual size, so we know how much to pad. |
*/ |
fieldsz = size; |
dpad = dprec - size; |
if (dpad < 0) |
dpad = 0; |
if (sign) |
fieldsz++; |
else if (flags & HEXPREFIX) |
fieldsz += 2; |
fieldsz += dpad; |
/* right-adjusting blank padding */ |
if ((flags & (LADJUST|ZEROPAD)) == 0) |
PAD_SP(width - fieldsz); |
/* prefix */ |
if (sign) { |
PRINT(&sign, 1); |
} else if (flags & HEXPREFIX) { |
ox[0] = '0'; |
ox[1] = ch; |
PRINT(ox, 2); |
} |
/* right-adjusting zero padding */ |
if ((flags & (LADJUST|ZEROPAD)) == ZEROPAD) |
PAD_0(width - fieldsz); |
/* leading zeroes from decimal precision */ |
PAD_0(dpad); |
/* the string or number proper */ |
PRINT(cp, size); |
/* left-adjusting padding (always blank) */ |
if (flags & LADJUST) |
PAD_SP(width - fieldsz); |
} |
done: |
va_end(ap); |
} |
/branches/MicroMag3_Nick666/V0.67g/printf_P.h |
---|
0,0 → 1,19 |
#ifndef _PRINTF_P_H_ |
#define _PRINTF_P_H_ |
#include <avr/pgmspace.h> |
#define OUT_V24 0 |
#define OUT_LCD 1 |
void _printf_P (char, char const *fmt0, ...); |
extern char PrintZiel; |
#define printf_P(format, args...) _printf_P(OUT_V24,format , ## args) |
#define printf(format, args...) _printf_P(OUT_V24,PSTR(format) , ## args) |
#define LCD_printfxy(x,y,format, args...) { DispPtr = y * 20 + x; _printf_P(OUT_LCD,PSTR(format) , ## args);} |
#define LCD_printf(format, args...) { _printf_P(OUT_LCD,PSTR(format) , ## args);} |
#endif |
/branches/MicroMag3_Nick666/V0.67g/rc.c |
---|
0,0 → 1,84 |
/*####################################################################################### |
Decodieren eines RC Summen Signals |
#######################################################################################*/ |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "rc.h" |
#include "main.h" |
volatile int PPM_in[11]; |
volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
volatile unsigned char NewPpmData = 1; |
//############################################################################ |
//zum decodieren des PPM-Signals wird Timer1 mit seiner Input |
//Capture Funktion benutzt: |
void rc_sum_init (void) |
//############################################################################ |
{ |
TCCR1B=(1<<CS11)|(1<<CS10)|(1<<ICES1)|(1<<ICNC1);//|(1 << WGM12); //timer1 prescale 64 |
// PWM |
//TCCR1A = (1 << COM1B1) | (1 << WGM11) | (1 << WGM10); |
//TCCR1B |= (1 << WGM12); |
//OCR1B = 55; |
TIMSK1 |= _BV(ICIE1); |
AdNeutralGier = 0; |
AdNeutralRoll = 0; |
AdNeutralNick = 0; |
return; |
} |
//############################################################################ |
//Diese Routine startet und inizialisiert den Timer für RC |
SIGNAL(SIG_INPUT_CAPTURE1) |
//############################################################################ |
{ |
static unsigned int AltICR=0; |
signed int signal = 0,tmp; |
static int index; |
signal = (unsigned int) ICR1 - AltICR; |
AltICR = ICR1; |
//Syncronisationspause? |
// if((signal > (int) Parameter_UserParam2 * 10) && (signal < 8000)) |
if((signal > 1100) && (signal < 8000)) |
{ |
if(index >= 4) NewPpmData = 0; // Null bedeutet: Neue Daten |
index = 1; |
} |
else |
{ |
if(index < 10) |
{ |
if((signal > 250) && (signal < 687)) |
{ |
signal -= 466; |
// Stabiles Signal |
if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
tmp = (3 * (PPM_in[index]) + signal) / 4; |
// if(tmp > signal+1) tmp--; else |
// if(tmp < signal-1) tmp++; |
PPM_diff[index] = tmp - PPM_in[index]; |
PPM_in[index] = tmp; |
} |
index++; |
if(index == 5) PORTD |= 0x20; else PORTD &= ~0x20; // Servosignal an J3 anlegen |
if(index == 6) PORTD |= 0x10; else PORTD &= ~0x10; // Servosignal an J4 anlegen |
//if(index == 7) PORTD |= 0x08; else PORTD &= ~0x08; // Servosignal an J5 anlegen |
} |
} |
} |
/branches/MicroMag3_Nick666/V0.67g/rc.h |
---|
0,0 → 1,29 |
/*####################################################################################### |
Derkodieren eines RC Summen Signals |
#######################################################################################*/ |
#ifndef _RC_H |
#define _RC_H |
#if defined (__AVR_ATmega32__) |
#define TIMER_TEILER CK64 |
#define TIMER_RELOAD_VALUE 250 |
#endif |
#if defined (__AVR_ATmega644__) |
//#define TIMER_TEILER CK64 |
#define TIMER_RELOAD_VALUE 250 |
//#define TIMER_TEILER CK256 // bei 20MHz |
//#define TIMER_RELOAD_VALUE -78 // bei 20MHz |
#endif |
#define GAS PPM_in[2] |
extern void rc_sum_init (void); |
extern volatile int PPM_in[11]; |
extern volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
extern volatile unsigned char NewPpmData; |
#endif //_RC_H |
/branches/MicroMag3_Nick666/V0.67g/timer0.c |
---|
0,0 → 1,145 |
#include "main.h" |
volatile unsigned int CountMilliseconds = 0; |
volatile unsigned char UpdateMotor = 0; |
volatile unsigned int beeptime = 0; |
unsigned int BeepMuster = 0xffff; |
int ServoValue = 0; |
enum { |
STOP = 0, |
CK = 1, |
CK8 = 2, |
CK64 = 3, |
CK256 = 4, |
CK1024 = 5, |
T0_FALLING_EDGE = 6, |
T0_RISING_EDGE = 7 |
}; |
SIGNAL (SIG_OVERFLOW0) // 9,8kHz |
{ |
static unsigned char cnt_1ms = 1,cnt = 0; |
unsigned char pieper_ein = 0; |
// TCNT0 -= 250;//TIMER_RELOAD_VALUE; |
if(!cnt--) |
{ |
cnt = 10; |
cnt_1ms++; |
cnt_1ms %= 2; |
if(!cnt_1ms) UpdateMotor = 1; |
CountMilliseconds++; |
} |
if(beeptime > 1) |
{ |
beeptime--; |
if(beeptime & BeepMuster) |
{ |
pieper_ein = 1; |
} |
else pieper_ein = 0; |
} |
else |
{ |
pieper_ein = 0; |
BeepMuster = 0xffff; |
} |
if(pieper_ein) |
{ |
if(PlatinenVersion == 10) PORTD |= (1<<2); // Speaker an PORTD.2 |
else PORTC |= (1<<7); // Speaker an PORTC.7 |
} |
else |
{ |
if(PlatinenVersion == 10) PORTD &= ~(1<<2); |
else PORTC &= ~(1<<7); |
} |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) timer0_MM3(); // Kompass auslesen |
} |
void Timer_Init(void) |
{ |
TCCR0B = CK8; |
TCCR0A = (1<<COM0A1)|(1<<COM0B1)|3;//fast PWM |
OCR0A = 0; |
OCR0B = 120; |
TCNT0 = (unsigned char)-TIMER_RELOAD_VALUE; // reload |
//OCR1 = 0x00; |
TCCR2A=(1<<COM2A1)|(1<<COM2A0)|3; |
TCCR2B=(0<<CS20)|(1<<CS21)|(1<<CS22); |
// TIMSK2 |= _BV(TOIE2); |
TIMSK2 |= _BV(OCIE2A); |
TIMSK0 |= _BV(TOIE0); |
OCR2A = 10; |
TCNT2 = 0; |
} |
// ----------------------------------------------------------------------- |
unsigned int SetDelay (unsigned int t) |
{ |
// TIMSK0 &= ~_BV(TOIE0); |
return(CountMilliseconds + t + 1); |
// TIMSK0 |= _BV(TOIE0); |
} |
// ----------------------------------------------------------------------- |
char CheckDelay(unsigned int t) |
{ |
// TIMSK0 &= ~_BV(TOIE0); |
return(((t - CountMilliseconds) & 0x8000) >> 9); |
// TIMSK0 |= _BV(TOIE0); |
} |
// ----------------------------------------------------------------------- |
void Delay_ms(unsigned int w) |
{ |
unsigned int akt; |
akt = SetDelay(w); |
while (!CheckDelay(akt)); |
} |
void Delay_ms_Mess(unsigned int w) |
{ |
unsigned int akt; |
akt = SetDelay(w); |
while (!CheckDelay(akt)) ANALOG_ON; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Servo ansteuern |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(SIG_OUTPUT_COMPARE2A) |
{ |
static unsigned char timer = 10; |
if(!timer--) |
{ |
TCCR2A=(1<<COM2A1)|(0<<COM2A0)|3; |
ServoValue = Parameter_ServoNickControl; |
if(EE_Parameter.ServoNickCompInvert & 0x01) ServoValue += ((long) EE_Parameter.ServoNickComp * (IntegralNick / 128)) / 512; |
else ServoValue -= ((long) EE_Parameter.ServoNickComp * (IntegralNick / 128)) / 512; |
if(ServoValue < EE_Parameter.ServoNickMin) ServoValue = EE_Parameter.ServoNickMin; |
else if(ServoValue > EE_Parameter.ServoNickMax) ServoValue = EE_Parameter.ServoNickMax; |
OCR2A = ServoValue;// + 75; |
timer = EE_Parameter.ServoNickRefresh; |
} |
else |
{ |
TCCR2A =3; |
PORTD&=~0x80; |
} |
} |
/branches/MicroMag3_Nick666/V0.67g/timer0.h |
---|
0,0 → 1,15 |
#define TIMER_TEILER CK8 |
#define TIMER_RELOAD_VALUE 250 |
void Timer_Init(void); |
void Delay_ms(unsigned int); |
void Delay_ms_Mess(unsigned int); |
unsigned int SetDelay (unsigned int t); |
char CheckDelay (unsigned int t); |
extern volatile unsigned int CountMilliseconds; |
extern volatile unsigned char UpdateMotor; |
extern volatile unsigned int beeptime; |
extern int ServoValue; |
extern unsigned int BeepMuster; |
/branches/MicroMag3_Nick666/V0.67g/twimaster.c |
---|
0,0 → 1,152 |
/*############################################################################ |
############################################################################*/ |
#include "main.h" |
unsigned char twi_state = 0; |
unsigned char motor = 0; |
unsigned char motorread = 0; |
unsigned char motor_rx[8]; |
//############################################################################ |
//Initzialisieren der I2C (TWI) Schnittstelle |
void i2c_init(void) |
//############################################################################ |
{ |
TWSR = 0; |
TWBR = ((SYSCLK/SCL_CLOCK)-16)/2; |
} |
//############################################################################ |
//Start I2C |
char i2c_start(void) |
//############################################################################ |
{ |
TWCR = (1<<TWSTA) | (1<<TWEN) | (1<<TWINT) | (1<<TWIE); |
return(0); |
} |
//############################################################################ |
//Start I2C |
void i2c_stop(void) |
//############################################################################ |
{ |
TWCR = (1<<TWEN) | (1<<TWSTO) | (1<<TWINT); |
} |
void i2c_reset(void) |
//############################################################################ |
{ |
i2c_stop(); |
twi_state = 0; |
motor = TWDR; |
motor = 0; |
TWCR = 0x80; |
TWAMR = 0; |
TWAR = 0; |
TWDR = 0; |
TWSR = 0; |
TWBR = 0; |
i2c_init(); |
i2c_start(); |
i2c_write_byte(0); |
} |
//############################################################################ |
//Start I2C |
char i2c_write_byte(char byte) |
//############################################################################ |
{ |
TWSR = 0x00; |
TWDR = byte; |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
return(0); |
} |
//############################################################################ |
//Start I2C |
SIGNAL (TWI_vect) |
//############################################################################ |
{ |
switch (twi_state++) |
{ |
case 0: |
i2c_write_byte(0x52+(motor*2)); |
break; |
case 1: |
switch(motor++) |
{ |
case 0: |
i2c_write_byte(Motor_Vorne); |
break; |
case 1: |
i2c_write_byte(Motor_Hinten); |
break; |
case 2: |
i2c_write_byte(Motor_Rechts); |
break; |
case 3: |
i2c_write_byte(Motor_Links); |
break; |
} |
break; |
case 2: |
i2c_stop(); |
if (motor<4) twi_state = 0; |
else motor = 0; |
i2c_start(); |
break; |
//Liest Daten von Motor |
case 3: |
i2c_write_byte(0x53+(motorread*2)); |
break; |
case 4: |
switch(motorread) |
{ |
case 0: |
i2c_write_byte(Motor_Vorne); |
break; |
case 1: |
i2c_write_byte(Motor_Hinten); |
break; |
case 2: |
i2c_write_byte(Motor_Rechts); |
break; |
case 3: |
i2c_write_byte(Motor_Links); |
break; |
} |
break; |
case 5: //1 Byte vom Motor lesen |
motor_rx[motorread] = TWDR; |
case 6: |
switch(motorread) |
{ |
case 0: |
i2c_write_byte(Motor_Vorne); |
break; |
case 1: |
i2c_write_byte(Motor_Hinten); |
break; |
case 2: |
i2c_write_byte(Motor_Rechts); |
break; |
case 3: |
i2c_write_byte(Motor_Links); |
break; |
} |
break; |
case 7: //2 Byte vom Motor lesen |
motor_rx[motorread+4] = TWDR; |
motorread++; |
if (motorread>3) motorread=0; |
i2c_stop(); |
I2CTimeout = 10; |
twi_state = 0; |
} |
TWCR |= 0x80; |
} |
/branches/MicroMag3_Nick666/V0.67g/twimaster.h |
---|
0,0 → 1,33 |
/*############################################################################ |
############################################################################*/ |
#ifndef _I2C_MASTER_H |
#define _I2C_MASTER_H |
//############################################################################ |
// I2C Konstanten |
#define SCL_CLOCK 200000L |
#define I2C_TIMEOUT 30000 |
#define I2C_START 0x08 |
#define I2C_REPEATED_START 0x10 |
#define I2C_TX_SLA_ACK 0x18 |
#define I2C_TX_DATA_ACK 0x28 |
#define I2C_RX_SLA_ACK 0x40 |
#define I2C_RX_DATA_ACK 0x50 |
//############################################################################ |
extern unsigned char twi_state; |
extern unsigned char motor; |
extern unsigned char motorread; |
extern unsigned char motor_rx[8]; |
void i2c_reset(void); |
extern void i2c_init (void); // I2C initialisieren |
extern char i2c_start (void); // Start I2C |
extern void i2c_stop (void); // Stop I2C |
extern char i2c_write_byte (char byte); // 1 Byte schreiben |
extern void i2c_reset(void); |
#endif |
/branches/MicroMag3_Nick666/V0.67g/uart.c |
---|
0,0 → 1,388 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
#include "uart.h" |
unsigned char DebugGetAnforderung = 0,DebugDisplayAnforderung = 0,DebugDataAnforderung = 0,GetVersionAnforderung = 0; |
unsigned volatile char SioTmp = 0; |
unsigned volatile char SendeBuffer[MAX_SENDE_BUFF]; |
unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF]; |
unsigned volatile char NMEABuffer[MAX_EMPFANGS_BUFF]; |
unsigned volatile char NeuerDatensatzEmpfangen = 0; |
unsigned volatile char NeueKoordinateEmpfangen = 0; |
unsigned volatile char UebertragungAbgeschlossen = 1; |
unsigned volatile char CntCrcError = 0; |
unsigned volatile char AnzahlEmpfangsBytes = 0; |
unsigned volatile char PC_DebugTimeout = 0; |
unsigned char RemotePollDisplayLine = 0; |
unsigned char NurKanalAnforderung = 0; |
unsigned char DebugTextAnforderung = 255; |
unsigned char PcZugriff = 100; |
unsigned char MotorTest[4] = {0,0,0,0}; |
unsigned char DubWiseKeys[3] = {0,0,0}; |
unsigned char MeineSlaveAdresse; |
struct str_DebugOut DebugOut; |
struct str_Debug DebugIn; |
struct str_VersionInfo VersionInfo; |
int Debug_Timer; |
const unsigned char ANALOG_TEXT[32][16] = |
{ |
//1234567890123456 |
"IntegralNick ", //0 |
"IntegralRoll ", |
"AccNick ", |
"AccRoll ", |
"GyroGier ", |
"HoehenWert ", //5 |
"AccZ ", |
"Gas ", |
"KompassValue ", |
"Spannung ", |
"Empfang ", //10 |
"Analog11 ", |
"Motor_Vorne ", |
"Motor_Hinten ", |
"Motor_Links ", |
"Motor_Rechts ", //15 |
"Acc_Z ", |
"MittelAccNick ", |
"MittelAccRoll ", |
"IntegralErrNick ", |
"IntegralErrRoll ", //20 |
"MittelIntNick ", |
"MittelIntRoll ", |
"NeutralNick ", |
"RollOffset ", |
"IntRoll*Faktor ", //25 |
"Analog26 ", |
"DirektAusglRoll ", |
"MesswertRoll ", |
"AusgleichRoll ", |
"I-LageRoll ", //30 |
"StickRoll " |
}; |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ Sende-Part der Datenübertragung |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(INT_VEC_TX) |
{ |
static unsigned int ptr = 0; |
unsigned char tmp_tx; |
if(!UebertragungAbgeschlossen) |
{ |
ptr++; // die [0] wurde schon gesendet |
tmp_tx = SendeBuffer[ptr]; |
if((tmp_tx == '\r') || (ptr == MAX_SENDE_BUFF)) |
{ |
ptr = 0; |
UebertragungAbgeschlossen = 1; |
} |
UDR = tmp_tx; |
} |
else ptr = 0; |
} |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ Empfangs-Part der Datenübertragung, incl. CRC-Auswertung |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(INT_VEC_RX) |
{ |
static unsigned int crc; |
static unsigned char crc1,crc2,buf_ptr; |
static unsigned char UartState = 0; |
unsigned char CrcOkay = 0; |
SioTmp = UDR; |
if(buf_ptr >= MAX_EMPFANGS_BUFF) UartState = 0; |
if(SioTmp == '\r' && UartState == 2) |
{ |
UartState = 0; |
crc -= RxdBuffer[buf_ptr-2]; |
crc -= RxdBuffer[buf_ptr-1]; |
crc %= 4096; |
crc1 = '=' + crc / 64; |
crc2 = '=' + crc % 64; |
CrcOkay = 0; |
if((crc1 == RxdBuffer[buf_ptr-2]) && (crc2 == RxdBuffer[buf_ptr-1])) CrcOkay = 1; else { CrcOkay = 0; CntCrcError++;}; |
if(!NeuerDatensatzEmpfangen && CrcOkay) // Datensatz schon verarbeitet |
{ |
NeuerDatensatzEmpfangen = 1; |
AnzahlEmpfangsBytes = buf_ptr; |
RxdBuffer[buf_ptr] = '\r'; |
if(RxdBuffer[2] == 'R') wdt_enable(WDTO_250MS); // Reset-Commando |
} |
} |
else |
switch(UartState) |
{ |
case 0: |
if(SioTmp == '#' && !NeuerDatensatzEmpfangen) UartState = 1; // Startzeichen und Daten schon verarbeitet |
buf_ptr = 0; |
RxdBuffer[buf_ptr++] = SioTmp; |
crc = SioTmp; |
break; |
case 1: // Adresse auswerten |
UartState++; |
RxdBuffer[buf_ptr++] = SioTmp; |
crc += SioTmp; |
break; |
case 2: // Eingangsdaten sammeln |
RxdBuffer[buf_ptr] = SioTmp; |
if(buf_ptr < MAX_EMPFANGS_BUFF) buf_ptr++; |
else UartState = 0; |
crc += SioTmp; |
break; |
default: |
UartState = 0; |
break; |
} |
} |
// -------------------------------------------------------------------------- |
void AddCRC(unsigned int wieviele) |
{ |
unsigned int tmpCRC = 0,i; |
for(i = 0; i < wieviele;i++) |
{ |
tmpCRC += SendeBuffer[i]; |
} |
tmpCRC %= 4096; |
SendeBuffer[i++] = '=' + tmpCRC / 64; |
SendeBuffer[i++] = '=' + tmpCRC % 64; |
SendeBuffer[i++] = '\r'; |
UebertragungAbgeschlossen = 0; |
UDR = SendeBuffer[0]; |
} |
// -------------------------------------------------------------------------- |
void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len) |
{ |
unsigned int pt = 0; |
unsigned char a,b,c; |
unsigned char ptr = 0; |
SendeBuffer[pt++] = '#'; // Startzeichen |
SendeBuffer[pt++] = modul; // Adresse (a=0; b=1,...) |
SendeBuffer[pt++] = cmd; // Commando |
while(len) |
{ |
if(len) { a = snd[ptr++]; len--;} else a = 0; |
if(len) { b = snd[ptr++]; len--;} else b = 0; |
if(len) { c = snd[ptr++]; len--;} else c = 0; |
SendeBuffer[pt++] = '=' + (a >> 2); |
SendeBuffer[pt++] = '=' + (((a & 0x03) << 4) | ((b & 0xf0) >> 4)); |
SendeBuffer[pt++] = '=' + (((b & 0x0f) << 2) | ((c & 0xc0) >> 6)); |
SendeBuffer[pt++] = '=' + ( c & 0x3f); |
} |
AddCRC(pt); |
} |
// -------------------------------------------------------------------------- |
void Decode64(unsigned char *ptrOut, unsigned char len, unsigned char ptrIn,unsigned char max) // Wohin mit den Daten; Wie lang; Wo im RxdBuffer |
{ |
unsigned char a,b,c,d; |
unsigned char ptr = 0; |
unsigned char x,y,z; |
while(len) |
{ |
a = RxdBuffer[ptrIn++] - '='; |
b = RxdBuffer[ptrIn++] - '='; |
c = RxdBuffer[ptrIn++] - '='; |
d = RxdBuffer[ptrIn++] - '='; |
if(ptrIn > max - 2) break; // nicht mehr Daten verarbeiten, als empfangen wurden |
x = (a << 2) | (b >> 4); |
y = ((b & 0x0f) << 4) | (c >> 2); |
z = ((c & 0x03) << 6) | d; |
if(len--) ptrOut[ptr++] = x; else break; |
if(len--) ptrOut[ptr++] = y; else break; |
if(len--) ptrOut[ptr++] = z; else break; |
} |
} |
// -------------------------------------------------------------------------- |
void BearbeiteRxDaten(void) |
{ |
if(!NeuerDatensatzEmpfangen) return; |
// unsigned int tmp_int_arr1[1]; |
// unsigned int tmp_int_arr2[2]; |
// unsigned int tmp_int_arr3[3]; |
unsigned char tmp_char_arr2[2]; |
// unsigned char tmp_char_arr3[3]; |
// unsigned char tmp_char_arr4[4]; |
//if(!MotorenEin) |
PcZugriff = 255; |
switch(RxdBuffer[2]) |
{ |
case 'a':// Texte der Analogwerte |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
DebugTextAnforderung = tmp_char_arr2[0]; |
break; |
case 'c':// Debugdaten incl. Externe IOs usw |
Decode64((unsigned char *) &DebugIn,sizeof(DebugIn),3,AnzahlEmpfangsBytes); |
/* for(unsigned char i=0; i<4;i++) |
{ |
EE_CheckAndWrite(&EE_Buffer[EE_DEBUGWERTE + i*2], DebugIn.Analog[i]); |
EE_CheckAndWrite(&EE_Buffer[EE_DEBUGWERTE + i*2 + 1], DebugIn.Analog[i] >> 8); |
}*/ |
RemoteTasten |= DebugIn.RemoteTasten; |
DebugDataAnforderung = 1; |
break; |
case 'h':// x-1 Displayzeilen |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
RemoteTasten |= tmp_char_arr2[0]; |
if(tmp_char_arr2[1] == 255) NurKanalAnforderung = 1; else NurKanalAnforderung = 0; // keine Displaydaten |
DebugDisplayAnforderung = 1; |
break; |
case 't':// Motortest |
Decode64((unsigned char *) &MotorTest[0],sizeof(MotorTest),3,AnzahlEmpfangsBytes); |
break; |
case 'k':// Keys von DubWise |
Decode64((unsigned char *) &DubWiseKeys[0],sizeof(DubWiseKeys),3,AnzahlEmpfangsBytes); |
break; |
case 'v': // Version-Anforderung und Ausbaustufe |
GetVersionAnforderung = 1; |
break; |
case 'g':// "Get"-Anforderung für Debug-Daten |
// Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
DebugGetAnforderung = 1; |
break; |
case 'q':// "Get"-Anforderung für Settings |
// Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
if(tmp_char_arr2[0] != 0xff) |
{ |
if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
} |
else |
SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
break; |
case 'l': |
case 'm': |
case 'n': |
case 'o': |
case 'p': // Parametersatz speichern |
Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct),3,AnzahlEmpfangsBytes); |
WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], RxdBuffer[2] - 'l' + 1); // aktiven Datensatz merken |
Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagRoll * 2500L; |
Piep(GetActiveParamSetNumber()); |
break; |
} |
// DebugOut.AnzahlZyklen = Debug_Timer_Intervall; |
NeuerDatensatzEmpfangen = 0; |
} |
//############################################################################ |
//Routine für die Serielle Ausgabe |
int uart_putchar (char c) |
//############################################################################ |
{ |
if (c == '\n') |
uart_putchar('\r'); |
//Warten solange bis Zeichen gesendet wurde |
loop_until_bit_is_set(USR, UDRE); |
//Ausgabe des Zeichens |
UDR = c; |
return (0); |
} |
// -------------------------------------------------------------------------- |
void WriteProgramData(unsigned int pos, unsigned char wert) |
{ |
//if (ProgramLocation == IN_RAM) Buffer[pos] = wert; |
// else eeprom_write_byte(&EE_Buffer[pos], wert); |
// Buffer[pos] = wert; |
} |
//############################################################################ |
//INstallation der Seriellen Schnittstelle |
void UART_Init (void) |
//############################################################################ |
{ |
//Enable TXEN im Register UCR TX-Data Enable & RX Enable |
UCR=(1 << TXEN) | (1 << RXEN); |
// UART Double Speed (U2X) |
USR |= (1<<U2X); |
// RX-Interrupt Freigabe |
UCSRB |= (1<<RXCIE); |
// TX-Interrupt Freigabe |
UCSRB |= (1<<TXCIE); |
//Teiler wird gesetzt |
UBRR=(SYSCLK / (BAUD_RATE * 8L) - 1); |
//UBRR = 33; |
//öffnet einen Kanal für printf (STDOUT) |
//fdevopen (uart_putchar, 0); |
//sbi(PORTD,4); |
Debug_Timer = SetDelay(200); |
} |
//--------------------------------------------------------------------------------------------- |
void DatenUebertragung(void) |
{ |
if(!UebertragungAbgeschlossen) return; |
if(DebugGetAnforderung && UebertragungAbgeschlossen) // Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
{ |
SendOutData('G',MeineSlaveAdresse,(unsigned char *) &DebugIn,sizeof(DebugIn)); |
DebugGetAnforderung = 0; |
} |
if((CheckDelay(Debug_Timer) || DebugDataAnforderung) && UebertragungAbgeschlossen) |
{ |
SendOutData('D',MeineSlaveAdresse,(unsigned char *) &DebugOut,sizeof(DebugOut)); |
DebugDataAnforderung = 0; |
Debug_Timer = SetDelay(MIN_DEBUG_INTERVALL); |
} |
if(DebugTextAnforderung != 255) // Texte für die Analogdaten |
{ |
SendOutData('A',DebugTextAnforderung + '0',(unsigned char *) ANALOG_TEXT[DebugTextAnforderung],16); |
DebugTextAnforderung = 255; |
} |
if(DebugDisplayAnforderung && UebertragungAbgeschlossen) |
{ |
Menu(); |
DebugDisplayAnforderung = 0; |
if(++RemotePollDisplayLine == 4 || NurKanalAnforderung) |
{ |
SendOutData('4',0,(unsigned char *)&PPM_in,sizeof(PPM_in)); // DisplayZeile übertragen |
RemotePollDisplayLine = -1; |
} |
else SendOutData('0' + RemotePollDisplayLine,0,(unsigned char *)&DisplayBuff[20 * RemotePollDisplayLine],20); // DisplayZeile übertragen |
} |
if(GetVersionAnforderung && UebertragungAbgeschlossen) |
{ |
SendOutData('V',MeineSlaveAdresse,(unsigned char *) &VersionInfo,sizeof(VersionInfo)); |
GetVersionAnforderung = 0; |
} |
} |
/branches/MicroMag3_Nick666/V0.67g/uart.h |
---|
0,0 → 1,100 |
#ifndef _UART_H |
#define _UART_H |
#define MAX_SENDE_BUFF 150 |
#define MAX_EMPFANGS_BUFF 150 |
#define DUB_KEY_UP 4 |
#define DUB_KEY_DOWN 8 |
#define DUB_KEY_RIGHT 32 |
#define DUB_KEY_LEFT 16 |
#define DUB_KEY_FIRE 64 |
void BearbeiteRxDaten(void); |
extern unsigned char DebugGetAnforderung; |
extern unsigned volatile char SendeBuffer[MAX_SENDE_BUFF]; |
extern unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF]; |
extern unsigned volatile char UebertragungAbgeschlossen; |
extern unsigned volatile char PC_DebugTimeout; |
extern unsigned volatile char NeueKoordinateEmpfangen; |
extern unsigned char MeineSlaveAdresse; |
extern unsigned char PcZugriff; |
extern unsigned char RemotePollDisplayLine; |
extern int Debug_Timer; |
extern void UART_Init (void); |
extern int uart_putchar (char c); |
extern void boot_program_page (uint32_t page, uint8_t *buf); |
extern void DatenUebertragung(void); |
extern void DecodeNMEA(void); |
extern void BearbeiteRxDaten(void); |
extern unsigned char MotorTest[4]; |
extern unsigned char DubWiseKeys[3]; |
struct str_DebugOut |
{ |
unsigned char Digital[2]; |
unsigned int Analog[32]; // Debugwerte |
}; |
extern struct str_DebugOut DebugOut; |
struct str_Debug |
{ |
unsigned char Digital[2]; |
unsigned char RemoteTasten; |
unsigned int Analog[4]; |
}; |
extern struct str_Debug DebugIn; |
struct str_VersionInfo |
{ |
unsigned char Hauptversion; |
unsigned char Nebenversion; |
unsigned char PCKompatibel; |
unsigned char Rserved[7]; |
}; |
extern struct str_VersionInfo VersionInfo; |
//Die Baud_Rate der Seriellen Schnittstelle ist 9600 Baud |
//#define BAUD_RATE 9600 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 14400 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 28800 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 38400 //Baud Rate für die Serielle Schnittstelle |
#define BAUD_RATE 57600 //Baud Rate für die Serielle Schnittstelle |
//Anpassen der seriellen Schnittstellen Register wenn ein ATMega128 benutzt wird |
#if defined (__AVR_ATmega128__) |
# define USR UCSR0A |
# define UCR UCSR0B |
# define UDR UDR0 |
# define UBRR UBRR0L |
# define EICR EICRB |
#endif |
#if defined (__AVR_ATmega32__) |
# define USR UCSRA |
# define UCR UCSRB |
# define UBRR UBRRL |
# define EICR EICRB |
# define INT_VEC_RX SIG_UART_RECV |
# define INT_VEC_TX SIG_UART_TRANS |
#endif |
#if defined (__AVR_ATmega644__) |
# define USR UCSR0A |
# define UCR UCSR0B |
# define UDR UDR0 |
# define UBRR UBRR0L |
# define EICR EICR0B |
# define TXEN TXEN0 |
# define RXEN RXEN0 |
# define RXCIE RXCIE0 |
# define TXCIE TXCIE0 |
# define U2X U2X0 |
# define UCSRB UCSR0B |
# define UDRE UDRE0 |
# define INT_VEC_RX SIG_USART_RECV |
# define INT_VEC_TX SIG_USART_TRANS |
#endif |
#endif //_UART_H |
/branches/MicroMag3_Nick666/V0.67g/version.txt |
---|
0,0 → 1,107 |
------- |
V0.53 27.04.2007 H.Buss |
- erste öffentliche Version |
V0.53b 29.04.2007 H.Buss |
- der FAKTOR_I war versehentlich auf Null, dann liegt der MikroKopter nicht so hart in der Luft |
V0.53c 29.04.2007 H.Buss |
- es gib ein Menü, in dem die Werte der Kanäle nach Nick, Roll, Gas,... sortiert sind. |
Die angezeigten Werte waren nicht die Werte der Funke |
V0.54 01.05.2007 H.Buss |
- die Paramtersätze können jetzt vor dem Start ausgewählt werden |
Dazu wird beim Kalibrieren der Messwerte (Gashebel oben links) der Nick-Rollhebel abgefragt: |
2 3 4 |
1 x 5 |
- - - |
Bedeutet: Nick-Rollhebel Links Mitte = Setting:1 Links Oben = Setting:2 usw. |
- der Faktor_I für den Hauptregler ist hinzugekommen. Im Heading-Hold-Modus sollte er vergössert werden, was Stabilität bringt |
V0.55 14.05.2007 H.Buss |
- es können nun Servos an J3,J4,J5 mit den Kanälen 5-7 gesteuert werden |
V0.56 14.05.2007 H.Buss |
- es gab Probleme mit Funken, die mehr als 8 Kanäle haben, wenn mehrere Kanäle dann auf Null waren |
- Funken, die nicht bis +-120 aussteuern können, sollten jetzt auch gehen |
V0.57 24.05.2007 H.Buss |
- Der Höhenregler kann nun auch mittels Schalter bedient werden |
- Bug im Gier-Algorithmus behoben; Schnelles Gieren fürhrte dazu, dass der MK zu weit gedreht hat |
- Kompass-Einfluss dämpfen bei Neigung |
- Man kann zwischen Kompass FIX (Richtung beim Kalibrieren) und Variabel (einstellbar per Gier) wählen |
- Der Motortest vom Kopter-Tool geht jetzt |
- Man kann den Parametersätzen einen Namen geben |
- Das Kamerasetting ist unter Setting 2 defaultmässig integriert |
V0.58 30.05.2007 H.Buss |
- Der Höhenregler-Algorithmus wird nun umgangen, wenn der Höhenreglerschalter aus ist |
V0.60 17.08.2007 H.Buss |
- "Schwindel-Bug" behoben |
- Die Poti-Werte werden jetzt auf Unterlauf (<0) überprüft |
- Poti4 zugefügt |
- Es werden jetzt 8 Kanäle ausgewertet |
- Kamera-Servo (an J7) |
- Die Settings müssen überschrieben werden |
V0.61 - V0.63 H.Buss 27.09.2007 |
- Poti 4 und Kanal 8 werden im Menü angezeigt |
- ein paar Kleinigkeiten bei den DefaultKonstanten2 bereinigt |
- Analog.c: Aktuell_ax korrigiert |
- auf 32 Debug-Kanäle erweitert |
- Loopings sind jetzt möglich und einzeln im KopterTool freischaltbar |
- leichte Anpassungen im Gier - Geschwindigkeit und Drift |
- die Hardwareversion V1.1 wird erkannt und das Programm stellt sich auf die geänderte Gyroverstärkung und die geänderten Portpins ein |
- die Software startet nach dem Einschalten schneller, weil der Luftdruckoffset schneller gefunden wird |
- die PPM-Ausgänge liegen wieder an den Pins an |
- Details an der Sensordatenverarbeitung -> es fliegt sich geringfügig anders |
- der MK ist bei wenig Gas nicht mehr so giftig -> soll das Landen vereinfachen |
- I2C-Bus läuft jetzt sicher nach einer Störung wieder an |
- Sticksignale werden präziser ausgewertet |
- Stick-Kanäle werden ans Kopter-Tool übertragen |
- Es muss die Version V1.47 des Kopter-Tool verwendet werden |
- Die Settings werden auf Default zurückgesetzt |
- am Piepen kann man die Fehlerart unterscheiden |
1. einzelnes Piepen beim Einschalten und Kalibrieren |
2. langsames Intervall mindestens 1 Sek -> Empfangsausfall |
3. schnelleres Intervall mindestens 1 Sek -> Akku |
4. sehr schnelles Intervall mindestens 1 Sek -> Kommunikation zu den Reglern gestört |
V0.64 H.Buss 30.09.2007 |
- beim Gieren wurden die Achsen nicht hart genug geregelt |
V0.65a H.Buss 15.10.2007 |
- Integral im Mischer wieder integriert |
- Feinabstimmung im ACC/Gyro Abgleich -> 1/32 & 100 |
- ACC/Gyro Abgleich auch bei HH |
V0.66a H.Buss 3.11.2007 |
- Messwertverarbeitung aus dem Analog-Interrupt entfernt |
- Analogmessung hängt jetzt am FC-Timing |
- Looping-Stick-Hysterese eingebaut |
- Looping-180°-Umschlag einstellbar |
- Achsenkopplung: Gierbewegung verkoppelt Nick und Roll |
- Lageregelung nach ACC-Sensor verbessert |
- zusätzlicher I-Anteil in der Lageregelung verbessert die Neutrallage |
- Gyrodriftkompensation überarbeitet |
- Bug in der Gier-Stick-Berechnung behoben |
- Gyro-Messung auf 1kHz beschleunigt |
V0.67a H.Buss 16.11.2007 |
- der Hauptregler-I-Anteil wirkt jetzt nur noch auf den Winkel (ausser im HH-Mode) |
- Gyro-Acc-Abgleich jetzt wieder in jedem Zyklus |
- Feinabstimmung |
- Beim HH-Modus gab es noch Bugs |
V0.67e H.Buss 29.11.2007 |
- Parameter: Dynamic Stability und Driftfaktor eingeführt |
- Die Namen der Analogwerte werden jetzt zum Koptertool übertragen |
- Kompatibilität zum Koptertool erhöht |
V0.67f H.Buss 04.12.2007 |
- Giersteuerwert im Mischer auf Gas/2 begrenzt |
- Die Analogwerte des ACC-Sensors können dauerhaft im EEPROM gespeichert werden |
- Das Integral des Hauptreglers wird jetzt linear entladen und nicht mehr proportional |
/branches/MicroMag3_Nick666/V0.68d/Flight-Ctrl_MEGA644_V0_68d.hex |
---|
0,0 → 1,2006 |
:100000000C94A8030C94C5030C94C5030C94C5036D |
:100010000C94C5030C94C5030C94C5030C94C50340 |
:100020000C94C5030C94C50C0C94C5030C94C50327 |
:100030000C9493160C94C5030C94C5030C94C5033F |
:100040000C94C5030C94C5030C94680D0C94B33741 |
:100050000C947F060C94C5030C9449060C94C503BC |
:100060000C94100E0C94C5030C94D2150C94C5037B |
:10007000E708F3080509BB09BB09BB0951091C09BD |
:10008000BB09BB0940097D097D097D097D097D0901 |
:100090005509BB09BB093709BB094D093A0E4F0E7B |
:1000A000580E620E7F0E970EB00ECD0EEA0E070FA1 |
:1000B000EB0F44118C11ED11431297121B13C21355 |
:1000C000101434146A14A614E41436156F150A0AB1 |
:1000D0000D004E65757472616C0048656164696EEF |
:1000E00067486F6C64000A0D537465756572756EB0 |
:1000F000673A20004F4B0A0D000A0D4162676C659C |
:10010000696368204C756674647275636B73656EA1 |
:10011000736F722E2E000A0D4B616C6962726965F5 |
:100120007265204E65757472616C6C616765000A5A |
:100130000D4B616C69627269657265204B6F6D7001 |
:10014000617373000A0D42656E75747A65205061A3 |
:1001500072616D657465727361747A202564000A3A |
:100160000D496E69742E20454550524F4D3A204737 |
:10017000656E6572696572652044656661756C744B |
:100180002D506172616D657465722E2E2E000A0D00 |
:100190003D3D3D3D3D3D3D3D3D3D3D3D3D3D3D3D8F |
:1001A0003D3D3D3D3D3D3D3D3D3D3D3D3D3D000AEF |
:1001B0000D466C69676874436F6E74726F6C0A0DDC |
:1001C00048617264776172653A25642E25640A0D70 |
:1001D000536F6674776172653A5625642E256425DF |
:1001E0006320002E005A5F52616E67653A20202519 |
:1001F000346900595F52616E67653A202025346981 |
:1002000000585F52616E67653A2020253469004DC1 |
:100210004D332052616E6765005A5F4F66667365A5 |
:10022000743A202025336900595F4F666673657400 |
:100230003A202025336900585F4F66667365743A2B |
:100240002020253369004D4D33204F6666004869F4 |
:100250003A253469202043663A25346920004773E3 |
:100260003A253469202047693A25346920004E69CF |
:100270003A2534692020526F3A25346920004578A8 |
:100280007465726E436F6E74726F6C2020005261E1 |
:100290006E67653A2533692D253369005374656CA3 |
:1002A0006C756E673A2025336900536574706F6909 |
:1002B0006E74202025336900536572766F2020000C |
:1002C000506F7469343A202025336900506F746987 |
:1002D000333A202025336900506F7469323A202068 |
:1002E00025336900506F7469313A20202533690045 |
:1002F00053746172743A2020202020253569004D06 |
:10030000657373776572743A2020253569005269E8 |
:10031000636874756E673A2020253569004B6F6DF0 |
:10032000706173732020202020202000456D7066AE |
:100330002E506567656C3A253569005370616E6EA5 |
:10034000756E673A202025356900486F636820255F |
:10035000346920282533692900526F6C6C202534BC |
:1003600069202825336929004E69636B202534698B |
:1003700020282533692900414343202D2053656EF1 |
:10038000736F720047696572202534692028253310 |
:10039000692900526F6C6C20253469202825336947 |
:1003A00029004E69636B202534692028253369298B |
:1003B00000476965722025346920282533692900A2 |
:1003C000526F6C6C20253469202825336929004E32 |
:1003D00069636B2025346920282533692900477912 |
:1003E000726F202D2053656E736F720050333A2563 |
:1003F0003469202050343A253469200050313A25A0 |
:100400003469202050323A253469200047733A2558 |
:100410003469202047693A25346920004E693A251D |
:1004200034692020526F3A25346920004B373A2531 |
:10043000346920204B383A25346920004B353A2561 |
:10044000346920204B363A25346920004B333A2555 |
:10045000346920204B343A25346920004B313A2549 |
:10046000346920204B323A25346920004B6F6D707F |
:100470006173733A20202025356900526F6C6C3A05 |
:10048000202020202020253569004E69636B3A200A |
:10049000202020202025356900616B742E204C61BE |
:1004A00067650048F668656E726567656C756E67AE |
:1004B000004B65696E6520004F6666202020202075 |
:1004C000203A20253569004C756674647275636B3B |
:1004D0003A2025356900536F6C6C486F6568653A42 |
:1004E0002025356900486F6568653A202020202066 |
:1004F0002535690028632920486F6C6765722042A2 |
:100500007573730053657474696E673A20256420AF |
:100510000048573A5625642E25642053573A2564DF |
:100520002E25642563002B204D696B726F4B6F7015 |
:10053000746572202B005B25695D005B25695D0099 |
:1005400000010203040405060708090A0B0B0C0D41 |
:100550000E0F101111121314151516171818191A59 |
:100560001B1B1C1D1D1E1F1F202121222323242491 |
:100570002525262727282829292A2A2B2B2C2C2DEC |
:100580002D2D2E2E2F2F3030303131323232333369 |
:1005900033343434353535363636373737373838FF |
:1005A00038393939393A3A3A3A3B3B3B3B3C3C3CA7 |
:1005B0003C3C3D3D3D3D3E3E3E3E3E3F3F3F3F3F5E |
:1005C0003F40404040404041414141414142424220 |
:1005D00042424242434343434343434444444444EA |
:1005E00044444445454545454545454546464646BA |
:1005F0004646464646474747474747474747474790 |
:100600004848484848484848484848494949494965 |
:100610004949494949494949494A4A4A4A4A4A4A43 |
:100620004A4A4A4A4A4A4A4B4B4B4B4B4B4B4B4B21 |
:100630004B4B4B4B4B4B4B4B4C4C4C4C4C4C4C4C02 |
:100640004C4C4C4C4C4C4C4C4C4C4C4D4D4D4D4DE5 |
:100650004D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4DCA |
:100660004D4E4E4E4E4E4E4E4E4E4E4E4E4E4E4EAB |
:100670004E4E4E4E4E4E4E4E4E4E4E4F4F4F4F4F95 |
:100680004F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F7A |
:100690004F4F4F4F4F4F4F4F4F4F0000120024000E |
:1006A0003600470059006B007D008F00A000B200AB |
:1006B000C300D500E600F80009011A012B013C0136 |
:1006C0004D015E016F0180019001A001B101C101E6 |
:1006D000D101E101F00100020F021F022E023D02D2 |
:1006E0004B025A026802760284029202A002AD0214 |
:1006F000BA02C702D402E102ED02F90205031003B7 |
:100700001C03270332033C03470351035B036403C9 |
:100710006E0377038003880390039803A003A70365 |
:10072000AF03B503BC03C203C803CE03D303D8038E |
:10073000DD03E203E603EA03ED03F003F303F6034C |
:10074000F803FA03FC03FE03FF03FF0300040004A5 |
:1007500011241FBECFEFD0E1DEBFCDBF13E0A0E07C |
:10076000B1E0E8E9FAE702C005900D92A23AB107BC |
:10077000D9F717E0A2EAB3E001C01D92A73CB10788 |
:10078000E1F70E9405040C944B3D0C94000022E01C |
:1007900030E0D9010E942D3D802D863028F082E086 |
:1007A000D901082E0E943A3D99270895FB01863011 |
:1007B00008F085E0282F2150842F9927A6E42A9F4E |
:1007C000D0011124A65FBF4F019724F001900E9431 |
:1007D0003A3DFACFA2E0B0E0022E0E943A3D0895E1 |
:1007E000FB01282F863008F025E0842F992721501F |
:1007F000A6E42A9FD0011124A65FBF4F019724F0E1 |
:100800000E942D3D0192FACF08951F93CF93DF935D |
:1008100014B815B8189B02C08BE001C08AE0809321 |
:10082000000181E887B98FEF88B98BE184B981E055 |
:1008300085B98EE38AB9579A87EF8BB984B7877FDA |
:1008400084BF809160008861809360001092600096 |
:1008500080ED97E09093C1038093C00310924B0406 |
:1008600010924A0410920807109207071092490448 |
:10087000109248041092470410924604809100019F |
:100880008A3011F4289801C0289A0E94930C0E9483 |
:1008900008080E947E160E940A0E0E94B6150E9449 |
:1008A000F93978941092FA0584E48093FB0587E087 |
:1008B0008093FC052091000184E690E09F938F9344 |
:1008C00084E490E09F938F931F921F92822F6AE09F |
:1008D0000E94803C892F99279F938F93822F0E949B |
:1008E000803C99279F938F938FEA91E09F938F93FA |
:1008F0001F920E941A0A8EE891E09F938F931F9295 |
:100900000E941A0A299AA1E0B0E00E942D3D802D94 |
:100910002DB73EB7205F3F4F2DBF853409F43FC050 |
:100920008FE591E09F938F931F920E941A0A0E9475 |
:10093000F83610E00F900F900F90123049F40E949B |
:10094000673646E46FE277E082E00E94D60302C099 |
:10095000133051F40E94D63546E46FE277E083E02D |
:100960000E94D60314E002C0143010F00E946736D3 |
:1009700046E46FE277E0812F0E94D6031F5F1630B6 |
:10098000E0F283E022E030E0D901082E0E943A3DF7 |
:1009900085E421503040D901082E0E943A3DC2E042 |
:1009A000D0E0DE010E942D3D802D863028F082E0CF |
:1009B000DE01082E0E943A3D46E46FE277E00E9495 |
:1009C000F003DE010E942D3D802D863028F082E06C |
:1009D000DE01082E0E943A3D99279F938F9384E46D |
:1009E00091E09F938F931F920E941A0A84EF91E0E7 |
:1009F0000E94B00CEC010F900F900F900F900F9091 |
:100A0000CE010E94B90C8823D9F3E0913107FF276A |
:100A1000EE0FFF1FED5FF84F8081918185369105C4 |
:100A2000C4F0E0913207FF27EE0FFF1FED5FF84F94 |
:100A3000808191818536910564F08FE291E09F93EA |
:100A40008F931F920E941A0A0E942D390F900F90C7 |
:100A50000F90E0913107FF27EE0FFF1FED5FF84F7A |
:100A60008081918185369105C4F0E0913207FF279E |
:100A7000EE0FFF1FED5FF84F808191818C599F4FE2 |
:100A800064F486E191E09F938F931F920E941A0A6B |
:100A90000E943F220F900F900F908091370780FFA8 |
:100AA00020C089EF90E09F938F931F920E941A0AB3 |
:100AB00088EE93E00E94B00CEC010E948C100F9025 |
:100AC0000F900F90CE010E94B90C8823D9F384EFC8 |
:100AD00090E09F938F931F920E941A0A0F900F909D |
:100AE0000F900E945421809100018A3011F42898BF |
:100AF00001C0289A80ED97E09093C1038093C003D2 |
:100B000085E58093040686EE90E09F938F931F9275 |
:100B10000E941A0A809137070F900F900F9082FF62 |
:100B200003C08AED90E002C082ED90E09F938F9326 |
:100B30001F920E941A0A0F900F900F908EEC90E077 |
:100B40009F938F931F920E941A0A0E94D01088E8E8 |
:100B500093E190938603809385030F900F900F90FD |
:100B60008091BF038823E1F31092BF030E94B22259 |
:100B70000E940D21209100012A3011F4289801C013 |
:100B8000289A80910301882321F0815080930301EA |
:100B900012C01092B1031092B20310920E0610927E |
:100BA00068041092670410926A041092690410920B |
:100BB0006C0410926B0480914504882329F0809185 |
:100BC000450481508093450480918503909186036C |
:100BD000892B01F585E090E090938603809385034F |
:100BE0000E94561680910403909105038F5F9F4FDA |
:100BF000F9F480914E048823D9F080E197E2909334 |
:100C0000C1038093C00380E890E090930503809334 |
:100C100004030EC080918503909186030197909301 |
:100C20008603809385032A3011F4289801C0289AFE |
:100C30008091BF03882311F40E9423080E94C908F1 |
:100C4000CE010E94B90C882309F48ACF20910803B1 |
:100C500030910903809147079927281739079CF499 |
:100C600080910403909105038F5F9F4F61F480E7AB |
:100C700097E19093C1038093C00380E093E0909349 |
:100C800005038093040384E690E00E94B00CEC011D |
:100C900067CF1F920F920FB60F9211248F939F93DD |
:100CA000EF93FF93809101018823E1F48091BB03CE |
:100CB0009091BC0301969093BC038093BB03FC010D |
:100CC000E453FB4FE081ED3019F08639910539F49A |
:100CD0001092BC031092BB0381E080930101E0936A |
:100CE000C60004C01092BC031092BB03FF91EF91A9 |
:100CF0009F918F910F900FBE0F901F9018951F928C |
:100D00000F920FB60F9211242F933F934F935F933F |
:100D10006F937F938F939F93EF93FF939091C60070 |
:100D20006091B603663918F01092B50369C0662366 |
:100D300091F4933239F48091A603882319F481E069 |
:100D40008093B60390930F06892F99279093BA0347 |
:100D50008093B90357C0E62FFF272091B903309144 |
:100D6000BA039D3069F0E15FF94F90836F5F609344 |
:100D7000B603290F311D3093BA032093B90342C043 |
:100D8000E15FF94F32978081329672913196281B3C |
:100D90003109271B31093F703093BA032093B903FF |
:100DA000A90136E0569547953A95E1F7435C4093A3 |
:100DB000B8032F73235C2093B7034817E1F4271778 |
:100DC000D1F48091A6038823D9F481E08093A6030F |
:100DD0006093A903908380911106823589F488E19C |
:100DE00090E02CE00FB6F894A895809360000FBEB9 |
:100DF0002093600005C08091A8038F5F8093A803B3 |
:100E00001092B603FF91EF919F918F917F916F9117 |
:100E10005F914F913F912F910F900FBE0F901F90B8 |
:100E20001895AC0120E030E060E070E0ECECF4E01C |
:100E300005C08191280F311D6F5F7F4F64177507C3 |
:100E4000C1F73F70FA01E453FB4FC90166E0969584 |
:100E500087956A95E1F7835C8083FA01E353FB4F42 |
:100E60002F73235C20838DE0818310920101809198 |
:100E7000CC048093C60008950F931F93CF93DF9304 |
:100E80008A01722F93E29093CC046093CD048093F7 |
:100E9000CE0460E0AFECB4E044C0F801E60FF11D11 |
:100EA00090816F5F715019F4E0E040E00FC0F801ED |
:100EB000E60FF11D40816F5F715011F4E0E006C054 |
:100EC000F801E60FF11DE0816F5F7150892F869563 |
:100ED0008695835C8C935527892F99278370907012 |
:100EE00024E0880F991F2A95E1F79A0194E036953E |
:100EF00027959A95E1F7822B835CED0189834F70EA |
:100F00005070440F551F440F551F8E2F82958695A4 |
:100F100086958370842B835C8A83EF73E35CEB8319 |
:100F20001496772309F0B9CFCD018C5C94400E94D0 |
:100F30001107DF91CF911F910F9108951F93CF93C8 |
:100F4000DF93EC0170E0A22FBB27129748C0E42F7B |
:100F5000FF27E15FF94F30814F5FE42FFF27E15F0B |
:100F6000F94F50814F5FE42FFF27E15FF94F108168 |
:100F70004F5FE42FFF27E15FF94F20814F5F842F00 |
:100F80009927A817B90774F15D53FE01E70FF11D0A |
:100F90003D53330F330F852F82958F70382B30835D |
:100FA000613001F1912F9D537F5FFE01E70FF11D2D |
:100FB00071505295507F892F86958695582B508376 |
:100FC00063506F3F79F07E5FFE01E70FF11D929550 |
:100FD000990F990F907C2D53922B90837F5F6623FE |
:100FE00009F0B5CFDF91CF911F9108951F93182F6E |
:100FF0008A3019F48DE00E94F6078091C00085FFC9 |
:10100000FCCF1093C60080E090E01F9108950895F2 |
:10101000E1ECF0E088E18083A0ECB0E08C918260AC |
:101020008C938081806880838081806480838AE261 |
:101030008093C40088EC90E00E94B00C9093F90576 |
:101040008093F805089580910101882309F4A0C0D8 |
:101050008091A203882371F080910101882351F0CF |
:101060002BE044E056E06091CB0487E40E943C070B |
:101070001092A2038091F8059091F9050E94B90C95 |
:10108000882321F48091A4038823B1F08091010189 |
:10109000882391F022E445EA56E06091CB0484E491 |
:1010A0000E943C071092A40384EF91E00E94B00CD0 |
:1010B0009093F9058093F805609102016F3F89F0E4 |
:1010C000462F552734E0440F551F3A95E1F74C5F02 |
:1010D0005E4F605D20E181E40E943C078FEF8093CA |
:1010E00002012091E706222391F0809101018823DB |
:1010F00071F093E29093CC042093CD048DE0809323 |
:10110000CE04109201011092E7069093C6008091E0 |
:10111000A303882359F180910101882339F10E94AA |
:10112000D9101092A3033091AB03932F9F5F90933C |
:10113000AB03943021F08091AC03882359F026E171 |
:1011400043E057E060E084E30E943C078FEF809328 |
:10115000AB030CC044E1949FA0011124465E5C4F98 |
:1011600024E160E0832F8F5C0E943C078091A503FF |
:10117000882371F080910101882351F02AE04AEF21 |
:1011800055E06091CB0486E50E943C071092A503D0 |
:101190000895A2E0B0E0EFECF8E00C94FF3C809101 |
:1011A000A603882309F4E9C08FEF8093030180919F |
:1011B00011069927AA27BB27FC01E156F040E6312A |
:1011C000F10508F0D8C0E85CFF4F0C94273D209152 |
:1011D000A90343E062E0CE0101960E949E07898147 |
:1011E00080930201C8C02091A90343E06BE084E032 |
:1011F00096E00E949E078091E60390910606892B57 |
:101200008093E60380910D0645C02091A90343E039 |
:101210006BE084E096E00E949E078091E603909147 |
:101220000606892B8093E60380910D068093E706DE |
:1012300081E08093A4039FC02091A90343E062E072 |
:10124000CE0101960E949E078091E6039981892B29 |
:101250008093E6038A818F3F21F481E08093AC0381 |
:1012600002C01092AC0381E08093A30384C020915C |
:10127000A90343E064E08DEA93E00E949E077BC0EF |
:101280002091A90343E064E081EB93E00E949E0774 |
:101290008091B4038093E7066EC081E08093A5033C |
:1012A0006AC081E08093A20366C02091A90343E055 |
:1012B00062E0CE0101960E949E0789818F3F89F0EE |
:1012C000863010F085E0898346E46FE277E089811B |
:1012D0000E94F003898126E44FE257E06091CB043D |
:1012E00008C01091CB040E94C70326E44FE257E0E8 |
:1012F000612F855B0E943C073EC02091A90343E01B |
:1013000066E48FE297E00E949E078091110646E412 |
:101310006FE277E08B560E94D603809111068B56C0 |
:10132000A2E0B0E0082E0E943A3D60915A0777276C |
:101330008827992724EC39E040E050E00E94613C86 |
:1013400060938703709388038093890390938A0343 |
:1013500060915B077727882799270E94613C6093FB |
:101360008B0370938C0380938D0390938E030E9464 |
:10137000C7030E949D221092A603E3E0CE5F0C9467 |
:101380001B3D982F8091E806813069F48091E50338 |
:10139000E82FFF27E65EFC4F90838F5F8093E50385 |
:1013A00021E030E005C0892F0E94F607282F33275F |
:1013B000C90108951F93182F04C080E30E94C1093A |
:1013C00011501116D4F31F9108951F93182F04C0C4 |
:1013D00080E20E94C10911501116D4F31F910895A3 |
:1013E0000F931F93CF93DF938C01EB0108C0F8019B |
:1013F0000F5F1F4FE4918E2F0E94C1092197209704 |
:10140000B1F7DF91CF911F910F9108950F931F9323 |
:10141000CF93DF938C01EB0106C0F80181918F011E |
:101420000E94C10921972097C1F7DF91CF911F91A9 |
:101430000F910895A3E3B0E0E0E2FAE00C94F03CF1 |
:1014400029968FAD29978093E806CE01855B9F4F43 |
:101450009D838C832B968EAD9FAD2B979FA78EA7D8 |
:1014600022243324210102C0130124010EA51FA54B |
:1014700002C00F5F1F4FF801F490FF2019F0F5E252 |
:10148000FF16B9F7B8018EA59FA5681B790B11F05F |
:101490000E94F009FF2009F442C20F5F1F4F1FA7EF |
:1014A0000EA71982AC81BD811BAA1AAA9FEF99AB26 |
:1014B000EEA5FFA5CF0101969FA78EA7B49095E753 |
:1014C000B91621F08B2D8062883789F4EBA9E0FFF3 |
:1014D00007C02D903D904D905C901397149607C0D7 |
:1014E0008D919C9111971C01442455241296F0E291 |
:1014F000BF1621F489818823D9F685C083E2B81606 |
:1015000009F483C09AE2B91621F0EDE2BE1669F43F |
:1015100008C0FD011296E081EAABE7FFC9CFE19573 |
:10152000EAABFBA9F061FF7D72C08BE2B81609F44B |
:101530006AC09EE2B916B1F52EA53FA52F5F3F4FB9 |
:10154000EEA5FFA584918A3221F0B82E20E030E08C |
:101550001BC0FD0112964081518157FF02C04FEF21 |
:101560005FEF49AB3FA72EA7A3CFC90103E0880FC8 |
:10157000991F0A95E1F7220F331F280F391F2B0DF2 |
:10158000311D20533040B49031968B2D80538A30DA |
:1015900060F3FFA7EEA7A90137FF02C04FEF5FEF8F |
:1015A00049AB8DCFF0E3BF1631F48BA984FD80CF1A |
:1015B00080628BAB7DCF8B2D81538930E8F420E0A6 |
:1015C00030E0C901F3E0880F991FFA95E1F7220F87 |
:1015D000331F280F391F2B0D311D20533040EEA52E |
:1015E000FFA5CF0101969FA78EA7B4908B2D8053A6 |
:1015F0008A3038F32AAB63CF98E6B91651F4EBA9D9 |
:10160000E460EBAB55CFB98253CFFBA9F860FBABDD |
:101610004FCF8CE6B81621F49BA991609BAB48CFC5 |
:10162000BD83AC83E3E6BE1639F41296BD83AC836A |
:1016300012978C918E8318C1F4E4BF1639F084E6BA |
:10164000B81639F099E6B91659F503C0EBA9E1606F |
:10165000EBABFBA9F0FF08C01496BD83AC835E9092 |
:101660004E903E902E900AC01296BD83AC839E9100 |
:101670008E911C01442437FC4094542C57FC03C029 |
:101680008AE088AB92C05094409430942094211CFE |
:10169000311C411C511C8DE289839AE098AB85C0B6 |
:1016A000EFE4BE1629F0FFE6BF1639F488E061C00A |
:1016B0009BA991609BABE8E056C0F0E7BF1671F4C0 |
:1016C0001296BD83AC839E918E911C0144245524B7 |
:1016D0008BA980648BAB78E7B72E5EC0E3E7BE16BC |
:1016E000D9F51296BD83AC83DE90CE90C114D1049F |
:1016F00089F488E28E838EE68F8385E788878CE67F |
:1017000089878A8789E28B871C8666E0C62ED12C62 |
:10171000CC0EDD1EF9A9F7FD13C04F2F552747FD4D |
:10172000509560E070E0C6010E94EC3A009711F419 |
:1017300019A90DC08C1919A981174CF4182F07C0CD |
:10174000F60101900020E9F731971E2F1C1919822C |
:101750004201310140E094C085E5B81631F095E7CB |
:10176000B91649F4EAE0E8AB1FC0FBA9F160FBAB96 |
:101770008AE088AB19C098E5B91621F0E8E7BE16F3 |
:1017800009F06EC0FBA9F3FD02C080E1F2CF211485 |
:1017900031044104510419F490E198AB05C0EBA960 |
:1017A000E064EBABF0E1F8AB198289A987FD03C0D7 |
:1017B0009BA99F7D9BAB211431044104510461F42A |
:1017C000E9A9EE2349F46624772443015EE2C52E9D |
:1017D000D12CCC0EDD1E3EC04EE2C42ED12CCC0E40 |
:1017E000DD1EF8A9EF2EFF2400271127C201B10149 |
:1017F000A80197010E94B33C6A3020F430E3A32E85 |
:10180000A60E08C027E5A22EA60E88E5B81611F48C |
:101810009FEDA922F601A2926F01C201B101A801B8 |
:1018200097010E94B33C39014A012E143F0440063F |
:10183000510618F019012A01D9CFF8A9F83051F44E |
:101840008BA983FF07C090E3A91621F080E3F6017E |
:1018500082936F01CE018C19182F125D49A910C017 |
:10186000BB2009F45CC0BE8219824201310100E054 |
:1018700096E0C92ED12CCC0EDD1E11E021E005C072 |
:10188000212F042F011B07FD00E08981882319F017 |
:10189000812F8F5F07C09BA996FD02C0812F02C0D8 |
:1018A000822F8E5FA82EA00EEBA9EE2EFF2480E3E0 |
:1018B000482E512C4E205F204114510421F48AA956 |
:1018C0008A190E94E5098981882329F061E070E086 |
:1018D000CE01019609C0E6FE09C080E38A83BB827F |
:1018E00062E070E0CE0102960E94060AF0E24F1616 |
:1018F000510421F48AA98A190E94DA09802F0E94D2 |
:10190000DA09612F772767FD7095C6010E94060AE4 |
:10191000E4FEAACD8AA98A190E94E509A5CDE2E1D3 |
:10192000CD5C0C940C3D82E085BD83EA84BD17BC80 |
:1019300088E788BD83EC8093B00086E08093B10097 |
:10194000E0E7F0E0808182608083EEE6F0E0808175 |
:10195000816080838AE08093B3001092B200089582 |
:101960002091BD033091BE032F5F3F4F820F931F25 |
:1019700008952091BD033091BE03821B930B892FE4 |
:10198000992786958074992708951F920F920FB614 |
:101990000F921124EF92FF920F931F932F933F9377 |
:1019A0004F935F936F937F938F939F93AF93BF9367 |
:1019B000CF93DF93EF93FF93809106038150809341 |
:1019C00006038F3F09F069C083E88093B0008091DF |
:1019D0009C03C82FDD27D093C303C093C20380911B |
:1019E0006407E09051072091F9033091FA03409188 |
:1019F000FB035091FC0380FF18C0FF240027112730 |
:101A0000CA01B90120E830E040E050E00E94D53C36 |
:101A1000C801B7010E94613C20E032E040E050E0A4 |
:101A20000E94D53CC20FD31F17C0FF2400271127E7 |
:101A3000CA01B90120E830E040E050E00E94D53C06 |
:101A4000C801B7010E94613C20E032E040E050E074 |
:101A50000E94D53CC21BD30BD093C303C093C203D7 |
:101A60002091C2033091C303809152079927281710 |
:101A7000390734F08091530799278217930724F48C |
:101A80009093C3038093C2038091C2038093B300F9 |
:101A9000809154078093060304C083E08093B000D4 |
:101AA0005F98FF91EF91DF91CF91BF91AF919F919F |
:101AB0008F917F916F915F914F913F912F911F91E6 |
:101AC0000F91FF90EF900F900FBE0F901F90189501 |
:101AD0001F920F920FB60F9211242F933F934F93A3 |
:101AE0005F936F937F938F939F93AF93BF93EF9386 |
:101AF000FF938091C40381508093C4038F3FB9F456 |
:101B00008AE08093C403809107038F5F8170809384 |
:101B10000703882319F481E08093BF038091BD03FC |
:101B20009091BE0301969093BE038093BD03809174 |
:101B3000C0039091C1030297B0F08091C0039091CF |
:101B4000C10301979093C1038093C0038091C003A8 |
:101B50009091C103209104033091050382239323C4 |
:101B6000892BD1F406C08FEF9FEF909305038093EC |
:101B70000403809100018A3039F404C05A9A05C0E8 |
:101B8000479A03C05A9801C047988091370783FF4E |
:101B900008C00E94FB3805C0809100018A3081F79F |
:101BA000EDCFFF91EF91BF91AF919F918F917F9179 |
:101BB0006F915F914F913F912F910F900FBE0F90BA |
:101BC0001F9018952091BD033091BE032F5F3F4FAA |
:101BD000280F391F4FEE02C040937A008091BD0359 |
:101BE0009091BE03B901681B790B77FFF5CF08957B |
:101BF0002091BD033091BE032F5F3F4F280F391F47 |
:101C00008091BD039091BE03A901481B590B57FF5A |
:101C1000F7CF089510927C008FEE80937A0008959C |
:101C20001F920F920FB60F921124DF92EF92FF9244 |
:101C30000F931F932F933F934F935F936F937F93D4 |
:101C40008F939F93AF93BF93CF93DF93EF93FF93C4 |
:101C500010927A008091E103D82ED394D092E103C0 |
:101C6000E82FFF27EB30F10508F038C2E25BFF4FA9 |
:101C70000C94273D80917800909179009093E00337 |
:101C80008093DF0381E08093E2038091D9039091F8 |
:101C9000DA0301969093DA038093D90315C28091F9 |
:101CA0007800909179009093DE038093DD0390C0DB |
:101CB00080917800909179009093DC038093DB030E |
:101CC00084E086C140910803509109038091780017 |
:101CD000909179009A01220F331F240F351F63E082 |
:101CE00070E00E948C3C260F371F3695279536955D |
:101CF0002795309309032093080386E069C18091FA |
:101D00009A0790919B072091780030917900821B6F |
:101D1000930B9093EA068093E9068091E9069091EF |
:101D2000EA069093CC038093CB0387E051C1809166 |
:101D30007800909179002091980730919907821B43 |
:101D4000930B9093F5068093F4068091F40690919E |
:101D5000F5069093CE038093CD031092E203B4C1B5 |
:101D6000809100012091DF033091E0038A3049F433 |
:101D70008091780090917900820F931F96958795B6 |
:101D800006C08091780090917900820F931F909304 |
:101D9000CA038093C90381E01BC180910001209197 |
:101DA000DD033091DE038A3049F480917800909110 |
:101DB0007900820F931F9695879506C080917800D1 |
:101DC00090917900820F931F9093C8038093C7036B |
:101DD00082E0FEC0809100012091DB033091DC03A2 |
:101DE0008A3049F48091780090917900820F931F96 |
:101DF0009695879506C08091780090917900820F22 |
:101E0000931F9093C6038093C50385E0E1C0609162 |
:101E1000780070917900E0909C07F0909D07009108 |
:101E20009E0710919F07882777FD8095982F0E9425 |
:101E30009F3BA80197010E94F93A0E94823B709350 |
:101E4000D0036093CF032091CF033091D003E09172 |
:101E5000E906F091EA068091F4069091F50697FF65 |
:101E600003C0909581959F4F64E070E00E94A03C74 |
:101E7000EB01CF01F7FF03C0909581959F4F64E080 |
:101E800070E00E94A03C260F371F2C0F3D1F30939F |
:101E9000D0032093CF038091CF039091D00302977A |
:101EA00004F160919C0770919D0780919E0790912D |
:101EB0009F0720E030E048E454E40E94A93B8823D7 |
:101EC0000CF03CC060919C0770919D0780919E072B |
:101ED00090919F072AE037ED43EA5CE30E94FA3ACB |
:101EE00025C08091CF039091D0038F5F9F4F34F531 |
:101EF00060919C0770919D0780919E0790919F072C |
:101F000020E030E046E154E40E94AC3B1816B4F403 |
:101F100060919C0770919D0780919E0790919F070B |
:101F20002AE037ED43EA5CE30E94F93A60939C07AC |
:101F300070939D0780939E0790939F0781E0809305 |
:101F4000D60380917800909179009093EC0680936D |
:101F5000EB062091310430913204409133045091CA |
:101F600034048091CF039091D003AA2797FDA095C8 |
:101F7000BA2F280F391F4A1F5B1F2093310430935B |
:101F800032044093330450933404E0903104F090D1 |
:101F90003204009133041091340460913104709143 |
:101FA0003204809133049091340420E034E040E026 |
:101FB00050E00E94D53CE21AF30A040B150BE092A4 |
:101FC0003104F0923204009333041093340483E01C |
:101FD0008093E20379C08091F9069091FA062091EE |
:101FE000780030917900820F931F9093FA068093C6 |
:101FF000F9068091F1068F5F8093F1068091F106DA |
:10200000853008F46BC080917800909179009093AE |
:102010000F0380930E031092F1068091ED069091CC |
:10202000EE062091F9063091FA06821B930B20915F |
:102030004F0430915004821B930B9093D8038093EC |
:10204000D7036091F9067091FA06E0900A03F090C8 |
:102050000B0300910C0310910D03882777FD8095E9 |
:10206000982FA8019701220F331F441F551F2E0DD3 |
:102070003F1D401F511F620F731F841F951F24E0D7 |
:1020800030E040E050E00E94D53C20930A033093BA |
:102090000B0340930C0350930D032091ED063091F8 |
:1020A000EE0680910A0390910B03A0910C03B0916E |
:1020B0000D03281B390B3093500420934F041092CA |
:1020C000FA061092F9060AC08091E20380937C0020 |
:1020D000DD2051F08FEE80937A0006C01092E2036B |
:1020E0001092E10310927C00FF91EF91DF91CF916C |
:1020F000BF91AF919F918F917F916F915F914F9120 |
:102100003F912F911F910F91FF90EF90DF900F90D3 |
:102110000FBE0F901F901895CF93DF93A3E0B0E010 |
:102120000E942D3D802DC82FDD27C531D10508F037 |
:102130002A97C7BD84E690E00E94E20D80910E03CD |
:1021400090910F0382559340D0F4C0E0D0E017C0C7 |
:10215000C7BD82E390E00E94E20D83EE91E09F9381 |
:102160008F931F920E941A0A80910E0390910F0381 |
:102170000F900F900F908458934020F02196CA3F03 |
:10218000D10530F3A3E0B0E00C2E0E943A3DC0939D |
:10219000F6068CE291E00E94E20DDF91CF91089566 |
:1021A000EAE1F3E080E2819393E0EA36F907D9F7B8 |
:1021B00008951F938091E603282F3327C90181706A |
:1021C0009070682F8823A9F08091E703882311F08D |
:1021D000815002C080916A038093E703EAE1F3E053 |
:1021E00080E2819393E0EA36F907D9F78FEF809385 |
:1021F000AB03A9014270507021FF10C08091E7032A |
:102200008F5F8093E703EAE1F3E080E2819393E05C |
:10221000EA36F907D9F78FEF8093AB03662331F0E5 |
:10222000452B21F01092E70390E004C09091E70362 |
:102230009A3050F481E18093E503892F99279F9389 |
:102240008F938BE395E009C080E18093E503892FAC |
:1022500099279F938F9386E395E09F938F9381E0D7 |
:102260008F930E941A0A0F900F900F900F900F906B |
:102270008091E703E82FFF27EE30F10508F06DC4E9 |
:10228000E75AFF4F0C94273D1092E50386E295E054 |
:102290009F938F9311E01F930E941A0A84E1809309 |
:1022A000E5032091000184E690E09F938F9384E4FE |
:1022B00090E09F938F931F921F92822F6AE00E945B |
:1022C000803C892F99279F938F93822F0E94803C77 |
:1022D00099279F938F9381E195E09F938F931F930D |
:1022E0000E941A0A88E28093E5030E94C703992797 |
:1022F0009F938F9384E095E09F938F931F930E9409 |
:102300001A0A8CE38093E50384EF94E09F938F9304 |
:102310001F930E941A0AA6C38091370780FF44C00A |
:102320001092E50380914F04909150049F938F93F6 |
:1023300085EE94E09F938F9311E01F930E941A0AF9 |
:1023400084E18093E50380915104909152049F931E |
:102350008F9386ED94E09F938F931F930E941A0AA8 |
:1023600088E28093E50380910E0390910F039F9381 |
:102370008F9387EC94E09F938F931F930E941A0A88 |
:102380008CE38093E5038091F60699279F938F93C2 |
:1023900088EB94E09F938F931F930E941A0A8DB746 |
:1023A0009EB744968DBFDEC384E18093E50381EB45 |
:1023B00094E09F938F9311E01F930E941A0A88E282 |
:1023C0008093E50383EA94E09F938F931F930E9489 |
:1023D0001A0A8DB79EB70696E5CF1092E50389E9F4 |
:1023E00094E09F938F9311E01F930E941A0A84E157 |
:1023F0008093E5036091F9037091FA038091FB03E8 |
:102400009091FC0320E034E040E050E00E94D53C95 |
:102410005F934F933F932F938AE894E09F938F931A |
:102420001F930E941A0A88E28093E50360910104D9 |
:1024300070910204809103049091040420E034E040 |
:1024400040E050E00E94D53C5F934F933F932F9321 |
:102450008BE794E09F938F931F930E941A0A8CE35B |
:102460008093E50380913504909136049F938F9378 |
:102470008CE694E09F938F931F930E941A0A8DB766 |
:102480009EB746968FCF1092E503809107079091F3 |
:10249000080720910507309106079F938F933F937C |
:1024A0002F938CE594E09F938F9311E01F930E94EC |
:1024B0001A0A84E18093E50380910B0790910C0741 |
:1024C0002091090730910A079F938F933F932F9391 |
:1024D0008CE494E09F938F931F930E941A0A88E2E2 |
:1024E0008093E50380910F079091100720910D07CD |
:1024F00030910E079F938F933F932F938CE394E03B |
:102500009F938F931F930E941A0A8CE38093E50395 |
:1025100080911307909114072091110730911207B1 |
:102520009F938F933F932F938CE294E07BC0109204 |
:10253000E503E0913007FF27EE0FFF1FED5FF84F37 |
:1025400020813181E0912F07FF27EE0FFF1FED5F04 |
:10255000F84F808191813F932F939F938F938CE1CC |
:1025600094E09F938F9311E01F930E941A0A84E1D5 |
:102570008093E503E0913207FF27EE0FFF1FED5F29 |
:10258000F84F20813181E0913107FF27EE0FFF1FC7 |
:10259000ED5FF84F808191813F932F939F938F93AD |
:1025A0008CE094E09F938F931F930E941A0A88E215 |
:1025B0008093E503E0913407FF27EE0FFF1FED5FE7 |
:1025C000F84F20813181E0913307FF27EE0FFF1F85 |
:1025D000ED5FF84F808191813F932F939F938F936D |
:1025E0008CEF93E09F938F931F930E941A0A8CE3C2 |
:1025F0008093E503E0913607FF27EE0FFF1FED5FA5 |
:10260000F84F20813181E0913507FF27EE0FFF1F42 |
:10261000ED5FF84F808191813F932F939F938F932C |
:102620008CEE93E09F938F931F930E941A0A8DB7AD |
:102630009EB74C96B7CE1092E5038EED93E09F9334 |
:102640008F9311E01F930E941A0A0F900F900F9022 |
:1026500080910001E091EF03F091F0038A30F1F5F1 |
:1026600084E18093E5038091C5039091C603FF93B5 |
:10267000EF938E1B9F0B9F938F938FEC93E09F9311 |
:102680008F931F930E941A0A88E28093E50320919A |
:10269000F1033091F2038091C7039091C8033F93F7 |
:1026A0002F93821B930B9F938F9380EC93E09F93C8 |
:1026B0008F931F930E941A0A8CE38093E503809105 |
:1026C000F3039091F4039F938F938091A6079091C9 |
:1026D000A7079F938F9381EB93E04BC084E1809396 |
:1026E000E5032091C5033091C603CF0162E070E09D |
:1026F0000E94A03C7F936F932E1B3F0B3F932F9321 |
:1027000082EA93E09F938F931F930E941A0A88E2B4 |
:102710008093E503E091F103F091F2032091C70368 |
:102720003091C803CF0162E070E00E94A03C7F932B |
:102730006F932E1B3F0B3F932F9383E993E09F935F |
:102740008F931F930E941A0A8CE38093E503809174 |
:10275000F3039091F40362E070E00E94A03C7F9349 |
:102760006F938091A6079091A7079F938F9384E81A |
:1027700093E09F938F931F930E941A0A8DB79EB781 |
:10278000459610CE1092E50387E793E09F938F93D1 |
:1027900011E01F930E941A0A84E18093E50380915F |
:1027A0009807909199072091CD033091CE039F9384 |
:1027B0008F933F932F9388E693E09F938F931F937C |
:1027C0000E941A0A88E28093E50380919A0790910B |
:1027D0009B072091CB033091CC039F938F933F9322 |
:1027E0002F9389E593E09F938F931F930E941A0A7A |
:1027F0008CE38093E50360919C0770919D07809125 |
:102800009E0790919F070E94823B7F936F938091D8 |
:102810008607909187079F938F938AE493E01DC169 |
:1028200084E18093E50380910803909109039F93CD |
:102830008F938BE393E09F938F9311E01F930E94FC |
:102840001A0A88E28093E5038091450499279F93B3 |
:102850008F938CE293E09F938F931F930E941A0AA9 |
:102860008DB79EB70A969ECD1092E5038DE193E059 |
:102870009F938F9311E01F930E941A0A84E1809323 |
:10288000E5038091390490913A049F938F938EE0F1 |
:1028900093E09F938F931F930E941A0A88E280937C |
:1028A000E50380913504909136049F938F938FEFC9 |
:1028B00092E09F938F931F930E941A0A8CE3809358 |
:1028C000E50380913704909138049F938F9380EFB4 |
:1028D00092E03AC11092E50380913D0490913E044C |
:1028E0009F938F9384EE92E09F938F9311E01F93B9 |
:1028F0000E941A0A84E18093E50380913F0490913D |
:1029000040049F938F9388ED92E09F938F931F9342 |
:102910000E941A0A88E28093E50380914104909115 |
:1029200042049F938F938CEC92E09F938F931F931D |
:102930000E941A0A8CE38093E503809143049091EE |
:1029400044049F938F9380EC92E024CD1092E50392 |
:1029500088EB92E09F938F9311E01F930E941A0AD5 |
:1029600084E18093E50380919C0399279F938F9343 |
:102970008AEA92E09F938F931F930E941A0A88E23B |
:102980008093E5038091C2039091C3039F938F933B |
:102990008CE992E09F938F931F930E941A0A8CE315 |
:1029A0008093E5038091530799279F938F9380919C |
:1029B000520799279F938F938EE892E09F938F936E |
:1029C0001F930E941A0AEBCC1092E5038EE792E067 |
:1029D0009F938F9311E01F930E941A0A84E18093C2 |
:1029E000E50380910806992787FD90959F938F9323 |
:1029F00080910706992787FD90959F938F938EE688 |
:102A000092E09F938F931F930E941A0A88E280930B |
:102A1000E50380910906992787FD90959F938F93F1 |
:102A200080910A0699279F938F938EE592E09F935A |
:102A30008F931F930E941A0A8CE38093E503809181 |
:102A40000E0699279F938F9380910B06992787FDF8 |
:102A500090959F938F938EE492E09F938F931F9313 |
:102A60000E941A0A8DB79EB748969CCC1092E50337 |
:102A700086E492E09F938F9311E01F930E941A0ABD |
:102A800084E18093E5038091B407992787FD9095B1 |
:102A90009F938F9387E392E09F938F931F930E945E |
:102AA0001A0A88E28093E5038091B507992787FD8C |
:102AB00090959F938F9388E292E09F938F931F93BB |
:102AC0000E941A0A8CE38093E5038091B607992748 |
:102AD00087FD90959F938F9389E192E035C0109286 |
:102AE000E5038FE092E09F938F9311E01F930E9484 |
:102AF0001A0A84E18093E5038091B7079091B807A3 |
:102B00009F938F9381E092E09F938F931F930E94F6 |
:102B10001A0A88E28093E5038091B9079091BA0779 |
:102B20009F938F9383EF91E09F938F931F930E94C6 |
:102B30001A0A8CE38093E5038091BB079091BC0750 |
:102B40009F938F9385EE91E09F938F931F930E94A5 |
:102B50001A0A8DB79EB7429625CC815080936A039E |
:102B60001092E7031092E6031F9108951092B900A6 |
:102B70008AE28093B800089585EA8093BC000895A6 |
:102B800084E98093BC0008958093BB0085E880931E |
:102B9000BC00089585EC8093BC00089585E880937F |
:102BA000BC0008951F920F920FB60F9211248F93BD |
:102BB0009F93EF93FF938091E8038F5F8093E803E7 |
:102BC00081508330E9F1843028F4813081F0823003 |
:102BD00078F508C08530D9F18530B8F1863009F034 |
:102BE0004FC03EC08091E903880F8E5A12C0809179 |
:102BF000E9038F5F8093E9038150813081F0813058 |
:102C000030F0823079F0833009F047C00EC08091F7 |
:102C100079078093BB0085E88093BC003EC080911B |
:102C20007E07F7CF80919607F4CF8091A007F1CF70 |
:102C30008091E903843010F41092E80385EAECCF28 |
:102C40008091EA03880F8D5AE4CF85ECE5CF80911F |
:102C5000BB00E091EA03FF27E550F94F8083DBCF0B |
:102C60008091EA039091BB00E82FFF27E550F94FD0 |
:102C700094838F5F8093EA03843010F01092EA030C |
:102C800084E98093BC001092E8038AE090E090937E |
:102C90008603809385031092E903FF91EF919F9142 |
:102CA0008F910F900FBE0F901F9018954CEB50E036 |
:102CB00084E9FA0180831092E8032BEB30E0F901FC |
:102CC00080811092E90380E8FA0180831092BD00B0 |
:102CD0001092BA00F9011082E9EBF0E01082A8EB43 |
:102CE000B0E01C9210828AE28C9385EAFA0180831C |
:102CF000F901108285E8FA018083089583EC8093BE |
:102D00008100EFE6F0E08081806280831092F4031E |
:102D10001092F3031092F2031092F1031092F00359 |
:102D20001092EF0308951F920F920FB60F92112485 |
:102D30000F931F932F933F934F935F936F937F93C3 |
:102D40008F939F93AF93BF93CF93DF93EF93FF93B3 |
:102D500020918600309187008091ED039091EE03E1 |
:102D6000281B390B80918600909187009093EE0389 |
:102D70008093ED03C9018D5494400091EB031091B1 |
:102D8000EC03835F9A4160F40430110514F0109253 |
:102D90006B0381E090E09093EC038093EB038BC096 |
:102DA0000A3011050CF087C0C9018B5F9040845B2D |
:102DB000914008F068C0E901C25DD140F801EE0F12 |
:102DC000FF1FED5FF84F808191819E01281B390B19 |
:102DD000C90137FF03C0909581959F4F06974CF42A |
:102DE00080914504883C28F480914504865F809357 |
:102DF0004504F801EE0FFF1FED5FF84F2081318190 |
:102E0000C901880F991F820F931F8C0F9D1F64E0CB |
:102E100070E00E94A03C9B01CE01019686179707A7 |
:102E20001CF42150304006C021976C177D0714F424 |
:102E30002F5F3F4F80914504E801CC0FDD1F833C9D |
:102E4000B8F0FE01ED5FF84F80819181A901481B28 |
:102E5000590BCA0163E070E00E94A03CCB01880FCF |
:102E6000991F860F971FC75ED84F9983888304C028 |
:102E7000C75ED84F19821882F801EE0FFF1FED5F71 |
:102E8000F84F31832083F8013196F093EC03E093FF |
:102E9000EB03E530F10519F45D9A5C980BC05D9881 |
:102EA000E630F10511F45C9A05C05C98379711F48F |
:102EB0005B9A01C05B98FF91EF91DF91CF91BF9139 |
:102EC000AF919F918F917F916F915F914F913F91C2 |
:102ED0002F911F910F910F900FBE0F901F9018957B |
:102EE000A0E1B0E0E6E7F7E10C94F03C8091C90383 |
:102EF0009091CA034090F3035090F403481A590A82 |
:102F00005092A7074092A6072091C7033091C803AB |
:102F10008091C5039091C6039E878D87A091EF0392 |
:102F2000B091F003BC87AB878091F1039091F203DD |
:102F3000281B390B388B2F873093E0062093DF0650 |
:102F40006091CD037091CE03E090A307F090A407A9 |
:102F50000027F7FC0095102F882777FD8095982F84 |
:102F60002CE030E040E050E00E94613CE60EF71EAD |
:102F7000081F191FC801B70122E030E040E050E00F |
:102F80000E94D53C3093A4072093A3076091CB0304 |
:102F90007091CC03E090AD07F090AE070027F7FCEE |
:102FA0000095102F882777FD8095982F2CE030E032 |
:102FB00040E050E00E94613CE60EF71E081F191F1A |
:102FC000C801B70122E030E040E050E00E94D53C6B |
:102FD0003093AE072093AD072091CF033091D003FB |
:102FE0006091860770918707882777FD8095982FD5 |
:102FF000442737FD4095542F620F731F841F951F80 |
:1030000022E030E040E050E00E94D53C309387075A |
:10301000209386072091CD033091CE03C901880FFC |
:10302000991F820F931F880F991F880F991FAA2736 |
:1030300097FDA095BA2F2091090430910A04409180 |
:103040000B0450910C04280F391F4A1F5B1F20935B |
:10305000090430930A0440930B0450930C0420910C |
:10306000CB033091CC03C901880F991F820F931FA6 |
:10307000880F991F880F991FAA2797FDA095BA2F2F |
:1030800020910D0430910E0440910F0450911004D2 |
:10309000280F391F4A1F5B1F20930D0430930E0425 |
:1030A00040930F0450931004E090EB06F090EC0670 |
:1030B000A0909C07B0909D07C0909E07D0909F075E |
:1030C0006091110470911204809113049091140482 |
:1030D0000E949F3B3B014C010027F7FC0095102FFD |
:1030E000C801B7010E949F3BA60195010E94F93AD1 |
:1030F0009B01AC01C401B3010E94FA3A0E94823BD9 |
:103100006093110470931204809313049093140439 |
:103110005201CC24B7FCC094DC2C60902904709040 |
:103120002A0480902B0490902C046A0C7B1C8C1C2D |
:103130009D1C6092290470922A0480922B04909224 |
:103140002C0480912D0490912E04A0912F04B09115 |
:1031500030048A0D9B1DAC1DBD1D80932D049093E2 |
:103160002E04A0932F04B0933004B0915704BA8773 |
:10317000BB2309F05FC080915804882309F05AC02E |
:103180008091370786FF56C0E0906504FF24002732 |
:1031900011276091190470911A0480911B04909179 |
:1031A0001C0420E030E140E050E00E94D53CCA0120 |
:1031B000B901A80197010E94613C9B01AC01C601C5 |
:1031C000B5010E94613C20E038E040E050E00E9400 |
:1031D000D53C2093B2043093B3044093B40450938D |
:1031E000B504609121047091220480912304909190 |
:1031F000240420E030E140E050E00E94D53CCA01C8 |
:10320000B901A80197010E94613C9B01AC01C60174 |
:10321000B5010E94613C20E038E040E050E00E94AF |
:10322000D53C2093AE043093AF044093B004509348 |
:10323000B10410C01092AE041092AF041092B0040A |
:103240001092B1041092B2041092B3041092B4041C |
:103250001092B5048091B2049091B304A091B4048B |
:10326000B091B5048E839F83A887B9878091AE04FF |
:103270009091AF04A091B004B091B1048A839B8374 |
:10328000AC83BD8380916604282E332444245524C6 |
:10329000EE80FF80AF85B889EA0EFB1E6A817B81D4 |
:1032A0008C819D81A20191010E94613C20E032E06D |
:1032B00040E050E00E94D53CE20EF31EF092780709 |
:1032C000E09277079701442737FD4095542F80916E |
:1032D000250490912604A0912704B0912804820F20 |
:1032E000931FA41FB51F8093250490932604A093D9 |
:1032F0002704B09328048091530490915404E81A51 |
:10330000F90A0027F7FC0095102F80912104909175 |
:103310002204A0912304B0912404E80EF91E0A1F90 |
:103320001B1FE0922104F0922204009323041093C7 |
:103330002404A0908B03B0908C03C0908D03D09098 |
:103340008E03AE14BF04C006D106C4F480E197E238 |
:10335000A0E0B0E08A199B09AC09BD098093210463 |
:1033600090932204A0932304B09324048093250413 |
:1033700090932604A0932704B09328042227332790 |
:10338000A9012A193B094C095D09809121049091FA |
:103390002204A0912304B091240482179307A40768 |
:1033A000B507B4F4D601C50180519742A040B040A2 |
:1033B0008093210490932204A0932304B0932404C7 |
:1033C0008093250490932604A0932704B0932804A7 |
:1033D0008091C7039091C8030F9734F488E19CEF64 |
:1033E00090937807809377078091C7039091C803E3 |
:1033F000079734F480E398EF9093780780937707EA |
:10340000B0910001B983BA30A9F48091C7039091BB |
:10341000C803835F934034F088EE93E0909378077D |
:10342000809377078091C7039091C8038A5F934088 |
:10343000DCF014C08091C7039091C803855E97406B |
:1034400034F088EE93E0909378078093770780912B |
:10345000C7039091C803835F974034F080ED97E0F5 |
:103460009093780780937707ED84FE848B859C8505 |
:10347000E81AF90AAA81BB81EA1AFB0A6E817F81E8 |
:1034800088859985A20191010E94613C20E032E08B |
:1034900040E050E00E94D53CE21AF30AF092800727 |
:1034A000E0927F079701442737FD4095542F809184 |
:1034B0001D0490911E04A0911F04B0912004820F5E |
:1034C000931FA41FB51F80931D0490931E04A09307 |
:1034D0001F04B09320048091550490915604E81A7B |
:1034E000F90A0027F7FC0095102F8091190490919C |
:1034F0001A04A0911B04B0911C04E80EF91E0A1FC7 |
:103500001B1FE0921904F0921A0400931B041093FD |
:103510001C04A0908703B0908803C0908903D090CA |
:103520008A03AE14BF04C006D106C4F480E197E25A |
:10353000A0E0B0E08A199B09AC09BD098093190489 |
:1035400090931A04A0931B04B0931C0480931D0451 |
:1035500090931E04A0931F04B093200422273327C6 |
:10356000A9012A193B094C095D0980911904909120 |
:103570001A04A0911B04B0911C0482179307A4079E |
:10358000B507B4F4D601C50180519742A040B040C0 |
:103590008093190490931A04A0931B04B0931C0405 |
:1035A00080931D0490931E04A0931F04B0932004E5 |
:1035B0008091C5039091C6030F9734F488E19CEF86 |
:1035C0009093800780937F078091C5039091C603F5 |
:1035D000079734F480E398EF9093800780937F07F8 |
:1035E000B981BA30A9F48091C5039091C603835F75 |
:1035F000934034F088EE93E09093800780937F07A8 |
:103600008091C5039091C6038A5F9340DCF014C09B |
:103610008091C5039091C603855E974034F088EE93 |
:1036200093E09093800780937F078091C5039091EA |
:10363000C603835F974034F080ED97E09093800756 |
:1036400080937F078FEE80937A00609215047092CA |
:103650001604809217049092180480911904909196 |
:103660001A04A0911B04B0911C048093F903909359 |
:10367000FA03A093FB03B093FC0380912104909183 |
:103680002204A0912304B091240480930104909318 |
:103690000204A0930304B093040480911D0490914C |
:1036A0001E04A0911F04B09120048093FD03909309 |
:1036B000FE03A093FF03B093000480912504909132 |
:1036C0002604A0912704B0912804809305049093C8 |
:1036D0000604A0930704B09308048091370787FF7E |
:1036E0003FC08A858823E1F5809158048823C1F57D |
:1036F00020917F0730918007293C310524F0C901D2 |
:103700008052934007C09FEF283339076CF4C901FA |
:10371000805E9C4F220F331F220F331F280F391F4B |
:103720003093800720937F072091770730917807A7 |
:10373000293C310524F0C9018052934007C0AFEF06 |
:1037400028333A076CF4C901805E9C4F220F331F67 |
:10375000220F331F280F391F3093780720937707E4 |
:1037600020913D0430913E0480913307E82FFF27DC |
:10377000EE0FFF1FED5FF84F8081918182599F4FBF |
:10378000281739071CF42F5F3F4F0CC080819181AF |
:1037900082599F4F821793074CF42115310531F060 |
:1037A0002150304030933E0420933D0420913F044B |
:1037B0003091400480913407E82FFF27EE0FFF1F60 |
:1037C000ED5FF84F8081918182599F4F281739070B |
:1037D0001CF42F5F3F4F0CC08081918182599F4F15 |
:1037E000821793074CF42115310531F021503040F8 |
:1037F0003093400420933F042091410430914204CF |
:1038000080913507E82FFF27EE0FFF1FED5FF84F80 |
:103810008081918182599F4F281739071CF42F5FAF |
:103820003F4F0CC08081918182599F4F821793072F |
:103830004CF42115310531F02150304030934204D1 |
:103840002093410420914304309144048091360731 |
:10385000E82FFF27EE0FFF1FED5FF84F808191816A |
:1038600082599F4F281739071CF42F5F3F4F0CC018 |
:103870008081918182599F4F821793074CF42115C3 |
:10388000310531F0215030403093440420934304FB |
:1038900080913D0490913E0497FF05C010923E0434 |
:1038A00010923D040AC08F3F910539F034F08FEF3C |
:1038B00090E090933E0480933D0480913F0490916A |
:1038C000400497FF05C01092400410923F040AC0C4 |
:1038D0008F3F910539F034F08FEF90E090934004E2 |
:1038E00080933F04809141049091420497FF05C06A |
:1038F00010924204109241040AC08F3F910539F0A2 |
:1039000034F08FEF90E090934204809341048091D3 |
:1039100043049091440497FF05C010924404109210 |
:1039200043040AC08F3F910539F034F08FEF90E0E7 |
:103930009093440480934304E2E1C05F0C940C3DF7 |
:1039400010927A008091C5039091C60390938007EE |
:1039500080937F078091C7039091C8039093780765 |
:10396000809377078091C9039091CA039093A7072A |
:103970008093A6076091CD037091CE03882777FDD1 |
:103980008095982F2CE030E040E050E00E94613CB0 |
:103990007093A4076093A3076091CB037091CC034D |
:1039A000882777FD8095982F0E94613C7093AE0721 |
:1039B0006093AD078091CF039091D00390938707D8 |
:1039C000809386078FEE80937A0020913D0430919A |
:1039D0003E0480913307E82FFF27EE0FFF1FED5FB6 |
:1039E000F84F8081918182599F4F281739071CF425 |
:1039F0002F5F3F4F0CC08081918182599F4F82176A |
:103A000093074CF42115310531F0215030403093AB |
:103A10003E0420933D0420913F0430914004809166 |
:103A20003407E82FFF27EE0FFF1FED5FF84F80816F |
:103A3000918182599F4F281739071CF42F5F3F4F00 |
:103A40000CC08081918182599F4F821793074CF45B |
:103A50002115310531F0215030403093400420933E |
:103A60003F04209141043091420480913507E82FB2 |
:103A7000FF27EE0FFF1FED5FF84F80819181825984 |
:103A80009F4F281739071CF42F5F3F4F0CC08081D0 |
:103A9000918182599F4F821793074CF4211531056C |
:103AA00031F0215030403093420420934104209162 |
:103AB00043043091440480913607E82FFF27EE0F2E |
:103AC000FF1FED5FF84F8081918182599F4F28172A |
:103AD00039071CF42F5F3F4F0CC0808191818259C0 |
:103AE0009F4F821793074CF42115310531F0215077 |
:103AF0003040309344042093430480913D049091DE |
:103B00003E0497FF05C010923E0410923D040AC087 |
:103B10008F3F910539F034F08FEF90E090933E04A1 |
:103B200080933D0480913F049091400497FF05C02D |
:103B30001092400410923F040AC08F3F910539F063 |
:103B400034F08FEF90E09093400480933F04809195 |
:103B500041049091420497FF05C0109242041092D4 |
:103B600041040AC08F3F910539F034F08FEF90E0A7 |
:103B700090934204809341048091430490914404C3 |
:103B800097FF05C010924404109243040AC08F3F6F |
:103B9000910539F034F08FEF90E0909344048093D6 |
:103BA000430460915A0777278827992724EC39E046 |
:103BB00040E050E00E94613C60938703709388036B |
:103BC0008093890390938A0360938B0370938C0393 |
:103BD00080938D0390938E0308951F9380913A07ED |
:103BE0008B3F98F08B3F19F480913D040EC08C3FC1 |
:103BF00019F480913F0409C08D3F19F4809141046C |
:103C000004C08E3F21F480914304809394038091FB |
:103C10009403882319F41092940304C08F3F11F485 |
:103C200080939403809139078B3F98F08B3F19F470 |
:103C300080913D040EC08C3F19F480913F0409C06F |
:103C40008D3F19F48091410404C08E3F21F480918E |
:103C500043048093930380919303882319F4109273 |
:103C6000930305C0843618F084E680939303809113 |
:103C70003B078B3F98F08B3F19F480913D040EC0B9 |
:103C80008C3F19F480913F0409C08D3F19F4809155 |
:103C9000410404C08E3F21F4809143048093950336 |
:103CA00080919503882319F41092950305C08436FA |
:103CB00018F084E68093950380913D078B3F98F040 |
:103CC0008B3F19F480913D040EC08C3F19F4809114 |
:103CD0003F0409C08D3F19F48091410404C08E3F18 |
:103CE00021F4809143048093960380919603882366 |
:103CF00019F41092960304C08F3F11F48093960339 |
:103D0000809144078B3F98F08B3F19F480913D04DC |
:103D10000EC08C3F19F480913F0409C08D3F19F407 |
:103D20008091410404C08E3F21F48091430480932C |
:103D3000970380919703882319F41092970304C086 |
:103D40008F3F11F480939703809145078B3F98F044 |
:103D50008B3F19F480913D040EC08C3F19F4809183 |
:103D60003F0409C08D3F19F48091410404C08E3F87 |
:103D700021F48091430480939803809198038B30C1 |
:103D800010F48AE002C08F3F11F480939803809171 |
:103D900046078B3F98F08B3F19F480913D040EC08D |
:103DA0008C3F19F480913F0409C08D3F19F4809134 |
:103DB000410404C08E3F21F4809143048093990311 |
:103DC00080919903882319F41092990304C08F3FBE |
:103DD00011F48093990380914B078B3F98F08B3FB0 |
:103DE00019F480913D040EC08C3F19F480913F047A |
:103DF00009C08D3F19F48091410404C08E3F21F425 |
:103E00008091430480939B0380919B03882319F442 |
:103E100010929B0304C08F3F11F480939B03809109 |
:103E20004C078B3F98F08B3F19F480913D040EC0F6 |
:103E30008C3F19F480913F0409C08D3F19F48091A3 |
:103E4000410404C08E3F21F48091430480935D04BB |
:103E500080915D04882319F410925D0404C08F3FA3 |
:103E600011F480935D0480914D078B3F98F08B3F58 |
:103E700019F480913D040EC08C3F19F480913F04E9 |
:103E800009C08D3F19F48091410404C08E3F21F494 |
:103E90008091430480935E0480915E04882319F42A |
:103EA00010925E0404C08F3F11F480935E048091F1 |
:103EB0004E078B3F98F08B3F19F480913D040EC064 |
:103EC0008C3F19F480913F0409C08D3F19F4809113 |
:103ED000410404C08E3F21F48091430480935F0429 |
:103EE00080915F04882319F410925F0404C08F3F0F |
:103EF00011F480935F0480914F078B3F98F08B3FC4 |
:103F000019F480913D040EC08C3F19F480913F0458 |
:103F100009C08D3F19F48091410404C08E3F21F403 |
:103F2000809143048093600480916004882319F495 |
:103F30001092600404C08F3F11F48093600480915C |
:103F40005F078B3F98F08B3F19F480913D040EC0C2 |
:103F50008C3F19F480913F0409C08D3F19F4809182 |
:103F6000410404C08E3F21F4809143048093610496 |
:103F700080916104882319F41092610404C08F3F7A |
:103F800011F480936104809160078B3F98F08B3F20 |
:103F900019F480913D040EC08C3F19F480913F04C8 |
:103FA00009C08D3F19F48091410404C08E3F21F473 |
:103FB000809143048093620480916204882319F401 |
:103FC0001092620404C08F3F11F4809362048091C8 |
:103FD00061078B3F98F08B3F19F480913D040EC030 |
:103FE0008C3F19F480913F0409C08D3F19F48091F2 |
:103FF000410404C08E3F21F4809143048093630404 |
:1040000080916304882319F41092630404C08F3FE5 |
:1040100011F480936304809162078B3F98F08B3F8B |
:1040200019F480913D040EC08C3F19F480913F0437 |
:1040300009C08D3F19F48091410404C08E3F21F4E2 |
:10404000809143048093640480916404882319F46C |
:104050001092640404C08F3F11F480936404809133 |
:1040600050078B3F98F08B3F19F480913D040EC0B0 |
:104070008C3F19F480913F0409C08D3F19F4809161 |
:10408000410404C08E3F21F48091430480939C033B |
:1040900080919C03882319F410929C0304C08F3FE5 |
:1040A00011F480939C03809155078B3F98F08B3FD0 |
:1040B00019F480913D040EC08C3F19F480913F04A7 |
:1040C00009C08D3F19F48091410404C08E3F21F452 |
:1040D0008091430480939D0380919D03882319F46C |
:1040E00010929D0304C08F3F11F480939D03809133 |
:1040F00058078B3F98F08B3F19F480913D040EC018 |
:104100008C3F19F480913F0409C08D3F19F48091D0 |
:10411000410404C08E3F21F48091430480936504E0 |
:1041200080916504882319F41092650404C08F3FC0 |
:1041300011F480936504809159078B3F98F08B3F71 |
:1041400019F480913D040EC08C3F19F480913F0416 |
:1041500009C08D3F19F48091410404C08E3F21F4C1 |
:10416000809143048093660480916604882319F447 |
:104170001092660404C08F3F11F48093660480910E |
:104180005E078B3F98F08B3F19F480913D040EC081 |
:104190008C3F19F480913F0409C08D3F19F4809140 |
:1041A000410404C08E3F21F48091430480939E0318 |
:1041B00080919E03882319F410929E0304C08F3FC0 |
:1041C00011F480939E0310919B03612F772767FD65 |
:1041D0007095872F972F0E949F3B17FF06C020E006 |
:1041E00030E040E853E40E94FA3A27E137EB41ED32 |
:1041F00058E30E94193C60938F037093900380935F |
:10420000910390939203809142078093A507809138 |
:104210004107809381071F91089580914E04882360 |
:1042200001F510927E07109279071092960710926E |
:10423000A0078091AD03882311F0809379078091C6 |
:10424000AE03882311F080937E078091AF0388230B |
:1042500011F08093A0078091B003882311F0809320 |
:1042600096078091790799279093C0068093BF069F |
:1042700080917E0799279093C2068093C106809112 |
:10428000A00799279093C4068093C3068091960750 |
:1042900099279093C6068093C5061092E803109262 |
:1042A000E9030E94BC15089510929907109298078F |
:1042B00010929B0710929A0780E090E0A0E0B0E097 |
:1042C00080939C0790939D07A0939E07B0939F07B0 |
:1042D0001092F0031092EF031092F2031092F10388 |
:1042E0001092F4031092F303109265041092660486 |
:1042F0000E94A01C84E690E00E94E20D0E94A01C97 |
:104300008091370780FF10C080910E0390910F03BA |
:10431000875B934038F480910E0390910F038E5E7B |
:10432000924010F40E948C104091C5035091C60336 |
:104330005093F0034093EF032091C7033091C803DB |
:104340003093F2032093F1038091C9039091CA0343 |
:104350009093F4038093F3033093F6032093F503D3 |
:104360005093F8034093F70388E0E8E9F7E0A8E604 |
:10437000B1E0182E0E94353D1092190410921A04D3 |
:1043800010921B0410921C0410921D0410921E0423 |
:1043900010921F0410922004109221041092220403 |
:1043A00010922304109224041092250410922604E3 |
:1043B00010922704109228041092290410922A04C3 |
:1043C00010922B0410922C041092800710927F07F9 |
:1043D00010927807109277071092A7071092A607FD |
:1043E00080910A0390910B03A0910C03B0910D03EF |
:1043F0009093EE068093ED061092D8031092D703A7 |
:10440000109231041092320410923304109234044A |
:10441000809135049091360490933804809337044A |
:104420000E94893782E390E09093C1038093C00398 |
:1044300060915A0777278827992724EC39E040E0D4 |
:1044400050E00E94613C60938703709388038093DF |
:10445000890390938A0360915B07772788279927C0 |
:104460000E94613C60938B0370938C0380938D0357 |
:1044700090938E031092A00310929F030895CF9300 |
:10448000DF93C8E9D7E0109299071092980710922D |
:104490009B0710929A0780E090E0A0E0B0E0809344 |
:1044A0009C0790939D07A0939E07B0939F070E943F |
:1044B000A01C84E690E00E94E20D0E94A01C809166 |
:1044C000A3079091A40797FF03C0909581959F4FF4 |
:1044D0006CE070E00E94A03C70939907609398078D |
:1044E0008091AD079091AE0797FF03C0909581959D |
:1044F0009F4F6CE070E00E94A03C70939B0760931C |
:104500009A076091EB067091EC06882777FD8095FD |
:10451000982F0E949F3B60939C0770939D07809308 |
:104520009E0790939F0788E0A8E6B1E0FE01182E51 |
:104530000E94463DDF91CF9108951F93182F0EC022 |
:1045400080914E04882361F484E690E09093C10347 |
:104550008093C0038AEF90E00E94F80D115080F71D |
:104560001F910895ADE3B0E0E8EBF2E20C94F03C6B |
:104570000E947017299A20914C0430914D043C837D |
:104580002B8337FF02C01C821B8280914504843636 |
:1045900008F05DC080910301882399F480910403A1 |
:1045A000909105038F5F9F4F61F488E99AE39093A0 |
:1045B000C1038093C00380E09CE090930503809347 |
:1045C00004038091900490919104009731F0019739 |
:1045D000909391048093900404C010924E04109222 |
:1045E0003B04809100018A3011F4289A01C0289878 |
:1045F00080918B0490918C04815D974028F180918B |
:104600004807682F77277C836B8381E080933B0486 |
:10461000E0912F07FF27EE0FFF1FED5FF84F11828C |
:104620001082E0913007FF27EE0FFF1FED5FF84F7C |
:1046300011821082E0913207FF27EE0FFF1FED5F1E |
:10464000F84F11821082D9C110924E04D6C18091C8 |
:1046500045048D3808F4D1C110923B04809149077C |
:1046600022E3829FC00111249093910480939004CF |
:104670008B819C8189976CF080918B0490918C0444 |
:10468000AFEF8F3F9A0781F1019690938C0480934E |
:104690008B0480918B0490918C04883C910520F0D0 |
:1046A000EB81FC81B89704F51092AA041092AB0438 |
:1046B0001092AC041092AD041092A6041092A704BC |
:1046C0001092A8041092A9041092290410922A04AE |
:1046D00010922B0410922C0410922D0410922E0490 |
:1046E00010922F0410923004E0913107FF27EE0F53 |
:1046F000FF1FED5FF84F80819181813591050CF4AA |
:10470000D4C080914E04882309F0CFC0E0913207D5 |
:10471000FF27EE0FFF1FED5FF84F808191818C34F2 |
:1047200091050CF4C0C080918F048F5F80938F043B |
:10473000893C08F4BAC0299810924E0410928F0454 |
:1047400010928C0410928B0480912F07282F33270E |
:10475000F901EE0FFF1FED5FF84F808191818734E3 |
:1047600091059CF4E0913007FF27EE0FFF1FED5FEE |
:10477000F84F0190F081E02DF7FF03C0F095E1952F |
:10478000FF4FE734F1050CF46CC080913007682FBF |
:104790007727DB01AA0FBB1FAD5FB84F8D919C91AE |
:1047A0001197873491053CF0F901EE0FFF1FED5F83 |
:1047B000F84F808191818D919C918734910564F0AF |
:1047C000F901EE0FFF1FED5FF84F80819181873473 |
:1047D000910514F042E001C041E0FB01EE0FFF1F24 |
:1047E000ED5FF84F80819181863491055CF4F90189 |
:1047F000EE0FFF1FED5FF84F8081918187349105A7 |
:104800000CF043E0FB01EE0FFF1FED5FF84F8081DE |
:1048100091818A5B9F4F5CF4F901EE0FFF1FED5F02 |
:10482000F84F80819181873491050CF044E0660F48 |
:10483000771F6D5F784FDB018D919C918A5B9F4F55 |
:104840005CF4220F331F2D5F384FF9018081918175 |
:10485000863491050CF445E0A2E0B0E0042E0E94FD |
:104860003A3D8091370780FF10C080910E039091F0 |
:104870000F03875B934038F480910E0390910F03F0 |
:104880008E5E924010F40E948C100E94C70346E492 |
:104890006FE277E00E94F0030E9454210E94C70358 |
:1048A0000E949D2202C010928F04E0913107FF27E1 |
:1048B000EE0FFF1FED5FF84F808191818B5A9F4F64 |
:1048C0000CF09BC080913207482F5527FA01EE0F5C |
:1048D000FF1FED5FF84F80819181855B9F4F0CF04A |
:1048E0006DC080918E048F5F80938E04893C08F4A4 |
:1048F00067C088EC80938E0481E090E090938C04F4 |
:1049000080938B0481E080934E041092A204109255 |
:10491000A3041092A4041092A504109229041092EA |
:104920002A0410922B0410922C0410922D04109241 |
:104930002E0410922F041092300410921904109239 |
:104940001A0410921B0410921C041092210410925D |
:10495000220410922304109224048091F903909170 |
:10496000FA03A091FB03B091FC0380931D04909384 |
:104970001E04A0931F04B093200480910104909121 |
:104980000204A0910304B091040480932504909341 |
:104990002604A0932704B09328041092AA0410922E |
:1049A000AB041092AC041092AD041092A6041092C5 |
:1049B000A7041092A8041092A90402C010928E04B9 |
:1049C000440F551F4D5F584FDA018D919C918C34E7 |
:1049D00091058CF080918D048F5F80938D04893CCC |
:1049E00060F010924E0488EC80938D0410928C0439 |
:1049F00010928B0402C010928D0480916B03815041 |
:104A000080936B0380916B038F3F29F080913B046F |
:104A1000882309F46CC30E94ED1D20904604309059 |
:104A2000470480912F07C82EDD24D601AA0FBB1F93 |
:104A3000AD014D5F584FFA010190F081E02DFBABC5 |
:104A4000EAAB80913E07882E9924A75EB84F0D905F |
:104A5000BC91A02DB9ABA8AB80913F07282F33277D |
:104A60003FA72EA760914804709149047A83698317 |
:104A700080913007E82EFF24C701880F991FDC01C1 |
:104A8000AD5FB84F0D90BC91A02DBBA7AAA7875EC4 |
:104A9000984FDC018D919C9199A788A7E0913207EE |
:104AA000AE2FBB27AA0FBB1FAD5FB84F0D90BC91B7 |
:104AB000A02DBFA3AEA3E0913107FF27EE0FFF1F8C |
:104AC000ED5FF84FA080B180E8E7F0E0AE0EBF1ECA |
:104AD000B0924D04A0924C04DA018D919C912091EA |
:104AE0006D0430916E0497FF03C0909581959F4FA0 |
:104AF000281739078CF4FA018081918190936E0414 |
:104B000080936D0497FF0EC0909581959F4F909371 |
:104B10006E0480936D0406C02150304030936E04C3 |
:104B200020936D04F701EE0FFF1FED5FF84F8081BA |
:104B3000918120916F043091700497FF03C090958C |
:104B400081959F4F2817390784F480819181909334 |
:104B5000700480936F0497FF0EC0909581959F4FCE |
:104B60009093700480936F0406C0215030403093BE |
:104B7000700420936F0480913B04882341F01092CD |
:104B80006E0410926D041092700410926F041091D4 |
:104B90009803612F772767FD7095872F972F0E94C5 |
:104BA0009F3B17FF06C020E030E040E853E40E943E |
:104BB000FA3A20E030E040E251E40E94FA3A20E084 |
:104BC00030E040E85BE30E94193C2B013C0160931C |
:104BD000A8077093A9078093AA079093AB07109139 |
:104BE0009903612F772767FD7095872F972F0E9474 |
:104BF0009F3B17FF06C020E030E040E853E40E94EE |
:104C0000FA3A20E030EE4BE257E40E943C3B6093DE |
:104C10009207709393078093940790939507209140 |
:104C2000B203222311F40C94FD348AE090E09093B7 |
:104C3000C1038093C003E22FFF27E2FF09C08091E8 |
:104C40005D04482F5527440F551F440F551F10C0B2 |
:104C5000E3FD03C040E050E00BC080915D04992764 |
:104C6000880F991F880F991F44275527481B590BF8 |
:104C70002091670430916804C901F3E0880F991FFF |
:104C8000FA95E1F7821B930B840F951F68E070E0A3 |
:104C90000E94A03C7DAF6CAF709368046093670482 |
:104CA000E4FF09C080915D04482F5527440F551F2C |
:104CB000440F551F0FC0E5FD02C00C9413358091C1 |
:104CC0005D049927880F991F880F991F442755273E |
:104CD000481B590B2091690430916A04C90163E0B3 |
:104CE000880F991F6A95E1F7821B930B840F951F1C |
:104CF00068E070E00E94A03C8B0170936A046093AE |
:104D000069048091B103282F332723FF03C082E376 |
:104D100090E004C022FF07C08EEC9FEF90936C04DC |
:104D200080936B0404C010926C0410926B0421FFFA |
:104D300009C080919F039091A00301969093A003D6 |
:104D400080939F0324FF09C080919F039091A0034B |
:104D500001979093A00380939F03C101880F991F2F |
:104D6000820D931D4AA95BA9489D9001499D300D74 |
:104D7000589D300D1124820F931F64E070E00E9453 |
:104D8000A03C1B0168A979A9AEA5BFA56A9FC00177 |
:104D90006B9F900D7A9F900D1124280E391E8CADBB |
:104DA0009DAD68E070E00E94A03C260E371E309258 |
:104DB00047042092460489819A81880F991FE981CE |
:104DC000FA818E0F9F1F4AA55BA5489D9001499DC2 |
:104DD000300D589D300D1124820F931F64E070E058 |
:104DE0000E94A03C9B0168A579A5AEA5BFA56A9FBE |
:104DF000C0016B9F900D7A9F900D1124280F391FD1 |
:104E0000C80168E070E00E94A03C260F371F309375 |
:104E100049042093480440916B0450916C04EEA126 |
:104E2000FFA14E1B5F0B50934B0440934A048091AB |
:104E30000E0680FF54C080915D04813808F44FC095 |
:104E400080910706992787FD9095BC01689DC00158 |
:104E5000699D900D789D900D1124280E391E309279 |
:104E600047042092460480910806992787FD909573 |
:104E7000DC01A89DC001A99D900DB89D900D112445 |
:104E8000280F391F30934904209348048091090664 |
:104E9000992787FD9095480F591F50934B044093D5 |
:104EA0004A0420910B06332727FD309580913C075B |
:104EB0009927FC012E9FC0012F9F900D3E9F900DC2 |
:104EC00011249093A00380939F0380910A06992751 |
:104ED0008A159B0524F490934D0480934C04809193 |
:104EE000370782FF0CC080E090E0A0E0B0E0809344 |
:104EF000920790939307A0939407B093950720E0AF |
:104F000030E040E050E0C301B2010E94A93B882399 |
:104F100064F480E090E0A0E0B0E08093A807909374 |
:104F2000A907A093AA07B093AB0720E030E040E0C8 |
:104F300050E060919207709193078091940790914F |
:104F400095070E94A93B882364F480E090E0A0E0EC |
:104F5000B0E08093920790939307A0939407B09347 |
:104F60009507F701EE0FFF1FED5FF84F20813181AC |
:104F700080915607482F55274217530744F48091D4 |
:104F8000630782FF04C081E08093590411C0F701D8 |
:104F9000EE0FFF1FED5FF84F2081318180915707A1 |
:104FA000BA01681B71092617370714F410925904C7 |
:104FB000F701EE0FFF1FED5FF84F808191816627AB |
:104FC0007727641B750B8617970744F48091630756 |
:104FD00083FF04C081E080935A0417C080915A0473 |
:104FE000882399F0EE0CFF1C83E097E0E80EF91E91 |
:104FF000D7012D913C91809157079927841B950BE0 |
:105000008217930714F410925A04F601EE0FFF1F53 |
:10501000ED5FF84F808191814817590744F48091E2 |
:10502000630780FF04C081E080935C0415C0809119 |
:105030005C04882389F0F601EE0FFF1FED5FF84F47 |
:105040002081318180915707FA01E81BF1092E1761 |
:105050003F0714F410925C04F601EE0FFF1FED5FA2 |
:10506000F84F808191818617970744F480916307F8 |
:1050700081FF04C081E080935B0417C080915B04D2 |
:10508000882399F0CC0CDD1C23E037E0C20ED31E40 |
:10509000D6012D913C91809157079927841B950B40 |
:1050A0008217930714F410925B04809159048823AB |
:1050B00021F480915A04882321F081E080935804E0 |
:1050C00002C01092580480915C04882321F48091DE |
:1050D0005B04882351F081E08093570410925804B8 |
:1050E0001092590410925A040EC0109257048091E5 |
:1050F0005804882311F40C94173584E690E09093BB |
:10510000C1038093C003809155079927EB81FC81EF |
:105110008E179F0714F49C838B8380913B04882314 |
:1051200041F110924B0410924A04109247041092DD |
:10513000460410924904109248048DEC9CECACECAF |
:10514000BDE38093A8079093A907A093AA07B09303 |
:10515000AB078AE097EDA3EABBE3809392079093B5 |
:105160009307A0939407B093950710925804109258 |
:1051700057042091F9033091FA034091FB035091B9 |
:10518000FC0328AF39AF4AAF5BAF80918A0790919B |
:105190008B07A0918C07B0918D07820F931FA41FDE |
:1051A000B51F80938A0790938B07A0938C07B093C9 |
:1051B0008D074091010450910204609103047091A5 |
:1051C00004044CAB5DAB6EAB7FAB80918E079091CE |
:1051D0008F07A0919007B0919107840F951FA61F8C |
:1051E000B71F80938E0790938F07A0939007B0937B |
:1051F00091076091FD037091FE038091FF039091F0 |
:1052000000046D8F7E8F8F8F98A38091820790917D |
:105210008307A0918407B09185072D8D3E8D4F8D1A |
:1052200058A1820F931FA41FB51F809382079093EC |
:105230008307A0938407B09385074091050450919C |
:1052400006046091070470910804498F5A8F6B8F90 |
:105250007C8F80917A0790917B07A0917C07B09119 |
:105260007D07840F951FA61FB71F80937A07909321 |
:105270007B07A0937C07B0937D075091570459A3F7 |
:10528000552311F00C94723580915804882311F045 |
:105290000C9472350C941F3580916F0490917004BA |
:1052A0004097A4F0C201B10123E030E040E050E0BB |
:1052B0000E94D53C59016A01C401B30123E030E0EA |
:1052C00040E050E00E94D53C79018A01E09132072C |
:1052D000FF27EE0FFF1FED5FF84F0190F081E02DEB |
:1052E000F7FF03C0F095E195FF4F7A97A4F0C60150 |
:1052F000B50123E030E040E050E00E94D53C590188 |
:105300006A01C801B70123E030E040E050E00E94AC |
:10531000D53C79018A0161E2A616B104C104D10429 |
:1053200034F090E2A92EB12CC12CD12C11C070EE1A |
:10533000A7167FEFB7067FEFC7067FEFD70644F4C7 |
:1053400080EEA82E8FEFB82E8FEFC82E8FEFD82EBD |
:1053500081E2E816F1040105110534F010E2E12EB6 |
:10536000F12C012D112D11C090EEE9169FEFF906D9 |
:105370009FEF09079FEF190744F4B0EEEB2EBFEF44 |
:10538000FB2EBFEF0B2FBFEF1B2F809119049091C5 |
:105390001A04A0911B04B0911C048A199B09AC0942 |
:1053A000BD098093190490931A04A0931B04B09331 |
:1053B0001C048091210490912204A0912304B091B7 |
:1053C00024048E199F09A00BB10B809321049093A4 |
:1053D0002204A0932304B09324048091D9039091D4 |
:1053E000DA038F3F910509F008F4D5C4A9A1AA23D7 |
:1053F00009F055C480915804882309F050C4609185 |
:105400008A0770918B0780918C0790918D0720E01F |
:1054100031E040E050E00E94D53C2D8B3E8B4F8B1D |
:10542000588F20938A0730938B0740938C075093B3 |
:105430008D0760918E0770918F07809190079091F2 |
:10544000910720E031E040E050E00E94D53C298BFC |
:105450003A8B4B8B5C8B20938E0730938F07409356 |
:10546000900750939107E0904307FF2400271127EE |
:105470002091090430910A0440910B0450910C04CE |
:10548000C801B7010E94613C20E031E040E050E0FB |
:105490000E94D53C19012A012093090430930A0483 |
:1054A00040930B0450930C0420910D0430910E0492 |
:1054B00040910F0450911004C801B7010E94613C53 |
:1054C00020E031E040E050E00E94D53C39014A0143 |
:1054D00020930D0430930E0440930F045093100456 |
:1054E000609111047091120480911304909114043E |
:1054F00020E031E040E050E00E94D53C20931104D0 |
:105500003093120440931304509314046D897E89E0 |
:105510008F89988D6219730984099509609396049F |
:10552000709397048093980490939904E0905C079B |
:10553000FF2400271127A80197010E94D53C59019B |
:105540006A01209384043093850440938604509329 |
:10555000870469897A898B899C8966197709880902 |
:1055600099096093920470939304809394049093A8 |
:105570009504A80197010E94D53C2D873E874F874F |
:10558000588BC601B50120E031E040E050E00E94B8 |
:10559000D53C890130935604209355046D857E8552 |
:1055A0008F85988920E031E040E050E00E94D53CB2 |
:1055B0003DAF2CAF309354042093530480916D047D |
:1055C00090916E044097BCF480916F0490917004A8 |
:1055D00040978CF4E0913207FF27EE0FFF1FED5F3D |
:1055E000F84F0190F081E02DF7FF03C0F095E195B1 |
:1055F000FF4F7A9774F0C80162E070E00E94A03C0F |
:10560000CB0162E070E00E94A03C7093560460936E |
:10561000550460918207709183078091840790916F |
:10562000850720E031E040E050E00E94D53C209327 |
:1056300082073093830740938407509385076091D6 |
:105640007A0770917B0780917C0790917D0720E01D |
:1056500031E040E050E00E94D53C20937A0730933F |
:105660007B0740937C0750937D07ED8CFE8C0F8D5C |
:1056700018A128AD39AD4AAD5BADE21AF30A040BAF |
:10568000150BE0929E04F0929F040093A0041093E7 |
:10569000A104A98CBA8CCB8CDC8C4CA95DA96EA919 |
:1056A0007FA9A41AB50AC60AD70AA0929A04B09292 |
:1056B0009B04C0929C04D0929D04E0929604F092C8 |
:1056C00097040093980410939904A0929204B092C6 |
:1056D0009304C0929404D092950480911D049091FB |
:1056E0001E04A0911F04B09120048E199F09A00BE5 |
:1056F000B10B80931D0490931E04A0931F04B093DC |
:1057000020048091250490912604A0912704B09153 |
:1057100028048A199B09AC09BD098093250490933C |
:105720002604A0932704B0932804C201B1012AE102 |
:1057300030E040E050E00E94D53C3093CA06209310 |
:10574000C906C401B3012AE130E040E050E00E9404 |
:10575000D53C3093CC062093CB06F092CE06E09257 |
:10576000CD06B092D006A092CF066D897E898F8932 |
:10577000988D2AE130E040E050E00E94D53C309323 |
:10578000D2062093D10669897A898B899C892AE17E |
:1057900030E040E050E00E94D53C3093D4062093A6 |
:1057A000D3066D857E857093E2066093E1068CAD2D |
:1057B0009DAD880F991F2CAD3DAD63E0220F331FC7 |
:1057C0006A95E1F7820F931F9093E4068093E306B6 |
:1057D00081E090E090937F0480937E048091760432 |
:1057E00090917704A0917804B09179042D893E8935 |
:1057F0004F89588D821B930BA40BB50B815E914B87 |
:10580000AF4FBF4F8F539C49A040B04008F0C1C07C |
:1058100041E0E41640E1F40640E0040740E01407EC |
:105820000CF452C080917D04882309F449C0D8014A |
:10583000C7015CE0B595A795979587955A95D1F7DF |
:10584000019690937F0480937E04D801C70143E0C2 |
:10585000B595A795979587954A95D1F78093840438 |
:1058600090938504A0938604B0938704895893414C |
:10587000A040B04064F088E893E1A0E0B0E08093FD |
:10588000840490938504A0938604B0938704609168 |
:10589000840470918504809186049091870420E0AF |
:1058A00031E040E050E00E94D53C80915504909159 |
:1058B0005604820F931F909356048093550466C03C |
:1058C00081E080937D0462C010927D0460E0E61662 |
:1058D00060EFF6066FEF06076FEF16070CF056C085 |
:1058E00080917C04882309F44DC088279927DC0126 |
:1058F0008E199F09A00BB10B3CE0B595A795979524 |
:1059000087953A95D1F7019690937F0480937E0412 |
:10591000C801B70128E030E040E050E00E94D53CEB |
:105920002093840430938504409386045093870425 |
:1059300028573C4E4F4F5F4F64F488E79CEEAFEF23 |
:10594000BFEF8093840490938504A0938604B09362 |
:1059500087046091840470918504809186049091FD |
:10596000870420E031E040E050E00E94D53C809187 |
:10597000550490915604820F931F90935604809380 |
:1059800055040BC081E080937C0407C010927C0416 |
:1059900004C010927F0410927E0480915D07882ECF |
:1059A000992480917E0490917F048816990624F4AE |
:1059B00090927F0480927E0481E0E81684E0F806ED |
:1059C00080E0080780E018075CF08091EF03909179 |
:1059D000F00320917E0430917F04820F931F13C047 |
:1059E00090E0E9169CEFF9069FEF09079FEF190772 |
:1059F00074F48091EF039091F00320917E04309134 |
:105A00007F04821B930B9093F0038093EF0381E05C |
:105A100090E090937F0480937E0410928004109213 |
:105A200081041092820410928304809172049091F8 |
:105A30007304A0917404B091750429893A894B8943 |
:105A40005C89821B930BA40BB50B815E914BAF4F0E |
:105A5000BF4F8F539C49A040B04008F0BDC041E00B |
:105A6000A41640E1B40640E0C40640E0D4060CF4BD |
:105A700050C080917B04882309F447C0D601C5013A |
:105A80002CE0B595A795979587952A95D1F701961E |
:105A900090937F0480937E04D601C50103E0B59501 |
:105AA000A795979587950A95D1F780938004909351 |
:105AB0008104A0938204B093830489589341A04049 |
:105AC000B04064F088E893E1A0E0B0E08093800407 |
:105AD00090938104A0938204B09383046091800426 |
:105AE00070918104809182049091830420E031E0E0 |
:105AF00040E050E00E94D53C6CAD7DAD620F731F5D |
:105B0000709354046093530464C081E080937B04D9 |
:105B100060C010927B0470E0A71670EFB7067FEFAD |
:105B2000C7067FEFD7060CF054C080917A04882313 |
:105B300009F44BC088279927DC018A199B09AC0915 |
:105B4000BD091CE0B595A795979587951A95D1F74E |
:105B5000019690937F0480937E04C601B50128E0EE |
:105B600030E040E050E00E94D53C20938004309328 |
:105B70008104409382045093830428573C4E4F4F36 |
:105B80005F4F64F488E79CEEAFEFBFEF8093800433 |
:105B900090938104A0938204B09383046091800465 |
:105BA00070918104809182049091830420E031E01F |
:105BB00040E050E00E94D53CACADBDADA20FB31F9C |
:105BC000B0935404A09353040BC081E080937A04F3 |
:105BD00007C010927A0404C010927F0410927E04D1 |
:105BE00080917E0490917F048816990624F4909207 |
:105BF0007F0480927E04B1E0AB16B4E0BB06B0E057 |
:105C0000CB06B0E0DB065CF08091F1039091F203EB |
:105C100020917E0430917F04820F931F13C0E0E037 |
:105C2000AE16ECEFBE06EFEFCE06EFEFDE0674F435 |
:105C30008091F1039091F20320917E0430917F04D2 |
:105C4000821B930B9093F2038093F1038091800465 |
:105C5000909181049093DE068093DD068091EF039E |
:105C60009091F0039093D6068093D5068091F1032E |
:105C70009091F2032091F5033091F603821B930B70 |
:105C80009C01A3E0220F331FAA95E1F7880F991F0B |
:105C9000820F931F9093D8068093D70608C0109266 |
:105CA000540410925304109256041092550420E0AC |
:105CB00030E040E050E0609192077091930780914E |
:105CC0009407909195070E94A93B882341F4109274 |
:105CD000540410925304109256041092550480916B |
:105CE0008A0790918B07A0918C07B0918D078093C4 |
:105CF000760490937704A0937804B093790480910C |
:105D00008E0790918F07A0919007B0919107809393 |
:105D1000720490937304A0937404B093750410926A |
:105D2000090410920A0410920B0410920C041092B1 |
:105D30000D0410920E0410920F0410921004109291 |
:105D40001104109212041092130410921404109271 |
:105D50008A0710928B0710928C0710928D07109271 |
:105D60008E0710928F071092900710929107109251 |
:105D70008207109283071092840710928507109271 |
:105D80007A0710927B0710927C0710927D07109281 |
:105D9000DA031092D90380904A0490904B04540186 |
:105DA00097FE04C0AA24BB24A818B908F5E1AF16D1 |
:105DB000B1043CF08091370784FD03C081E08093FB |
:105DC000A103E0904007CC24B7FCC094DC2CB401C4 |
:105DD000882777FD8095982F2E2D33274427552728 |
:105DE0000E94613C9B01AC01C601B5010E94613C6F |
:105DF00020E032E040E050E00E94D53C89019A0169 |
:105E0000FF24E89CC001E99C900DF89C900D1124A2 |
:105E100064E070E00E94A03C600F711F882777FD4E |
:105E20008095982F6093A2047093A3048093A40498 |
:105E30009093A5042091290430912A0440912B04C9 |
:105E400050912C04261B370B480B590B2093290427 |
:105E500030932A0440932B0450932C04213563EC97 |
:105E6000360760E0460760E056072CF080E593ECCB |
:105E7000A0E0B0E009C0205B3C434F4F5F4F64F4AB |
:105E800080EB9CE3AFEFBFEF8093290490932A044B |
:105E9000A0932B04B0932C048091370783FF9AC002 |
:105EA000809171048150809371048F3FD9F40E94D6 |
:105EB0000138909336048093350420913704309153 |
:105EC0003804821B930B845E9D4F68E671E00E944C |
:105ED000A03C845B904090933A048093390482E321 |
:105EE000809371046091F9037091FA038091FB0330 |
:105EF0009091FC0320E032E040E050E00E94D53C6D |
:105F0000890137FF03C0109501951F4F609101046F |
:105F100070910204809103049091040420E032E027 |
:105F200040E050E00E94D53CB90137FF03C07095B6 |
:105F300061957F4F601771070CF4B80163327105EA |
:105F400074F48091A103882351F0809135049091DD |
:105F5000360490933804809337041092A103209163 |
:105F600097033327629FC001639F900D729F900D2E |
:105F7000112460E470E00E94A03C261B370B12162F |
:105F8000130644F58091390490913A04DC012A9F6C |
:105F9000C0012B9F900D3A9F900D112460E270E09C |
:105FA0000E94A03C882777FD8095982F2091290496 |
:105FB00030912A0440912B0450912C04260F371F56 |
:105FC000481F591F2093290430932A0440932B041F |
:105FD00050932C04809188048150809388048F3FD3 |
:105FE00009F079C088E180938804E0904307FF249A |
:105FF000002711276091F9037091FA038091FB0348 |
:106000009091FC03A80197010E94D53C3093A8060B |
:106010002093A7066091010470910204809103040B |
:1060200090910404A80197010E94D53C3093AA06E0 |
:106030002093A9068091A3079091A4079093AC06A2 |
:106040008093AB068091AD079091AE079093AE061A |
:106050008093AD068091A6079091A7079093B00614 |
:106060008093AF0680914F04909150049093B206B4 |
:106070008093B106609131047091320480913304B1 |
:106080009091340420E032E040E050E00E94D53CA2 |
:106090003093B4062093B306809135049091360472 |
:1060A0009093B8068093B7068091080390910903F6 |
:1060B0009093BA068093B9068091450499279093EE |
:1060C000BC068093BB0680918607909187079093CA |
:1060D000C8068093C70680915704C0907F07D09070 |
:1060E0008007882391F0B601882777FD8095982F47 |
:1060F0000E949F3B2091A8073091A9074091AA07D1 |
:106100005091AB070E94193C2DC06091F90370912A |
:10611000FA038091FB039091FC030E949F3B209126 |
:1061200092073091930740919407509195070E94F0 |
:10613000193C7B018C01B601882777FD8095982F4B |
:106140000E949F3B2091A8073091A9074091AA0780 |
:106150005091AB070E94193C9B01AC01C801B701EB |
:106160000E94FA3A0E94823B7093800760937F07F7 |
:1061700080915804C0907707D0907807882391F0D9 |
:10618000B601882777FD8095982F0E949F3B20912C |
:10619000A8073091A9074091AA075091AB070E9428 |
:1061A000193C2DC060910104709102048091030498 |
:1061B000909104040E949F3B209192073091930795 |
:1061C00040919407509195070E94193C7B018C01E6 |
:1061D000B601882777FD8095982F0E949F3B2091DC |
:1061E000A8073091A9074091AA075091AB070E94D8 |
:1061F000193C9B01AC01C801B7010E94FA3A0E9408 |
:10620000823B7093780760937707209192073091D3 |
:10621000930740919407509195072AA33BA34CA361 |
:106220005DA36091A6077091A707882777FD8095E9 |
:10623000982F0E949F3B7B018C016091A807709171 |
:10624000A9078091AA079091AB079B01AC010E941E |
:10625000FA3A9B01AC01C801B7010E94193C7B01CD |
:106260008C0160911504709116048091170490912F |
:1062700018040E949F3B2AA13BA14CA15DA10E9452 |
:10628000193C20E030E040E05FE30E94193C9B01B4 |
:10629000AC01C801B7010E94FA3A0E94823B8B010F |
:1062A0007093A7076093A6076091010470910204A0 |
:1062B00080910304909104040E949F3B2AA13BA17A |
:1062C0004CA15DA10E94193C69877A878B879C87C6 |
:1062D0000E94823B7093DA066093D906409148048D |
:1062E000509149045DA74CA75093E6064093E506FC |
:1062F00020917707309178073093E0062093DF06EE |
:1063000080917F079091800758E0813095071CF0BD |
:1063100080E098E005C08050984F34F480E098EF1A |
:106320009093800780937F0778E0213037071CF037 |
:1063300080E098E005C02050384F34F480E098EFBA |
:10634000909378078093770798E0013019071CF045 |
:1063500080E098E005C00050184F34F480E098EFDA |
:106360009093A7078093A60780913707992780FF0E |
:10637000D9C04091940381FF0EC0423310F5809143 |
:106380004F04909150044497909352048093510489 |
:1063900010923C0419C020919F033091A003240F58 |
:1063A000311D80913C079927FC012E9FC0012F9F32 |
:1063B000900D3E9F900D112444979093520480932A |
:1063C000510481E080933C0480913B04882321F0B8 |
:1063D000109252041092510420914F0430915004B5 |
:1063E0004091510450915204421753070CF09AC047 |
:1063F00080913C04882309F495C0241B350B8091BF |
:1064000095039927AC01249FC001259F900D349FCF |
:10641000900D112460E170E00E94A03C0B811C8172 |
:10642000061B170B2091D7033091D803809193035B |
:106430009927BC01269FC001279F900D369F900D84 |
:10644000112468E070E00E94A03C061B170B6091CD |
:10645000310470913204809133049091340420E02F |
:1064600032E040E050E00E94D53CCA01B9012091E1 |
:1064700096033327442755270E94613C20E230E0F1 |
:1064800040E050E00E94D53C7FEF2E3C370714F4EB |
:106490002EEC3FEF8091890490918A04AC01E4E0F6 |
:1064A000440F551FEA95E1F7481B590B233331057B |
:1064B00014F022E330E0021B130BCA01800F911F7E |
:1064C00060E170E00E94A03C70938A0460938904AC |
:1064D000809138079927681779078CF4AB81BC81C4 |
:1064E000A817B9072CF090938A048093890407C0F9 |
:1064F000EB81FC81F0938A04E09389040DC08091C4 |
:10650000890490918A042B813C812817390724F44F |
:1065100030938A04209389044091890450918A041D |
:106520005C834B838091A507682E77247CEE872EB1 |
:106530007FEF972E860C971C6B817C8168157905FF |
:106540000CF44B019092B6068092B506E091A60736 |
:10655000F091A7070091A2041091A3042091A40434 |
:106560003091A50474E1871691041CF4222433248D |
:1065700022C0C40162E070E00E94A03C9F01201B89 |
:10658000310BCB01261737070CF4C90170956195C3 |
:106590007F4F681779070CF4BC01C301881999096A |
:1065A000681779070CF4CB01140126183708281650 |
:1065B00039060CF41C014090460450904704809129 |
:1065C000B6049091B704481A590A80917F079091B8 |
:1065D000800784199509909389078093880720E0A4 |
:1065E00030E040E050E06AA17BA18CA19DA10E9417 |
:1065F000A93B8823E1F16091AA047091AB048091DA |
:10660000AC049091AD040E949F3B5B016C016091D2 |
:10661000F9037091FA038091FB039091FC030E94AF |
:106620009F3B2AA13BA14CA15DA10E94193C7B018B |
:106630008C01B201882777FD8095982F0E949F3B9F |
:106640009B01AC01C801B7010E94F93A9B01AC0162 |
:10665000C601B5010E94FA3A0E94823B6093AA04E7 |
:106660007093AB048093AC049093AD041CC0209154 |
:10667000880730918907442737FD4095542F809132 |
:10668000AA049091AB04A091AC04B091AD04820F28 |
:10669000931FA41FB51F8093AA049093AB04A093EB |
:1066A000AC04B093AD048091AA049091AB04A09186 |
:1066B000AC04B091AD048138EEE39E07E0E0AE0794 |
:1066C000E0E0BE072CF080E89EE3A0E0B0E009C067 |
:1066D0008058914CAF4FBF4F64F480E891ECAFEF1E |
:1066E000BFEF8093AA049093AB04A093AC04B09343 |
:1066F000AD04609188077091890720918F033091D4 |
:10670000900340919103509192032D833E834F83D8 |
:106710005887882777FD8095982F0E949F3B7B01A3 |
:106720008C016091AA047091AB048091AC049091AB |
:10673000AD040E949F3B9B01AC016D817E818F81E6 |
:1067400098850E94193C9B01AC01C801B7010E94C9 |
:10675000FA3A0E94823B5B016C017DAF6CAF809185 |
:106760009E03E82EFF2400271127C10137FE04C035 |
:10677000882799278219930962E070E00E94A03C63 |
:106780009B01280D391D442737FD4095542FC80122 |
:10679000B7010E94613C20E430E040E050E00E94FC |
:1067A000D53C29014CAD5DAD441555050CF4950162 |
:1067B000AA24BB24A418B508A501A216B3060CF49C |
:1067C000A901C401820D931D840F951F97FF03C07B |
:1067D00020E030E005C09301861597050CF49C017C |
:1067E00080918107C82EDD24C601C216D3060CF4A1 |
:1067F000C90180937907C401841B950B820D931DF9 |
:1068000097FF03C020E030E005C09301861597058F |
:106810000CF49C01C601C216D3060CF4C901809386 |
:106820007E078091B8049091B9046CA57DA5681B82 |
:10683000790B7DAF6CAF8091770790917807861BBD |
:10684000970B909376078093750720E030E040E047 |
:1068500050E06AA17BA18CA19DA10E94A93B882345 |
:1068600071F16091A6047091A7048091A8049091A1 |
:10687000A9040E949F3B7B018C01ACADBDADBD0165 |
:10688000882777FD8095982F0E949F3B9B01AC0144 |
:1068900069857A858B859C850E94F93A9B01AC01BC |
:1068A000C801B7010E94FA3A0E94823B6093A60495 |
:1068B0007093A7048093A8049093A9041CC020910E |
:1068C000750730917607442737FD4095542F809106 |
:1068D000A6049091A704A091A804B091A904820FE6 |
:1068E000931FA41FB51F8093A6049093A704A093A1 |
:1068F000A804B093A9048091A6049091A704A09144 |
:10690000A804B091A9048138EEE39E07E0E0AE0749 |
:10691000E0E0BE072CF080E89EE3A0E0B0E009C014 |
:106920008058914CAF4FBF4F64F480E891ECAFEFCB |
:10693000BFEF8093A6049093A704A093A804B093FC |
:10694000A9046091750770917607882777FD809577 |
:10695000982F0E949F3B7B018C016091A60470914F |
:10696000A7048091A8049091A9040E949F3B9B01D9 |
:10697000AC016D817E818F8198850E94193C9B01BD |
:10698000AC01C801B7010E94FA3A0E94823B920111 |
:10699000641575050CF49B01C501A216B3060CF431 |
:1069A000C901A401480F591F4219530957FF03C0D9 |
:1069B00060E070E005C0B301461557050CF4BA015C |
:1069C000A601C616D7060CF4AB014093A0079401AC |
:1069D000281B390B2219330937FF03C040E050E070 |
:1069E00005C0A301261537050CF4A901C601C4167C |
:1069F000D5060CF0D5C0CA01D3C0209167043091F0 |
:106A00006804C90163E0880F991F6A95E1F7821B4A |
:106A1000930B68E070E00E94A03C7DAF6CAF709378 |
:106A200068046093670440E050E00C946A2680910B |
:106A30005704882311F40C948D280C948328E0903B |
:106A40004307FF240027112768AD79AD8AAD9BADC0 |
:106A5000A80197010E94D53C59016A018091A307C2 |
:106A60009091A407AA2797FDA095BA2FA81AB90A52 |
:106A7000CA0ADB0A6CA97DA98EA99FA9A801970162 |
:106A80000E94D53C79018A018091AD079091AE07B3 |
:106A9000AA2797FDA095BA2FE81AF90A0A0B1B0B33 |
:106AA000C601B50120E130E040E050E00E94D53C55 |
:106AB00019012A0159016A01C801B70120E130E03A |
:106AC00040E050E00E94D53C39014A0179018A0139 |
:106AD00080916D0490916E04409714F00C945229AB |
:106AE0000C944C291092090410920A0410920B0481 |
:106AF00010920C0410920D0410920E0410920F04C8 |
:106B00001092100410928A0710928B0710928C0733 |
:106B100010928D0710928E0710928F071092900797 |
:106B200010929107109282071092830710928407A7 |
:106B30001092850710927A0710927B0710927C07BB |
:106B400010927D078091190490911A04A0911B0462 |
:106B5000B0911C0480931D0490931E04A0931F0405 |
:106B6000B09320048091210490912204A0912304E9 |
:106B7000B09124048093250490932604A0932704C5 |
:106B8000B09328041092DA031092D903109256049D |
:106B90001092550410925404109253040C94ED2951 |
:106BA00080939607E2E1C35C0C940C3D81E08093F6 |
:106BB0002F0722E02093300783E08093310754E0D1 |
:106BC0005093320745E04093330736E03093340763 |
:106BD00087E08093350788E08093360780EC8093C8 |
:106BE00037079EE1909338078BEF80933A078AE04E |
:106BF00080933B079093390790933D0720933C0780 |
:106C000020933E0750933F07309340078FE08093D7 |
:106C100041078AEF809342079093430780E880936F |
:106C2000440724E6209345078CE8809346078EE5C9 |
:106C30008093470783E28093480784E18093490764 |
:106C400010924A0780E180934B0780E580934C07C0 |
:106C500010924D0710924E0710924F0710925F0747 |
:106C600010926007109261071092620720935007FC |
:106C700088E2809351071092640792E39093520741 |
:106C800086E98093530740935407909355078AE50C |
:106C90008093560790935707109263078093580785 |
:106CA0004093590720935A0720935B0780E2809313 |
:106CB0005C0750935D0790935E07A9E6B7E0ECE6AA |
:106CC000F3E08CE001900D928150E1F7089581E0AE |
:106CD00080932F0782E08093300723E020933107D1 |
:106CE00054E05093320745E04093330736E0309349 |
:106CF000340787E08093350788E08093360780E487 |
:106D0000809337079EE1909338078BEF80933A0783 |
:106D10008AE080933B079093390790933D07209337 |
:106D20003C0720933E0750933F07309340078FE086 |
:106D3000809341078AEF809342079093430780E84E |
:106D40008093440790E59093450788E78093460732 |
:106D50008EE58093470783E28093480784E1809320 |
:106D6000490710924A0730E230934B0790934C0743 |
:106D700010924D0710924E0710924F0710925F0726 |
:106D800010926007109261071092620724E6209328 |
:106D9000500788E2809351071092640792E3909322 |
:106DA000520786E980935307409354079093550701 |
:106DB0008AE5809356079093570710926307809354 |
:106DC00058074093590720935A0720935B07309345 |
:106DD0005C0750935D078BE480935E07A9E6B7E0FC |
:106DE000E6E7F3E08CE001900D928150E1F7089521 |
:106DF00081E080932F0782E08093300783E08093C7 |
:106E0000310734E03093320745E04093330786E0A2 |
:106E10008093340787E08093350728E02093360776 |
:106E200080E4809337079EE1909338078BEF80933F |
:106E30003A078AE080933B079093390790933D0788 |
:106E400030933C0730933E0720933F078CE08093BC |
:106E500040078FE0809341078AEF80934207909329 |
:106E6000430790E89093440780E58093450756E9EF |
:106E7000509346078EE58093470783E28093480747 |
:106E800084E18093490710924A0780E280934B0780 |
:106E900090934C0710924D0710924E0710924F0797 |
:106EA00010925F07109260071092610710926207BC |
:106EB00024E62093500788E28093510710926407DC |
:106EC00082E3809352075093530740935407809373 |
:106ED00055079AE5909356078093570710926307DA |
:106EE000909358074093590720935A0720935B07C4 |
:106EF00080E180935C0730935D0720935E07A9E6ED |
:106F0000B7E0EEE7F3E08CE001900D928150E1F7FD |
:106F100008958091BA049091BB04A091BC04B091F3 |
:106F2000BD048093C2049093C304A093C404B0939F |
:106F3000C5048091BE049091BF04A091C004B0919B |
:106F4000C1048093C6049093C704A093C804B0936F |
:106F5000C90408951092B7041092B6041092B904AF |
:106F60001092B80408951F920F920FB60F92112439 |
:106F70002F933F934F938F939F938091BD078330BF |
:106F800019F08430A1F508C08EB58093CA041EBCE8 |
:106F900084E08093BD072BC08091CA049927382FC5 |
:106FA00022278EB59927282B392BC9018D509E4F4A |
:106FB000875E9340D0F48091C007853019F0863009 |
:106FC00069F406C03093C2072093C10786E00BC066 |
:106FD0003093C4072093C30787E005C03093C607EA |
:106FE0002093C50785E08093C0071092BD079F914D |
:106FF0008F914F913F912F910F900FBE0F901F9047 |
:107000001895AAE0B0E0E7E0F8E30C94F03CA0901B |
:107010004E07BB2433E0AA0CBB1C3A95E1F7CC2405 |
:10702000DD246091F9037091FA038091FB03909144 |
:10703000FC03A60195010E94D53C79018A01FF2439 |
:10704000E7FCF094C7010E94A13A2C01C7010E94FD |
:10705000E43A3C01609101047091020480910304C0 |
:1070600090910404A60195010E94D53C79018A0102 |
:10707000FF24E7FCF094C7010E94A13A9A87898710 |
:10708000C7010E94E43A1C016091C1077091C207D8 |
:10709000E090C307F090C4072091B507332727FD80 |
:1070A0003095E21AF30A0027F7FC0095102FA09004 |
:1070B000C507B090C6072091B607332727FD309546 |
:1070C000A21AB30ACC24B7FCC094DC2C2091B407DC |
:1070D000332727FD3095621B730B882777FD80953A |
:1070E000982F882477FC8094982CA40193010E9407 |
:1070F000613C3B014C0189859A85AA2797FDA095A3 |
:10710000BA2F8D839E83AF83B887C201AA2797FDCC |
:10711000A095BA2F89839A83AB83BC83C801B7013A |
:107120002D813E814F8158850E94613C29813A81A1 |
:107130004B815C810E94613C20E034E040E050E003 |
:107140000E94D53C620E731E841E951E442437FC9B |
:107150004094542CC601B501A20191010E94613CEA |
:1071600029813A814B815C810E94613C20E034E0BE |
:1071700040E050E00E94D53C621A730A840A950AE6 |
:10718000C801B701A20191010E94613C7B018C0101 |
:10719000C601B5012D813E814F8158850E94613C19 |
:1071A000E60EF71E081F191FC801B70120E130E0E5 |
:1071B00040E050E00E94D53C79018A01C401B3014E |
:1071C00020E034E040E050E00E94D53CDA01C90103 |
:1071D000B7010E94153A9C0197FF05C0882799279F |
:1071E000821B930B04C088E691E0821B930BE2E1C3 |
:1071F000C65F0C940C3D8091BD07813041F0813019 |
:1072000018F0823049F51CC02A9A81E016C02A98ED |
:107210008091C007853011F481E305C0863011F4F8 |
:1072200082E301C083E38EBD88E090E00E94B00C51 |
:107230009093BF078093BE0782E08093BD070895B7 |
:107240008091BE079091BF070E94B90C882321F05E |
:107250001EBC83E08093BD070895A0E0B0E0E3E3A7 |
:10726000F9E30C94F23C299A809100018A3011F4E0 |
:10727000289801C0289AAA24BB2400E010E08824A2 |
:107280009924EE24FF2466247724CC24DD2462E3B1 |
:10729000462E55248091C1079091C20708171907FF |
:1072A0002CF40091C1071091C2070BC08091C10757 |
:1072B0009091C2078A159B0524F4A090C107B09055 |
:1072C000C2078091C3079091C407E816F9062CF411 |
:1072D000E090C307F090C4070BC08091C307909162 |
:1072E000C4078815990524F48090C3079090C407BB |
:1072F0008091C5079091C607C816D9062CF4C09096 |
:10730000C507D090C6070BC08091C5079091C607EE |
:107310008615970524F46090C5077090C607552020 |
:1073200081F485B191E0892785B985B192E08927FB |
:1073300085B982E390E09093C1038093C00352E348 |
:10734000552E8AE090E00E94B00CEC01CE010E9424 |
:10735000B90C8823D9F3E0913107FF27EE0FFF1F07 |
:10736000ED5FF84F80819181843691050CF44A9449 |
:10737000442011F05A948ECFC8018A199B0990932A |
:10738000B8078093B707C701881999099093BA077E |
:107390008093B907C601861997099093BC0780931B |
:1073A000BB07E4EBF7E0C8018A0D9B1D62E070E0CB |
:1073B0000E94A03C6093B407C701880D991D62E04C |
:1073C00070E00E94A03C6093B507C601860D971D32 |
:1073D00062E070E00E94A03C6093B60789E0A0E7FD |
:1073E000B1E0182E0E94463DE0E1CDB7DEB70C9427 |
:1073F0000E3D83ED8CBD84B1846A84B98091000117 |
:107400008A3019F4539A5B9802C03E9A469885E0F8 |
:107410008093C0071092BD0789E0E4EBF7E0A0E796 |
:10742000B1E0182E0E94353D08959C01892B31F45E |
:107430006115710519F480E090E0089577FD02C0B0 |
:1074400041E001C04FEF2115310529F48AE54802DA |
:10745000C00111240895CB01B9010E94A03CFB0199 |
:1074600077FF03C0F095E195FF4F81E0EA35F8071B |
:1074700030F4E05CFA4F8491682F772747C08CE1A5 |
:10748000E73AF80718F06AE570E040C089E0ED38A7 |
:10749000F80718F069E570E039C085E0EA3BF807C5 |
:1074A00018F068E570E032C084E0E731F80718F0C2 |
:1074B00067E570E02BC083E0EE32F80718F066E570 |
:1074C00070E024C082E0E939F80718F065E570E063 |
:1074D0001DC082E0E233F80718F064E570E016C0E2 |
:1074E00081E0E73EF80718F063E570E00FC081E047 |
:1074F000ED3AF80718F062E570E008C0EF57F14088 |
:1075000018F061E570E002C060E570E01216130645 |
:107510006CF4842F992787FD90959C01629FC00190 |
:10752000639F900D729F900D1124089514162CF4F2 |
:1075300084EB90E0861B970B0895CB01845B904011 |
:107540000895FC0197FD03C041E050E005C0F095AF |
:10755000E195FF4F4FEF5FEFEB35F1055CF0CF01A9 |
:107560008B5590408A35910540F484EB90E08E1B5A |
:107570009F0BFC0121E030E010C0CF01855B904003 |
:107580008A35910518F4E45BF04005C088E691E087 |
:107590008E1B9F0BFC012FEF3FEFEE0FFF1FE656F8 |
:1075A000F94F85919491BC01629FC001639F900D3A |
:1075B000729F900D11249C01429FC001439F900D2A |
:1075C000529F900D112408952AE530E0281B390BB5 |
:1075D000C9010E94A13A0895FC014150504030F089 |
:1075E00001900616D1F73197CF0108958827992782 |
:1075F00008955058192EEFD001D0D2C0BA176207A3 |
:10760000730784079507B1F188F40EF410940B2EDC |
:10761000BA2FA02D062E622F202D072E732F302D6E |
:10762000082E842F402D092E952F502DFF275523EE |
:10763000B9F0591B49F0573E98F046953795279574 |
:10764000A795F0405395C9F776F0BA0F621F731FE4 |
:10765000841F30F4879577956795B795F04093959B |
:1076600017FA0F2E0895BF1BBB27BA0B620B730BC3 |
:10767000840BF6CFDEF6DBC0AED001D091C055232F |
:1076800059F0992369F09F575F57951B33F442F4E3 |
:10769000903811F4915805C09BC091589F3F09F450 |
:1076A000C6C0BB27112462177307840730F4660F26 |
:1076B000771F881FBB1F915098F311D00F920FD0E6 |
:1076C0000F920DD0A0E82617370748071B0609F0D0 |
:1076D000A048BA2F602D7F918F9100240895A0E8D3 |
:1076E0000024621773078407B10528F0621B730B2F |
:1076F000840BB1090A2A660F771F881FBB1FA69546 |
:1077000081F7089597FB73D09F3738F0FEE9F91B96 |
:10771000982F872F762F6B2F05C086C0969587955B |
:1077200077956795F150D0F73EF4909580957095D8 |
:1077300061957F4F8F4F9F4F0895E89403C097FB4B |
:107740000EF4F3DFB62F672F782F892F9EE90024E0 |
:1077500027C00ED05EF004C00BD026F001C008D0C8 |
:1077600019F020F48FEF089580E0089581E00895E6 |
:1077700097FB092E052600F8689430D0E89407FCA2 |
:1077800007C0621773078407950721F008F4009477 |
:107790000794989408959A95BB0F661F771F881FCA |
:1077A00011249923A1F08823B2F79F3F59F0BB0F12 |
:1077B00048F421F4002011F460FF04C06F5F7F4F94 |
:1077C0008F4F9F4F881F9795879597F908952CC0E5 |
:1077D0009FEF80EC0895052E092607FA440F551FE8 |
:1077E0005F3F79F0AA27A51708F051E04795880F69 |
:1077F000991F9F3F31F0BB27B91708F091E087959B |
:1078000008959F919F911124E3CF97FB880F991FB3 |
:107810009F3F31F0BB27B91708F091E08795089595 |
:107820009F919F911124D4CF662777278827992786 |
:107830000895D1DF01D0B4CF992339F0552329F031 |
:107840009F575F57950F13F49AF1F1CF91589F3FCF |
:10785000E1F3629FA12D0F92BB27639FA00DB11D85 |
:10786000EE27729FA00DB11DEE1FAF93AA27649F54 |
:10787000B00DE11D739FB00DE11DAA1F6627829F09 |
:10788000B00DE11DA61F5527749FE00DA11D551FCA |
:10789000839FE00DA11D561F849FA00D511D852FB4 |
:1078A0007A2F6E2F1F900F9088231AF4939539F436 |
:1078B0008FCF000C111CBB1F661F771F881F01286C |
:1078C0000895629FD001739FF001829FE00DF11D2A |
:1078D000649FE00DF11D929FF00D839FF00D749F4A |
:1078E000F00D659FF00D9927729FB00DE11DF91FF6 |
:1078F000639FB00DE11DF91FBD01CF011124089553 |
:10790000991B79E004C0991F961708F0961B881FF1 |
:107910007A95C9F780950895AA1BBB1B51E107C052 |
:10792000AA1FBB1FA617B70710F0A61BB70B881F0F |
:10793000991F5A95A9F780959095BC01CD0108959E |
:1079400097FB092E07260AD077FD04D0E5DF06D085 |
:1079500000201AF4709561957F4F0895F6F7909581 |
:1079600081959F4F0895A1E21A2EAA1BBB1BFD0112 |
:107970000DC0AA1FBB1FEE1FFF1FA217B307E4070E |
:10798000F50720F0A21BB30BE40BF50B661F771F66 |
:10799000881F991F1A9469F7609570958095909546 |
:1079A0009B01AC01BD01CF01089597FB092E05266F |
:1079B0000ED057FD04D0D7DF0AD0001C38F4509504 |
:1079C0004095309521953F4F4F4F5F4F0895F6F703 |
:1079D00090958095709561957F4F8F4F9F4F08953B |
:1079E0002F923F924F925F926F927F928F929F92CF |
:1079F000AF92BF92CF92DF92EF92FF920F931F93BD |
:107A0000CF93DF93CDB7DEB7CA1BDB0B0FB6F8946D |
:107A1000DEBF0FBECDBF09942A88398848885F84AD |
:107A20006E847D848C849B84AA84B984C884DF801E |
:107A3000EE80FD800C811B81AA81B981CE0FD11D02 |
:107A40000FB6F894DEBF0FBECDBFED010895EE0F67 |
:107A5000FF1F0590F491E02D0994F999FECFB2BD76 |
:107A6000A1BDF89A119600B40895F7DF01921A9417 |
:107A7000E1F70895F999FECFB2BDA1BD00BC119602 |
:107A80000FB6F894FA9AF99A0FBE08950190F2DFB2 |
:087A90001A94E1F70895FFCFFD |
:107A98000A01FF64496E74656772616C4E69636BB5 |
:107AA80020202020496E74656772616C526F6C6C7F |
:107AB800202020204163634E69636B202020202012 |
:107AC80020202020416363526F6C6C2020202020EE |
:107AD800202020204779726F476965722020202076 |
:107AE80020202020486F6568656E576572742020D5 |
:107AF800202020204163635A20202020202020209D |
:107B080020202020476173202020202020202020B2 |
:107B1800202020204B6F6D7061737356616C756502 |
:107B2800202020205370616E6E756E672020202003 |
:107B380020202020456D7066616E6720202020205F |
:107B480020202020416E616C6F6731312020202079 |
:107B5800202020204D6F746F725F566F726E652003 |
:107B6800202020204D6F746F725F48696E74656EB7 |
:107B7800202020204D6F746F725F4C696E6B7320EC |
:107B8800202020204D6F746F725F52656368747394 |
:107B9800202020204163635F5A20202020202020BD |
:107BA800202020204D697474656C4163634E6963BD |
:107BB8006B2020204D697474656C416363526F6C4F |
:107BC8006C202020496E74656772616C4572724E34 |
:107BD80069636B20496E74656772616C4572725295 |
:107BE8006F6C6C204D697474656C496E744E696372 |
:107BF8006B2020204D697474656C496E74526F6CEB |
:107C08006C0920004E65757472616C4E69636B2057 |
:107C180020202020526F6C6C4F666673657420209C |
:107C280020202020496E74526F6C6C2A46616B7458 |
:107C38006F722020416E616C6F67323620202020E1 |
:107C480020202020446972656B74417573676C52FB |
:107C58006F6C6C204D65737377657274526F6C6CC2 |
:107C680020202020417573676C65696368526F6CCA |
:107C78006C202020492D4C616765526F6C6C202068 |
:107C880020202020537469636B526F6C6C20202075 |
:107C980020202020FFFF0A016400007D0000FF0370 |
:107CA8000102030405060708090A48616C6C6F2085 |
:107CB80057656C7400000000000000000000000020 |
:107CC80000000000000000000000000000000000AC |
:107CD800000000000000000000000000000000009C |
:107CE800000000000000000000000000000000008C |
:107CF800000000000000000000000D0142656769F7 |
:107D08006E6E657200004E6F726D616C000053708C |
:107D18006F72740000640090D0030090D0030017C5 |
:107D2800B7D13830FB103A409696020A644664ECA4 |
:027D3800FF0149 |
:00000001FF |
/branches/MicroMag3_Nick666/V0.68d/FlightCtrl.aps |
---|
0,0 → 1,0 |
<AVRStudio><MANAGEMENT><ProjectName>FlightCtrl</ProjectName><Created>15-May-2007 11:20:41</Created><LastEdit>11-Oct-2007 22:58:54</LastEdit><ICON>241</ICON><ProjectType>0</ProjectType><Created>15-May-2007 11:20:41</Created><Version>4</Version><Build>4, 13, 0, 528</Build><ProjectTypeName>AVR GCC</ProjectTypeName></MANAGEMENT><CODE_CREATION><ObjectFile>default\Flight-Ctrl.elf</ObjectFile><EntryFile></EntryFile><SaveFolder>F:\SVN\MikroKopter\FlightCtrl\branches\V0.64_ZeroWarnings\</SaveFolder></CODE_CREATION><DEBUG_TARGET><CURRENT_TARGET>AVR Simulator</CURRENT_TARGET><CURRENT_PART>ATmega644.xml</CURRENT_PART><BREAKPOINTS></BREAKPOINTS><IO_EXPAND><HIDE>false</HIDE></IO_EXPAND><REGISTERNAMES><Register>R00</Register><Register>R01</Register><Register>R02</Register><Register>R03</Register><Register>R04</Register><Register>R05</Register><Register>R06</Register><Register>R07</Register><Register>R08</Register><Register>R09</Register><Register>R10</Register><Register>R11</Register><Register>R12</Register><Register>R13</Register><Register>R14</Register><Register>R15</Register><Register>R16</Register><Register>R17</Register><Register>R18</Register><Register>R19</Register><Register>R20</Register><Register>R21</Register><Register>R22</Register><Register>R23</Register><Register>R24</Register><Register>R25</Register><Register>R26</Register><Register>R27</Register><Register>R28</Register><Register>R29</Register><Register>R30</Register><Register>R31</Register></REGISTERNAMES><COM>Auto</COM><COMType>0</COMType><WATCHNUM>0</WATCHNUM><WATCHNAMES><Pane0></Pane0><Pane1></Pane1><Pane2></Pane2><Pane3></Pane3></WATCHNAMES><BreakOnTrcaeFull>0</BreakOnTrcaeFull></DEBUG_TARGET><Debugger><Triggers></Triggers></Debugger><AVRGCCPLUGIN><FILES><SOURCEFILE>uart.c</SOURCEFILE><SOURCEFILE>analog.c</SOURCEFILE><SOURCEFILE>eeprom.c</SOURCEFILE><SOURCEFILE>fc.c</SOURCEFILE><SOURCEFILE>GPS.c</SOURCEFILE><SOURCEFILE>main.c</SOURCEFILE><SOURCEFILE>menu.c</SOURCEFILE><SOURCEFILE>printf_P.c</SOURCEFILE><SOURCEFILE>rc.c</SOURCEFILE><SOURCEFILE>timer0.c</SOURCEFILE><SOURCEFILE>twimaster.c</SOURCEFILE><HEADERFILE>uart.h</HEADERFILE><HEADERFILE>_Settings.h</HEADERFILE><HEADERFILE>analog.h</HEADERFILE><HEADERFILE>fc.h</HEADERFILE><HEADERFILE>gps.h</HEADERFILE><HEADERFILE>main.h</HEADERFILE><HEADERFILE>menu.h</HEADERFILE><HEADERFILE>old_macros.h</HEADERFILE><HEADERFILE>printf_P.h</HEADERFILE><HEADERFILE>rc.h</HEADERFILE><HEADERFILE>Settings.h</HEADERFILE><HEADERFILE>timer0.h</HEADERFILE><HEADERFILE>twimaster.h</HEADERFILE></FILES><CONFIGS><CONFIG><NAME>default</NAME><USESEXTERNALMAKEFILE>NO</USESEXTERNALMAKEFILE><EXTERNALMAKEFILE></EXTERNALMAKEFILE><PART>atmega644</PART><HEX>1</HEX><LIST>1</LIST><MAP>1</MAP><OUTPUTFILENAME>Flight-Ctrl.elf</OUTPUTFILENAME><OUTPUTDIR>default\</OUTPUTDIR><ISDIRTY>1</ISDIRTY><OPTIONS><OPTION><FILE>GPS.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>analog.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>eeprom.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>fc.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>main.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>menu.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>printf_P.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>rc.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>timer0.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>twimaster.c</FILE><OPTIONLIST></OPTIONLIST></OPTION><OPTION><FILE>uart.c</FILE><OPTIONLIST></OPTIONLIST></OPTION></OPTIONS><INCDIRS/><LIBDIRS/><LIBS><LIB>libc.a</LIB><LIB>libm.a</LIB></LIBS><LINKOBJECTS/><OPTIONSFORALL>-Wall -gdwarf-2 -Wstrict-prototypes -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -DVERSION_HAUPTVERSION=0 -DVERSION_NEBENVERSION=64 -DVERSION_KOMPATIBEL=5</OPTIONSFORALL><LINKEROPTIONS></LINKEROPTIONS><SEGMENTS/></CONFIG></CONFIGS><LASTCONFIG>default</LASTCONFIG><USES_WINAVR>1</USES_WINAVR><GCC_LOC>C:\Program Files\WinAVR\bin\avr-gcc.exe</GCC_LOC><MAKE_LOC>C:\Program Files\WinAVR\utils\bin\make.exe</MAKE_LOC></AVRGCCPLUGIN><IOView><usergroups/></IOView><Files><File00000><FileId>00000</FileId><FileName>main.c</FileName><Status>1</Status></File00000><File00001><FileId>00001</FileId><FileName>uart.c</FileName><Status>1</Status></File00001><File00002><FileId>00002</FileId><FileName>menu.c</FileName><Status>1</Status></File00002><File00003><FileId>00003</FileId><FileName>timer0.c</FileName><Status>1</Status></File00003><File00004><FileId>00004</FileId><FileName>fc.c</FileName><Status>1</Status></File00004><File00005><FileId>00005</FileId><FileName>fc.h</FileName><Status>1</Status></File00005><File00006><FileId>00006</FileId><FileName>menu.h</FileName><Status>1</Status></File00006><File00007><FileId>00007</FileId><FileName>TWIMASTER.C</FileName><Status>1</Status></File00007><File00008><FileId>00008</FileId><FileName>twimaster.h</FileName><Status>1</Status></File00008><File00009><FileId>00009</FileId><FileName>uart.h</FileName><Status>1</Status></File00009><File00010><FileId>00010</FileId><FileName>_Settings.h</FileName><Status>1</Status></File00010><File00011><FileId>00011</FileId><FileName>analog.h</FileName><Status>1</Status></File00011><File00012><FileId>00012</FileId><FileName>gps.h</FileName><Status>1</Status></File00012><File00013><FileId>00013</FileId><FileName>main.h</FileName><Status>1</Status></File00013><File00014><FileId>00014</FileId><FileName>old_macros.h</FileName><Status>1</Status></File00014><File00015><FileId>00015</FileId><FileName>printf_P.h</FileName><Status>1</Status></File00015><File00016><FileId>00016</FileId><FileName>rc.h</FileName><Status>1</Status></File00016><File00017><FileId>00017</FileId><FileName>Settings.h</FileName><Status>1</Status></File00017><File00018><FileId>00018</FileId><FileName>timer0.h</FileName><Status>1</Status></File00018></Files><Events><Bookmarks></Bookmarks></Events><Trace><Filters></Filters></Trace></AVRStudio> |
/branches/MicroMag3_Nick666/V0.68d/GPS.c |
---|
0,0 → 1,30 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
signed int GPS_Nick = 0; |
signed int GPS_Roll = 0; |
long GpsAktuell_X = 0; |
long GpsAktuell_Y = 0; |
long GpsZiel_X = 0; |
long GpsZiel_Y = 0; |
void GPS_Neutral(void) |
{ |
GpsZiel_X = GpsAktuell_X; |
GpsZiel_Y = GpsAktuell_Y; |
} |
void GPS_BerechneZielrichtung(void) |
{ |
GPS_Nick = 0; |
GPS_Roll = 0; |
} |
/branches/MicroMag3_Nick666/V0.68d/License.txt |
---|
0,0 → 1,52 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten und nichtkommerziellen Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt und genannt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-profit use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet, our webpage (http://www.MikroKopter.de) must be |
// + clearly linked and named as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
/branches/MicroMag3_Nick666/V0.68d/Settings.h |
---|
--- branches/MicroMag3_Nick666/V0.68d/_Settings.h (nonexistent) |
+++ branches/MicroMag3_Nick666/V0.68d/_Settings.h (revision 715) |
@@ -0,0 +1,50 @@ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Testmodi |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define MOTOR_OFF 0 |
+#define MOTOR_TEST 0 |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Abstimmung |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define ACC_AMPLIFY 12 |
+#define FAKTOR_P 1 |
+#define FAKTOR_I 0.0001 |
+ |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Debug-Interface |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define SIO_DEBUG 1 // Soll der Debugger aktiviert sein? |
+#define MIN_DEBUG_INTERVALL 500 // in diesem Intervall werden Degugdaten ohne Aufforderung gesendet |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Sender |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+ #define K_NICK 0 |
+ #define K_ROLL 1 |
+ #define K_GAS 2 |
+ #define K_GIER 3 |
+ #define K_POTI1 4 |
+ #define K_POTI2 5 |
+ #define K_POTI3 6 |
+ #define K_POTI4 7 |
+// +++++++++++++++++++++++++++++++ |
+// + Getestete Settings: |
+// +++++++++++++++++++++++++++++++ |
+// Setting: Kamera |
+// Stick_P:3 |
+// Stick_D:0 |
+// Gyro_P: 175 |
+// Gyro_I: 175 |
+// Ki_Anteil: 10 |
+// +++++++++++++++++++++++++++++++ |
+// + Getestete Settings: |
+// +++++++++++++++++++++++++++++++ |
+// Setting: Normal |
+// Stick_P:2 |
+// Stick_D:8 |
+// Gyro_P: 80 |
+// Gyro_I: 150 |
+// Ki_Anteil: 5 |
+ |
/branches/MicroMag3_Nick666/V0.68d/analog.c |
---|
0,0 → 1,147 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az, UBat = 100; |
volatile int AdWertNick = 0, AdWertRoll = 0, AdWertGier = 0; |
volatile int AdWertAccRoll = 0,AdWertAccNick = 0,AdWertAccHoch = 0; |
volatile char MessanzahlNick = 0, MessanzahlRoll = 0, MessanzahlGier = 0; |
volatile char messanzahl_AccNick = 0, messanzahl_AccRoll = 0, messanzahl_AccHoch = 0; |
volatile long Luftdruck = 32000; |
volatile int StartLuftdruck; |
volatile unsigned int MessLuftdruck = 1023; |
unsigned char DruckOffsetSetting; |
volatile int HoeheD = 0; |
volatile char messanzahl_Druck; |
volatile int tmpLuftdruck; |
volatile unsigned int ZaehlMessungen = 0; |
//####################################################################################### |
// |
void ADC_Init(void) |
//####################################################################################### |
{ |
ADMUX = 0;//Referenz ist extern |
ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE); |
//Free Running Mode, Division Factor 128, Interrupt on |
} |
void SucheLuftruckOffset(void) |
{ |
unsigned int off; |
off = eeprom_read_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET]); |
if(off > 20) off -= 10; |
OCR0A = off; |
Delay_ms_Mess(100); |
if(MessLuftdruck < 850) off = 0; |
for(; off < 250;off++) |
{ |
OCR0A = off; |
Delay_ms_Mess(50); |
printf("."); |
if(MessLuftdruck < 900) break; |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET], off); |
DruckOffsetSetting = off; |
Delay_ms_Mess(300); |
} |
//####################################################################################### |
// |
SIGNAL(SIG_ADC) |
//####################################################################################### |
{ |
static unsigned char kanal=0,state = 0; |
static unsigned int gier1, roll1, nick1; |
ANALOG_OFF; |
switch(state++) |
{ |
case 0: |
gier1 = ADC; |
kanal = 1; |
ZaehlMessungen++; |
break; |
case 1: |
roll1 = ADC; |
kanal = 2; |
break; |
case 2: |
nick1 = ADC; |
kanal = 4; |
break; |
case 3: |
UBat = (3 * UBat + ADC / 3) / 4;//(UBat + ((ADC * 39) / 256) + 19) / 2; |
kanal = 6; |
break; |
case 4: |
Aktuell_ay = acc_neutral.Y - ADC; |
AdWertAccRoll = Aktuell_ay; |
kanal = 7; |
break; |
case 5: |
Aktuell_ax = ADC - acc_neutral.X; |
AdWertAccNick = Aktuell_ax; |
kanal = 0; |
break; |
case 6: |
if(PlatinenVersion == 10) AdWertGier = (ADC + gier1) / 2; |
else AdWertGier = ADC + gier1; |
kanal = 1; |
break; |
case 7: |
if(PlatinenVersion == 10) AdWertRoll = (ADC + roll1) / 2; |
else AdWertRoll = ADC + roll1; |
kanal = 2; |
break; |
case 8: |
if(PlatinenVersion == 10) AdWertNick = (ADC + nick1) / 2; |
else AdWertNick = ADC + nick1; |
//AdWertNick = 0; |
//AdWertNick += Poti2; |
kanal = 5; |
break; |
case 9: |
AdWertAccHoch = (signed int) ADC - acc_neutral.Z; |
AdWertAccHoch += abs(Aktuell_ay) / 4 + abs(Aktuell_ax) / 4; |
if(AdWertAccHoch > 1) |
{ |
if(acc_neutral.Z < 800) acc_neutral.Z+= 0.02; |
} |
else if(AdWertAccHoch < -1) |
{ |
if(acc_neutral.Z > 600) acc_neutral.Z-= 0.02; |
} |
messanzahl_AccHoch = 1; |
Aktuell_az = ADC; |
Mess_Integral_Hoch += AdWertAccHoch; // Integrieren |
Mess_Integral_Hoch -= Mess_Integral_Hoch / 1024; // dämfen |
kanal = 3; |
break; |
case 10: |
tmpLuftdruck += ADC; |
if(++messanzahl_Druck >= 5) |
{ |
MessLuftdruck = ADC; |
messanzahl_Druck = 0; |
HoeheD = (int)(StartLuftdruck - tmpLuftdruck - HoehenWert); // D-Anteil = neuerWert - AlterWert |
Luftdruck = (tmpLuftdruck + 3 * Luftdruck) / 4; |
HoehenWert = StartLuftdruck - Luftdruck; |
tmpLuftdruck = 0; |
} |
kanal = 0; |
state = 0; |
break; |
default: |
kanal = 0; |
state = 0; |
break; |
} |
ADMUX = kanal; |
if(state != 0) ANALOG_ON; |
} |
/branches/MicroMag3_Nick666/V0.68d/analog.h |
---|
0,0 → 1,24 |
/*####################################################################################### |
#######################################################################################*/ |
extern volatile int UBat; |
extern volatile int AdWertNick, AdWertRoll, AdWertGier; |
extern volatile int AdWertAccRoll,AdWertAccNick,AdWertAccHoch; |
extern volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az; |
extern volatile long Luftdruck; |
extern volatile char messanzahl_Druck; |
extern volatile unsigned int ZaehlMessungen; |
extern unsigned char DruckOffsetSetting; |
extern volatile int HoeheD; |
extern volatile unsigned int MessLuftdruck; |
extern volatile int StartLuftdruck; |
extern volatile char MessanzahlNick; |
unsigned int ReadADC(unsigned char adc_input); |
void ADC_Init(void); |
void SucheLuftruckOffset(void); |
#define ANALOG_OFF ADCSRA=0 |
#define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE) |
/branches/MicroMag3_Nick666/V0.68d/compass.c |
---|
0,0 → 1,245 |
/* |
Copyright 2007, Niklas Nold |
This program (files compass.c and compass.h) is free software; you can redistribute it and/or modify |
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; |
either version 3 of the License, or (at your option) any later version. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Please note: All the other files for the project "Mikrokopter" by H. Buss are under the license (license_buss.txt) published by www.mikrokopter.de |
*/ |
#include "main.h" |
struct MM3_calib_struct ee_calib EEMEM; // Reservierung im EEPROM |
struct MM3_working_struct MM3; |
struct MM3_calib_struct MM3_calib; |
//############################################################################ |
// Initialisierung |
void init_MM3(void) |
//############################################################################ |
{ |
// SPI-Schnittstelle initialisieren |
SPCR = (1<<SPIE)|(1<<SPE)|(1<<MSTR)|(1<<SPR1)|(1<<SPR0); // Interrupt an, Master, 156 kHz Oszillator |
DDRB |= (1<<PB7)|(1<<PB5)|(1<<PB2); // J8, MOSI, SCK Ausgang |
if(PlatinenVersion == 10) |
{ |
DDRD |= (1<<PD3); // PD3 als Ausgang |
PORTD &= ~(1<<PD3); // J5 permanent auf Low |
} |
else |
{ |
DDRC |= (1<<PC6); // PC6 als Ausgang |
PORTC &= ~(1<<PC6); // J9 permanent auf Low |
} |
// Init Statemachine |
MM3.AXIS = MM3_X; |
MM3.STATE = MM3_RESET; |
// Kalibrierung aus dem EEprom lesen |
eeprom_read_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Wird in der SIGNAL (SIG_OVERFLOW0) aufgerufen |
void timer0_MM3(void) |
//############################################################################ |
{ |
switch (MM3.STATE) |
{ |
case MM3_RESET: |
PORTB |= (1<<PB2); // J8 auf High, MM3 Reset |
MM3.STATE = MM3_START_TRANSFER; |
return; |
case MM3_START_TRANSFER: |
PORTB &= ~(1<<PB2); // J8 auf Low (war ~125 µs auf High) |
if (MM3.AXIS == MM3_X) SPDR = 0x31; // Schreiben ins SPDR löst automatisch SPI-Übertragung (MOSI und MISO) aus |
else if (MM3.AXIS == MM3_Y) SPDR = 0x32; // Micromag Period Select ist auf 256 (0x30) |
else SPDR = 0x33; //if (MM3.AXIS == MM3_Z) // 1: x-Achse, 2: Y-Achse, 3: Z-Achse |
MM3.DRDY = SetDelay(8); // Laut Datenblatt max. Zeit bis Messung fertig (bei PS 256 eigentlich 4 ms) |
MM3.STATE = MM3_WAIT_DRDY; |
return; |
case MM3_WAIT_DRDY: |
if (CheckDelay(MM3.DRDY)) {SPDR = 0x00;MM3.STATE = MM3_DRDY;} // Irgendwas ins SPDR, damit Übertragung ausgelöst wird, wenn Wartezeit vorbei |
return; // Jetzt gehts weiter in SIGNAL (SIG_SPI) |
} |
} |
//############################################################################ |
// SPI byte ready |
SIGNAL (SIG_SPI) |
//############################################################################ |
{ |
static char tmp; |
int wert; |
switch (MM3.STATE) |
{ |
case MM3_DRDY: // 1. Byte ist da, zwischenspeichern |
tmp = SPDR; |
SPDR = 0x00; // Übertragung von 2. Byte auslösen |
MM3.STATE = MM3_BYTE2; |
return; |
case MM3_BYTE2: // 2. Byte der entsprechenden Achse ist da |
wert = tmp; |
wert <<= 8; // 1. Byte an MSB-Stelle rücken |
wert |= SPDR; // 2. Byte dranpappen |
if(abs(wert) < Max_Axis_Value) // Spikes filtern. Zuweisung nur, wenn Max-Wert nicht überschritten |
switch (MM3.AXIS) |
{ |
case MM3_X: |
MM3.x_axis = wert; |
MM3.AXIS = MM3_Y; |
break; |
case MM3_Y: |
MM3.y_axis = wert; |
MM3.AXIS = MM3_Z; |
break; |
default: //case MM3_Z: |
MM3.z_axis = wert; |
MM3.AXIS = MM3_X; |
} |
MM3.STATE = MM3_RESET; |
} |
} |
//############################################################################ |
// Kompass kalibrieren |
void calib_MM3(void) |
//############################################################################ |
{ |
signed int x_min=0,x_max=0,y_min=0,y_max=0,z_min=0,z_max=0; |
uint8_t measurement=50,beeper=0; |
unsigned int timer; |
GRN_ON; |
ROT_OFF; |
while (measurement) |
{ |
//H_earth = MM3.x_axis*MM3.x_axis + MM3.y_axis*MM3.y_axis + MM3.z_axis*MM3.z_axis; |
if (MM3.x_axis > x_max) x_max = MM3.x_axis; |
else if (MM3.x_axis < x_min) x_min = MM3.x_axis; |
if (MM3.y_axis > y_max) y_max = MM3.y_axis; |
else if (MM3.y_axis < y_min) y_min = MM3.y_axis; |
if (MM3.z_axis > z_max) z_max = MM3.z_axis; |
else if (MM3.z_axis < z_min) z_min = MM3.z_axis; |
if (!beeper) |
{ |
ROT_FLASH; |
GRN_FLASH; |
beeptime = 50; |
beeper = 50; |
} |
beeper--; |
// Schleife mit 100 Hz |
timer = SetDelay(10); |
while(!CheckDelay(timer)); |
// Wenn Gas zurück genommen wird, Kalibrierung mit 1/2 Sekunde Verzögerung beenden |
if (PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] < 100) measurement--; |
} |
// Wertebereich der Achsen |
MM3_calib.X_range = (x_max - x_min); |
MM3_calib.Y_range = (y_max - y_min); |
MM3_calib.Z_range = (z_max - z_min); |
// Offset der Achsen |
MM3_calib.X_off = (x_max + x_min) /2; |
MM3_calib.Y_off = (y_max + y_min) /2; |
MM3_calib.Z_off = (z_max + z_min) /2; |
// und im EEProm abspeichern |
eeprom_write_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Neigungskompensierung und Berechnung der Ausrichtung |
int heading_MM3(void) |
//############################################################################ |
{ |
signed int sin_nick, cos_nick, sin_roll, cos_roll; |
long x_axis, y_axis, z_axis; |
long x_corr, y_corr; |
signed int heading; |
int8_t nicktilt,rolltilt; |
unsigned int div_faktor; |
div_faktor = (uint16_t)EE_Parameter.UserParam3 *8; |
// Berechung von sinus und cosinus |
nicktilt = (IntegralNick/div_faktor); |
sin_nick = sin_i(nicktilt); |
cos_nick = cos_i(nicktilt); |
rolltilt = (IntegralRoll/div_faktor); |
sin_roll = sin_i(rolltilt); |
cos_roll = cos_i(rolltilt); |
// Offset |
x_axis = (MM3.x_axis - MM3_calib.X_off); |
y_axis = (MM3.y_axis - MM3_calib.Y_off); |
z_axis = (MM3.z_axis - MM3_calib.Z_off); |
/* |
// Normierung Wertebereich |
if ((MM3_calib.X_range > MM3_calib.Y_range) && (MM3_calib.X_range > MM3_calib.Z_range)) |
{ |
y_axis = (y_axis * MM3_calib.X_range) / MM3_calib.Y_range; |
z_axis = (z_axis * MM3_calib.X_range) / MM3_calib.Z_range; |
} |
else if ((MM3_calib.Y_range > MM3_calib.X_range) && (MM3_calib.Y_range > MM3_calib.Z_range)) |
{ |
x_axis = (x_axis * MM3_calib.Y_range) / MM3_calib.X_range; |
z_axis = (z_axis * MM3_calib.Y_range) / MM3_calib.Z_range; |
} |
else //if ((MM3_calib.Z_range > MM3_calib.X_range) && (MM3_calib.Z_range > MM3_calib.Y_range)) |
{ |
x_axis = (x_axis * MM3_calib.Z_range) / MM3_calib.X_range; |
y_axis = (y_axis * MM3_calib.Z_range) / MM3_calib.Y_range; |
} |
*/ |
// Neigungskompensierung |
x_corr = x_axis * cos_nick; |
x_corr += (y_axis * sin_roll * sin_nick) /1024; |
x_corr -= (z_axis * cos_roll * sin_nick) /1024; |
x_corr /= 1024; |
y_corr = y_axis * cos_roll; |
y_corr += z_axis * sin_roll; |
y_corr /= 16; |
// Winkelberechnung |
heading = atan2_i(x_corr, y_corr); |
// Skalieren von +-180° auf 0-360° |
if (heading < 0) heading = -heading; |
else heading = 360 - heading; |
return (heading); |
} |
/branches/MicroMag3_Nick666/V0.68d/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; |
int16_t X_range; |
int16_t Y_range; |
int16_t Z_range; |
}; |
extern struct MM3_working_struct MM3; |
extern struct MM3_calib_struct MM3_calib; |
void init_MM3(void); |
void timer0_MM3(void); |
void calib_MM3(void); |
int heading_MM3(void); |
#define Max_Axis_Value 500 |
// Die Werte der Statemachine |
#define MM3_RESET 0 |
#define MM3_START_TRANSFER 1 |
#define MM3_WAIT_DRDY 2 |
#define MM3_DRDY 3 |
#define MM3_BYTE2 4 |
#define MM3_X 5 |
#define MM3_Y 6 |
#define MM3_Z 7 |
#define MM3_TILT 8 |
#define MM3_IDLE 9 |
/branches/MicroMag3_Nick666/V0.68d/eeprom.c |
---|
0,0 → 1,182 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Konstanten |
// + 0-250 -> normale Werte |
// + 251 -> Poti1 |
// + 252 -> Poti2 |
// + 253 -> Poti3 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
void DefaultKonstanten1(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV | CFG_KOMPASS_FIX;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-250 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 30; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 30; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 4; // Wert : 0-50 |
EE_Parameter.Stick_P = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 8; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 12; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 30; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 128; // Wert : 0-250 |
EE_Parameter.Gyro_P = 80; // Wert : 0-250 |
EE_Parameter.Gyro_I = 150; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 32; |
EE_Parameter.UserParam1 = 32 * 4; //zur freien Verwendung |
EE_Parameter.UserParam2 = 0; //zur freien Verwendung |
EE_Parameter.UserParam3 = 0; //zur freien Verwendung |
EE_Parameter.UserParam4 = 0; //zur freien Verwendung |
EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
EE_Parameter.LoopGasLimit = 50; |
EE_Parameter.LoopThreshold = 90; // Wert: 0-250 Schwelle für Stickausschlag |
EE_Parameter.LoopHysterese = 50; |
EE_Parameter.LoopConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
EE_Parameter.AchsKopplung1 = 90; |
EE_Parameter.AchsGegenKopplung1 = 5; |
EE_Parameter.WinkelUmschlagNick = 100; |
EE_Parameter.WinkelUmschlagRoll = 100; |
EE_Parameter.GyroAccAbgleich = 16; // 1/k |
EE_Parameter.Driftkomp = 4; |
EE_Parameter.DynamicStability = 100; |
memcpy(EE_Parameter.Name, "Sport\0", 12); |
} |
void DefaultKonstanten2(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-250 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 30; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 30; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 3; // Wert : 0-50 |
EE_Parameter.Stick_P = 3; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 4; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 6; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 30; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 128; // Wert : 0-250 |
EE_Parameter.Gyro_P = 80; // Wert : 0-250 |
EE_Parameter.Gyro_I = 120; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 32; |
EE_Parameter.UserParam1 = 20 * 4; // zur freien Verwendung |
EE_Parameter.UserParam2 = 0; // zur freien Verwendung |
EE_Parameter.UserParam3 = 0; // zur freien Verwendung |
EE_Parameter.UserParam4 = 0; // zur freien Verwendung |
EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
EE_Parameter.LoopGasLimit = 50; |
EE_Parameter.LoopThreshold = 90; // Wert: 0-250 Schwelle für Stickausschlag |
EE_Parameter.LoopHysterese = 50; |
EE_Parameter.LoopConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts |
EE_Parameter.AchsKopplung1 = 90; // Faktor, mit dem Gier die Achsen Roll und Nick verkoppelt |
EE_Parameter.AchsGegenKopplung1 = 5; |
EE_Parameter.WinkelUmschlagNick = 100; |
EE_Parameter.WinkelUmschlagRoll = 100; |
EE_Parameter.GyroAccAbgleich = 32; // 1/k |
EE_Parameter.Driftkomp = 4; |
EE_Parameter.DynamicStability = 75; |
memcpy(EE_Parameter.Name, "Normal\0", 12); |
} |
void DefaultKonstanten3(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = CFG_DREHRATEN_BEGRENZER | CFG_ACHSENKOPPLUNG_AKTIV;///*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-250 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 30; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 30; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 2; // Wert : 0-50 |
EE_Parameter.Stick_P = 2; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 4; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 6; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 30; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 128; // Wert : 0-250 |
EE_Parameter.Gyro_P = 100; // Wert : 0-250 |
EE_Parameter.Gyro_I = 140; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 94; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 16; |
EE_Parameter.UserParam1 = 20 * 4; // zur freien Verwendung |
EE_Parameter.UserParam2 = 0; // zur freien Verwendung |
EE_Parameter.UserParam3 = 0; // zur freien Verwendung |
EE_Parameter.UserParam4 = 0; // zur freien Verwendung |
EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
EE_Parameter.LoopGasLimit = 50; |
EE_Parameter.LoopThreshold = 90; // Wert: 0-250 Schwelle für Stickausschlag |
EE_Parameter.LoopHysterese = 50; |
EE_Parameter.LoopConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts |
EE_Parameter.AchsKopplung1 = 90; // Faktor, mit dem Gier die Achsen Roll und Nick verkoppelt |
EE_Parameter.AchsGegenKopplung1 = 5; |
EE_Parameter.WinkelUmschlagNick = 100; |
EE_Parameter.WinkelUmschlagRoll = 100; |
EE_Parameter.GyroAccAbgleich = 32; // 1/k |
EE_Parameter.Driftkomp = 4; |
EE_Parameter.DynamicStability = 50; |
memcpy(EE_Parameter.Name, "Beginner\0", 12); |
} |
/branches/MicroMag3_Nick666/V0.68d/fc.c |
---|
0,0 → 1,1132 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten (nicht-kommerziellen) Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-commercial use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
// + clearly linked as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
#include "eeprom.c" |
unsigned char h,m,s; |
volatile unsigned int I2CTimeout = 100; |
int MesswertNick,MesswertRoll,MesswertGier; |
int AdNeutralNick = 0,AdNeutralRoll = 0,AdNeutralGier = 0,StartNeutralRoll = 0,StartNeutralNick = 0; |
int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
long IntegralNick = 0,IntegralNick2 = 0; |
long IntegralRoll = 0,IntegralRoll2 = 0; |
long IntegralAccNick = 0,IntegralAccRoll = 0,IntegralAccZ = 0; |
long Integral_Gier = 0; |
long Mess_IntegralNick = 0,Mess_IntegralNick2 = 0; |
long Mess_IntegralRoll = 0,Mess_IntegralRoll2 = 0; |
long Mess_Integral_Gier = 0,Mess_Integral_Gier2 = 0; |
long MittelIntegralNick,MittelIntegralRoll,MittelIntegralNick2,MittelIntegralRoll2; |
volatile long Mess_Integral_Hoch = 0; |
int KompassValue = 0; |
int KompassStartwert = 0; |
int KompassRichtung = 0; |
unsigned char MAX_GAS,MIN_GAS; |
unsigned char Notlandung = 0; |
unsigned char HoehenReglerAktiv = 0; |
long Umschlag180Nick = 250000L, Umschlag180Roll = 250000L; |
float GyroFaktor; |
float IntegralFaktor; |
volatile int DiffNick,DiffRoll; |
int Poti1 = 0, Poti2 = 0, Poti3 = 0, Poti4 = 0; |
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links, Count; |
unsigned char MotorWert[5]; |
volatile unsigned char SenderOkay = 0; |
int StickNick = 0,StickRoll = 0,StickGier = 0,StickGas = 0; |
char MotorenEin = 0; |
int HoehenWert = 0; |
int SollHoehe = 0; |
int LageKorrekturRoll = 0,LageKorrekturNick = 0; |
float Ki = FAKTOR_I; |
unsigned char Looping_Nick = 0,Looping_Roll = 0; |
unsigned char Looping_Links = 0, Looping_Rechts = 0, Looping_Unten = 0, Looping_Oben = 0; |
unsigned char Parameter_Luftdruck_D = 48; // Wert : 0-250 |
unsigned char Parameter_MaxHoehe = 251; // Wert : 0-250 |
unsigned char Parameter_Hoehe_P = 16; // Wert : 0-32 |
unsigned char Parameter_Hoehe_ACC_Wirkung = 58; // Wert : 0-250 |
unsigned char Parameter_KompassWirkung = 64; // Wert : 0-250 |
unsigned char Parameter_Gyro_P = 150; // Wert : 10-250 |
unsigned char Parameter_Gyro_I = 150; // Wert : 0-250 |
unsigned char Parameter_Gier_P = 2; // Wert : 1-20 |
unsigned char Parameter_I_Faktor = 10; // Wert : 1-20 |
unsigned char Parameter_UserParam1 = 0; |
unsigned char Parameter_UserParam2 = 0; |
unsigned char Parameter_UserParam3 = 0; |
unsigned char Parameter_UserParam4 = 0; |
unsigned char Parameter_UserParam5 = 0; |
unsigned char Parameter_UserParam6 = 0; |
unsigned char Parameter_UserParam7 = 0; |
unsigned char Parameter_UserParam8 = 0; |
unsigned char Parameter_ServoNickControl = 100; |
unsigned char Parameter_LoopGasLimit = 70; |
unsigned char Parameter_AchsKopplung1 = 0; |
unsigned char Parameter_AchsGegenKopplung1 = 0; |
unsigned char Parameter_DynamicStability = 100; |
signed int ExternStickNick = 0,ExternStickRoll = 0,ExternStickGier = 0, ExternHoehenValue = -20; |
int MaxStickNick = 0,MaxStickRoll = 0; |
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) |
//############################################################################ |
{ |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
CalibrierMittelwert(); |
Delay_ms_Mess(100); |
CalibrierMittelwert(); |
acc_neutral.X = abs(Mittelwert_AccNick) / ACC_AMPLIFY; |
acc_neutral.Y = abs(Mittelwert_AccRoll) / ACC_AMPLIFY; |
acc_neutral.Z = Aktuell_az; |
eeprom_write_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
} |
//############################################################################ |
// Nullwerte ermitteln |
void SetNeutral(void) |
//############################################################################ |
{ |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
AdNeutralNick = 0; |
AdNeutralRoll = 0; |
AdNeutralGier = 0; |
Parameter_AchsKopplung1 = 0; |
Parameter_AchsGegenKopplung1 = 0; |
CalibrierMittelwert(); |
Delay_ms_Mess(100); |
CalibrierMittelwert(); |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
AdNeutralNick= AdWertNick; |
AdNeutralRoll= AdWertRoll; |
AdNeutralGier= AdWertGier; |
StartNeutralRoll = AdNeutralRoll; |
StartNeutralNick = AdNeutralNick; |
eeprom_read_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
Mess_IntegralNick = 0; |
Mess_IntegralNick2 = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralRoll2 = 0; |
Mess_Integral_Gier = 0; |
MesswertNick = 0; |
MesswertRoll = 0; |
MesswertGier = 0; |
StartLuftdruck = Luftdruck; |
HoeheD = 0; |
Mess_Integral_Hoch = 0; |
KompassStartwert = KompassValue; |
GPS_Neutral(); |
beeptime = 50; |
Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagRoll * 2500L; |
ExternHoehenValue = 0; |
} |
//############################################################################ |
// Bearbeitet die Messwerte |
void Mittelwert(void) |
//############################################################################ |
{ |
static signed long tmpl,tmpl2; |
MesswertGier = (signed int) AdNeutralGier - AdWertGier; |
MesswertRoll = (signed int) AdWertRoll - AdNeutralRoll; |
MesswertNick = (signed int) AdWertNick - AdNeutralNick; |
//DebugOut.Analog[26] = MesswertNick; |
DebugOut.Analog[28] = MesswertRoll; |
// Beschleunigungssensor ++++++++++++++++++++++++++++++++++++++++++++++++ |
Mittelwert_AccNick = ((long)Mittelwert_AccNick * 1 + ((ACC_AMPLIFY * (long)AdWertAccNick))) / 2L; |
Mittelwert_AccRoll = ((long)Mittelwert_AccRoll * 1 + ((ACC_AMPLIFY * (long)AdWertAccRoll))) / 2L; |
Mittelwert_AccHoch = ((long)Mittelwert_AccHoch * 1 + ((long)AdWertAccHoch)) / 2L; |
IntegralAccNick += ACC_AMPLIFY * AdWertAccNick; |
IntegralAccRoll += ACC_AMPLIFY * AdWertAccRoll; |
IntegralAccZ += Aktuell_az - acc_neutral.Z; |
// Gier ++++++++++++++++++++++++++++++++++++++++++++++++ |
Mess_Integral_Gier += MesswertGier; |
Mess_Integral_Gier2 += MesswertGier; |
// Kopplungsanteil +++++++++++++++++++++++++++++++++++++ |
if(!Looping_Nick && !Looping_Roll && (EE_Parameter.GlobalConfig & CFG_ACHSENKOPPLUNG_AKTIV)) |
{ |
tmpl = Mess_IntegralNick / 4096L; |
tmpl *= MesswertGier; |
tmpl *= Parameter_AchsKopplung1; //125 |
tmpl /= 2048L; |
tmpl2 = Mess_IntegralRoll / 4096L; |
tmpl2 *= MesswertGier; |
tmpl2 *= Parameter_AchsKopplung1; |
tmpl2 /= 2048L; |
} |
else tmpl = tmpl2 = 0; |
// Roll ++++++++++++++++++++++++++++++++++++++++++++++++ |
MesswertRoll += tmpl; |
MesswertRoll += (tmpl2*Parameter_AchsGegenKopplung1)/512L; //109 |
Mess_IntegralRoll2 += MesswertRoll; |
Mess_IntegralRoll += MesswertRoll - LageKorrekturRoll; |
if(Mess_IntegralRoll > Umschlag180Roll) |
{ |
Mess_IntegralRoll = -(Umschlag180Roll - 10000L); |
Mess_IntegralRoll2 = Mess_IntegralRoll; |
} |
if(Mess_IntegralRoll <-Umschlag180Roll) |
{ |
Mess_IntegralRoll = (Umschlag180Roll - 10000L); |
Mess_IntegralRoll2 = Mess_IntegralRoll; |
} |
if(AdWertRoll < 15) MesswertRoll = -1000; |
if(AdWertRoll < 7) MesswertRoll = -2000; |
if(PlatinenVersion == 10) |
{ |
if(AdWertRoll > 1010) MesswertRoll = +1000; |
if(AdWertRoll > 1017) MesswertRoll = +2000; |
} |
else |
{ |
if(AdWertRoll > 2020) MesswertRoll = +1000; |
if(AdWertRoll > 2034) MesswertRoll = +2000; |
} |
// Nick ++++++++++++++++++++++++++++++++++++++++++++++++ |
MesswertNick -= tmpl2; |
MesswertNick -= (tmpl*Parameter_AchsGegenKopplung1)/512L; |
Mess_IntegralNick2 += MesswertNick; |
Mess_IntegralNick += MesswertNick - LageKorrekturNick; |
if(Mess_IntegralNick > Umschlag180Nick) |
{ |
Mess_IntegralNick = -(Umschlag180Nick - 10000L); |
Mess_IntegralNick2 = Mess_IntegralNick; |
} |
if(Mess_IntegralNick <-Umschlag180Nick) |
{ |
Mess_IntegralNick = (Umschlag180Nick - 10000L); |
Mess_IntegralNick2 = Mess_IntegralNick; |
} |
if(AdWertNick < 15) MesswertNick = -1000; |
if(AdWertNick < 7) MesswertNick = -2000; |
if(PlatinenVersion == 10) |
{ |
if(AdWertNick > 1010) MesswertNick = +1000; |
if(AdWertNick > 1017) MesswertNick = +2000; |
} |
else |
{ |
if(AdWertNick > 2020) MesswertNick = +1000; |
if(AdWertNick > 2034) MesswertNick = +2000; |
} |
//++++++++++++++++++++++++++++++++++++++++++++++++ |
// ADC einschalten |
ANALOG_ON; |
//++++++++++++++++++++++++++++++++++++++++++++++++ |
Integral_Gier = Mess_Integral_Gier; |
IntegralNick = Mess_IntegralNick; |
IntegralRoll = Mess_IntegralRoll; |
IntegralNick2 = Mess_IntegralNick2; |
IntegralRoll2 = Mess_IntegralRoll2; |
if(EE_Parameter.GlobalConfig & CFG_DREHRATEN_BEGRENZER && !Looping_Nick && !Looping_Roll) |
{ |
if(MesswertNick > 200) MesswertNick += 4 * (MesswertNick - 200); |
else if(MesswertNick < -200) MesswertNick += 4 * (MesswertNick + 200); |
if(MesswertRoll > 200) MesswertRoll += 4 * (MesswertRoll - 200); |
else if(MesswertRoll < -200) MesswertRoll += 4 * (MesswertRoll + 200); |
} |
if(Poti1 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110) Poti1++; else if(Poti1 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110 && Poti1) Poti1--; |
if(Poti2 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110) Poti2++; else if(Poti2 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110 && Poti2) Poti2--; |
if(Poti3 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110) Poti3++; else if(Poti3 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110 && Poti3) Poti3--; |
if(Poti4 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110) Poti4++; else if(Poti4 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110 && Poti4) Poti4--; |
if(Poti1 < 0) Poti1 = 0; else if(Poti1 > 255) Poti1 = 255; |
if(Poti2 < 0) Poti2 = 0; else if(Poti2 > 255) Poti2 = 255; |
if(Poti3 < 0) Poti3 = 0; else if(Poti3 > 255) Poti3 = 255; |
if(Poti4 < 0) Poti4 = 0; else if(Poti4 > 255) Poti4 = 255; |
} |
//############################################################################ |
// Messwerte beim Ermitteln der Nullage |
void CalibrierMittelwert(void) |
//############################################################################ |
{ |
// ADC auschalten, damit die Werte sich nicht während der Berechnung ändern |
ANALOG_OFF; |
MesswertNick = AdWertNick; |
MesswertRoll = AdWertRoll; |
MesswertGier = AdWertGier; |
Mittelwert_AccNick = ACC_AMPLIFY * (long)AdWertAccNick; |
Mittelwert_AccRoll = ACC_AMPLIFY * (long)AdWertAccRoll; |
Mittelwert_AccHoch = (long)AdWertAccHoch; |
// ADC einschalten |
ANALOG_ON; |
if(Poti1 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110) Poti1++; else if(Poti1 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110 && Poti1) Poti1--; |
if(Poti2 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110) Poti2++; else if(Poti2 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110 && Poti2) Poti2--; |
if(Poti3 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110) Poti3++; else if(Poti3 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110 && Poti3) Poti3--; |
if(Poti4 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110) Poti4++; else if(Poti4 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110 && Poti4) Poti4--; |
if(Poti1 < 0) Poti1 = 0; else if(Poti1 > 255) Poti1 = 255; |
if(Poti2 < 0) Poti2 = 0; else if(Poti2 > 255) Poti2 = 255; |
if(Poti3 < 0) Poti3 = 0; else if(Poti3 > 255) Poti3 = 255; |
if(Poti4 < 0) Poti4 = 0; else if(Poti4 > 255) Poti4 = 255; |
Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
} |
//############################################################################ |
// Senden der Motorwerte per I2C-Bus |
void SendMotorData(void) |
//############################################################################ |
{ |
if(MOTOR_OFF || !MotorenEin) |
{ |
Motor_Hinten = 0; |
Motor_Vorne = 0; |
Motor_Rechts = 0; |
Motor_Links = 0; |
if(MotorTest[0]) Motor_Vorne = MotorTest[0]; |
if(MotorTest[1]) Motor_Hinten = MotorTest[1]; |
if(MotorTest[2]) Motor_Links = MotorTest[2]; |
if(MotorTest[3]) Motor_Rechts = MotorTest[3]; |
} |
DebugOut.Analog[12] = Motor_Vorne; |
DebugOut.Analog[13] = Motor_Hinten; |
DebugOut.Analog[14] = Motor_Links; |
DebugOut.Analog[15] = Motor_Rechts; |
//Start I2C Interrupt Mode |
twi_state = 0; |
motor = 0; |
i2c_start(); |
} |
//############################################################################ |
// Trägt ggf. das Poti als Parameter ein |
void ParameterZuordnung(void) |
//############################################################################ |
{ |
#define CHK_POTI(b,a,min,max) { if(a > 250) { if(a == 251) b = Poti1; else if(a == 252) b = Poti2; else if(a == 253) b = Poti3; else if(a == 254) b = Poti4;} else b = a; if(b <= min) b = min; else if(b >= max) b = max;} |
CHK_POTI(Parameter_MaxHoehe,EE_Parameter.MaxHoehe,0,255); |
CHK_POTI(Parameter_Luftdruck_D,EE_Parameter.Luftdruck_D,0,100); |
CHK_POTI(Parameter_Hoehe_P,EE_Parameter.Hoehe_P,0,100); |
CHK_POTI(Parameter_Hoehe_ACC_Wirkung,EE_Parameter.Hoehe_ACC_Wirkung,0,255); |
CHK_POTI(Parameter_KompassWirkung,EE_Parameter.KompassWirkung,0,255); |
CHK_POTI(Parameter_Gyro_P,EE_Parameter.Gyro_P,10,255); |
CHK_POTI(Parameter_Gyro_I,EE_Parameter.Gyro_I,0,255); |
CHK_POTI(Parameter_I_Faktor,EE_Parameter.I_Faktor,0,255); |
CHK_POTI(Parameter_UserParam1,EE_Parameter.UserParam1,0,255); |
CHK_POTI(Parameter_UserParam2,EE_Parameter.UserParam2,0,255); |
CHK_POTI(Parameter_UserParam3,EE_Parameter.UserParam3,0,255); |
CHK_POTI(Parameter_UserParam4,EE_Parameter.UserParam4,0,255); |
CHK_POTI(Parameter_UserParam5,EE_Parameter.UserParam5,0,255); |
CHK_POTI(Parameter_UserParam6,EE_Parameter.UserParam6,0,255); |
CHK_POTI(Parameter_UserParam7,EE_Parameter.UserParam7,0,255); |
CHK_POTI(Parameter_UserParam8,EE_Parameter.UserParam8,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
CHK_POTI(Parameter_LoopGasLimit,EE_Parameter.LoopGasLimit,0,255); |
CHK_POTI(Parameter_AchsKopplung1, EE_Parameter.AchsKopplung1,0,255); |
CHK_POTI(Parameter_AchsGegenKopplung1,EE_Parameter.AchsGegenKopplung1,0,255); |
CHK_POTI(Parameter_DynamicStability,EE_Parameter.DynamicStability,0,255); |
Ki = (float)Parameter_I_Faktor * 0.0001; |
MAX_GAS = EE_Parameter.Gas_Max; |
MIN_GAS = EE_Parameter.Gas_Min; |
} |
//############################################################################ |
// |
void MotorRegler(void) |
//############################################################################ |
{ |
int motorwert,pd_ergebnis,h,tmp_int; |
int GierMischanteil,GasMischanteil; |
static long SummeNick=0,SummeRoll=0; |
static long sollGier = 0,tmp_long,tmp_long2; |
static long IntegralFehlerNick = 0; |
static long IntegralFehlerRoll = 0; |
static unsigned int RcLostTimer; |
static unsigned char delay_neutral = 0; |
static unsigned char delay_einschalten = 0,delay_ausschalten = 0; |
static unsigned int modell_fliegt = 0; |
static int hoehenregler = 0; |
static char TimerWerteausgabe = 0; |
static char NeueKompassRichtungMerken = 1; |
static long ausgleichNick, ausgleichRoll; |
Mittelwert(); |
GRN_ON; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gaswert ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GasMischanteil = StickGas; |
if(GasMischanteil < 0) GasMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang schlecht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay < 100) |
{ |
if(!PcZugriff) |
{ |
if(BeepMuster == 0xffff) |
{ |
beeptime = 15000; |
BeepMuster = 0x0c00; |
} |
} |
if(RcLostTimer) RcLostTimer--; |
else |
{ |
MotorenEin = 0; |
Notlandung = 0; |
} |
ROT_ON; |
if(modell_fliegt > 2000) // wahrscheinlich in der Luft --> langsam absenken |
{ |
GasMischanteil = EE_Parameter.NotGas; |
Notlandung = 1; |
PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] = 0; |
PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] = 0; |
PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] = 0; |
} |
else MotorenEin = 0; |
} |
else |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang gut |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay > 140) |
{ |
Notlandung = 0; |
RcLostTimer = EE_Parameter.NotGasZeit * 50; |
if(GasMischanteil > 40) |
{ |
if(modell_fliegt < 0xffff) modell_fliegt++; |
} |
if((modell_fliegt < 200) || (GasMischanteil < 40)) |
{ |
SummeNick = 0; |
SummeRoll = 0; |
Mess_Integral_Gier = 0; |
Mess_Integral_Gier2 = 0; |
} |
if((PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 80) && MotorenEin == 0) |
{ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// auf Nullwerte kalibrieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) // Neutralwerte |
{ |
if(++delay_neutral > 200) // nicht sofort |
{ |
GRN_OFF; |
MotorenEin = 0; |
delay_neutral = 0; |
modell_fliegt = 0; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70 || abs(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]) > 70) |
{ |
unsigned char setting=1; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < 70) setting = 1; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 2; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 3; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] <-70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 4; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] <-70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < 70) setting = 5; |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], setting); // aktiven Datensatz merken |
} |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
SetNeutral(); |
Piep(GetActiveParamSetNumber()); |
} |
} |
else delay_neutral = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gas ist unten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] < 35-120) |
{ |
// Starten |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -75) |
{ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Einschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(++delay_einschalten > 200) |
{ |
delay_einschalten = 200; |
modell_fliegt = 1; |
MotorenEin = 1; |
sollGier = 0; |
Mess_Integral_Gier = 0; |
Mess_Integral_Gier2 = 0; |
Mess_IntegralNick = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralNick2 = IntegralNick; |
Mess_IntegralRoll2 = IntegralRoll; |
SummeNick = 0; |
SummeRoll = 0; |
} |
} |
else delay_einschalten = 0; |
//Auf Neutralwerte setzen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Auschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) |
{ |
if(++delay_ausschalten > 200) // nicht sofort |
{ |
MotorenEin = 0; |
delay_ausschalten = 200; |
modell_fliegt = 0; |
} |
} |
else delay_ausschalten = 0; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// neue Werte von der Funke |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!NewPpmData-- || Notlandung) |
{ |
int tmp_int; |
ParameterZuordnung(); |
StickNick = (StickNick * 3 + PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] * EE_Parameter.Stick_P) / 4; |
StickNick += PPM_diff[EE_Parameter.Kanalbelegung[K_NICK]] * EE_Parameter.Stick_D; |
StickRoll = (StickRoll * 3 + PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] * EE_Parameter.Stick_P) / 4; |
StickRoll += PPM_diff[EE_Parameter.Kanalbelegung[K_ROLL]] * EE_Parameter.Stick_D; |
StickGier = -PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]; |
StickGas = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + 120; |
if(abs(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]]) > MaxStickNick) |
MaxStickNick = abs(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]]); else MaxStickNick--; |
if(abs(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]) > MaxStickRoll) |
MaxStickRoll = abs(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]); else MaxStickRoll--; |
if(Notlandung) {MaxStickNick = 0; MaxStickRoll = 0;} |
GyroFaktor = ((float)Parameter_Gyro_P + 10.0) / 256.0; |
IntegralFaktor = ((float) Parameter_Gyro_I) / 44000; |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//+ Digitale Steuerung per DubWise |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define KEY_VALUE (Parameter_UserParam1 * 4) //(Poti3 * 8) |
if(DubWiseKeys[1]) beeptime = 10; |
if(DubWiseKeys[1] & DUB_KEY_UP) tmp_int = KEY_VALUE; else |
if(DubWiseKeys[1] & DUB_KEY_DOWN) tmp_int = -KEY_VALUE; else tmp_int = 0; |
ExternStickNick = (ExternStickNick * 7 + tmp_int) / 8; |
if(DubWiseKeys[1] & DUB_KEY_LEFT) tmp_int = KEY_VALUE; else |
if(DubWiseKeys[1] & DUB_KEY_RIGHT) tmp_int = -KEY_VALUE; else tmp_int = 0; |
ExternStickRoll = (ExternStickRoll * 7 + tmp_int) / 8; |
if(DubWiseKeys[0] & 8) ExternStickGier = 50;else |
if(DubWiseKeys[0] & 4) ExternStickGier =-50;else ExternStickGier = 0; |
if(DubWiseKeys[0] & 2) ExternHoehenValue++; |
if(DubWiseKeys[0] & 16) ExternHoehenValue--; |
StickNick += ExternStickNick / 8; |
StickRoll += ExternStickRoll / 8; |
StickGier += ExternStickGier; |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//+ Analoge Steuerung per Seriell |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(ExternControl.Config & 0x01 && Parameter_UserParam1 > 128) |
{ |
StickNick += (int) ExternControl.Nick * (int) EE_Parameter.Stick_P; |
StickRoll += (int) ExternControl.Roll * (int) EE_Parameter.Stick_P; |
StickGier += ExternControl.Gier; |
ExternHoehenValue = (int) ExternControl.Hight * (int)EE_Parameter.Hoehe_Verstaerkung; |
if(ExternControl.Gas < StickGas) StickGas = ExternControl.Gas; |
} |
if(EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) IntegralFaktor = 0; |
if(GyroFaktor < 0) GyroFaktor = 0; |
if(IntegralFaktor < 0) IntegralFaktor = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Looping? |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if((PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_LINKS) Looping_Links = 1; |
else |
{ |
{ |
if((PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < (EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese))) Looping_Links = 0; |
} |
} |
if((PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < -EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_RECHTS) Looping_Rechts = 1; |
else |
{ |
if(Looping_Rechts) // Hysterese |
{ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > -(EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese)) Looping_Rechts = 0; |
} |
} |
if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_OBEN) Looping_Oben = 1; |
else |
{ |
if(Looping_Oben) // Hysterese |
{ |
if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < (EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese))) Looping_Oben = 0; |
} |
} |
if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < -EE_Parameter.LoopThreshold) && EE_Parameter.LoopConfig & CFG_LOOP_UNTEN) Looping_Unten = 1; |
else |
{ |
if(Looping_Unten) // Hysterese |
{ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > -(EE_Parameter.LoopThreshold - EE_Parameter.LoopHysterese)) Looping_Unten = 0; |
} |
} |
if(Looping_Links || Looping_Rechts) Looping_Roll = 1; else Looping_Roll = 0; |
if(Looping_Oben || Looping_Unten) {Looping_Nick = 1; Looping_Roll = 0; Looping_Links = 0; Looping_Rechts = 0;} else Looping_Nick = 0; |
} // Ende neue Funken-Werte |
if(Looping_Roll) beeptime = 100; |
if(Looping_Roll || Looping_Nick) |
{ |
if(GasMischanteil > EE_Parameter.LoopGasLimit) GasMischanteil = EE_Parameter.LoopGasLimit; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Bei Empfangsausfall im Flug |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(Notlandung) |
{ |
StickGier = 0; |
StickNick = 0; |
StickRoll = 0; |
GyroFaktor = 0.1; |
IntegralFaktor = 0.005; |
Looping_Roll = 0; |
Looping_Nick = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Integrale auf ACC-Signal abgleichen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define ABGLEICH_ANZAHL 256L |
MittelIntegralNick += IntegralNick; // Für die Mittelwertbildung aufsummieren |
MittelIntegralRoll += IntegralRoll; |
MittelIntegralNick2 += IntegralNick2; |
MittelIntegralRoll2 += IntegralRoll2; |
if(Looping_Nick || Looping_Roll) |
{ |
IntegralAccNick = 0; |
IntegralAccRoll = 0; |
MittelIntegralNick = 0; |
MittelIntegralRoll = 0; |
MittelIntegralNick2 = 0; |
MittelIntegralRoll2 = 0; |
Mess_IntegralNick2 = Mess_IntegralNick; |
Mess_IntegralRoll2 = Mess_IntegralRoll; |
ZaehlMessungen = 0; |
LageKorrekturNick = 0; |
LageKorrekturRoll = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!Looping_Nick && !Looping_Roll) |
{ |
long tmp_long, tmp_long2; |
tmp_long = (long)(IntegralNick / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccNick); |
tmp_long2 = (long)(IntegralRoll / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccRoll); |
tmp_long /= 16; |
tmp_long2 /= 16; |
if((MaxStickNick > 15) || (MaxStickRoll > 15)) |
{ |
tmp_long /= 3; |
tmp_long2 /= 3; |
} |
if(abs(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]) > 25) |
{ |
tmp_long /= 3; |
tmp_long2 /= 3; |
} |
#define AUSGLEICH 32 |
if(tmp_long > AUSGLEICH) tmp_long = AUSGLEICH; |
if(tmp_long < -AUSGLEICH) tmp_long =-AUSGLEICH; |
if(tmp_long2 > AUSGLEICH) tmp_long2 = AUSGLEICH; |
if(tmp_long2 <-AUSGLEICH) tmp_long2 =-AUSGLEICH; |
Mess_IntegralNick -= tmp_long; |
Mess_IntegralRoll -= tmp_long2; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(ZaehlMessungen >= ABGLEICH_ANZAHL) |
{ |
static int cnt = 0; |
static char last_n_p,last_n_n,last_r_p,last_r_n; |
static long MittelIntegralNick_Alt,MittelIntegralRoll_Alt; |
if(!Looping_Nick && !Looping_Roll) |
{ |
MittelIntegralNick /= ABGLEICH_ANZAHL; |
MittelIntegralRoll /= ABGLEICH_ANZAHL; |
IntegralAccNick = (EE_Parameter.GyroAccFaktor * IntegralAccNick) / ABGLEICH_ANZAHL; |
IntegralAccRoll = (EE_Parameter.GyroAccFaktor * IntegralAccRoll) / ABGLEICH_ANZAHL; |
IntegralAccZ = IntegralAccZ / ABGLEICH_ANZAHL; |
#define MAX_I 0//(Poti2/10) |
// Nick ++++++++++++++++++++++++++++++++++++++++++++++++ |
IntegralFehlerNick = (long)(MittelIntegralNick - (long)IntegralAccNick); |
ausgleichNick = IntegralFehlerNick / EE_Parameter.GyroAccAbgleich; |
// Roll ++++++++++++++++++++++++++++++++++++++++++++++++ |
IntegralFehlerRoll = (long)(MittelIntegralRoll - (long)IntegralAccRoll); |
ausgleichRoll = IntegralFehlerRoll / EE_Parameter.GyroAccAbgleich; |
LageKorrekturNick = ausgleichNick / ABGLEICH_ANZAHL; |
LageKorrekturRoll = ausgleichRoll / ABGLEICH_ANZAHL; |
if((MaxStickNick > 15) || (MaxStickRoll > 15) || (abs(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]) > 25)) |
{ |
LageKorrekturNick /= 2; |
LageKorrekturNick /= 2; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gyro-Drift ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
MittelIntegralNick2 /= ABGLEICH_ANZAHL; |
MittelIntegralRoll2 /= ABGLEICH_ANZAHL; |
tmp_long = IntegralNick2 - IntegralNick; |
tmp_long2 = IntegralRoll2 - IntegralRoll; |
//DebugOut.Analog[25] = MittelIntegralRoll2 / 26; |
IntegralFehlerNick = tmp_long; |
IntegralFehlerRoll = tmp_long2; |
Mess_IntegralNick2 -= IntegralFehlerNick; |
Mess_IntegralRoll2 -= IntegralFehlerRoll; |
// IntegralFehlerNick = (IntegralFehlerNick * 1 + tmp_long) / 2; |
// IntegralFehlerRoll = (IntegralFehlerRoll * 1 + tmp_long2) / 2; |
DebugOut.Analog[17] = IntegralAccNick / 26; |
DebugOut.Analog[18] = IntegralAccRoll / 26; |
DebugOut.Analog[19] = IntegralFehlerNick;// / 26; |
DebugOut.Analog[20] = IntegralFehlerRoll;// / 26; |
DebugOut.Analog[21] = MittelIntegralNick / 26; |
DebugOut.Analog[22] = MittelIntegralRoll / 26; |
//DebugOut.Analog[28] = ausgleichNick; |
DebugOut.Analog[29] = ausgleichRoll; |
DebugOut.Analog[30] = LageKorrekturRoll * 10; |
#define FEHLER_LIMIT (ABGLEICH_ANZAHL * 4) |
#define FEHLER_LIMIT2 (ABGLEICH_ANZAHL * 16) |
#define BEWEGUNGS_LIMIT 20000 |
// Nick +++++++++++++++++++++++++++++++++++++++++++++++++ |
cnt = 1;// + labs(IntegralFehlerNick) / 4096; |
if(labs(MittelIntegralNick_Alt - MittelIntegralNick) < BEWEGUNGS_LIMIT) |
{ |
if(IntegralFehlerNick > FEHLER_LIMIT2) |
{ |
if(last_n_p) |
{ |
cnt += labs(IntegralFehlerNick) / FEHLER_LIMIT2; |
ausgleichNick = IntegralFehlerNick / 8; |
if(ausgleichNick > 5000) ausgleichNick = 5000; |
LageKorrekturNick += ausgleichNick / ABGLEICH_ANZAHL; |
} |
else last_n_p = 1; |
} else last_n_p = 0; |
if(IntegralFehlerNick < -FEHLER_LIMIT2) |
{ |
if(last_n_n) |
{ |
cnt += labs(IntegralFehlerNick) / FEHLER_LIMIT2; |
ausgleichNick = IntegralFehlerNick / 8; |
if(ausgleichNick < -5000) ausgleichNick = -5000; |
LageKorrekturNick += ausgleichNick / ABGLEICH_ANZAHL; |
} |
else last_n_n = 1; |
} else last_n_n = 0; |
} else cnt = 0; |
if(cnt > EE_Parameter.Driftkomp) cnt = EE_Parameter.Driftkomp; |
if(IntegralFehlerNick > FEHLER_LIMIT) AdNeutralNick += cnt; |
if(IntegralFehlerNick < -FEHLER_LIMIT) AdNeutralNick -= cnt; |
// Roll +++++++++++++++++++++++++++++++++++++++++++++++++ |
cnt = 1;// + labs(IntegralFehlerNick) / 4096; |
ausgleichRoll = 0; |
if(labs(MittelIntegralRoll_Alt - MittelIntegralRoll) < BEWEGUNGS_LIMIT) |
{ |
if(IntegralFehlerRoll > FEHLER_LIMIT2) |
{ |
if(last_r_p) |
{ |
cnt += labs(IntegralFehlerRoll) / FEHLER_LIMIT2; |
ausgleichRoll = IntegralFehlerRoll / 8; |
if(ausgleichRoll > 5000) ausgleichRoll = 5000; |
LageKorrekturRoll += ausgleichRoll / ABGLEICH_ANZAHL; |
} |
else last_r_p = 1; |
} else last_r_p = 0; |
if(IntegralFehlerRoll < -FEHLER_LIMIT2) |
{ |
if(last_r_n) |
{ |
cnt += labs(IntegralFehlerRoll) / FEHLER_LIMIT2; |
ausgleichRoll = IntegralFehlerRoll / 8; |
if(ausgleichRoll < -5000) ausgleichRoll = -5000; |
LageKorrekturRoll += ausgleichRoll / ABGLEICH_ANZAHL; |
} |
else last_r_n = 1; |
} else last_r_n = 0; |
} else |
{ |
cnt = 0; |
} |
if(cnt > EE_Parameter.Driftkomp) cnt = EE_Parameter.Driftkomp; |
if(IntegralFehlerRoll > FEHLER_LIMIT) AdNeutralRoll += cnt; |
if(IntegralFehlerRoll < -FEHLER_LIMIT) AdNeutralRoll -= cnt; |
DebugOut.Analog[27] = ausgleichRoll; |
DebugOut.Analog[23] = AdNeutralNick;//10*(AdNeutralNick - StartNeutralNick); |
DebugOut.Analog[24] = 10*(AdNeutralRoll - StartNeutralRoll); |
} |
else |
{ |
LageKorrekturRoll = 0; |
LageKorrekturNick = 0; |
} |
if(!IntegralFaktor) { LageKorrekturRoll = 0; LageKorrekturNick = 0;} // z.B. bei HH |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++ |
MittelIntegralNick_Alt = MittelIntegralNick; |
MittelIntegralRoll_Alt = MittelIntegralRoll; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++ |
IntegralAccNick = 0; |
IntegralAccRoll = 0; |
IntegralAccZ = 0; |
MittelIntegralNick = 0; |
MittelIntegralRoll = 0; |
MittelIntegralNick2 = 0; |
MittelIntegralRoll2 = 0; |
ZaehlMessungen = 0; |
} |
//DebugOut.Analog[31] = StickRoll / (26*IntegralFaktor); |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(abs(StickGier) > 20) // war 35 |
{ |
if(!(EE_Parameter.GlobalConfig & CFG_KOMPASS_FIX)) NeueKompassRichtungMerken = 1; |
} |
tmp_int = (long)EE_Parameter.Gier_P * ((long)StickGier * abs(StickGier)) / 512L; // expo y = ax + bx² |
tmp_int += (EE_Parameter.Gier_P * StickGier) / 4; |
sollGier = tmp_int; |
Mess_Integral_Gier -= tmp_int; |
if(Mess_Integral_Gier > 50000) Mess_Integral_Gier = 50000; // begrenzen |
if(Mess_Integral_Gier <-50000) Mess_Integral_Gier =-50000; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Kompass |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
{ |
int w,v; |
static uint8_t updKompass = 0; |
if (!updKompass--) // Aufruf mit ~10 Hz |
{ |
KompassValue = heading_MM3(); |
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
updKompass = 50; |
} |
w = abs(IntegralNick /512); // mit zunehmender Neigung den Einfluss drosseln |
v = abs(IntegralRoll /512); |
if(v > w) w = v; // grösste Neigung ermitteln |
if(w < 35 && NeueKompassRichtungMerken) |
{ |
KompassStartwert = KompassValue; |
NeueKompassRichtungMerken = 0; |
} |
w = (w * Parameter_KompassWirkung) / 64; // auf die Wirkung normieren |
w = Parameter_KompassWirkung - w; // Wirkung ggf drosseln |
if(w > 0) |
{ |
Mess_Integral_Gier += (KompassRichtung * w) / 32; // nach Kompass ausrichten |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Debugwerte zuordnen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!TimerWerteausgabe--) |
{ |
TimerWerteausgabe = 24; |
DebugOut.Analog[0] = IntegralNick / EE_Parameter.GyroAccFaktor; |
DebugOut.Analog[1] = IntegralRoll / EE_Parameter.GyroAccFaktor; |
DebugOut.Analog[2] = Mittelwert_AccNick; |
DebugOut.Analog[3] = Mittelwert_AccRoll; |
DebugOut.Analog[4] = MesswertGier; |
DebugOut.Analog[5] = HoehenWert; |
DebugOut.Analog[6] =(Mess_Integral_Hoch / 512); |
DebugOut.Analog[8] = KompassValue; |
DebugOut.Analog[9] = UBat; |
DebugOut.Analog[10] = SenderOkay; |
DebugOut.Analog[16] = Mittelwert_AccHoch; |
/* DebugOut.Analog[16] = motor_rx[0]; |
DebugOut.Analog[17] = motor_rx[1]; |
DebugOut.Analog[18] = motor_rx[2]; |
DebugOut.Analog[19] = motor_rx[3]; |
DebugOut.Analog[20] = motor_rx[0] + motor_rx[1] + motor_rx[2] + motor_rx[3]; |
DebugOut.Analog[20] /= 14; |
DebugOut.Analog[21] = motor_rx[4]; |
DebugOut.Analog[22] = motor_rx[5]; |
DebugOut.Analog[23] = motor_rx[6]; |
DebugOut.Analog[24] = motor_rx[7]; |
DebugOut.Analog[25] = motor_rx[4] + motor_rx[5] + motor_rx[6] + motor_rx[7]; |
*/ |
// DebugOut.Analog[9] = MesswertNick; |
// DebugOut.Analog[9] = SollHoehe; |
// DebugOut.Analog[10] = Mess_Integral_Gier / 128; |
// DebugOut.Analog[11] = KompassStartwert; |
// DebugOut.Analog[10] = Parameter_Gyro_I; |
// DebugOut.Analog[10] = EE_Parameter.Gyro_I; |
// DebugOut.Analog[9] = KompassRichtung; |
// DebugOut.Analog[10] = GasMischanteil; |
// DebugOut.Analog[3] = HoeheD * 32; |
// DebugOut.Analog[4] = hoehenregler; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Drehgeschwindigkeit und -winkel zu einem Istwert zusammenfassen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//DebugOut.Analog[26] = MesswertNick; |
//DebugOut.Analog[28] = MesswertRoll; |
if(Looping_Nick) MesswertNick = MesswertNick * GyroFaktor; |
else MesswertNick = IntegralNick * IntegralFaktor + MesswertNick * GyroFaktor; |
if(Looping_Roll) MesswertRoll = MesswertRoll * GyroFaktor; |
else MesswertRoll = IntegralRoll * IntegralFaktor + MesswertRoll * GyroFaktor; |
MesswertGier = MesswertGier * (2 * GyroFaktor) + Integral_Gier * IntegralFaktor / 2; |
DebugOut.Analog[25] = IntegralRoll * IntegralFaktor; |
DebugOut.Analog[31] = StickRoll;// / (26*IntegralFaktor); |
DebugOut.Analog[28] = MesswertRoll; |
// Maximalwerte abfangen |
#define MAX_SENSOR 2048 |
if(MesswertNick > MAX_SENSOR) MesswertNick = MAX_SENSOR; |
if(MesswertNick < -MAX_SENSOR) MesswertNick = -MAX_SENSOR; |
if(MesswertRoll > MAX_SENSOR) MesswertRoll = MAX_SENSOR; |
if(MesswertRoll < -MAX_SENSOR) MesswertRoll = -MAX_SENSOR; |
if(MesswertGier > MAX_SENSOR) MesswertGier = MAX_SENSOR; |
if(MesswertGier < -MAX_SENSOR) MesswertGier = -MAX_SENSOR; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Höhenregelung |
// Die Höhenregelung schwächt lediglich das Gas ab, erhöht es allerdings nicht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//OCR0B = 180 - (Poti1 + 120) / 4; |
//DruckOffsetSetting = OCR0B; |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung |
{ |
int tmp_int; |
if(EE_Parameter.GlobalConfig & CFG_HOEHEN_SCHALTER) // Regler wird über Schalter gesteuert |
{ |
if(Parameter_MaxHoehe < 50) |
{ |
SollHoehe = HoehenWert - 20; // Parameter_MaxHoehe ist der PPM-Wert des Schalters |
HoehenReglerAktiv = 0; |
} |
else |
HoehenReglerAktiv = 1; |
} |
else |
{ |
SollHoehe = ((int) ExternHoehenValue + (int) Parameter_MaxHoehe) * (int)EE_Parameter.Hoehe_Verstaerkung - 20; |
HoehenReglerAktiv = 1; |
} |
if(Notlandung) SollHoehe = 0; |
h = HoehenWert; |
if((h > SollHoehe) && HoehenReglerAktiv) // zu hoch --> drosseln |
{ h = ((h - SollHoehe) * (int) Parameter_Hoehe_P) / 16; // Differenz bestimmen --> P-Anteil |
h = GasMischanteil - h; // vom Gas abziehen |
h -= (HoeheD * Parameter_Luftdruck_D)/8; // D-Anteil |
tmp_int = ((Mess_Integral_Hoch / 512) * (signed long) Parameter_Hoehe_ACC_Wirkung) / 32; |
if(tmp_int > 50) tmp_int = 50; |
else if(tmp_int < -50) tmp_int = -50; |
h -= tmp_int; |
hoehenregler = (hoehenregler*15 + h) / 16; |
if(hoehenregler < EE_Parameter.Hoehe_MinGas) // nicht unter MIN |
{ |
if(GasMischanteil >= EE_Parameter.Hoehe_MinGas) hoehenregler = EE_Parameter.Hoehe_MinGas; |
if(GasMischanteil < EE_Parameter.Hoehe_MinGas) hoehenregler = GasMischanteil; |
} |
if(hoehenregler > GasMischanteil) hoehenregler = GasMischanteil; // nicht mehr als Gas |
GasMischanteil = hoehenregler; |
} |
} |
if(GasMischanteil > MAX_GAS - 20) GasMischanteil = MAX_GAS - 20; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Mischer und PI-Regler |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DebugOut.Analog[7] = GasMischanteil; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gier-Anteil |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define MUL_G 1.0 |
GierMischanteil = MesswertGier - sollGier; // Regler für Gier |
// GierMischanteil = 0; |
if(GierMischanteil > (GasMischanteil / 2)) GierMischanteil = GasMischanteil / 2; |
if(GierMischanteil < -(GasMischanteil / 2)) GierMischanteil = -(GasMischanteil / 2); |
if(GierMischanteil > ((MAX_GAS - GasMischanteil))) GierMischanteil = ((MAX_GAS - GasMischanteil)); |
if(GierMischanteil < -((MAX_GAS - GasMischanteil))) GierMischanteil = -((MAX_GAS - GasMischanteil)); |
if(GasMischanteil < 20) GierMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Nick-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffNick = MesswertNick - (StickNick - GPS_Nick); // Differenz bestimmen |
if(IntegralFaktor) SummeNick += IntegralNick * IntegralFaktor - (StickNick - GPS_Nick); // I-Anteil bei Winkelregelung |
else SummeNick += DiffNick; // I-Anteil bei HH |
if(SummeNick > 16000) SummeNick = 16000; |
if(SummeNick < -16000) SummeNick = -16000; |
pd_ergebnis = DiffNick + Ki * SummeNick; // PI-Regler für Nick |
// Motor Vorn |
tmp_int = (long)((long)Parameter_DynamicStability * (long)(GasMischanteil + abs(GierMischanteil)/2)) / 64; |
if(pd_ergebnis > tmp_int) pd_ergebnis = tmp_int; |
if(pd_ergebnis < -tmp_int) pd_ergebnis = -tmp_int; |
motorwert = GasMischanteil + pd_ergebnis + GierMischanteil; // Mischer |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Vorne = motorwert; |
// Motor Heck |
motorwert = GasMischanteil - pd_ergebnis + GierMischanteil; |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Hinten = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Roll-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffRoll = MesswertRoll - (StickRoll - GPS_Roll); // Differenz bestimmen |
if(IntegralFaktor) SummeRoll += IntegralRoll * IntegralFaktor - (StickRoll - GPS_Roll);// I-Anteil bei Winkelregelung |
else SummeRoll += DiffRoll; // I-Anteil bei HH |
if(SummeRoll > 16000) SummeRoll = 16000; |
if(SummeRoll < -16000) SummeRoll = -16000; |
pd_ergebnis = DiffRoll + Ki * SummeRoll; // PI-Regler für Roll |
tmp_int = (long)((long)Parameter_DynamicStability * (long)(GasMischanteil + abs(GierMischanteil)/2)) / 64; |
if(pd_ergebnis > tmp_int) pd_ergebnis = tmp_int; |
if(pd_ergebnis < -tmp_int) pd_ergebnis = -tmp_int; |
// Motor Links |
motorwert = GasMischanteil + pd_ergebnis - GierMischanteil; |
#define GRENZE Poti1 |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Links = motorwert; |
// Motor Rechts |
motorwert = GasMischanteil - pd_ergebnis - GierMischanteil; |
if ((motorwert < 0)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Rechts = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++ |
} |
/branches/MicroMag3_Nick666/V0.68d/fc.h |
---|
0,0 → 1,148 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
#ifndef _FC_H |
#define _FC_H |
extern volatile unsigned int I2CTimeout; |
extern long Mess_IntegralNick,Mess_IntegralNick2; |
extern long Mess_IntegralRoll,Mess_IntegralRoll2; |
extern volatile long Mess_Integral_Hoch; |
extern long Mess_Integral_Gier,Mess_Integral_Gier2; |
extern int KompassValue; |
extern int KompassStartwert; |
extern int KompassRichtung; |
extern long IntegralNick,IntegralNick2; |
extern long IntegralRoll,IntegralRoll2; |
extern long IntegralAccNick,IntegralAccRoll,IntegralAccZ; |
extern long Integral_Gier; |
extern int HoehenWert; |
extern int SollHoehe; |
extern int MesswertNick,MesswertRoll,MesswertGier; |
extern int AdNeutralNick,AdNeutralRoll,AdNeutralGier, Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
extern long Umschlag180Nick, Umschlag180Roll; |
extern signed int ExternStickNick,ExternStickRoll,ExternStickGier; |
extern unsigned char Parameter_UserParam1,Parameter_UserParam2,Parameter_UserParam3,Parameter_UserParam4,Parameter_UserParam5,Parameter_UserParam6,Parameter_UserParam7,Parameter_UserParam8; |
void MotorRegler(void); |
void SendMotorData(void); |
void CalibrierMittelwert(void); |
void Mittelwert(void); |
void SetNeutral(void); |
void Piep(unsigned char Anzahl); |
extern void DefaultKonstanten(void); |
void DefaultKonstanten1(void); |
void DefaultKonstanten2(void); |
extern unsigned char h,m,s; |
extern volatile unsigned char Timeout ; |
extern volatile int DiffNick,DiffRoll; |
extern int Poti1, Poti2, Poti3, Poti4; |
extern volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links, Count; |
extern unsigned char MotorWert[5]; |
extern volatile unsigned char SenderOkay; |
extern int StickNick,StickRoll,StickGier; |
extern char MotorenEin; |
extern void DefaultKonstanten1(void); |
extern void DefaultKonstanten2(void); |
struct acc_neutral_struct |
{ |
volatile int X; |
volatile int Y; |
volatile float Z; |
}; |
extern struct acc_neutral_struct acc_neutral; |
extern void calib_acc(void); |
struct mk_param_struct |
{ |
unsigned char Kanalbelegung[8]; // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3 |
unsigned char GlobalConfig; // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv |
unsigned char Hoehe_MinGas; // Wert : 0-100 |
unsigned char Luftdruck_D; // Wert : 0-250 |
unsigned char MaxHoehe; // Wert : 0-32 |
unsigned char Hoehe_P; // Wert : 0-32 |
unsigned char Hoehe_Verstaerkung; // Wert : 0-50 |
unsigned char Hoehe_ACC_Wirkung; // Wert : 0-250 |
unsigned char Stick_P; // Wert : 1-6 |
unsigned char Stick_D; // Wert : 0-64 |
unsigned char Gier_P; // Wert : 1-20 |
unsigned char Gas_Min; // Wert : 0-32 |
unsigned char Gas_Max; // Wert : 33-250 |
unsigned char GyroAccFaktor; // Wert : 1-64 |
unsigned char KompassWirkung; // Wert : 0-32 |
unsigned char Gyro_P; // Wert : 10-250 |
unsigned char Gyro_I; // Wert : 0-250 |
unsigned char UnterspannungsWarnung; // Wert : 0-250 |
unsigned char NotGas; // Wert : 0-250 //Gaswert bei Empängsverlust |
unsigned char NotGasZeit; // Wert : 0-250 // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen |
unsigned char UfoAusrichtung; // X oder + Formation |
unsigned char I_Faktor; // Wert : 0-250 |
unsigned char UserParam1; // Wert : 0-250 |
unsigned char UserParam2; // Wert : 0-250 |
unsigned char UserParam3; // Wert : 0-250 |
unsigned char UserParam4; // Wert : 0-250 |
unsigned char ServoNickControl; // Wert : 0-250 // Stellung des Servos |
unsigned char ServoNickComp; // Wert : 0-250 // Einfluss Gyro/Servo |
unsigned char ServoNickMin; // Wert : 0-250 // Anschlag |
unsigned char ServoNickMax; // Wert : 0-250 // Anschlag |
unsigned char ServoNickRefresh; // |
unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
unsigned char LoopHysterese; // Wert: 0-250 Hysterese für Stickausschlag |
unsigned char AchsKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung) |
unsigned char AchsGegenKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick Gegenkoppelt (NickRollGegenkopplung) |
unsigned char WinkelUmschlagNick; // Wert: 0-250 180°-Punkt |
unsigned char WinkelUmschlagRoll; // Wert: 0-250 180°-Punkt |
unsigned char GyroAccAbgleich; // 1/k (Koppel_ACC_Wirkung) |
unsigned char Driftkomp; |
unsigned char DynamicStability; |
unsigned char UserParam5; // Wert : 0-250 |
unsigned char UserParam6; // Wert : 0-250 |
unsigned char UserParam7; // Wert : 0-250 |
unsigned char UserParam8; // Wert : 0-250 |
//------------------------------------------------ |
unsigned char LoopConfig; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
unsigned char ServoNickCompInvert; // Wert : 0-250 0 oder 1 // WICHTIG!!! am Ende lassen |
unsigned char Reserved[4]; |
char Name[12]; |
}; |
/* |
unsigned char ServoNickMax; // Wert : 0-250 |
unsigned char ServoNickRefresh; // |
unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
//------------------------------------------------ |
unsigned char LoopConfig; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
unsigned char ServoNickCompInvert; // Wert : 0-250 0 oder 1 // WICHTIG!!! am Ende lassen |
unsigned char Reserved[4]; |
char Name[12]; |
*/ |
extern struct mk_param_struct EE_Parameter; |
extern unsigned char Parameter_Luftdruck_D; |
extern unsigned char Parameter_MaxHoehe; |
extern unsigned char Parameter_Hoehe_P; |
extern unsigned char Parameter_Hoehe_ACC_Wirkung; |
extern unsigned char Parameter_KompassWirkung; |
extern unsigned char Parameter_Gyro_P; |
extern unsigned char Parameter_Gyro_I; |
extern unsigned char Parameter_Gier_P; |
extern unsigned char Parameter_ServoNickControl; |
extern unsigned char Parameter_AchsKopplung1; |
extern unsigned char Parameter_AchsGegenKopplung1; |
#endif //_FC_H |
/branches/MicroMag3_Nick666/V0.68d/flight.pnproj |
---|
0,0 → 1,0 |
<Project name="Flight-Ctrl"><File path="uart.h"></File><File path="main.c"></File><File path="main.h"></File><File path="makefile"></File><File path="uart.c"></File><File path="printf_P.h"></File><File path="printf_P.c"></File><File path="timer0.c"></File><File path="timer0.h"></File><File path="old_macros.h"></File><File path="twimaster.c"></File><File path="version.txt"></File><File path="twimaster.h"></File><File path="rc.c"></File><File path="rc.h"></File><File path="fc.h"></File><File path="fc.c"></File><File path="menu.h"></File><File path="menu.c"></File><File path="_Settings.h"></File><File path="analog.c"></File><File path="analog.h"></File><File path="GPS.c"></File><File path="gps.h"></File><File path="License.txt"></File><File path="eeprom.c"></File><File path="compass.c"></File><File path="compass.h"></File><File path="mymath.c"></File><File path="mymath.h"></File></Project> |
/branches/MicroMag3_Nick666/V0.68d/flight.pnps |
---|
0,0 → 1,0 |
<pd><ViewState><e p="Flight-Ctrl" x="true"></e></ViewState></pd> |
/branches/MicroMag3_Nick666/V0.68d/gps.h |
---|
0,0 → 1,14 |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Nick; |
extern signed int GPS_Roll; |
void GPS_Neutral(void); |
void GPS_BerechneZielrichtung(void); |
/branches/MicroMag3_Nick666/V0.68d/main.c |
---|
0,0 → 1,262 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten und nicht-kommerziellen Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt und genannt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-commercial use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
// + clearly linked as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
// Reservierung im EEPROM |
unsigned char EEPromArray[10] EEMEM; |
struct mk_param_struct EEParameterArray[5] EEMEM; |
unsigned char PlatinenVersion = 10; |
// -- Parametersatz aus EEPROM lesen --- |
// number [0..5] |
void ReadParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if (number > 5) number = 5; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_read_block(buffer, &EEParameterArray[number], length); |
} |
// -- Parametersatz ins EEPROM schreiben --- |
// number [0..5] |
void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if (number > 5) number = 5; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_write_block(buffer, &EEParameterArray[number], length); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], number); // diesen Parametersatz als aktuell merken |
} |
unsigned char GetActiveParamSetNumber(void) |
{ |
unsigned char set; |
set = eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET]); |
if(set > 5) |
{ |
set = 2; |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], set); // diesen Parametersatz als aktuell merken |
} |
return(set); |
} |
//############################################################################ |
//Hauptprogramm |
int main (void) |
//############################################################################ |
{ |
unsigned int timer; |
//unsigned int timer2 = 0; |
DDRB = 0x00; |
PORTB = 0x00; |
for(timer = 0; timer < 1000; timer++); // verzögern |
if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10; |
DDRC = 0x81; // SCL |
PORTC = 0xff; // Pullup SDA |
DDRB = 0x1B; // LEDs und Druckoffset |
PORTB = 0x01; // LED_Rot |
DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
DDRD |=0x80; // J7 |
PORTD = 0xF7; // LED |
MCUSR &=~(1<<WDRF); |
WDTCSR |= (1<<WDCE)|(1<<WDE); |
WDTCSR = 0; |
beeptime = 2000; |
StickGier = 0; PPM_in[K_GAS] = 0;StickRoll = 0; StickNick = 0; |
ROT_OFF; |
Timer_Init(); |
UART_Init(); |
rc_sum_init(); |
ADC_Init(); |
i2c_init(); |
init_MM3(); |
sei(); |
VersionInfo.Hauptversion = VERSION_HAUPTVERSION; |
VersionInfo.Nebenversion = VERSION_NEBENVERSION; |
VersionInfo.PCKompatibel = VERSION_KOMPATIBEL; |
printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",PlatinenVersion/10,PlatinenVersion%10, VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX + 'a'); |
printf("\n\r=============================="); |
GRN_ON; |
#define EE_DATENREVISION 69 // wird angepasst, wenn sich die EEPROM-Daten geändert haben |
if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_VALID]) != EE_DATENREVISION) |
{ |
printf("\n\rInit. EEPROM: Generiere Default-Parameter..."); |
DefaultKonstanten1(); |
for (unsigned char i=0;i<6;i++) |
{ |
if(i==2) DefaultKonstanten2(); // Kamera |
if(i==3) DefaultKonstanten3(); // Beginner |
if(i>3) DefaultKonstanten2(); // Kamera |
WriteParameterSet(i, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], 3); // default-Setting |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], EE_DATENREVISION); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
printf("\n\rBenutze Parametersatz %d", GetActiveParamSetNumber()); |
//kurze Wartezeit (sonst reagiert die "Kompass kalibrieren?"-Abfrage nicht |
timer = SetDelay(500); |
while(!CheckDelay(timer)); |
//Kompass kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 100) |
{ |
printf("\n\rKalibriere Kompass"); |
calib_MM3(); |
} |
//Neutrallage kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -100) |
{ |
printf("\n\rKalibriere Neutrallage"); |
calib_acc(); |
} |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
printf("\n\rAbgleich Luftdrucksensor.."); |
timer = SetDelay(1000); |
SucheLuftruckOffset(); |
while (!CheckDelay(timer)); |
printf("OK\n\r"); |
} |
SetNeutral(); |
ROT_OFF; |
beeptime = 2000; |
ExternControl.Digital[0] = 0x55; |
printf("\n\rSteuerung: "); |
if (EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) printf("HeadingHold"); |
else printf("Neutral"); |
printf("\n\n\r"); |
LcdClear(); |
I2CTimeout = 5000; |
while (1) |
{ |
if(UpdateMotor) // ReglerIntervall |
{ |
UpdateMotor=0; |
//PORTD |= 0x08; |
MotorRegler(); |
//PORTD &= ~0x08; |
SendMotorData(); |
ROT_OFF; |
if(PcZugriff) PcZugriff--; |
else |
{ |
DubWiseKeys[0] = 0; |
DubWiseKeys[1] = 0; |
ExternControl.Config = 0; |
ExternStickNick = 0; |
ExternStickRoll = 0; |
ExternStickGier = 0; |
} |
if(SenderOkay) SenderOkay--; |
if(!I2CTimeout) |
{ |
I2CTimeout = 5; |
i2c_reset(); |
if((BeepMuster == 0xffff) && MotorenEin) |
{ |
beeptime = 10000; |
BeepMuster = 0x0080; |
} |
} |
else |
{ |
I2CTimeout--; |
ROT_OFF; |
} |
if(SIO_DEBUG && !UpdateMotor) |
{ |
DatenUebertragung(); |
BearbeiteRxDaten(); |
} |
else BearbeiteRxDaten(); |
if(CheckDelay(timer)) |
{ |
if(UBat < EE_Parameter.UnterspannungsWarnung) |
{ |
if(BeepMuster == 0xffff) |
{ |
beeptime = 6000; |
BeepMuster = 0x0300; |
} |
} |
timer = SetDelay(100); |
} |
//if(UpdateMotor) DebugOut.Analog[26]++; |
} |
} |
return (1); |
} |
/branches/MicroMag3_Nick666/V0.68d/main.h |
---|
0,0 → 1,95 |
#ifndef _MAIN_H |
#define _MAIN_H |
//Hier die Quarz Frequenz einstellen |
#if defined (__AVR_ATmega32__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
#endif |
#if defined (__AVR_ATmega644__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
//#define SYSCLK 16000000L //Quarz Frequenz in Hz |
#endif |
// neue Hardware |
#define ROT_OFF {if(PlatinenVersion == 10) PORTB &=~0x01; else PORTB |= 0x01;} |
#define ROT_ON {if(PlatinenVersion == 10) PORTB |= 0x01; else PORTB &=~0x01;} |
#define ROT_FLASH PORTB ^= 0x01 |
#define GRN_OFF PORTB &=~0x02 |
#define GRN_ON PORTB |= 0x02 |
#define GRN_FLASH PORTB ^= 0x02 |
#define F_CPU SYSCLK |
//#ifndef F_CPU |
//#error ################## F_CPU nicht definiert oder ungültig ############# |
//#endif |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define EEPROM_ADR_VALID 1 |
#define EEPROM_ADR_ACTIVE_SET 2 |
#define EEPROM_ADR_LAST_OFFSET 3 |
#define CFG_HOEHENREGELUNG 0x01 |
#define CFG_HOEHEN_SCHALTER 0x02 |
#define CFG_HEADING_HOLD 0x04 |
#define CFG_KOMPASS_AKTIV 0x08 |
#define CFG_KOMPASS_FIX 0x10 |
#define CFG_GPS_AKTIV 0x20 |
#define CFG_ACHSENKOPPLUNG_AKTIV 0x40 |
#define CFG_DREHRATEN_BEGRENZER 0x80 |
#define CFG_LOOP_OBEN 0x01 |
#define CFG_LOOP_UNTEN 0x02 |
#define CFG_LOOP_LINKS 0x04 |
#define CFG_LOOP_RECHTS 0x08 |
extern unsigned char PlatinenVersion; |
void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length); |
void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length); |
extern unsigned char GetActiveParamSetNumber(void); |
extern unsigned char EEPromArray[]; |
#include <stdlib.h> |
#include <string.h> |
#include <avr/io.h> |
#include <avr/pgmspace.h> |
#include <avr/interrupt.h> |
#include <avr/eeprom.h> |
#include <avr/boot.h> |
#include <avr/wdt.h> |
#include "old_macros.h" |
#include "_Settings.h" |
#include "printf_P.h" |
#include "timer0.h" |
#include "uart.h" |
#include "analog.h" |
#include "twimaster.h" |
#include "menu.h" |
#include "rc.h" |
#include "fc.h" |
#include "gps.h" |
#include "compass.h" |
#include "mymath.h" |
#ifndef EEMEM |
#define EEMEM __attribute__ ((section (".eeprom"))) |
#endif |
#define DEBUG_DISPLAY_INTERVALL 123 // in ms |
#define DELAY_US(x) ((unsigned int)( (x) * 1e-6 * F_CPU )) |
#endif //_MAIN_H |
/branches/MicroMag3_Nick666/V0.68d/makefile |
---|
0,0 → 1,423 |
#-------------------------------------------------------------------- |
# MCU name |
MCU = atmega644 |
F_CPU = 20000000 |
#------------------------------------------------------------------- |
HAUPT_VERSION = 0 |
NEBEN_VERSION = 68 |
VERSION_INDEX = 3 |
VERSION_KOMPATIBEL = 7 # PC-Kompatibilität |
#------------------------------------------------------------------- |
ifeq ($(MCU), atmega32) |
# FUSE_SETTINGS= -u -U lfuse:w:0xff:m -U hfuse:w:0xcf:m |
HEX_NAME = MEGA32 |
endif |
ifeq ($(MCU), atmega644) |
FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
#FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
# -u bei neuen Controllern wieder einspielen |
HEX_NAME = MEGA644 |
endif |
ifeq ($(MCU), atmega644p) |
FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
HEX_NAME = MEGA644 |
endif |
ifeq ($(F_CPU), 16000000) |
QUARZ = 16MHZ |
endif |
ifeq ($(F_CPU), 20000000) |
QUARZ = 20MHZ |
endif |
# Output format. (can be srec, ihex, binary) |
FORMAT = ihex |
# Target file name (without extension). |
ifeq ($(VERSION_INDEX), 0) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)a |
endif |
ifeq ($(VERSION_INDEX), 1) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)b |
endif |
ifeq ($(VERSION_INDEX), 2) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)c |
endif |
ifeq ($(VERSION_INDEX), 3) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)d |
endif |
ifeq ($(VERSION_INDEX), 4) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)e |
endif |
ifeq ($(VERSION_INDEX), 5) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)f |
endif |
ifeq ($(VERSION_INDEX), 6) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)g |
endif |
ifeq ($(VERSION_INDEX), 7) |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)h |
endif |
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization. |
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
OPT = s |
########################################################################################################## |
# List C source files here. (C dependencies are automatically generated.) |
SRC = main.c uart.c printf_P.c timer0.c analog.c menu.c |
SRC += twimaster.c rc.c fc.c GPS.c |
SRC += compass.c mymath.c |
########################################################################################################## |
# List Assembler source files here. |
# Make them always end in a capital .S. Files ending in a lowercase .s |
# will not be considered source files but generated files (assembler |
# output from the compiler), and will be deleted upon "make clean"! |
# Even though the DOS/Win* filesystem matches both .s and .S the same, |
# it will preserve the spelling of the filenames, and gcc itself does |
# care about how the name is spelled on its command-line. |
ASRC = |
# List any extra directories to look for include files here. |
# Each directory must be seperated by a space. |
EXTRAINCDIRS = |
# Optional compiler flags. |
# -g: generate debugging information (for GDB, or for COFF conversion) |
# -O*: optimization level |
# -f...: tuning, see gcc manual and avr-libc documentation |
# -Wall...: warning level |
# -Wa,...: tell GCC to pass this to the assembler. |
# -ahlms: create assembler listing |
CFLAGS = -O$(OPT) \ |
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \ |
-mtiny-stack -mcall-prologues \ |
-Wall -Wstrict-prototypes \ |
-Wa,-adhlns=$(<:.c=.lst) \ |
$(patsubst %,-I%,$(EXTRAINCDIRS)) |
# Set a "language standard" compiler flag. |
# Unremark just one line below to set the language standard to use. |
# gnu99 = C99 + GNU extensions. See GCC manual for more information. |
#CFLAGS += -std=c89 |
#CFLAGS += -std=gnu89 |
#CFLAGS += -std=c99 |
CFLAGS += -std=gnu99 |
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) -DVERSION_KOMPATIBEL=$(VERSION_KOMPATIBEL) -DVERSION_INDEX=$(VERSION_INDEX) |
# Optional assembler flags. |
# -Wa,...: tell GCC to pass this to the assembler. |
# -ahlms: create listing |
# -gstabs: have the assembler create line number information; note that |
# for use in COFF files, additional information about filenames |
# and function names needs to be present in the assembler source |
# files -- see avr-libc docs [FIXME: not yet described there] |
ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs |
# Optional linker flags. |
# -Wl,...: tell GCC to pass this to linker. |
# -Map: create map file |
# --cref: add cross reference to map file |
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref |
# Additional libraries |
# Minimalistic printf version |
#LDFLAGS += -Wl,-u,vfprintf -lprintf_min |
# Floating point printf version (requires -lm below) |
#LDFLAGS += -Wl,-u,vfprintf -lprintf_flt |
# -lm = math library |
LDFLAGS += -lm |
##LDFLAGS += -T./linkerfile/avr5.x |
# Programming support using avrdude. Settings and variables. |
# Programming hardware: alf avr910 avrisp bascom bsd |
# dt006 pavr picoweb pony-stk200 sp12 stk200 stk500 |
# |
# Type: avrdude -c ? |
# to get a full listing. |
# |
#AVRDUDE_PROGRAMMER = dt006 |
#AVRDUDE_PROGRAMMER = stk200 |
#AVRDUDE_PROGRAMMER = ponyser |
AVRDUDE_PROGRAMMER = avrispv2 |
#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_PORT = usb # programmer connected to USB |
#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 -c avrispv2 -P usb -p m32 -U flash:w:blink.hex |
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) |
# Uncomment the following if you want avrdude's erase cycle counter. |
# Note that this counter needs to be initialized first using -Yn, |
# see avrdude manual. |
#AVRDUDE_ERASE += -y |
# Uncomment the following if you do /not/ wish a verification to be |
# performed after programming the device. |
AVRDUDE_FLAGS += -V |
# Increase verbosity level. Please use this when submitting bug |
# reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> |
# to submit bug reports. |
#AVRDUDE_FLAGS += -v -v |
# --------------------------------------------------------------------------- |
# Define directories, if needed. |
DIRAVR = c:/winavr |
DIRAVRBIN = $(DIRAVR)/bin |
DIRAVRUTILS = $(DIRAVR)/utils/bin |
DIRINC = . |
DIRLIB = $(DIRAVR)/avr/lib |
# Define programs and commands. |
SHELL = sh |
CC = avr-gcc |
OBJCOPY = avr-objcopy |
OBJDUMP = avr-objdump |
SIZE = avr-size |
# Programming support using avrdude. |
AVRDUDE = avrdude |
REMOVE = rm -f |
COPY = cp |
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex |
ELFSIZE = $(SIZE) -A $(TARGET).elf |
# Define Messages |
# English |
MSG_ERRORS_NONE = Errors: none |
MSG_BEGIN = -------- begin -------- |
MSG_END = -------- end -------- |
MSG_SIZE_BEFORE = Size before: |
MSG_SIZE_AFTER = Size after: |
MSG_COFF = Converting to AVR COFF: |
MSG_EXTENDED_COFF = Converting to AVR Extended COFF: |
MSG_FLASH = Creating load file for Flash: |
MSG_EEPROM = Creating load file for EEPROM: |
MSG_EXTENDED_LISTING = Creating Extended Listing: |
MSG_SYMBOL_TABLE = Creating Symbol Table: |
MSG_LINKING = Linking: |
MSG_COMPILING = Compiling: |
MSG_ASSEMBLING = Assembling: |
MSG_CLEANING = Cleaning project: |
# Define all object files. |
OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) |
# Define all listing files. |
LST = $(ASRC:.S=.lst) $(SRC:.c=.lst) |
# Combine all necessary flags and optional flags. |
# Add target processor to flags. |
#ALL_CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I. $(CFLAGS) |
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) |
ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS) |
# Default target. |
all: begin gccversion sizebefore $(TARGET).elf $(TARGET).hex $(TARGET).eep \ |
$(TARGET).lss $(TARGET).sym sizeafter finished end |
# Eye candy. |
# AVR Studio 3.x does not check make's exit code but relies on |
# the following magic strings to be generated by the compile job. |
begin: |
@echo |
@echo $(MSG_BEGIN) |
finished: |
@echo $(MSG_ERRORS_NONE) |
end: |
@echo $(MSG_END) |
@echo |
# Display size of file. |
sizebefore: |
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi |
sizeafter: |
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi |
# Display compiler version information. |
gccversion : |
@$(CC) --version |
# Convert ELF to COFF for use in debugging / simulating in |
# AVR Studio or VMLAB. |
COFFCONVERT=$(OBJCOPY) --debugging \ |
--change-section-address .data-0x800000 \ |
--change-section-address .bss-0x800000 \ |
--change-section-address .noinit-0x800000 \ |
--change-section-address .eeprom-0x810000 |
coff: $(TARGET).elf |
@echo |
@echo $(MSG_COFF) $(TARGET).cof |
$(COFFCONVERT) -O coff-avr $< $(TARGET).cof |
extcoff: $(TARGET).elf |
@echo |
@echo $(MSG_EXTENDED_COFF) $(TARGET).cof |
$(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof |
# Program the device. |
program: $(TARGET).hex $(TARGET).eep |
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) |
# Create final output files (.hex, .eep) from ELF output file. |
%.hex: %.elf |
@echo |
@echo $(MSG_FLASH) $@ |
$(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@ |
%.eep: %.elf |
@echo |
@echo $(MSG_EEPROM) $@ |
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \ |
--change-section-lma .eeprom=0 -O $(FORMAT) $< $@ |
# Create extended listing file from ELF output file. |
%.lss: %.elf |
@echo |
@echo $(MSG_EXTENDED_LISTING) $@ |
$(OBJDUMP) -h -S $< > $@ |
# Create a symbol table from ELF output file. |
%.sym: %.elf |
@echo |
@echo $(MSG_SYMBOL_TABLE) $@ |
avr-nm -n $< > $@ |
# Link: create ELF output file from object files. |
.SECONDARY : $(TARGET).elf |
.PRECIOUS : $(OBJ) |
%.elf: $(OBJ) |
@echo |
@echo $(MSG_LINKING) $@ |
$(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS) |
# Compile: create object files from C source files. |
%.o : %.c |
@echo |
@echo $(MSG_COMPILING) $< |
$(CC) -c $(ALL_CFLAGS) $< -o $@ |
# Compile: create assembler files from C source files. |
%.s : %.c |
$(CC) -S $(ALL_CFLAGS) $< -o $@ |
# Assemble: create object files from assembler source files. |
%.o : %.S |
@echo |
@echo $(MSG_ASSEMBLING) $< |
$(CC) -c $(ALL_ASFLAGS) $< -o $@ |
# Target: clean project. |
clean: begin clean_list finished end |
clean_list : |
@echo |
@echo $(MSG_CLEANING) |
# $(REMOVE) $(TARGET).hex |
$(REMOVE) $(TARGET).eep |
$(REMOVE) $(TARGET).obj |
$(REMOVE) $(TARGET).cof |
$(REMOVE) $(TARGET).elf |
$(REMOVE) $(TARGET).map |
$(REMOVE) $(TARGET).obj |
$(REMOVE) $(TARGET).a90 |
$(REMOVE) $(TARGET).sym |
$(REMOVE) $(TARGET).lnk |
$(REMOVE) $(TARGET).lss |
$(REMOVE) $(OBJ) |
$(REMOVE) $(LST) |
$(REMOVE) $(SRC:.c=.s) |
$(REMOVE) $(SRC:.c=.d) |
# Automatically generate C source code dependencies. |
# (Code originally taken from the GNU make user manual and modified |
# (See README.txt Credits).) |
# |
# Note that this will work with sh (bash) and sed that is shipped with WinAVR |
# (see the SHELL variable defined above). |
# This may not work with other shells or other seds. |
# |
%.d: %.c |
set -e; $(CC) -MM $(ALL_CFLAGS) $< \ |
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > $@; \ |
[ -s $@ ] || rm -f $@ |
# Remove the '-' if you want to see the dependency files generated. |
-include $(SRC:.c=.d) |
# Listing of phony targets. |
.PHONY : all begin finish end sizebefore sizeafter gccversion coff extcoff \ |
clean clean_list program |
/branches/MicroMag3_Nick666/V0.68d/menu.c |
---|
0,0 → 1,145 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
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 = 13,MenuePunkt=0; |
if(RemoteTasten & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue; LcdClear(); RemotePollDisplayLine = -1; } |
if(RemoteTasten & KEY2) { MenuePunkt++; LcdClear(); RemotePollDisplayLine = -1;} |
if((RemoteTasten & KEY1) && (RemoteTasten & KEY2)) MenuePunkt = 0; |
if(MenuePunkt < 10) {LCD_printfxy(17,0,"[%i]",MenuePunkt);} else {LCD_printfxy(16,0,"[%i]",MenuePunkt);}; |
switch(MenuePunkt) |
{ |
case 0: |
LCD_printfxy(0,0,"+ MikroKopter +"); |
LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10,VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX+'a'); |
LCD_printfxy(0,2,"Setting: %d ",GetActiveParamSetNumber()); |
LCD_printfxy(0,3,"(c) Holger Buss"); |
// if(RemoteTasten & KEY3) TestInt--; |
// if(RemoteTasten & KEY4) TestInt++; |
break; |
case 1: |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
LCD_printfxy(0,0,"Hoehe: %5i",HoehenWert); |
LCD_printfxy(0,1,"SollHoehe: %5i",SollHoehe); |
LCD_printfxy(0,2,"Luftdruck: %5i",MessLuftdruck); |
LCD_printfxy(0,3,"Off : %5i",DruckOffsetSetting); |
} |
else |
{ |
LCD_printfxy(0,1,"Keine "); |
LCD_printfxy(0,2,"Höhenregelung"); |
} |
break; |
case 2: |
LCD_printfxy(0,0,"akt. Lage"); |
LCD_printfxy(0,1,"Nick: %5i",IntegralNick/1024); |
LCD_printfxy(0,2,"Roll: %5i",IntegralRoll/1024); |
LCD_printfxy(0,3,"Kompass: %5i",KompassValue); |
break; |
case 3: |
LCD_printfxy(0,0,"K1:%4i K2:%4i ",PPM_in[1],PPM_in[2]); |
LCD_printfxy(0,1,"K3:%4i K4:%4i ",PPM_in[3],PPM_in[4]); |
LCD_printfxy(0,2,"K5:%4i K6:%4i ",PPM_in[5],PPM_in[6]); |
LCD_printfxy(0,3,"K7:%4i K8:%4i ",PPM_in[7],PPM_in[8]); |
break; |
case 4: |
LCD_printfxy(0,0,"Ni:%4i Ro:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_NICK]],PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]); |
LCD_printfxy(0,1,"Gs:%4i Gi:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_GAS]],PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]); |
LCD_printfxy(0,2,"P1:%4i P2:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]],PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]]); |
LCD_printfxy(0,3,"P3:%4i P4:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]],PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]]); |
break; |
case 5: |
LCD_printfxy(0,0,"Gyro - Sensor"); |
if(PlatinenVersion == 10) |
{ |
LCD_printfxy(0,1,"Nick %4i (%3i)",AdWertNick - AdNeutralNick, AdNeutralNick); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AdWertRoll - AdNeutralRoll, AdNeutralRoll); |
LCD_printfxy(0,3,"Gier %4i (%3i)",MesswertGier, AdNeutralGier); |
} |
else |
{ |
LCD_printfxy(0,1,"Nick %4i (%3i)",AdWertNick - AdNeutralNick, AdNeutralNick/2); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AdWertRoll - AdNeutralRoll, AdNeutralRoll/2); |
LCD_printfxy(0,3,"Gier %4i (%3i)",MesswertGier, AdNeutralGier/2); |
} |
break; |
case 6: |
LCD_printfxy(0,0,"ACC - Sensor"); |
LCD_printfxy(0,1,"Nick %4i (%3i)",AdWertAccNick,acc_neutral.X); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AdWertAccRoll,acc_neutral.Y); |
LCD_printfxy(0,3,"Hoch %4i (%3i)",Mittelwert_AccHoch,(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,"ExternControl " ); |
LCD_printfxy(0,1,"Ni:%4i Ro:%4i ",ExternControl.Nick,ExternControl.Roll); |
LCD_printfxy(0,2,"Gs:%4i Gi:%4i ",ExternControl.Gas,ExternControl.Gier); |
LCD_printfxy(0,3,"Hi:%4i Cf:%4i ",ExternControl.Hight,ExternControl.Config); |
break; |
case 12: |
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 13: |
LCD_printfxy(0,0,"MM3 Range"); |
LCD_printfxy(0,1,"X_Range: %4i",MM3_calib.X_range); |
LCD_printfxy(0,2,"Y_Range: %4i",MM3_calib.Y_range); |
LCD_printfxy(0,3,"Z_Range: %4i",MM3_calib.Z_range); |
break; |
default: MaxMenue = MenuePunkt - 1; |
MenuePunkt = 0; |
break; |
} |
RemoteTasten = 0; |
} |
/branches/MicroMag3_Nick666/V0.68d/menu.h |
---|
0,0 → 1,6 |
extern void Menu(void); |
extern void LcdClear(void); |
extern char DisplayBuff[80]; |
extern unsigned char DispPtr; |
extern unsigned char RemoteTasten; |
/branches/MicroMag3_Nick666/V0.68d/mymath.c |
---|
0,0 → 1,111 |
/* |
Copyright 2007, Niklas Nold |
This program (files math.c and math.h) is free software; you can redistribute it and/or modify |
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; |
either version 3 of the License, or (at your option) any later version. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Please note: All the other files for the project "Mikrokopter" by H. Buss are under the license (license_buss.txt) published by www.mikrokopter.de |
*/ |
#include "main.h" |
const uint8_t pgm_atan[346] PROGMEM = {0,1,2,3,4,4,5,6,7,8,9,10,11,11,12,13,14,15,16,17,17,18,19,20,21,21,22,23,24,24,25,26,27,27,28,29,29,30,31,31,32,33,33,34,35,35,36,36,37,37,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,45,46,46,47,47,48,48,48,49,49,50,50,50,51,51,51,52,52,52,53,53,53,54,54,54,55,55,55,55,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,60,61,61,61,61,62,62,62,62,62,63,63,63,63,63,63,64,64,64,64,64,64,65,65,65,65,65,65,66,66,66,66,66,66,66,67,67,67,67,67,67,67,68,68,68,68,68,68,68,68,69,69,69,69,69,69,69,69,69,70,70,70,70,70,70,70,70,70,71,71,71,71,71,71,71,71,71,71,71,72,72,72,72,72,72,72,72,72,72,72,73,73,73,73,73,73,73,73,73,73,73,73,73,73,74,74,74,74,74,74,74,74,74,74,74,74,74,74,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79}; |
//############################################################################ |
// Arkustangens2 im Gradmaß |
signed int atan2_i(signed int x, signed int y) |
//############################################################################ |
{ |
int16_t angle; |
uint16_t i; |
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 / x); // Berechne i für die Lookup table (Schrittweite atan(x) ist 0,015625 -> y *64) |
if (i<346) angle = pgm_read_byte(&pgm_atan[i]); // Lookup für 1° bis 79° |
else if (i>7334) angle = 90; // Grenzwert ist 90° |
else if (i>2444) angle = 89; // 89° bis 80° über Wertebereiche |
else if (i>1465) angle = 88; |
else if (i>1046) angle = 87; |
else if (i>813) angle = 86; |
else if (i>664) angle = 85; |
else if (i>561) angle = 84; |
else if (i>486) angle = 83; |
else if (i>428) angle = 82; |
else if (i>382) angle = 81; |
else angle = 80; // (i>345) |
if (x > 0) return (angle*m); // Quadrant I und IV |
else if ((x < 0) && (m > 0)) return (-angle + 180); // Quadrant II |
else return (angle - 180); // x < 0 && y < 0 Quadrant III |
} |
const uint16_t pgm_sinus_i[91] PROGMEM = {0,18,36,54,71,89,107,125,143,160,178,195,213,230,248,265,282,299,316,333,350,367,384,400,416,433,449,465,481,496,512,527,543,558,573,587,602,616,630,644,658,672,685,698,711,724,737,749,761,773,784,796,807,818,828,839,849,859,868,878,887,896,904,912,920,928,935,943,949,956,962,968,974,979,984,989,994,998,1002,1005,1008,1011,1014,1016,1018,1020,1022,1023,1023,1024,1024}; |
//############################################################################ |
// Kosinusfunktion im Gradmaß |
signed int cos_i(signed int winkel) |
//############################################################################ |
{ |
return (sin_i(90-winkel)); |
} |
//############################################################################ |
// Sinusfunktion im Gradmaß |
signed int sin_i(signed int winkel) |
//############################################################################ |
{ |
short int m,n; |
signed int sinus; |
if (winkel < 0) |
{ |
m = -1; |
winkel = abs(winkel); |
} |
else m = +1; |
// Quadranten auswerten |
if (winkel <= 90) n=1; |
else if ((winkel > 90) && (winkel <= 180)) {winkel = 180 - winkel; n = 1;} |
else if ((winkel > 180) && (winkel <= 270)) {winkel = winkel - 180; n = -1;} |
else {winkel = 360 - winkel; n = -1;} //if ((winkel > 270) && (winkel <= 360)) |
sinus = pgm_read_word(&pgm_sinus_i[winkel]); |
return (sinus*m*n); |
} |
/* |
const uint8_t pgm_asin[201] PROGMEM = {0,0,1,1,1,1,2,2,2,3,3,3,3,4,4,4,5,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9,10,10,10,11,11,11,12,12,12,12,13,13,13,14,14,14,14,15,15,15,16,16,16,17,17,17,17,18,18,18,19,19,19,20,20,20,20,21,21,21,22,22,22,23,23,23,24,24,24,25,25,25,25,26,26,26,27,27,27,28,28,28,29,29,29,30,30,30,31,31,31,32,32,32,33,33,33,34,34,34,35,35,35,36,36,37,37,37,38,38,38,39,39,39,40,40,41,41,41,42,42,42,43,43,44,44,44,45,45,46,46,46,47,47,48,48,49,49,49,50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57,58,58,59,59,60,60,61,62,62,63,64,64,65,66,66,67,68,68,69,70,71,72,73,74,75,76,77,79,80,82,84,90}; |
//############################################################################ |
// Akurssinusfunktion im Gradmaß |
int8_t asin_i(signed int i) |
//############################################################################ |
{ |
signed char m; |
if (i < 0) {m=-1;i=abs(i);} |
else m=1; |
i %= 200; |
return (pgm_read_byte(&pgm_asin[i]) * m); |
} |
*/ |
/branches/MicroMag3_Nick666/V0.68d/mymath.h |
---|
0,0 → 1,8 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
extern signed int atan2_i(signed int x, signed int y); |
extern signed int cos_i(signed int winkel); |
extern signed int sin_i(signed int winkel); |
//extern int8_t asin_i(signed int i); |
/branches/MicroMag3_Nick666/V0.68d/old_macros.h |
---|
0,0 → 1,47 |
/* |
For backwards compatibility only. |
Ingo Busker ingo@mikrocontroller.com |
*/ |
#ifndef cbi |
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) |
#endif |
#ifndef sbi |
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) |
#endif |
#ifndef inb |
#define inb(sfr) _SFR_BYTE(sfr) |
#endif |
#ifndef outb |
#define outb(sfr, val) (_SFR_BYTE(sfr) = (val)) |
#endif |
#ifndef inw |
#define inw(sfr) _SFR_WORD(sfr) |
#endif |
#ifndef outw |
#define outw(sfr, val) (_SFR_WORD(sfr) = (val)) |
#endif |
#ifndef outp |
#define outp(val, sfr) outb(sfr, val) |
#endif |
#ifndef inp |
#define inp(sfr) inb(sfr) |
#endif |
#ifndef BV |
#define BV(bit) _BV(bit) |
#endif |
#ifndef PRG_RDB |
#define PRG_RDB pgm_read_byte |
#endif |
/branches/MicroMag3_Nick666/V0.68d/printf_P.c |
---|
0,0 → 1,480 |
// Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist nicht von der Lizenz für den MikroKopter-Teil unterstellt |
/* |
Copyright (C) 1993 Free Software Foundation |
This file is part of the GNU IO Library. This library is free |
software; you can redistribute it and/or modify it under the |
terms of the GNU General Public License as published by the |
Free Software Foundation; either version 2, or (at your option) |
any later version. |
This library is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this library; see the file COPYING. If not, write to the Free |
Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
As a special exception, if you link this library with files |
compiled with a GNU compiler to produce an executable, this does not cause |
the resulting executable to be covered by the GNU General Public License. |
This exception does not however invalidate any other reasons why |
the executable file might be covered by the GNU General Public License. */ |
/* |
* Copyright (c) 1990 Regents of the University of California. |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* are met: |
* 1. Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* 2. Redistributions in binary form must reproduce the above copyright |
* notice, this list of conditions and the following disclaimer in the |
* documentation and/or other materials provided with the distribution. |
* 3. [rescinded 22 July 1999] |
* 4. Neither the name of the University nor the names of its contributors |
* may be used to endorse or promote products derived from this software |
* without specific prior written permission. |
* |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* SUCH DAMAGE. |
*/ |
/****************************************************************************** |
This file is a patched version of printf called _printf_P |
It is made to work with avr-gcc for Atmel AVR MCUs. |
There are some differences from standard printf: |
1. There is no floating point support (with fp the code is about 8K!) |
2. Return type is void |
3. Format string must be in program memory (by using macro printf this is |
done automaticaly) |
4. %n is not implemented (just remove the comment around it if you need it) |
5. If LIGHTPRINTF is defined, the code is about 550 bytes smaller and the |
folowing specifiers are disabled : |
space # * . - + p s o O |
6. A function void uart_sendchar(char c) is used for output. The UART must |
be initialized before using printf. |
Alexander Popov |
sasho@vip.orbitel.bg |
******************************************************************************/ |
/* |
* Actual printf innards. |
* |
* This code is large and complicated... |
*/ |
#include <string.h> |
#ifdef __STDC__ |
#include <stdarg.h> |
#else |
#include <varargs.h> |
#endif |
#include "main.h" |
//#define LIGHTPRINTF |
char PrintZiel; |
char Putchar(char zeichen) |
{ |
if(PrintZiel == OUT_LCD) { DisplayBuff[DispPtr++] = zeichen; return(1);} |
else return(uart_putchar(zeichen)); |
} |
void PRINT(const char * ptr, unsigned int len) |
{ |
for(;len;len--) Putchar(*ptr++); |
} |
void PRINTP(const char * ptr, unsigned int len) |
{ |
for(;len;len--) Putchar(pgm_read_byte(ptr++)); |
} |
void PAD_SP(signed char howmany) |
{ |
for(;howmany>0;howmany--) Putchar(' '); |
} |
void PAD_0(signed char howmany) |
{ |
for(;howmany>0;howmany--) Putchar('0'); |
} |
#define BUF 40 |
/* |
* Macros for converting digits to letters and vice versa |
*/ |
#define to_digit(c) ((c) - '0') |
#define is_digit(c) ((c)<='9' && (c)>='0') |
#define to_char(n) ((n) + '0') |
/* |
* Flags used during conversion. |
*/ |
#define LONGINT 0x01 /* long integer */ |
#define LONGDBL 0x02 /* long double; unimplemented */ |
#define SHORTINT 0x04 /* short integer */ |
#define ALT 0x08 /* alternate form */ |
#define LADJUST 0x10 /* left adjustment */ |
#define ZEROPAD 0x20 /* zero (as opposed to blank) pad */ |
#define HEXPREFIX 0x40 /* add 0x or 0X prefix */ |
void _printf_P (char ziel,char const *fmt0, ...) /* Works with string from FLASH */ |
{ |
va_list ap; |
register const char *fmt; /* format string */ |
register char ch; /* character from fmt */ |
register int n; /* handy integer (short term usage) */ |
register char *cp; /* handy char pointer (short term usage) */ |
const char *fmark; /* for remembering a place in fmt */ |
register unsigned char flags; /* flags as above */ |
signed char width; /* width from format (%8d), or 0 */ |
signed char prec; /* precision from format (%.3d), or -1 */ |
char sign; /* sign prefix (' ', '+', '-', or \0) */ |
unsigned long _ulong=0; /* integer arguments %[diouxX] */ |
#define OCT 8 |
#define DEC 10 |
#define HEX 16 |
unsigned char base; /* base for [diouxX] conversion */ |
signed char dprec; /* a copy of prec if [diouxX], 0 otherwise */ |
signed char dpad; /* extra 0 padding needed for integers */ |
signed char fieldsz; /* field size expanded by sign, dpad etc */ |
/* The initialization of 'size' is to suppress a warning that |
'size' might be used unitialized. It seems gcc can't |
quite grok this spaghetti code ... */ |
signed char size = 0; /* size of converted field or string */ |
char buf[BUF]; /* space for %c, %[diouxX], %[eEfgG] */ |
char ox[2]; /* space for 0x hex-prefix */ |
PrintZiel = ziel; // bestimmt, LCD oder UART |
va_start(ap, fmt0); |
fmt = fmt0; |
/* |
* Scan the format for conversions (`%' character). |
*/ |
for (;;) { |
for (fmark = fmt; (ch = pgm_read_byte(fmt)) != '\0' && ch != '%'; fmt++) |
/* void */; |
if ((n = fmt - fmark) != 0) { |
PRINTP(fmark, n); |
} |
if (ch == '\0') |
goto done; |
fmt++; /* skip over '%' */ |
flags = 0; |
dprec = 0; |
width = 0; |
prec = -1; |
sign = '\0'; |
rflag: ch = PRG_RDB(fmt++); |
reswitch: |
#ifdef LIGHTPRINTF |
if (ch=='o' || ch=='u' || (ch|0x20)=='x') { |
#else |
if (ch=='u' || (ch|0x20)=='x') { |
#endif |
if (flags&LONGINT) { |
_ulong=va_arg(ap, unsigned long); |
} else { |
register unsigned int _d; |
_d=va_arg(ap, unsigned int); |
_ulong = flags&SHORTINT ? (unsigned long)(unsigned short)_d : (unsigned long)_d; |
} |
} |
#ifndef LIGHTPRINTF |
if(ch==' ') { |
/* |
* ``If the space and + flags both appear, the space |
* flag will be ignored.'' |
* -- ANSI X3J11 |
*/ |
if (!sign) |
sign = ' '; |
goto rflag; |
} else if (ch=='#') { |
flags |= ALT; |
goto rflag; |
} else if (ch=='*'||ch=='-') { |
if (ch=='*') { |
/* |
* ``A negative field width argument is taken as a |
* - flag followed by a positive field width.'' |
* -- ANSI X3J11 |
* They don't exclude field widths read from args. |
*/ |
if ((width = va_arg(ap, int)) >= 0) |
goto rflag; |
width = -width; |
} |
flags |= LADJUST; |
flags &= ~ZEROPAD; /* '-' disables '0' */ |
goto rflag; |
} else if (ch=='+') { |
sign = '+'; |
goto rflag; |
} else if (ch=='.') { |
if ((ch = PRG_RDB(fmt++)) == '*') { |
n = va_arg(ap, int); |
prec = n < 0 ? -1 : n; |
goto rflag; |
} |
n = 0; |
while (is_digit(ch)) { |
n = n*10 + to_digit(ch); |
ch = PRG_RDB(fmt++); |
} |
prec = n < 0 ? -1 : n; |
goto reswitch; |
} else |
#endif /* LIGHTPRINTF */ |
if (ch=='0') { |
/* |
* ``Note that 0 is taken as a flag, not as the |
* beginning of a field width.'' |
* -- ANSI X3J11 |
*/ |
if (!(flags & LADJUST)) |
flags |= ZEROPAD; /* '-' disables '0' */ |
goto rflag; |
} else if (ch>='1' && ch<='9') { |
n = 0; |
do { |
n = 10 * n + to_digit(ch); |
ch = PRG_RDB(fmt++); |
} while (is_digit(ch)); |
width = n; |
goto reswitch; |
} else if (ch=='h') { |
flags |= SHORTINT; |
goto rflag; |
} else if (ch=='l') { |
flags |= LONGINT; |
goto rflag; |
} else if (ch=='c') { |
*(cp = buf) = va_arg(ap, int); |
size = 1; |
sign = '\0'; |
} else if (ch=='D'||ch=='d'||ch=='i') { |
if(ch=='D') |
flags |= LONGINT; |
if (flags&LONGINT) { |
_ulong=va_arg(ap, long); |
} else { |
register int _d; |
_d=va_arg(ap, int); |
_ulong = flags&SHORTINT ? (long)(short)_d : (long)_d; |
} |
if ((long)_ulong < 0) { |
_ulong = -_ulong; |
sign = '-'; |
} |
base = DEC; |
goto number; |
} else |
/* |
if (ch=='n') { |
if (flags & LONGINT) |
*va_arg(ap, long *) = ret; |
else if (flags & SHORTINT) |
*va_arg(ap, short *) = ret; |
else |
*va_arg(ap, int *) = ret; |
continue; // no output |
} else |
*/ |
#ifndef LIGHTPRINTF |
if (ch=='O'||ch=='o') { |
if (ch=='O') |
flags |= LONGINT; |
base = OCT; |
goto nosign; |
} else if (ch=='p') { |
/* |
* ``The argument shall be a pointer to void. The |
* value of the pointer is converted to a sequence |
* of printable characters, in an implementation- |
* defined manner.'' |
* -- ANSI X3J11 |
*/ |
/* NOSTRICT */ |
_ulong = (unsigned int)va_arg(ap, void *); |
base = HEX; |
flags |= HEXPREFIX; |
ch = 'x'; |
goto nosign; |
} else if (ch=='s') { // print a string from RAM |
if ((cp = va_arg(ap, char *)) == NULL) { |
cp=buf; |
cp[0] = '('; |
cp[1] = 'n'; |
cp[2] = 'u'; |
cp[4] = cp[3] = 'l'; |
cp[5] = ')'; |
cp[6] = '\0'; |
} |
if (prec >= 0) { |
/* |
* can't use strlen; can only look for the |
* NUL in the first `prec' characters, and |
* strlen() will go further. |
*/ |
char *p = (char*)memchr(cp, 0, prec); |
if (p != NULL) { |
size = p - cp; |
if (size > prec) |
size = prec; |
} else |
size = prec; |
} else |
size = strlen(cp); |
sign = '\0'; |
} else |
#endif /* LIGHTPRINTF */ |
if(ch=='U'||ch=='u') { |
if (ch=='U') |
flags |= LONGINT; |
base = DEC; |
goto nosign; |
} else if (ch=='X'||ch=='x') { |
base = HEX; |
/* leading 0x/X only if non-zero */ |
if (flags & ALT && _ulong != 0) |
flags |= HEXPREFIX; |
/* unsigned conversions */ |
nosign: sign = '\0'; |
/* |
* ``... diouXx conversions ... if a precision is |
* specified, the 0 flag will be ignored.'' |
* -- ANSI X3J11 |
*/ |
number: if ((dprec = prec) >= 0) |
flags &= ~ZEROPAD; |
/* |
* ``The result of converting a zero value with an |
* explicit precision of zero is no characters.'' |
* -- ANSI X3J11 |
*/ |
cp = buf + BUF; |
if (_ulong != 0 || prec != 0) { |
register unsigned char _d,notlastdigit; |
do { |
notlastdigit=(_ulong>=base); |
_d = _ulong % base; |
if (_d<10) { |
_d+='0'; |
} else { |
_d+='a'-10; |
if (ch=='X') _d&=~0x20; |
} |
*--cp=_d; |
_ulong /= base; |
} while (notlastdigit); |
#ifndef LIGHTPRINTF |
// handle octal leading 0 |
if (base==OCT && flags & ALT && *cp != '0') |
*--cp = '0'; |
#endif |
} |
size = buf + BUF - cp; |
} else { //default |
/* "%?" prints ?, unless ? is NUL */ |
if (ch == '\0') |
goto done; |
/* pretend it was %c with argument ch */ |
cp = buf; |
*cp = ch; |
size = 1; |
sign = '\0'; |
} |
/* |
* All reasonable formats wind up here. At this point, |
* `cp' points to a string which (if not flags&LADJUST) |
* should be padded out to `width' places. If |
* flags&ZEROPAD, it should first be prefixed by any |
* sign or other prefix; otherwise, it should be blank |
* padded before the prefix is emitted. After any |
* left-hand padding and prefixing, emit zeroes |
* required by a decimal [diouxX] precision, then print |
* the string proper, then emit zeroes required by any |
* leftover floating precision; finally, if LADJUST, |
* pad with blanks. |
*/ |
/* |
* compute actual size, so we know how much to pad. |
*/ |
fieldsz = size; |
dpad = dprec - size; |
if (dpad < 0) |
dpad = 0; |
if (sign) |
fieldsz++; |
else if (flags & HEXPREFIX) |
fieldsz += 2; |
fieldsz += dpad; |
/* right-adjusting blank padding */ |
if ((flags & (LADJUST|ZEROPAD)) == 0) |
PAD_SP(width - fieldsz); |
/* prefix */ |
if (sign) { |
PRINT(&sign, 1); |
} else if (flags & HEXPREFIX) { |
ox[0] = '0'; |
ox[1] = ch; |
PRINT(ox, 2); |
} |
/* right-adjusting zero padding */ |
if ((flags & (LADJUST|ZEROPAD)) == ZEROPAD) |
PAD_0(width - fieldsz); |
/* leading zeroes from decimal precision */ |
PAD_0(dpad); |
/* the string or number proper */ |
PRINT(cp, size); |
/* left-adjusting padding (always blank) */ |
if (flags & LADJUST) |
PAD_SP(width - fieldsz); |
} |
done: |
va_end(ap); |
} |
/branches/MicroMag3_Nick666/V0.68d/printf_P.h |
---|
0,0 → 1,19 |
#ifndef _PRINTF_P_H_ |
#define _PRINTF_P_H_ |
#include <avr/pgmspace.h> |
#define OUT_V24 0 |
#define OUT_LCD 1 |
void _printf_P (char, char const *fmt0, ...); |
extern char PrintZiel; |
#define printf_P(format, args...) _printf_P(OUT_V24,format , ## args) |
#define printf(format, args...) _printf_P(OUT_V24,PSTR(format) , ## args) |
#define LCD_printfxy(x,y,format, args...) { DispPtr = y * 20 + x; _printf_P(OUT_LCD,PSTR(format) , ## args);} |
#define LCD_printf(format, args...) { _printf_P(OUT_LCD,PSTR(format) , ## args);} |
#endif |
/branches/MicroMag3_Nick666/V0.68d/rc.c |
---|
0,0 → 1,86 |
/*####################################################################################### |
Decodieren eines RC Summen Signals |
#######################################################################################*/ |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "rc.h" |
#include "main.h" |
volatile int PPM_in[11]; |
volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
volatile unsigned char NewPpmData = 1; |
//############################################################################ |
//zum decodieren des PPM-Signals wird Timer1 mit seiner Input |
//Capture Funktion benutzt: |
void rc_sum_init (void) |
//############################################################################ |
{ |
TCCR1B=(1<<CS11)|(1<<CS10)|(1<<ICES1)|(1<<ICNC1);//|(1 << WGM12); //timer1 prescale 64 |
// PWM |
//TCCR1A = (1 << COM1B1) | (1 << WGM11) | (1 << WGM10); |
//TCCR1B |= (1 << WGM12); |
//OCR1B = 55; |
TIMSK1 |= _BV(ICIE1); |
AdNeutralGier = 0; |
AdNeutralRoll = 0; |
AdNeutralNick = 0; |
return; |
} |
//############################################################################ |
//Diese Routine startet und inizialisiert den Timer für RC |
SIGNAL(SIG_INPUT_CAPTURE1) |
//############################################################################ |
{ |
static unsigned int AltICR=0; |
signed int signal = 0,tmp; |
static int index; |
signal = (unsigned int) ICR1 - AltICR; |
AltICR = ICR1; |
//Syncronisationspause? |
// if((signal > (int) Parameter_UserParam2 * 10) && (signal < 8000)) |
if((signal > 1100) && (signal < 8000)) |
{ |
if(index >= 4) NewPpmData = 0; // Null bedeutet: Neue Daten |
index = 1; |
} |
else |
{ |
if(index < 10) |
{ |
if((signal > 250) && (signal < 687)) |
{ |
signal -= 466; |
// Stabiles Signal |
if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
// tmp = (7 * (PPM_in[index]) + signal) / 8; |
tmp = (3 * (PPM_in[index]) + signal) / 4; |
if(tmp > signal+1) tmp--; else |
if(tmp < signal-1) tmp++; |
if(SenderOkay >= 195) PPM_diff[index] = ((tmp - PPM_in[index]) / 3) * 3; |
else PPM_diff[index] = 0; |
PPM_in[index] = tmp; |
} |
index++; |
if(index == 5) PORTD |= 0x20; else PORTD &= ~0x20; // Servosignal an J3 anlegen |
if(index == 6) PORTD |= 0x10; else PORTD &= ~0x10; // Servosignal an J4 anlegen |
if(index == 7) PORTD |= 0x08; else PORTD &= ~0x08; // Servosignal an J5 anlegen |
} |
} |
} |
/branches/MicroMag3_Nick666/V0.68d/rc.h |
---|
0,0 → 1,29 |
/*####################################################################################### |
Derkodieren eines RC Summen Signals |
#######################################################################################*/ |
#ifndef _RC_H |
#define _RC_H |
#if defined (__AVR_ATmega32__) |
#define TIMER_TEILER CK64 |
#define TIMER_RELOAD_VALUE 250 |
#endif |
#if defined (__AVR_ATmega644__) |
//#define TIMER_TEILER CK64 |
#define TIMER_RELOAD_VALUE 250 |
//#define TIMER_TEILER CK256 // bei 20MHz |
//#define TIMER_RELOAD_VALUE -78 // bei 20MHz |
#endif |
#define GAS PPM_in[2] |
extern void rc_sum_init (void); |
extern volatile int PPM_in[11]; |
extern volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
extern volatile unsigned char NewPpmData; |
#endif //_RC_H |
/branches/MicroMag3_Nick666/V0.68d/spi.c |
---|
0,0 → 1,113 |
// ######################## SPI - FlightCtrl ################### |
#include "main.h" |
struct str_ToNaviCtrl ToNaviCtrl; |
struct str_FromNaviCtrl FromNaviCtrl; |
unsigned char SPI_BufferIndex; |
volatile unsigned char SPI_Buffer[sizeof(FromNaviCtrl)]; |
unsigned char *Ptr_buffer = (unsigned char *) &ToNaviCtrl; |
unsigned char SPITransferCompleted, SPI_ChkSum; |
#ifdef USE_SPI_COMMUNICATION |
//------------------------------------------------------ |
void SPI_MasterInit(void) |
{ |
DDR_SPI |= (1<<DD_MOSI)|(1<<DD_SCK); // Set MOSI and SCK output, all others input |
SLAVE_SELECT_DDR_PORT |= (1 << SPI_SLAVE_SELECT); |
SPCR = (1<<SPE)|(1<<MSTR)|(1<<SPR1)|(0<<SPIE); // Enable SPI, Master, set clock rate fck/64 |
SLAVE_SELECT_PORT |= (1 << SPI_SLAVE_SELECT); |
SPITransferCompleted = 1; |
ToNaviCtrl.Sync1 = 0x81; |
ToNaviCtrl.Sync2 = 0x55; |
ToNaviCtrl.Comp = 12; |
ToNaviCtrl.IntegralNick = 12345; |
ToNaviCtrl.IntegralRoll = 56789; |
ToNaviCtrl.StickNick = 100; |
ToNaviCtrl.StickRoll = 150;//(char) StickRoll; |
ToNaviCtrl.StickGier = 200;//(char) StickGier; |
} |
//------------------------------------------------------ |
void SPI_StartTransmitPacket(void) |
{ |
//if ((SLAVE_SELECT_PORT & (1 << SPI_SLAVE_SELECT)) == 0) return; // transfer of prev. packet not completed |
if (!SPITransferCompleted) return; |
SLAVE_SELECT_PORT &= ~(1 << SPI_SLAVE_SELECT); // SelectSlave |
SPITransferCompleted = 0; |
UpdateSPI_Buffer(); // update buffer |
SPI_BufferIndex = 1; |
DebugOut.Analog[16]++; |
// -- Debug-Output --- |
/* DebugOut.Analog[20] = FromNaviCtrl.Comp; |
DebugOut.Analog[21] = FromNaviCtrl.GPS_Nick; |
DebugOut.Analog[22] = FromNaviCtrl.GPS_Roll; |
DebugOut.Analog[23] = FromNaviCtrl.CompassValue; |
*/ |
//---- |
SPDR = ToNaviCtrl.Sync1; // Start transmission |
ToNaviCtrl.ChkSum = ToNaviCtrl.Sync1; |
} |
//------------------------------------------------------ |
//SIGNAL(SIG_SPI) |
void SPI_TransmitByte(void) |
{ |
if (!(SPSR & (1 << SPIF))) return; |
SLAVE_SELECT_PORT |= (1 << SPI_SLAVE_SELECT); // DeselectSlave |
if (SPI_BufferIndex < sizeof(FromNaviCtrl)) |
{ |
SPI_Buffer[SPI_BufferIndex]= SPDR; // get data |
// if (SPI_BufferIndex < 32 ) DebugOut.Analog[26+SPI_BufferIndex] = SPI_Buffer[SPI_BufferIndex]; |
//if(SPDR!= 0x00) DebugOut.Analog[19]++; ; |
} |
if (SPI_BufferIndex < sizeof(ToNaviCtrl)) |
{ |
asm volatile ("nop"); asm volatile ("nop"); asm volatile ("nop"); asm volatile ("nop"); |
asm volatile ("nop"); asm volatile ("nop"); asm volatile ("nop"); asm volatile ("nop"); |
SLAVE_SELECT_PORT &= ~(1 << SPI_SLAVE_SELECT); // SelectSlave |
asm volatile ("nop"); asm volatile ("nop"); asm volatile ("nop"); asm volatile ("nop"); |
asm volatile ("nop"); asm volatile ("nop"); asm volatile ("nop"); asm volatile ("nop"); |
SPDR = Ptr_buffer[SPI_BufferIndex]; |
ToNaviCtrl.ChkSum += Ptr_buffer[SPI_BufferIndex]; |
} |
else |
{ |
unsigned char *ptr = (unsigned char *)&FromNaviCtrl; |
SPITransferCompleted = 1; |
memcpy(ptr, (unsigned char *) SPI_Buffer, sizeof(SPI_Buffer)); |
} |
SPI_BufferIndex++; |
} |
//------------------------------------------------------ |
void UpdateSPI_Buffer(void) |
{ |
/*static unsigned char i =0; |
cli(); |
ToNaviCtrl.Comp = SPI_PROTOCOL_COMP; |
ToNaviCtrl.IntegralNick = (int) (IntegralNick >> 4); |
ToNaviCtrl.IntegralRoll = (int) (IntegralRoll >> 4); |
ToNaviCtrl.StickNick = 4; |
ToNaviCtrl.StickRoll = 5;//(char) StickRoll; |
ToNaviCtrl.StickGier = 6;//(char) StickGier; |
sei(); |
*/ |
} |
#endif |
/branches/MicroMag3_Nick666/V0.68d/spi.h |
---|
0,0 → 1,89 |
// ######################## SPI - FlightCtrl ################### |
#ifndef _SPI_H |
#define _SPI_H |
//#define USE_SPI_COMMUNICATION |
#define SPI_PROTOCOL_COMP 1 |
//----------------------------------------- |
#define DDR_SPI DDRB |
#define DD_SS PB4 |
#define DD_SCK PB7 |
#define DD_MOSI PB5 |
#define DD_MISO PB6 |
// for compatibility reasons gcc3.x <-> gcc4.x |
#ifndef SPCR |
#define SPCR SPCR0 |
#endif |
#ifndef SPE |
#define SPE SPE0 |
#endif |
#ifndef MSTR |
#define MSTR MSTR0 |
#endif |
#ifndef SPR1 |
#define SPR1 SPR01 |
#endif |
#ifndef SPR0 |
#define SPR0 SPR00 |
#endif |
#ifndef SPIE |
#define SPIE SPIE0 |
#endif |
#ifndef SPDR |
#define SPDR SPDR0 |
#endif |
#ifndef SPIF |
#define SPIF SPIF0 |
#endif |
#ifndef SPSR |
#define SPSR SPSR0 |
#endif |
// ------------------------- |
#define SLAVE_SELECT_DDR_PORT DDRC |
#define SLAVE_SELECT_PORT PORTC |
#define SPI_SLAVE_SELECT PC5 |
struct str_ToNaviCtrl |
{ |
unsigned char Sync1, Sync2; |
unsigned char Comp; |
int IntegralNick; |
int IntegralRoll; |
char StickNick,StickRoll,StickGier; |
unsigned char ChkSum; |
}; |
struct str_FromNaviCtrl |
{ |
unsigned int Dummy; |
unsigned char Comp; |
int GPS_Nick; |
int GPS_Roll; |
int CompassValue; |
}; |
#ifdef USE_SPI_COMMUNICATION |
extern struct str_ToNaviCtrl ToNaviCtrl; |
extern struct str_FromNaviCtrl FromNaviCtrl; |
extern void SPI_MasterInit(void); |
extern void SPI_StartTransmitPacket(void); |
extern void UpdateSPI_Buffer(void); |
extern void SPI_TransmitByte(void); |
#else |
// -------------------------------- Dummy ----------------------------------------- |
#define SPI_MasterInit() ; |
#define SPI_StartTransmitPacket() ; |
#define UpdateSPI_Buffer() ; |
#define SPI_TransmitByte() ; |
#endif |
#endif |
/branches/MicroMag3_Nick666/V0.68d/timer0.c |
---|
0,0 → 1,143 |
#include "main.h" |
volatile unsigned int CountMilliseconds = 0; |
volatile static unsigned int tim_main; |
volatile unsigned char UpdateMotor = 0; |
volatile unsigned int beeptime = 0; |
unsigned int BeepMuster = 0xffff; |
int ServoValue = 0; |
enum { |
STOP = 0, |
CK = 1, |
CK8 = 2, |
CK64 = 3, |
CK256 = 4, |
CK1024 = 5, |
T0_FALLING_EDGE = 6, |
T0_RISING_EDGE = 7 |
}; |
SIGNAL (SIG_OVERFLOW0) // 9,8kHz |
{ |
static unsigned char cnt_1ms = 1,cnt = 0; |
unsigned char pieper_ein = 0; |
if(!cnt--) |
{ |
cnt = 10; |
cnt_1ms++; |
cnt_1ms %= 2; |
if(!cnt_1ms) UpdateMotor = 1; |
CountMilliseconds++; |
} |
if(beeptime > 1) |
{ |
beeptime--; |
if(beeptime & BeepMuster) |
{ |
pieper_ein = 1; |
} |
else pieper_ein = 0; |
} |
else |
{ |
pieper_ein = 0; |
BeepMuster = 0xffff; |
} |
if(pieper_ein) |
{ |
if(PlatinenVersion == 10) PORTD |= (1<<2); // Speaker an PORTD.2 |
else PORTC |= (1<<7); // Speaker an PORTC.7 |
} |
else |
{ |
if(PlatinenVersion == 10) PORTD &= ~(1<<2); |
else PORTC &= ~(1<<7); |
} |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) timer0_MM3(); // Kompass auslesen |
} |
void Timer_Init(void) |
{ |
TCCR0B = CK8; |
TCCR0A = (1<<COM0A1)|(1<<COM0B1)|3;//fast PWM |
OCR0A = 0; |
OCR0B = 120; |
TCCR2A=(1<<COM2A1)|(1<<COM2A0)|3; |
TCCR2B=(0<<CS20)|(1<<CS21)|(1<<CS22); |
// TIMSK2 |= _BV(TOIE2); |
TIMSK2 |= _BV(OCIE2A); |
TIMSK0 |= _BV(TOIE0); |
OCR2A = 10; |
TCNT2 = 0; |
} |
// ----------------------------------------------------------------------- |
unsigned int SetDelay (unsigned int t) |
{ |
// TIMSK0 &= ~_BV(TOIE0); |
return(CountMilliseconds + t + 1); |
// TIMSK0 |= _BV(TOIE0); |
} |
// ----------------------------------------------------------------------- |
char CheckDelay(unsigned int t) |
{ |
// TIMSK0 &= ~_BV(TOIE0); |
return(((t - CountMilliseconds) & 0x8000) >> 9); |
// TIMSK0 |= _BV(TOIE0); |
} |
// ----------------------------------------------------------------------- |
void Delay_ms(unsigned int w) |
{ |
unsigned int akt; |
akt = SetDelay(w); |
while (!CheckDelay(akt)); |
} |
void Delay_ms_Mess(unsigned int w) |
{ |
unsigned int akt; |
akt = SetDelay(w); |
while (!CheckDelay(akt)) ANALOG_ON; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Servo ansteuern |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(SIG_OUTPUT_COMPARE2A) |
{ |
static unsigned char timer = 10; |
if(!timer--) |
{ |
TCCR2A=(1<<COM2A1)|(0<<COM2A0)|3; |
ServoValue = Parameter_ServoNickControl; |
if(EE_Parameter.ServoNickCompInvert & 0x01) ServoValue += ((long) EE_Parameter.ServoNickComp * (IntegralNick / 128)) / 512; |
else ServoValue -= ((long) EE_Parameter.ServoNickComp * (IntegralNick / 128)) / 512; |
if(ServoValue < EE_Parameter.ServoNickMin) ServoValue = EE_Parameter.ServoNickMin; |
else if(ServoValue > EE_Parameter.ServoNickMax) ServoValue = EE_Parameter.ServoNickMax; |
OCR2A = ServoValue;// + 75; |
timer = EE_Parameter.ServoNickRefresh; |
} |
else |
{ |
TCCR2A =3; |
PORTD&=~0x80; |
} |
} |
/branches/MicroMag3_Nick666/V0.68d/timer0.h |
---|
0,0 → 1,15 |
#define TIMER_TEILER CK8 |
#define TIMER_RELOAD_VALUE 250 |
void Timer_Init(void); |
void Delay_ms(unsigned int); |
void Delay_ms_Mess(unsigned int); |
unsigned int SetDelay (unsigned int t); |
char CheckDelay (unsigned int t); |
extern volatile unsigned int CountMilliseconds; |
extern volatile unsigned char UpdateMotor; |
extern volatile unsigned int beeptime; |
extern int ServoValue; |
extern unsigned int BeepMuster; |
/branches/MicroMag3_Nick666/V0.68d/twimaster.c |
---|
0,0 → 1,134 |
/*############################################################################ |
############################################################################*/ |
#include "main.h" |
unsigned char twi_state = 0; |
unsigned char motor = 0; |
unsigned char motor_rx[8]; |
//############################################################################ |
//Initzialisieren der I2C (TWI) Schnittstelle |
void i2c_init(void) |
//############################################################################ |
{ |
TWSR = 0; |
TWBR = ((SYSCLK/SCL_CLOCK)-16)/2; |
} |
//############################################################################ |
//Start I2C |
void i2c_start(void) |
//############################################################################ |
{ |
TWCR = (1<<TWSTA) | (1<<TWEN) | (1<<TWINT) | (1<<TWIE); |
} |
//############################################################################ |
//Stop I2C |
void i2c_stop(void) |
//############################################################################ |
{ |
TWCR = (1<<TWEN) | (1<<TWSTO) | (1<<TWINT); |
} |
void i2c_reset(void) |
//############################################################################ |
{ |
i2c_stop(); |
twi_state = 0; |
motor = TWDR; |
motor = 0; |
TWCR = 0x80; |
TWAMR = 0; |
TWAR = 0; |
TWDR = 0; |
TWSR = 0; |
TWBR = 0; |
i2c_init(); |
i2c_start(); |
i2c_write_byte(0); |
} |
//############################################################################ |
//Write to I2C |
void i2c_write_byte(char byte) |
//############################################################################ |
{ |
TWDR = byte; |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
} |
//############################################################################ |
// I2C receive byte and send ACK |
void i2c_receive_byte(void) |
//############################################################################ |
{ |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE) | (1<<TWEA); |
} |
//############################################################################ |
// I2C receive last byte and send NOT ACK |
void i2c_receive_last_byte(void) |
//############################################################################ |
{ |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
} |
//############################################################################ |
//Start I2C |
SIGNAL (TWI_vect) |
//############################################################################ |
{ |
static unsigned char motorread = 0; |
switch (twi_state++) // First i2c_start from SendMotorData() |
{ |
// Master Transmit |
case 0: // Address Slave SL+W |
i2c_write_byte(0x52+(motor*2)); |
break; |
case 1: // Send Data |
switch(motor++) |
{ |
case 0: |
i2c_write_byte(Motor_Vorne); |
break; |
case 1: |
i2c_write_byte(Motor_Hinten); |
break; |
case 2: |
i2c_write_byte(Motor_Rechts); |
break; |
case 3: |
i2c_write_byte(Motor_Links); |
break; |
} |
break; |
case 2: // Repeat case 0+1 for all Slaves |
if (motor < 4) twi_state = 0; |
i2c_start(); // Repeated start -> switch salve or switch Master Transmit -> Master Receive |
break; |
// Master Receive |
case 3: // Address Slave SL+R |
i2c_write_byte(0x53+(motorread*2)); |
break; |
case 4: //1. Byte vom Motor übertragen |
i2c_receive_byte(); |
break; |
case 5: // 1. Byte lesen und 2. Byte übertragen |
motor_rx[motorread] = TWDR; |
i2c_receive_last_byte(); |
break; |
case 6: //2. Byte lesen |
motor_rx[motorread+4] = TWDR; |
motorread++; |
if (motorread > 3) motorread=0; |
default: |
i2c_stop(); |
twi_state = 0; |
I2CTimeout = 10; |
motor = 0; |
} |
} |
/branches/MicroMag3_Nick666/V0.68d/twimaster.h |
---|
0,0 → 1,33 |
/*############################################################################ |
############################################################################*/ |
#ifndef _I2C_MASTER_H |
#define _I2C_MASTER_H |
//############################################################################ |
// I2C Konstanten |
#define SCL_CLOCK 200000L |
#define I2C_TIMEOUT 30000 |
#define I2C_START 0x08 |
#define I2C_REPEATED_START 0x10 |
#define I2C_TX_SLA_ACK 0x18 |
#define I2C_TX_DATA_ACK 0x28 |
#define I2C_RX_SLA_ACK 0x40 |
#define I2C_RX_DATA_ACK 0x50 |
//############################################################################ |
extern unsigned char twi_state; |
extern unsigned char motor; |
extern unsigned char motorread; |
extern unsigned char motor_rx[8]; |
void i2c_reset(void); |
extern void i2c_init (void); // I2C initialisieren |
extern void i2c_start (void); // Start I2C |
extern void i2c_stop (void); // Stop I2C |
extern void i2c_write_byte (char byte); // 1 Byte schreiben |
extern void i2c_reset(void); |
#endif |
/branches/MicroMag3_Nick666/V0.68d/uart.c |
---|
0,0 → 1,402 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + 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 char SendeBuffer[MAX_SENDE_BUFF]; |
unsigned char RxdBuffer[MAX_EMPFANGS_BUFF]; |
unsigned volatile char NMEABuffer[MAX_EMPFANGS_BUFF]; |
unsigned volatile char NeuerDatensatzEmpfangen = 0; |
unsigned volatile char NeueKoordinateEmpfangen = 0; |
unsigned volatile char UebertragungAbgeschlossen = 1; |
unsigned volatile char CntCrcError = 0; |
unsigned volatile char AnzahlEmpfangsBytes = 0; |
unsigned volatile char PC_DebugTimeout = 0; |
unsigned char RemotePollDisplayLine = 0; |
unsigned char NurKanalAnforderung = 0; |
unsigned char DebugTextAnforderung = 255; |
unsigned char PcZugriff = 100; |
unsigned char MotorTest[4] = {0,0,0,0}; |
unsigned char DubWiseKeys[4] = {0,0,0,0}; |
unsigned char MeineSlaveAdresse; |
unsigned char ConfirmFrame; |
struct str_DebugOut DebugOut; |
struct str_ExternControl ExternControl; |
struct str_VersionInfo VersionInfo; |
int Debug_Timer; |
const unsigned char ANALOG_TEXT[32][16] = |
{ |
//1234567890123456 |
"IntegralNick ", //0 |
"IntegralRoll ", |
"AccNick ", |
"AccRoll ", |
"GyroGier ", |
"HoehenWert ", //5 |
"AccZ ", |
"Gas ", |
"KompassValue ", |
"Spannung ", |
"Empfang ", //10 |
"Analog11 ", |
"Motor_Vorne ", |
"Motor_Hinten ", |
"Motor_Links ", |
"Motor_Rechts ", //15 |
"Acc_Z ", |
"MittelAccNick ", |
"MittelAccRoll ", |
"IntegralErrNick ", |
"IntegralErrRoll ", //20 |
"MittelIntNick ", |
"MittelIntRoll ", |
"NeutralNick ", |
"RollOffset ", |
"IntRoll*Faktor ", //25 |
"Analog26 ", |
"DirektAusglRoll ", |
"MesswertRoll ", |
"AusgleichRoll ", |
"I-LageRoll ", //30 |
"StickRoll " |
}; |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ Sende-Part der Datenübertragung |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(INT_VEC_TX) |
{ |
static unsigned int ptr = 0; |
unsigned char tmp_tx; |
if(!UebertragungAbgeschlossen) |
{ |
ptr++; // die [0] wurde schon gesendet |
tmp_tx = SendeBuffer[ptr]; |
if((tmp_tx == '\r') || (ptr == MAX_SENDE_BUFF)) |
{ |
ptr = 0; |
UebertragungAbgeschlossen = 1; |
} |
UDR = tmp_tx; |
} |
else ptr = 0; |
} |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ Empfangs-Part der Datenübertragung, incl. CRC-Auswertung |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(INT_VEC_RX) |
{ |
static unsigned int crc; |
static unsigned char crc1,crc2,buf_ptr; |
static unsigned char UartState = 0; |
unsigned char SioTmp; |
SioTmp = UDR; |
if(buf_ptr >= MAX_EMPFANGS_BUFF) UartState = 0; |
if(buf_ptr == 0) |
{ |
if(SioTmp == '#' && !NeuerDatensatzEmpfangen) buf_ptr = 1; // Startzeichen und Daten schon verarbeitet |
RxdBuffer[0] = SioTmp; |
crc = SioTmp; |
} |
#if 0 |
else if ((buf_ptr == 1) // Adresse auswerten |
{ |
RxdBuffer[buf_ptr++] = SioTmp; |
crc += SioTmp; |
} |
#endif |
else if (/*(buf_ptr > 0) && */(buf_ptr < MAX_EMPFANGS_BUFF)) |
{ // Eingangsdaten sammeln |
if(SioTmp != '\r') |
{ |
RxdBuffer[buf_ptr++] = SioTmp; |
crc += SioTmp; |
} |
else |
{ |
crc -= RxdBuffer[buf_ptr-2]; |
crc -= RxdBuffer[buf_ptr-1]; |
crc %= 4096; |
crc1 = '=' + crc / 64; |
crc2 = '=' + crc % 64; |
// CrcOkay = 0; |
if((crc1 == RxdBuffer[buf_ptr-2]) && (crc2 == RxdBuffer[buf_ptr-1])) |
{ |
if(!NeuerDatensatzEmpfangen) // Datensatz schon verarbeitet |
{ |
NeuerDatensatzEmpfangen = 1; |
AnzahlEmpfangsBytes = buf_ptr; |
RxdBuffer[buf_ptr] = '\r'; |
if(RxdBuffer[2] == 'R') wdt_enable(WDTO_250MS); // Reset-Commando |
} |
} |
else { CntCrcError++;} |
buf_ptr = 0; |
} |
} |
else |
{ |
buf_ptr = 0; |
} |
} |
// -------------------------------------------------------------------------- |
void AddCRC(unsigned int wieviele) |
{ |
unsigned int tmpCRC = 0,i; |
for(i = 0; i < wieviele;i++) |
{ |
tmpCRC += SendeBuffer[i]; |
} |
tmpCRC %= 4096; |
SendeBuffer[i++] = '=' + tmpCRC / 64; |
SendeBuffer[i++] = '=' + tmpCRC % 64; |
SendeBuffer[i++] = '\r'; |
UebertragungAbgeschlossen = 0; |
UDR = SendeBuffer[0]; |
} |
// -------------------------------------------------------------------------- |
void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len) |
{ |
unsigned int pt = 0; |
unsigned char a,b,c; |
unsigned char ptr = 0; |
SendeBuffer[pt++] = '#'; // Startzeichen |
SendeBuffer[pt++] = modul; // Adresse (a=0; b=1,...) |
SendeBuffer[pt++] = cmd; // Commando |
while(len) |
{ |
if(len) { a = snd[ptr++]; len--;} else a = 0; |
if(len) { b = snd[ptr++]; len--;} else b = 0; |
if(len) { c = snd[ptr++]; len--;} else c = 0; |
SendeBuffer[pt++] = '=' + (a >> 2); |
SendeBuffer[pt++] = '=' + (((a & 0x03) << 4) | ((b & 0xf0) >> 4)); |
SendeBuffer[pt++] = '=' + (((b & 0x0f) << 2) | ((c & 0xc0) >> 6)); |
SendeBuffer[pt++] = '=' + ( c & 0x3f); |
} |
AddCRC(pt); |
} |
// -------------------------------------------------------------------------- |
void Decode64(unsigned char *ptrOut, unsigned char len, unsigned char ptrIn,unsigned char max) // Wohin mit den Daten; Wie lang; Wo im RxdBuffer |
{ |
unsigned char a,b,c,d; |
unsigned char ptr = 0; |
unsigned char x,y,z; |
while(len) |
{ |
a = RxdBuffer[ptrIn++] - '='; |
b = RxdBuffer[ptrIn++] - '='; |
c = RxdBuffer[ptrIn++] - '='; |
d = RxdBuffer[ptrIn++] - '='; |
if(ptrIn > max - 2) break; // nicht mehr Daten verarbeiten, als empfangen wurden |
x = (a << 2) | (b >> 4); |
y = ((b & 0x0f) << 4) | (c >> 2); |
z = ((c & 0x03) << 6) | d; |
if(len--) ptrOut[ptr++] = x; else break; |
if(len--) ptrOut[ptr++] = y; else break; |
if(len--) ptrOut[ptr++] = z; else break; |
} |
} |
// -------------------------------------------------------------------------- |
void BearbeiteRxDaten(void) |
{ |
if(!NeuerDatensatzEmpfangen) return; |
// unsigned int tmp_int_arr1[1]; |
// unsigned int tmp_int_arr2[2]; |
// unsigned int tmp_int_arr3[3]; |
unsigned char tmp_char_arr2[2]; |
// unsigned char tmp_char_arr3[3]; |
// unsigned char tmp_char_arr4[4]; |
//if(!MotorenEin) |
PcZugriff = 255; |
switch(RxdBuffer[2]) |
{ |
case 'a':// Texte der Analogwerte |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
DebugTextAnforderung = tmp_char_arr2[0]; |
break; |
case 'b': |
Decode64((unsigned char *) &ExternControl,sizeof(ExternControl),3,AnzahlEmpfangsBytes); |
RemoteTasten |= ExternControl.RemoteTasten; |
ConfirmFrame = ExternControl.Frame; |
break; |
case 'c': |
Decode64((unsigned char *) &ExternControl,sizeof(ExternControl),3,AnzahlEmpfangsBytes); |
RemoteTasten |= ExternControl.RemoteTasten; |
ConfirmFrame = ExternControl.Frame; |
DebugDataAnforderung = 1; |
break; |
case 'h':// x-1 Displayzeilen |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
RemoteTasten |= tmp_char_arr2[0]; |
if(tmp_char_arr2[1] == 255) NurKanalAnforderung = 1; else NurKanalAnforderung = 0; // keine Displaydaten |
DebugDisplayAnforderung = 1; |
break; |
case 't':// Motortest |
Decode64((unsigned char *) &MotorTest[0],sizeof(MotorTest),3,AnzahlEmpfangsBytes); |
break; |
case 'k':// Keys von DubWise |
Decode64((unsigned char *) &DubWiseKeys[0],sizeof(DubWiseKeys),3,AnzahlEmpfangsBytes); |
ConfirmFrame = DubWiseKeys[3]; |
break; |
case 'v': // Version-Anforderung und Ausbaustufe |
GetVersionAnforderung = 1; |
break; |
case 'g':// "Get"-Anforderung für Debug-Daten |
// Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
DebugGetAnforderung = 1; |
break; |
case 'q':// "Get"-Anforderung für Settings |
// Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
if(tmp_char_arr2[0] != 0xff) |
{ |
if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
} |
else |
SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
break; |
case 'l': |
case 'm': |
case 'n': |
case 'o': |
case 'p': // Parametersatz speichern |
Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct),3,AnzahlEmpfangsBytes); |
WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], RxdBuffer[2] - 'l' + 1); // aktiven Datensatz merken |
Umschlag180Nick = (long) EE_Parameter.WinkelUmschlagNick * 2500L; |
Umschlag180Roll = (long) EE_Parameter.WinkelUmschlagRoll * 2500L; |
Piep(GetActiveParamSetNumber()); |
break; |
} |
// DebugOut.AnzahlZyklen = Debug_Timer_Intervall; |
NeuerDatensatzEmpfangen = 0; |
} |
//############################################################################ |
//Routine für die Serielle Ausgabe |
int uart_putchar (char c) |
//############################################################################ |
{ |
if (c == '\n') |
uart_putchar('\r'); |
//Warten solange bis Zeichen gesendet wurde |
loop_until_bit_is_set(USR, UDRE); |
//Ausgabe des Zeichens |
UDR = c; |
return (0); |
} |
// -------------------------------------------------------------------------- |
void WriteProgramData(unsigned int pos, unsigned char wert) |
{ |
//if (ProgramLocation == IN_RAM) Buffer[pos] = wert; |
// else eeprom_write_byte(&EE_Buffer[pos], wert); |
// Buffer[pos] = wert; |
} |
//############################################################################ |
//INstallation der Seriellen Schnittstelle |
void UART_Init (void) |
//############################################################################ |
{ |
//Enable TXEN im Register UCR TX-Data Enable & RX Enable |
UCR=(1 << TXEN) | (1 << RXEN); |
// UART Double Speed (U2X) |
USR |= (1<<U2X); |
// RX-Interrupt Freigabe |
UCSRB |= (1<<RXCIE); |
// TX-Interrupt Freigabe |
UCSRB |= (1<<TXCIE); |
//Teiler wird gesetzt |
UBRR=(SYSCLK / (BAUD_RATE * 8L) - 1); |
//UBRR = 33; |
//öffnet einen Kanal für printf (STDOUT) |
//fdevopen (uart_putchar, 0); |
//sbi(PORTD,4); |
Debug_Timer = SetDelay(200); |
} |
//--------------------------------------------------------------------------------------------- |
void DatenUebertragung(void) |
{ |
if(!UebertragungAbgeschlossen) return; |
if(DebugGetAnforderung && UebertragungAbgeschlossen) // Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
{ |
SendOutData('G',MeineSlaveAdresse,(unsigned char *) &ExternControl,sizeof(ExternControl)); |
DebugGetAnforderung = 0; |
} |
if((CheckDelay(Debug_Timer) || DebugDataAnforderung) && UebertragungAbgeschlossen) |
{ |
SendOutData('D',MeineSlaveAdresse,(unsigned char *) &DebugOut,sizeof(DebugOut)); |
DebugDataAnforderung = 0; |
Debug_Timer = SetDelay(MIN_DEBUG_INTERVALL); |
} |
if(DebugTextAnforderung != 255) // Texte für die Analogdaten |
{ |
SendOutData('A',DebugTextAnforderung + '0',(unsigned char *) ANALOG_TEXT[DebugTextAnforderung],16); |
DebugTextAnforderung = 255; |
} |
if(ConfirmFrame && UebertragungAbgeschlossen) // Datensatz ohne CRC bestätigen |
{ |
SendeBuffer[0] = '#'; |
SendeBuffer[1] = ConfirmFrame; |
SendeBuffer[2] = '\r'; |
UebertragungAbgeschlossen = 0; |
ConfirmFrame = 0; |
UDR = SendeBuffer[0]; |
} |
if(DebugDisplayAnforderung && UebertragungAbgeschlossen) |
{ |
Menu(); |
DebugDisplayAnforderung = 0; |
if(++RemotePollDisplayLine == 4 || NurKanalAnforderung) |
{ |
SendOutData('4',0,(unsigned char *)&PPM_in,sizeof(PPM_in)); // DisplayZeile übertragen |
RemotePollDisplayLine = -1; |
} |
else SendOutData('0' + RemotePollDisplayLine,0,(unsigned char *)&DisplayBuff[20 * RemotePollDisplayLine],20); // DisplayZeile übertragen |
} |
if(GetVersionAnforderung && UebertragungAbgeschlossen) |
{ |
SendOutData('V',MeineSlaveAdresse,(unsigned char *) &VersionInfo,sizeof(VersionInfo)); |
GetVersionAnforderung = 0; |
} |
} |
/branches/MicroMag3_Nick666/V0.68d/uart.h |
---|
0,0 → 1,107 |
#ifndef _UART_H |
#define _UART_H |
#define MAX_SENDE_BUFF 150 |
#define MAX_EMPFANGS_BUFF 150 |
#define DUB_KEY_UP 4 |
#define DUB_KEY_DOWN 8 |
#define DUB_KEY_RIGHT 32 |
#define DUB_KEY_LEFT 16 |
#define DUB_KEY_FIRE 64 |
void BearbeiteRxDaten(void); |
extern unsigned char DebugGetAnforderung; |
extern unsigned char SendeBuffer[MAX_SENDE_BUFF]; |
extern unsigned char RxdBuffer[MAX_EMPFANGS_BUFF]; |
extern unsigned volatile char UebertragungAbgeschlossen; |
extern unsigned volatile char PC_DebugTimeout; |
extern unsigned volatile char NeueKoordinateEmpfangen; |
extern unsigned char MeineSlaveAdresse; |
extern unsigned char PcZugriff; |
extern unsigned char RemotePollDisplayLine; |
extern int Debug_Timer; |
extern void UART_Init (void); |
extern int uart_putchar (char c); |
extern void boot_program_page (uint32_t page, uint8_t *buf); |
extern void DatenUebertragung(void); |
extern void DecodeNMEA(void); |
extern void BearbeiteRxDaten(void); |
extern unsigned char MotorTest[4]; |
extern unsigned char DubWiseKeys[4]; |
struct str_DebugOut |
{ |
unsigned char Digital[2]; |
unsigned int Analog[32]; // Debugwerte |
}; |
extern struct str_DebugOut DebugOut; |
struct str_ExternControl |
{ |
unsigned char Digital[2]; |
unsigned char RemoteTasten; |
signed char Nick; |
signed char Roll; |
signed char Gier; |
unsigned char Gas; |
signed char Hight; |
unsigned char free; |
unsigned char Frame; |
unsigned char Config; |
}; |
extern struct str_ExternControl ExternControl; |
struct str_VersionInfo |
{ |
unsigned char Hauptversion; |
unsigned char Nebenversion; |
unsigned char PCKompatibel; |
unsigned char Rserved[7]; |
}; |
extern struct str_VersionInfo VersionInfo; |
//Die Baud_Rate der Seriellen Schnittstelle ist 9600 Baud |
//#define BAUD_RATE 9600 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 14400 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 28800 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 38400 //Baud Rate für die Serielle Schnittstelle |
#define BAUD_RATE 57600 //Baud Rate für die Serielle Schnittstelle |
//Anpassen der seriellen Schnittstellen Register wenn ein ATMega128 benutzt wird |
#if defined (__AVR_ATmega128__) |
# define USR UCSR0A |
# define UCR UCSR0B |
# define UDR UDR0 |
# define UBRR UBRR0L |
# define EICR EICRB |
#endif |
#if defined (__AVR_ATmega32__) |
# define USR UCSRA |
# define UCR UCSRB |
# define UBRR UBRRL |
# define EICR EICRB |
# define INT_VEC_RX SIG_UART_RECV |
# define INT_VEC_TX SIG_UART_TRANS |
#endif |
#if defined (__AVR_ATmega644__) |
# define USR UCSR0A |
# define UCR UCSR0B |
# define UDR UDR0 |
# define UBRR UBRR0L |
# define EICR EICR0B |
# define TXEN TXEN0 |
# define RXEN RXEN0 |
# define RXCIE RXCIE0 |
# define TXCIE TXCIE0 |
# define U2X U2X0 |
# define UCSRB UCSR0B |
# define UDRE UDRE0 |
# define INT_VEC_RX SIG_USART_RECV |
# define INT_VEC_TX SIG_USART_TRANS |
#endif |
#endif //_UART_H |
/branches/MicroMag3_Nick666/V0.68d/version.txt |
---|
0,0 → 1,116 |
------- |
V0.53 27.04.2007 H.Buss |
- erste öffentliche Version |
V0.53b 29.04.2007 H.Buss |
- der FAKTOR_I war versehentlich auf Null, dann liegt der MikroKopter nicht so hart in der Luft |
V0.53c 29.04.2007 H.Buss |
- es gib ein Menü, in dem die Werte der Kanäle nach Nick, Roll, Gas,... sortiert sind. |
Die angezeigten Werte waren nicht die Werte der Funke |
V0.54 01.05.2007 H.Buss |
- die Paramtersätze können jetzt vor dem Start ausgewählt werden |
Dazu wird beim Kalibrieren der Messwerte (Gashebel oben links) der Nick-Rollhebel abgefragt: |
2 3 4 |
1 x 5 |
- - - |
Bedeutet: Nick-Rollhebel Links Mitte = Setting:1 Links Oben = Setting:2 usw. |
- der Faktor_I für den Hauptregler ist hinzugekommen. Im Heading-Hold-Modus sollte er vergössert werden, was Stabilität bringt |
V0.55 14.05.2007 H.Buss |
- es können nun Servos an J3,J4,J5 mit den Kanälen 5-7 gesteuert werden |
V0.56 14.05.2007 H.Buss |
- es gab Probleme mit Funken, die mehr als 8 Kanäle haben, wenn mehrere Kanäle dann auf Null waren |
- Funken, die nicht bis +-120 aussteuern können, sollten jetzt auch gehen |
V0.57 24.05.2007 H.Buss |
- Der Höhenregler kann nun auch mittels Schalter bedient werden |
- Bug im Gier-Algorithmus behoben; Schnelles Gieren fürhrte dazu, dass der MK zu weit gedreht hat |
- Kompass-Einfluss dämpfen bei Neigung |
- Man kann zwischen Kompass FIX (Richtung beim Kalibrieren) und Variabel (einstellbar per Gier) wählen |
- Der Motortest vom Kopter-Tool geht jetzt |
- Man kann den Parametersätzen einen Namen geben |
- Das Kamerasetting ist unter Setting 2 defaultmässig integriert |
V0.58 30.05.2007 H.Buss |
- Der Höhenregler-Algorithmus wird nun umgangen, wenn der Höhenreglerschalter aus ist |
V0.60 17.08.2007 H.Buss |
- "Schwindel-Bug" behoben |
- Die Poti-Werte werden jetzt auf Unterlauf (<0) überprüft |
- Poti4 zugefügt |
- Es werden jetzt 8 Kanäle ausgewertet |
- Kamera-Servo (an J7) |
- Die Settings müssen überschrieben werden |
V0.61 - V0.63 H.Buss 27.09.2007 |
- Poti 4 und Kanal 8 werden im Menü angezeigt |
- ein paar Kleinigkeiten bei den DefaultKonstanten2 bereinigt |
- Analog.c: Aktuell_ax korrigiert |
- auf 32 Debug-Kanäle erweitert |
- Loopings sind jetzt möglich und einzeln im KopterTool freischaltbar |
- leichte Anpassungen im Gier - Geschwindigkeit und Drift |
- die Hardwareversion V1.1 wird erkannt und das Programm stellt sich auf die geänderte Gyroverstärkung und die geänderten Portpins ein |
- die Software startet nach dem Einschalten schneller, weil der Luftdruckoffset schneller gefunden wird |
- die PPM-Ausgänge liegen wieder an den Pins an |
- Details an der Sensordatenverarbeitung -> es fliegt sich geringfügig anders |
- der MK ist bei wenig Gas nicht mehr so giftig -> soll das Landen vereinfachen |
- I2C-Bus läuft jetzt sicher nach einer Störung wieder an |
- Sticksignale werden präziser ausgewertet |
- Stick-Kanäle werden ans Kopter-Tool übertragen |
- Es muss die Version V1.47 des Kopter-Tool verwendet werden |
- Die Settings werden auf Default zurückgesetzt |
- am Piepen kann man die Fehlerart unterscheiden |
1. einzelnes Piepen beim Einschalten und Kalibrieren |
2. langsames Intervall mindestens 1 Sek -> Empfangsausfall |
3. schnelleres Intervall mindestens 1 Sek -> Akku |
4. sehr schnelles Intervall mindestens 1 Sek -> Kommunikation zu den Reglern gestört |
V0.64 H.Buss 30.09.2007 |
- beim Gieren wurden die Achsen nicht hart genug geregelt |
V0.65a H.Buss 15.10.2007 |
- Integral im Mischer wieder integriert |
- Feinabstimmung im ACC/Gyro Abgleich -> 1/32 & 100 |
- ACC/Gyro Abgleich auch bei HH |
V0.66a H.Buss 3.11.2007 |
- Messwertverarbeitung aus dem Analog-Interrupt entfernt |
- Analogmessung hängt jetzt am FC-Timing |
- Looping-Stick-Hysterese eingebaut |
- Looping-180°-Umschlag einstellbar |
- Achsenkopplung: Gierbewegung verkoppelt Nick und Roll |
- Lageregelung nach ACC-Sensor verbessert |
- zusätzlicher I-Anteil in der Lageregelung verbessert die Neutrallage |
- Gyrodriftkompensation überarbeitet |
- Bug in der Gier-Stick-Berechnung behoben |
- Gyro-Messung auf 1kHz beschleunigt |
V0.67a H.Buss 16.11.2007 |
- der Hauptregler-I-Anteil wirkt jetzt nur noch auf den Winkel (ausser im HH-Mode) |
- Gyro-Acc-Abgleich jetzt wieder in jedem Zyklus |
- Feinabstimmung |
- Beim HH-Modus gab es noch Bugs |
V0.67e H.Buss 29.11.2007 |
- Parameter: Dynamic Stability und Driftfaktor eingeführt |
- Die Namen der Analogwerte werden jetzt zum Koptertool übertragen |
- Kompatibilität zum Koptertool erhöht |
V0.67f H.Buss 04.12.2007 |
- Das Integral des Hauptreglers wird jetzt linear entladen und nicht mehr proportional |
- Schub für Gier wird jetzt auf den Gaswert begrenzt, dadurch steigt der MK nicht mehr beim Gieren. Gier ist allerdings nicht mehr so agressiv |
- Die ACC-Nullwerte können jetzt dauerhaft im EEPROM gespeichert werden (Stick:Vollgas und Gier rechts) |
V0.68a I.Busker 28.12.2007 |
- SPI.c & SPI.h ins Projekt aufgenommen |
SPI-Kommuikation kann in SPI.h aktiviert/deaktivert werden |
V0.68c H.Buss 05.01.2008 |
- Stickauswertung verbessert -> träger und präziser |
- Alle Settings angepasst |
/branches/MicroMag3_Nick666/v0.60/COPYING |
---|
0,0 → 1,674 |
GNU GENERAL PUBLIC LICENSE |
Version 3, 29 June 2007 |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
Everyone is permitted to copy and distribute verbatim copies |
of this license document, but changing it is not allowed. |
Preamble |
The GNU General Public License is a free, copyleft license for |
software and other kinds of works. |
The licenses for most software and other practical works are designed |
to take away your freedom to share and change the works. By contrast, |
the GNU General Public License is intended to guarantee your freedom to |
share and change all versions of a program--to make sure it remains free |
software for all its users. We, the Free Software Foundation, use the |
GNU General Public License for most of our software; it applies also to |
any other work released this way by its authors. You can apply it to |
your programs, too. |
When we speak of free software, we are referring to freedom, not |
price. Our General Public Licenses are designed to make sure that you |
have the freedom to distribute copies of free software (and charge for |
them if you wish), that you receive source code or can get it if you |
want it, that you can change the software or use pieces of it in new |
free programs, and that you know you can do these things. |
To protect your rights, we need to prevent others from denying you |
these rights or asking you to surrender the rights. Therefore, you have |
certain responsibilities if you distribute copies of the software, or if |
you modify it: responsibilities to respect the freedom of others. |
For example, if you distribute copies of such a program, whether |
gratis or for a fee, you must pass on to the recipients the same |
freedoms that you received. You must make sure that they, too, receive |
or can get the source code. And you must show them these terms so they |
know their rights. |
Developers that use the GNU GPL protect your rights with two steps: |
(1) assert copyright on the software, and (2) offer you this License |
giving you legal permission to copy, distribute and/or modify it. |
For the developers' and authors' protection, the GPL clearly explains |
that there is no warranty for this free software. For both users' and |
authors' sake, the GPL requires that modified versions be marked as |
changed, so that their problems will not be attributed erroneously to |
authors of previous versions. |
Some devices are designed to deny users access to install or run |
modified versions of the software inside them, although the manufacturer |
can do so. This is fundamentally incompatible with the aim of |
protecting users' freedom to change the software. The systematic |
pattern of such abuse occurs in the area of products for individuals to |
use, which is precisely where it is most unacceptable. Therefore, we |
have designed this version of the GPL to prohibit the practice for those |
products. If such problems arise substantially in other domains, we |
stand ready to extend this provision to those domains in future versions |
of the GPL, as needed to protect the freedom of users. |
Finally, every program is threatened constantly by software patents. |
States should not allow patents to restrict development and use of |
software on general-purpose computers, but in those that do, we wish to |
avoid the special danger that patents applied to a free program could |
make it effectively proprietary. To prevent this, the GPL assures that |
patents cannot be used to render the program non-free. |
The precise terms and conditions for copying, distribution and |
modification follow. |
TERMS AND CONDITIONS |
0. Definitions. |
"This License" refers to version 3 of the GNU General Public License. |
"Copyright" also means copyright-like laws that apply to other kinds of |
works, such as semiconductor masks. |
"The Program" refers to any copyrightable work licensed under this |
License. Each licensee is addressed as "you". "Licensees" and |
"recipients" may be individuals or organizations. |
To "modify" a work means to copy from or adapt all or part of the work |
in a fashion requiring copyright permission, other than the making of an |
exact copy. The resulting work is called a "modified version" of the |
earlier work or a work "based on" the earlier work. |
A "covered work" means either the unmodified Program or a work based |
on the Program. |
To "propagate" a work means to do anything with it that, without |
permission, would make you directly or secondarily liable for |
infringement under applicable copyright law, except executing it on a |
computer or modifying a private copy. Propagation includes copying, |
distribution (with or without modification), making available to the |
public, and in some countries other activities as well. |
To "convey" a work means any kind of propagation that enables other |
parties to make or receive copies. Mere interaction with a user through |
a computer network, with no transfer of a copy, is not conveying. |
An interactive user interface displays "Appropriate Legal Notices" |
to the extent that it includes a convenient and prominently visible |
feature that (1) displays an appropriate copyright notice, and (2) |
tells the user that there is no warranty for the work (except to the |
extent that warranties are provided), that licensees may convey the |
work under this License, and how to view a copy of this License. If |
the interface presents a list of user commands or options, such as a |
menu, a prominent item in the list meets this criterion. |
1. Source Code. |
The "source code" for a work means the preferred form of the work |
for making modifications to it. "Object code" means any non-source |
form of a work. |
A "Standard Interface" means an interface that either is an official |
standard defined by a recognized standards body, or, in the case of |
interfaces specified for a particular programming language, one that |
is widely used among developers working in that language. |
The "System Libraries" of an executable work include anything, other |
than the work as a whole, that (a) is included in the normal form of |
packaging a Major Component, but which is not part of that Major |
Component, and (b) serves only to enable use of the work with that |
Major Component, or to implement a Standard Interface for which an |
implementation is available to the public in source code form. A |
"Major Component", in this context, means a major essential component |
(kernel, window system, and so on) of the specific operating system |
(if any) on which the executable work runs, or a compiler used to |
produce the work, or an object code interpreter used to run it. |
The "Corresponding Source" for a work in object code form means all |
the source code needed to generate, install, and (for an executable |
work) run the object code and to modify the work, including scripts to |
control those activities. However, it does not include the work's |
System Libraries, or general-purpose tools or generally available free |
programs which are used unmodified in performing those activities but |
which are not part of the work. For example, Corresponding Source |
includes interface definition files associated with source files for |
the work, and the source code for shared libraries and dynamically |
linked subprograms that the work is specifically designed to require, |
such as by intimate data communication or control flow between those |
subprograms and other parts of the work. |
The Corresponding Source need not include anything that users |
can regenerate automatically from other parts of the Corresponding |
Source. |
The Corresponding Source for a work in source code form is that |
same work. |
2. Basic Permissions. |
All rights granted under this License are granted for the term of |
copyright on the Program, and are irrevocable provided the stated |
conditions are met. This License explicitly affirms your unlimited |
permission to run the unmodified Program. The output from running a |
covered work is covered by this License only if the output, given its |
content, constitutes a covered work. This License acknowledges your |
rights of fair use or other equivalent, as provided by copyright law. |
You may make, run and propagate covered works that you do not |
convey, without conditions so long as your license otherwise remains |
in force. You may convey covered works to others for the sole purpose |
of having them make modifications exclusively for you, or provide you |
with facilities for running those works, provided that you comply with |
the terms of this License in conveying all material for which you do |
not control copyright. Those thus making or running the covered works |
for you must do so exclusively on your behalf, under your direction |
and control, on terms that prohibit them from making any copies of |
your copyrighted material outside their relationship with you. |
Conveying under any other circumstances is permitted solely under |
the conditions stated below. Sublicensing is not allowed; section 10 |
makes it unnecessary. |
3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
No covered work shall be deemed part of an effective technological |
measure under any applicable law fulfilling obligations under article |
11 of the WIPO copyright treaty adopted on 20 December 1996, or |
similar laws prohibiting or restricting circumvention of such |
measures. |
When you convey a covered work, you waive any legal power to forbid |
circumvention of technological measures to the extent such circumvention |
is effected by exercising rights under this License with respect to |
the covered work, and you disclaim any intention to limit operation or |
modification of the work as a means of enforcing, against the work's |
users, your or third parties' legal rights to forbid circumvention of |
technological measures. |
4. Conveying Verbatim Copies. |
You may convey verbatim copies of the Program's source code as you |
receive it, in any medium, provided that you conspicuously and |
appropriately publish on each copy an appropriate copyright notice; |
keep intact all notices stating that this License and any |
non-permissive terms added in accord with section 7 apply to the code; |
keep intact all notices of the absence of any warranty; and give all |
recipients a copy of this License along with the Program. |
You may charge any price or no price for each copy that you convey, |
and you may offer support or warranty protection for a fee. |
5. Conveying Modified Source Versions. |
You may convey a work based on the Program, or the modifications to |
produce it from the Program, in the form of source code under the |
terms of section 4, provided that you also meet all of these conditions: |
a) The work must carry prominent notices stating that you modified |
it, and giving a relevant date. |
b) The work must carry prominent notices stating that it is |
released under this License and any conditions added under section |
7. This requirement modifies the requirement in section 4 to |
"keep intact all notices". |
c) You must license the entire work, as a whole, under this |
License to anyone who comes into possession of a copy. This |
License will therefore apply, along with any applicable section 7 |
additional terms, to the whole of the work, and all its parts, |
regardless of how they are packaged. This License gives no |
permission to license the work in any other way, but it does not |
invalidate such permission if you have separately received it. |
d) If the work has interactive user interfaces, each must display |
Appropriate Legal Notices; however, if the Program has interactive |
interfaces that do not display Appropriate Legal Notices, your |
work need not make them do so. |
A compilation of a covered work with other separate and independent |
works, which are not by their nature extensions of the covered work, |
and which are not combined with it such as to form a larger program, |
in or on a volume of a storage or distribution medium, is called an |
"aggregate" if the compilation and its resulting copyright are not |
used to limit the access or legal rights of the compilation's users |
beyond what the individual works permit. Inclusion of a covered work |
in an aggregate does not cause this License to apply to the other |
parts of the aggregate. |
6. Conveying Non-Source Forms. |
You may convey a covered work in object code form under the terms |
of sections 4 and 5, provided that you also convey the |
machine-readable Corresponding Source under the terms of this License, |
in one of these ways: |
a) Convey the object code in, or embodied in, a physical product |
(including a physical distribution medium), accompanied by the |
Corresponding Source fixed on a durable physical medium |
customarily used for software interchange. |
b) Convey the object code in, or embodied in, a physical product |
(including a physical distribution medium), accompanied by a |
written offer, valid for at least three years and valid for as |
long as you offer spare parts or customer support for that product |
model, to give anyone who possesses the object code either (1) a |
copy of the Corresponding Source for all the software in the |
product that is covered by this License, on a durable physical |
medium customarily used for software interchange, for a price no |
more than your reasonable cost of physically performing this |
conveying of source, or (2) access to copy the |
Corresponding Source from a network server at no charge. |
c) Convey individual copies of the object code with a copy of the |
written offer to provide the Corresponding Source. This |
alternative is allowed only occasionally and noncommercially, and |
only if you received the object code with such an offer, in accord |
with subsection 6b. |
d) Convey the object code by offering access from a designated |
place (gratis or for a charge), and offer equivalent access to the |
Corresponding Source in the same way through the same place at no |
further charge. You need not require recipients to copy the |
Corresponding Source along with the object code. If the place to |
copy the object code is a network server, the Corresponding Source |
may be on a different server (operated by you or a third party) |
that supports equivalent copying facilities, provided you maintain |
clear directions next to the object code saying where to find the |
Corresponding Source. Regardless of what server hosts the |
Corresponding Source, you remain obligated to ensure that it is |
available for as long as needed to satisfy these requirements. |
e) Convey the object code using peer-to-peer transmission, provided |
you inform other peers where the object code and Corresponding |
Source of the work are being offered to the general public at no |
charge under subsection 6d. |
A separable portion of the object code, whose source code is excluded |
from the Corresponding Source as a System Library, need not be |
included in conveying the object code work. |
A "User Product" is either (1) a "consumer product", which means any |
tangible personal property which is normally used for personal, family, |
or household purposes, or (2) anything designed or sold for incorporation |
into a dwelling. In determining whether a product is a consumer product, |
doubtful cases shall be resolved in favor of coverage. For a particular |
product received by a particular user, "normally used" refers to a |
typical or common use of that class of product, regardless of the status |
of the particular user or of the way in which the particular user |
actually uses, or expects or is expected to use, the product. A product |
is a consumer product regardless of whether the product has substantial |
commercial, industrial or non-consumer uses, unless such uses represent |
the only significant mode of use of the product. |
"Installation Information" for a User Product means any methods, |
procedures, authorization keys, or other information required to install |
and execute modified versions of a covered work in that User Product from |
a modified version of its Corresponding Source. The information must |
suffice to ensure that the continued functioning of the modified object |
code is in no case prevented or interfered with solely because |
modification has been made. |
If you convey an object code work under this section in, or with, or |
specifically for use in, a User Product, and the conveying occurs as |
part of a transaction in which the right of possession and use of the |
User Product is transferred to the recipient in perpetuity or for a |
fixed term (regardless of how the transaction is characterized), the |
Corresponding Source conveyed under this section must be accompanied |
by the Installation Information. But this requirement does not apply |
if neither you nor any third party retains the ability to install |
modified object code on the User Product (for example, the work has |
been installed in ROM). |
The requirement to provide Installation Information does not include a |
requirement to continue to provide support service, warranty, or updates |
for a work that has been modified or installed by the recipient, or for |
the User Product in which it has been modified or installed. Access to a |
network may be denied when the modification itself materially and |
adversely affects the operation of the network or violates the rules and |
protocols for communication across the network. |
Corresponding Source conveyed, and Installation Information provided, |
in accord with this section must be in a format that is publicly |
documented (and with an implementation available to the public in |
source code form), and must require no special password or key for |
unpacking, reading or copying. |
7. Additional Terms. |
"Additional permissions" are terms that supplement the terms of this |
License by making exceptions from one or more of its conditions. |
Additional permissions that are applicable to the entire Program shall |
be treated as though they were included in this License, to the extent |
that they are valid under applicable law. If additional permissions |
apply only to part of the Program, that part may be used separately |
under those permissions, but the entire Program remains governed by |
this License without regard to the additional permissions. |
When you convey a copy of a covered work, you may at your option |
remove any additional permissions from that copy, or from any part of |
it. (Additional permissions may be written to require their own |
removal in certain cases when you modify the work.) You may place |
additional permissions on material, added by you to a covered work, |
for which you have or can give appropriate copyright permission. |
Notwithstanding any other provision of this License, for material you |
add to a covered work, you may (if authorized by the copyright holders of |
that material) supplement the terms of this License with terms: |
a) Disclaiming warranty or limiting liability differently from the |
terms of sections 15 and 16 of this License; or |
b) Requiring preservation of specified reasonable legal notices or |
author attributions in that material or in the Appropriate Legal |
Notices displayed by works containing it; or |
c) Prohibiting misrepresentation of the origin of that material, or |
requiring that modified versions of such material be marked in |
reasonable ways as different from the original version; or |
d) Limiting the use for publicity purposes of names of licensors or |
authors of the material; or |
e) Declining to grant rights under trademark law for use of some |
trade names, trademarks, or service marks; or |
f) Requiring indemnification of licensors and authors of that |
material by anyone who conveys the material (or modified versions of |
it) with contractual assumptions of liability to the recipient, for |
any liability that these contractual assumptions directly impose on |
those licensors and authors. |
All other non-permissive additional terms are considered "further |
restrictions" within the meaning of section 10. If the Program as you |
received it, or any part of it, contains a notice stating that it is |
governed by this License along with a term that is a further |
restriction, you may remove that term. If a license document contains |
a further restriction but permits relicensing or conveying under this |
License, you may add to a covered work material governed by the terms |
of that license document, provided that the further restriction does |
not survive such relicensing or conveying. |
If you add terms to a covered work in accord with this section, you |
must place, in the relevant source files, a statement of the |
additional terms that apply to those files, or a notice indicating |
where to find the applicable terms. |
Additional terms, permissive or non-permissive, may be stated in the |
form of a separately written license, or stated as exceptions; |
the above requirements apply either way. |
8. Termination. |
You may not propagate or modify a covered work except as expressly |
provided under this License. Any attempt otherwise to propagate or |
modify it is void, and will automatically terminate your rights under |
this License (including any patent licenses granted under the third |
paragraph of section 11). |
However, if you cease all violation of this License, then your |
license from a particular copyright holder is reinstated (a) |
provisionally, unless and until the copyright holder explicitly and |
finally terminates your license, and (b) permanently, if the copyright |
holder fails to notify you of the violation by some reasonable means |
prior to 60 days after the cessation. |
Moreover, your license from a particular copyright holder is |
reinstated permanently if the copyright holder notifies you of the |
violation by some reasonable means, this is the first time you have |
received notice of violation of this License (for any work) from that |
copyright holder, and you cure the violation prior to 30 days after |
your receipt of the notice. |
Termination of your rights under this section does not terminate the |
licenses of parties who have received copies or rights from you under |
this License. If your rights have been terminated and not permanently |
reinstated, you do not qualify to receive new licenses for the same |
material under section 10. |
9. Acceptance Not Required for Having Copies. |
You are not required to accept this License in order to receive or |
run a copy of the Program. Ancillary propagation of a covered work |
occurring solely as a consequence of using peer-to-peer transmission |
to receive a copy likewise does not require acceptance. However, |
nothing other than this License grants you permission to propagate or |
modify any covered work. These actions infringe copyright if you do |
not accept this License. Therefore, by modifying or propagating a |
covered work, you indicate your acceptance of this License to do so. |
10. Automatic Licensing of Downstream Recipients. |
Each time you convey a covered work, the recipient automatically |
receives a license from the original licensors, to run, modify and |
propagate that work, subject to this License. You are not responsible |
for enforcing compliance by third parties with this License. |
An "entity transaction" is a transaction transferring control of an |
organization, or substantially all assets of one, or subdividing an |
organization, or merging organizations. If propagation of a covered |
work results from an entity transaction, each party to that |
transaction who receives a copy of the work also receives whatever |
licenses to the work the party's predecessor in interest had or could |
give under the previous paragraph, plus a right to possession of the |
Corresponding Source of the work from the predecessor in interest, if |
the predecessor has it or can get it with reasonable efforts. |
You may not impose any further restrictions on the exercise of the |
rights granted or affirmed under this License. For example, you may |
not impose a license fee, royalty, or other charge for exercise of |
rights granted under this License, and you may not initiate litigation |
(including a cross-claim or counterclaim in a lawsuit) alleging that |
any patent claim is infringed by making, using, selling, offering for |
sale, or importing the Program or any portion of it. |
11. Patents. |
A "contributor" is a copyright holder who authorizes use under this |
License of the Program or a work on which the Program is based. The |
work thus licensed is called the contributor's "contributor version". |
A contributor's "essential patent claims" are all patent claims |
owned or controlled by the contributor, whether already acquired or |
hereafter acquired, that would be infringed by some manner, permitted |
by this License, of making, using, or selling its contributor version, |
but do not include claims that would be infringed only as a |
consequence of further modification of the contributor version. For |
purposes of this definition, "control" includes the right to grant |
patent sublicenses in a manner consistent with the requirements of |
this License. |
Each contributor grants you a non-exclusive, worldwide, royalty-free |
patent license under the contributor's essential patent claims, to |
make, use, sell, offer for sale, import and otherwise run, modify and |
propagate the contents of its contributor version. |
In the following three paragraphs, a "patent license" is any express |
agreement or commitment, however denominated, not to enforce a patent |
(such as an express permission to practice a patent or covenant not to |
sue for patent infringement). To "grant" such a patent license to a |
party means to make such an agreement or commitment not to enforce a |
patent against the party. |
If you convey a covered work, knowingly relying on a patent license, |
and the Corresponding Source of the work is not available for anyone |
to copy, free of charge and under the terms of this License, through a |
publicly available network server or other readily accessible means, |
then you must either (1) cause the Corresponding Source to be so |
available, or (2) arrange to deprive yourself of the benefit of the |
patent license for this particular work, or (3) arrange, in a manner |
consistent with the requirements of this License, to extend the patent |
license to downstream recipients. "Knowingly relying" means you have |
actual knowledge that, but for the patent license, your conveying the |
covered work in a country, or your recipient's use of the covered work |
in a country, would infringe one or more identifiable patents in that |
country that you have reason to believe are valid. |
If, pursuant to or in connection with a single transaction or |
arrangement, you convey, or propagate by procuring conveyance of, a |
covered work, and grant a patent license to some of the parties |
receiving the covered work authorizing them to use, propagate, modify |
or convey a specific copy of the covered work, then the patent license |
you grant is automatically extended to all recipients of the covered |
work and works based on it. |
A patent license is "discriminatory" if it does not include within |
the scope of its coverage, prohibits the exercise of, or is |
conditioned on the non-exercise of one or more of the rights that are |
specifically granted under this License. You may not convey a covered |
work if you are a party to an arrangement with a third party that is |
in the business of distributing software, under which you make payment |
to the third party based on the extent of your activity of conveying |
the work, and under which the third party grants, to any of the |
parties who would receive the covered work from you, a discriminatory |
patent license (a) in connection with copies of the covered work |
conveyed by you (or copies made from those copies), or (b) primarily |
for and in connection with specific products or compilations that |
contain the covered work, unless you entered into that arrangement, |
or that patent license was granted, prior to 28 March 2007. |
Nothing in this License shall be construed as excluding or limiting |
any implied license or other defenses to infringement that may |
otherwise be available to you under applicable patent law. |
12. No Surrender of Others' Freedom. |
If conditions are imposed on you (whether by court order, agreement or |
otherwise) that contradict the conditions of this License, they do not |
excuse you from the conditions of this License. If you cannot convey a |
covered work so as to satisfy simultaneously your obligations under this |
License and any other pertinent obligations, then as a consequence you may |
not convey it at all. For example, if you agree to terms that obligate you |
to collect a royalty for further conveying from those to whom you convey |
the Program, the only way you could satisfy both those terms and this |
License would be to refrain entirely from conveying the Program. |
13. Use with the GNU Affero General Public License. |
Notwithstanding any other provision of this License, you have |
permission to link or combine any covered work with a work licensed |
under version 3 of the GNU Affero General Public License into a single |
combined work, and to convey the resulting work. The terms of this |
License will continue to apply to the part which is the covered work, |
but the special requirements of the GNU Affero General Public License, |
section 13, concerning interaction through a network will apply to the |
combination as such. |
14. Revised Versions of this License. |
The Free Software Foundation may publish revised and/or new versions of |
the GNU General Public License from time to time. Such new versions will |
be similar in spirit to the present version, but may differ in detail to |
address new problems or concerns. |
Each version is given a distinguishing version number. If the |
Program specifies that a certain numbered version of the GNU General |
Public License "or any later version" applies to it, you have the |
option of following the terms and conditions either of that numbered |
version or of any later version published by the Free Software |
Foundation. If the Program does not specify a version number of the |
GNU General Public License, you may choose any version ever published |
by the Free Software Foundation. |
If the Program specifies that a proxy can decide which future |
versions of the GNU General Public License can be used, that proxy's |
public statement of acceptance of a version permanently authorizes you |
to choose that version for the Program. |
Later license versions may give you additional or different |
permissions. However, no additional obligations are imposed on any |
author or copyright holder as a result of your choosing to follow a |
later version. |
15. Disclaimer of Warranty. |
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY |
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, |
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM |
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF |
ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
16. Limitation of Liability. |
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS |
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY |
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE |
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF |
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD |
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), |
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
SUCH DAMAGES. |
17. Interpretation of Sections 15 and 16. |
If the disclaimer of warranty and limitation of liability provided |
above cannot be given local legal effect according to their terms, |
reviewing courts shall apply local law that most closely approximates |
an absolute waiver of all civil liability in connection with the |
Program, unless a warranty or assumption of liability accompanies a |
copy of the Program in return for a fee. |
END OF TERMS AND CONDITIONS |
How to Apply These Terms to Your New Programs |
If you develop a new program, and you want it to be of the greatest |
possible use to the public, the best way to achieve this is to make it |
free software which everyone can redistribute and change under these terms. |
To do so, attach the following notices to the program. It is safest |
to attach them to the start of each source file to most effectively |
state the exclusion of warranty; and each file should have at least |
the "copyright" line and a pointer to where the full notice is found. |
<one line to give the program's name and a brief idea of what it does.> |
Copyright (C) <year> <name of author> |
This program is free software: you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
the Free Software Foundation, either version 3 of the License, or |
(at your option) any later version. |
This program is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Also add information on how to contact you by electronic and paper mail. |
If the program does terminal interaction, make it output a short |
notice like this when it starts in an interactive mode: |
<program> Copyright (C) <year> <name of author> |
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
This is free software, and you are welcome to redistribute it |
under certain conditions; type `show c' for details. |
The hypothetical commands `show w' and `show c' should show the appropriate |
parts of the General Public License. Of course, your program's commands |
might be different; for a GUI interface, you would use an "about box". |
You should also get your employer (if you work as a programmer) or school, |
if any, to sign a "copyright disclaimer" for the program, if necessary. |
For more information on this, and how to apply and follow the GNU GPL, see |
<http://www.gnu.org/licenses/>. |
The GNU General Public License does not permit incorporating your program |
into proprietary programs. If your program is a subroutine library, you |
may consider it more useful to permit linking proprietary applications with |
the library. If this is what you want to do, use the GNU Lesser General |
Public License instead of this License. But first, please read |
<http://www.gnu.org/philosophy/why-not-lgpl.html>. |
/branches/MicroMag3_Nick666/v0.60/COPYING.LESSER |
---|
0,0 → 1,165 |
GNU LESSER GENERAL PUBLIC LICENSE |
Version 3, 29 June 2007 |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
Everyone is permitted to copy and distribute verbatim copies |
of this license document, but changing it is not allowed. |
This version of the GNU Lesser General Public License incorporates |
the terms and conditions of version 3 of the GNU General Public |
License, supplemented by the additional permissions listed below. |
0. Additional Definitions. |
As used herein, "this License" refers to version 3 of the GNU Lesser |
General Public License, and the "GNU GPL" refers to version 3 of the GNU |
General Public License. |
"The Library" refers to a covered work governed by this License, |
other than an Application or a Combined Work as defined below. |
An "Application" is any work that makes use of an interface provided |
by the Library, but which is not otherwise based on the Library. |
Defining a subclass of a class defined by the Library is deemed a mode |
of using an interface provided by the Library. |
A "Combined Work" is a work produced by combining or linking an |
Application with the Library. The particular version of the Library |
with which the Combined Work was made is also called the "Linked |
Version". |
The "Minimal Corresponding Source" for a Combined Work means the |
Corresponding Source for the Combined Work, excluding any source code |
for portions of the Combined Work that, considered in isolation, are |
based on the Application, and not on the Linked Version. |
The "Corresponding Application Code" for a Combined Work means the |
object code and/or source code for the Application, including any data |
and utility programs needed for reproducing the Combined Work from the |
Application, but excluding the System Libraries of the Combined Work. |
1. Exception to Section 3 of the GNU GPL. |
You may convey a covered work under sections 3 and 4 of this License |
without being bound by section 3 of the GNU GPL. |
2. Conveying Modified Versions. |
If you modify a copy of the Library, and, in your modifications, a |
facility refers to a function or data to be supplied by an Application |
that uses the facility (other than as an argument passed when the |
facility is invoked), then you may convey a copy of the modified |
version: |
a) under this License, provided that you make a good faith effort to |
ensure that, in the event an Application does not supply the |
function or data, the facility still operates, and performs |
whatever part of its purpose remains meaningful, or |
b) under the GNU GPL, with none of the additional permissions of |
this License applicable to that copy. |
3. Object Code Incorporating Material from Library Header Files. |
The object code form of an Application may incorporate material from |
a header file that is part of the Library. You may convey such object |
code under terms of your choice, provided that, if the incorporated |
material is not limited to numerical parameters, data structure |
layouts and accessors, or small macros, inline functions and templates |
(ten or fewer lines in length), you do both of the following: |
a) Give prominent notice with each copy of the object code that the |
Library is used in it and that the Library and its use are |
covered by this License. |
b) Accompany the object code with a copy of the GNU GPL and this license |
document. |
4. Combined Works. |
You may convey a Combined Work under terms of your choice that, |
taken together, effectively do not restrict modification of the |
portions of the Library contained in the Combined Work and reverse |
engineering for debugging such modifications, if you also do each of |
the following: |
a) Give prominent notice with each copy of the Combined Work that |
the Library is used in it and that the Library and its use are |
covered by this License. |
b) Accompany the Combined Work with a copy of the GNU GPL and this license |
document. |
c) For a Combined Work that displays copyright notices during |
execution, include the copyright notice for the Library among |
these notices, as well as a reference directing the user to the |
copies of the GNU GPL and this license document. |
d) Do one of the following: |
0) Convey the Minimal Corresponding Source under the terms of this |
License, and the Corresponding Application Code in a form |
suitable for, and under terms that permit, the user to |
recombine or relink the Application with a modified version of |
the Linked Version to produce a modified Combined Work, in the |
manner specified by section 6 of the GNU GPL for conveying |
Corresponding Source. |
1) Use a suitable shared library mechanism for linking with the |
Library. A suitable mechanism is one that (a) uses at run time |
a copy of the Library already present on the user's computer |
system, and (b) will operate properly with a modified version |
of the Library that is interface-compatible with the Linked |
Version. |
e) Provide Installation Information, but only if you would otherwise |
be required to provide such information under section 6 of the |
GNU GPL, and only to the extent that such information is |
necessary to install and execute a modified version of the |
Combined Work produced by recombining or relinking the |
Application with a modified version of the Linked Version. (If |
you use option 4d0, the Installation Information must accompany |
the Minimal Corresponding Source and Corresponding Application |
Code. If you use option 4d1, you must provide the Installation |
Information in the manner specified by section 6 of the GNU GPL |
for conveying Corresponding Source.) |
5. Combined Libraries. |
You may place library facilities that are a work based on the |
Library side by side in a single library together with other library |
facilities that are not Applications and are not covered by this |
License, and convey such a combined library under terms of your |
choice, if you do both of the following: |
a) Accompany the combined library with a copy of the same work based |
on the Library, uncombined with any other library facilities, |
conveyed under the terms of this License. |
b) Give prominent notice with the combined library that part of it |
is a work based on the Library, and explaining where to find the |
accompanying uncombined form of the same work. |
6. Revised Versions of the GNU Lesser General Public License. |
The Free Software Foundation may publish revised and/or new versions |
of the GNU Lesser General Public License from time to time. Such new |
versions will be similar in spirit to the present version, but may |
differ in detail to address new problems or concerns. |
Each version is given a distinguishing version number. If the |
Library as you received it specifies that a certain numbered version |
of the GNU Lesser General Public License "or any later version" |
applies to it, you have the option of following the terms and |
conditions either of that published version or of any later version |
published by the Free Software Foundation. If the Library as you |
received it does not specify a version number of the GNU Lesser |
General Public License, you may choose any version of the GNU Lesser |
General Public License ever published by the Free Software Foundation. |
If the Library as you received it specifies that a proxy can decide |
whether future versions of the GNU Lesser General Public License shall |
apply, that proxy's public statement of acceptance of any version is |
permanent authorization for you to choose that version for the |
Library. |
/branches/MicroMag3_Nick666/v0.60/Flight-Ctrl_MEGA644_V0_60_MM3.hex |
---|
0,0 → 1,1484 |
:100000000C9455030C9472030C9472030C947203B9 |
:100010000C9472030C9472030C9472030C9472038C |
:100020000C9472030C94960B0C9472030C94720350 |
:100030000C94DF140C9472030C9472030C947203EE |
:100040000C9472030C9472030C94390C0C94782861 |
:100050000C9497050C9472030C9461050C94720334 |
:100060000C94B20C0C9472030C944C140C94720308 |
:100070000E08880888088808400821088808880829 |
:1000800088086C086C086C086C086C0844088808C0 |
:100090008808330888083C08DB0C2D0D860DE10D1F |
:1000A000FE0D210E470E2E0F6D10A11002115811DA |
:1000B000A6111F127912DA12FE1234137013AE1346 |
:1000C000E7130A0A0D004E65757472616C0048658D |
:1000D0006164696E67486F6C64000A0D53746575DE |
:1000E0006572756E673A20004F4B0A0D000A0D418C |
:1000F00062676C65696368204C75667464727563C9 |
:100100006B73656E736F722E2E000A0D4B616C69F6 |
:10011000627269657265204E65757472616C6C619E |
:100120006765000A0D4B616C6962726965726520D2 |
:100130004B6F6D70617373000A0D42656E75747A52 |
:100140006520506172616D657465727361747A20A7 |
:100150002564000A0D496E69742E20454550524FA2 |
:100160004D3A2047656E6572696572652044656623 |
:1001700061756C742D506172616D657465722E2E9F |
:100180002E000A0D3D3D3D3D3D3D3D3D3D3D3D3D4E |
:100190003D3D3D3D3D3D3D3D3D3D3D3D3D3D3D3D8F |
:1001A0003D3D000A0D466C69676874436F6E74725A |
:1001B0006F6C205625642E256420002E005A5F5255 |
:1001C000616E67653A202025346900595F52616E7F |
:1001D00067653A202025346900585F52616E676573 |
:1001E0003A2020253469004D4D332052616E6765F9 |
:1001F000005A5F4F66667365743A202025336900A4 |
:10020000595F4F66667365743A202025336900583C |
:100210005F4F66667365743A2020253369004D4D43 |
:1002200033204F66660052616E67653A2533692D4B |
:10023000253369005374656C6C756E673A202533FD |
:100240006900536574706F696E74202025336900EE |
:10025000536572766F202000506F7469343A202005 |
:1002600025336900506F7469333A202025336900C3 |
:10027000506F7469323A202025336900506F7469D9 |
:10028000313A20202533690053746172743A20207A |
:10029000202020253569004D657373776572743AA7 |
:1002A0002020253569005269636874756E673A20AD |
:1002B00020253569004B6F6D7061737320202020FD |
:1002C00020202000456D70662E506567656C3A25CC |
:1002D0003569005370616E6E756E673A2020253562 |
:1002E0006900486F6368202534692028253369290F |
:1002F00000526F6C6C202534692028253369290051 |
:100300004E69636B20253469202825336929004113 |
:100310004343202D2053656E736F720047696572E9 |
:100320002025346920282533692900526F6C6C2000 |
:10033000253469202825336929004E69636B2025FF |
:100340003469202825336929004779726F202D20D0 |
:1003500053656E736F720050333A25346920204B19 |
:10036000616EE46C65200050313A253469202050DC |
:10037000323A253469200047733A253469202047F2 |
:10038000693A25346920004E693A253469202052A3 |
:100390006F3A25346920004B373A25346920204BC9 |
:1003A000616EE46C6520004B353A25346920204BA2 |
:1003B000363A25346920004B333A25346920204BE6 |
:1003C000343A25346920004B313A25346920204BDA |
:1003D000323A25346920004B6F6D706173733A2097 |
:1003E000202025356900526F6C6C3A202020202097 |
:1003F00020253569004E69636B3A2020202020209B |
:1004000025356900616B742E204C6167650048F6E4 |
:1004100068656E726567656C756E67004B65696EC1 |
:100420006520004F66662020202020203A202535B8 |
:1004300069004C756674647275636B3A2025356982 |
:1004400000536F6C6C486F6568653A20253569000C |
:10045000486F6568653A20202020202535690028EE |
:10046000632920486F6C676572204275737300536F |
:10047000657474696E673A20256420005625642EE1 |
:100480002564002B2B204D696B726F4B6F70746568 |
:1004900072202B2B005B25695D0000010203040420 |
:1004A00005060708090A0B0B0C0D0E0F101111128F |
:1004B0001314151516171818191A1B1B1C1D1D1EB1 |
:1004C0001F1F2021212223232424252526272728F6 |
:1004D0002829292A2A2B2B2C2C2D2D2D2E2E2F2F5F |
:1004E00030303031313232323333333434343535E5 |
:1004F0003536363637373737383838393939393A83 |
:100500003A3A3A3B3B3B3B3C3C3C3C3C3D3D3D3D31 |
:100510003E3E3E3E3E3F3F3F3F3F3F4040404040EB |
:1005200040414141414141424242424242424343B1 |
:10053000434343434344444444444444444545457D |
:100540004545454545454646464646464646464750 |
:100550004747474747474747474748484848484825 |
:100560004848484848494949494949494949494900 |
:100570004949494A4A4A4A4A4A4A4A4A4A4A4A4ADE |
:100580004A4B4B4B4B4B4B4B4B4B4B4B4B4B4B4BBC |
:100590004B4B4C4C4C4C4C4C4C4C4C4C4C4C4C4C9D |
:1005A0004C4C4C4C4C4D4D4D4D4D4D4D4D4D4D4D80 |
:1005B0004D4D4D4D4D4D4D4D4D4D4D4E4E4E4E4E66 |
:1005C0004E4E4E4E4E4E4E4E4E4E4E4E4E4E4E4E4B |
:1005D0004E4E4E4E4E4F4F4F4F4F4F4F4F4F4F4F30 |
:1005E0004F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F1B |
:1005F0004F4F4F4F000012002400360047005900B3 |
:100600006B007D008F00A000B200C300D500E600A3 |
:10061000F80009011A012B013C014D015E016F0137 |
:1006200080019001A001B101C101D101E101F001FE |
:1006300000020F021F022E023D024B025A02680204 |
:10064000760284029202A002AD02BA02C702D4026C |
:10065000E102ED02F902050310031C032703320334 |
:100660003C03470351035B0364036E03770380037A |
:10067000880390039803A003A703AF03B503BC034B |
:10068000C203C803CE03D303D803DD03E203E603AA |
:10069000EA03ED03F003F303F603F803FA03FC03A4 |
:1006A000FE03FF03FF030004000411241FBECFEF6D |
:1006B000D0E1DEBFCDBF11E0A0E0B1E0E4E1FCE5B8 |
:1006C00002C005900D92AC38B107D9F715E0ACE83F |
:1006D000B1E001C01D92AC32B107E1F70E94AA035C |
:1006E0000C94092E0C940000A2E0B0E00E94EB2DC7 |
:1006F000802D99270895FB01863008F085E0282F8A |
:100700002150842F9927AAE32A9FD0011124A65FA4 |
:10071000BF4F019724F001900E94F82DFACFA2E07C |
:10072000B0E0022E0E94F82D0895FB01282F86309C |
:1007300008F025E0842F99272150AAE32A9FD001B1 |
:100740001124A65FBF4F019724F00E94EB2D019268 |
:10075000FACF08950F931F93CF93DF9381E087B96A |
:100760008FEF88B98BE184B9289A8EE38AB9579ABA |
:1007700087EF8BB984B7877F84BF809160008861E1 |
:10078000809360001092600088EE93E09093A70140 |
:100790008093A60110921D0210921C0210929A04DE |
:1007A0001092990410921B0210921A0210921902D0 |
:1007B0001092180228980E94640B0E9467070E94FA |
:1007C000CA140E94AC0C0E9430140E94B82A78947B |
:1007D0001092A8038CE38093A90384E08093AA037A |
:1007E0008CE390E09F938F931F921F9283EA91E096 |
:1007F0009F938F931F920E94E70882E891E09F9356 |
:100800008F931F920E94E708299AA1E0B0E00E940E |
:10081000EB2D802D2DB73EB7265F3F4F2DBF8A3081 |
:10082000B9F183E591E09F938F931F920E94E708AF |
:100830000E942D1C4AE361EC74E080E00E947B037F |
:1008400001E00F900F900F90023049F40E94C01BFE |
:100850004AE361EC74E082E00E947B0303E04AE338 |
:1008600061EC74E0802F0E947B030F5F063060F321 |
:1008700081E022E030E0D901082E0E94F82D8AE0C4 |
:1008800021503040D901082E0E94F82D0E94B71D3A |
:1008900002E010E0D8010E94EB2D802D4AE361ECCC |
:1008A00074E00E949503D8010E94EB2D802D9927BA |
:1008B0009F938F9388E391E09F938F931F920E9461 |
:1008C000E70884EF91E00E94810BEC010F900F90FC |
:1008D0000F900F900F90CE010E948A0B8823D9F3BE |
:1008E000E091C304FF27EE0FFF1FEB56FB4F808103 |
:1008F000918185369105C4F0E091C404FF27EE0F85 |
:10090000FF1FEB56FB4F808191818536910564F086 |
:1009100083E291E09F938F931F920E94E7080E94C9 |
:10092000F2290F900F900F90E091C304FF27EE0F74 |
:10093000FF1FEB56FB4F8081918185369105C4F0F6 |
:10094000E091C404FF27EE0FFF1FEB56FB4F8081A1 |
:1009500091818C599F4F64F48AE091E09F938F932B |
:100960001F920E94E7080E94B71D0F900F900F90F2 |
:100970008091C90480FF20C08DEE90E09F938F93FB |
:100980001F920E94E70884EC99E00E94810BEC0121 |
:100990000E94C80F0F900F900F90CE010E948A0BFB |
:1009A0008823D9F388EE90E09F938F931F920E9443 |
:1009B000E7080F900F900F900E94E51C289880ED9B |
:1009C00097E09093A7018093A60188EE93E090931F |
:1009D000A3038093A20385E580939D038AED90E0B5 |
:1009E0009F938F931F920E94E7088091C9040F90F4 |
:1009F0000F900F9082FF03C08EEC90E002C086EC57 |
:100A000090E09F938F931F920E94E7080F900F90A2 |
:100A10000F9082EC90E09F938F931F920E94E708C3 |
:100A20000E940C100F900F900F908091A5018823C9 |
:100A300079F11092A5010E94301E0E949E1C2898F8 |
:100A400080910101882319F08150809301018091E8 |
:100A50001702882329F08091170281508093170292 |
:100A600020910401309105018091D904992728171C |
:100A7000390734F480ED97E09093A7018093A601A5 |
:100A80008091CF01882319F40E94301401C0289866 |
:100A90000E9482070E94F00780E090E00E948A0B8B |
:100AA000882319F280911E02882329F088B190E1F1 |
:100AB000892788B901C0449884EF91E00E94810B96 |
:100AC000B4CF1F920F920FB60F9211248F939F9362 |
:100AD000EF93FF93809100018823E1F48091A101BD |
:100AE0009091A20101969093A2018093A101FC0133 |
:100AF000E159FD4FE081ED3019F08639910539F467 |
:100B00001092A2011092A10181E080930001E09374 |
:100B1000C60004C01092A2011092A101FF91EF91B2 |
:100B20009F918F910F900FBE0F901F9018951F925D |
:100B30000F920FB60F9211242F933F934F938F93E1 |
:100B40009F93AF93BF93CF93DF93EF93FF938091E6 |
:100B5000C6008093900140919C01463910F010929C |
:100B60009B01809190018D3009F05CC080919B01C8 |
:100B7000823009F057C010929B01A42FBB27FD01C2 |
:100B8000E055FC4F3081ED01CF54DC4F288180913E |
:100B90009F019091A001831B9109821B91099F7075 |
:100BA0009093A00180939F019C0196E03695279534 |
:100BB0009A95E1F7235C20939E01982F9F73935C95 |
:100BC00090939D018081281729F48881981711F44A |
:100BD00091E006C0809193018F5F8093930190E034 |
:100BE00080919101882309F064C0992309F461C0C0 |
:100BF00081E08093910140939401AE54BC4F8DE00D |
:100C00008C938091B403823509F053C088E190E061 |
:100C10002CE00FB6F894A895809360000FBE209347 |
:100C2000600047C080919B018130D9F0813018F07D |
:100C30008230E9F530C080919001833239F480919F |
:100C40009101882319F481E080939B0180919001A8 |
:100C50008093B20381E080939C0180919001992759 |
:100C600015C082E080939B01E42FFF2780919001C3 |
:100C7000EE54FC4F80834F5F40939C012091900184 |
:100C800080919F019091A001820F911D9093A001EE |
:100C900080939F010EC0E42FFF2780919001EE54B6 |
:100CA000FC4F8083463938F310929B01E7CF1092B6 |
:100CB0009B01FF91EF91DF91CF91BF91AF919F91F8 |
:100CC0008F914F913F912F910F900FBE0F901F90DA |
:100CD0001895DC0120E030E040E050E0EFE6F2E083 |
:100CE00005C08191280F311D4F5F5F4F4A175B0789 |
:100CF000C1F73F70C90136E0969587953A95E1F7BF |
:100D0000835CFD01E159FD4F808311962F73235CB5 |
:100D1000FD01E159FD4F2083A059BD4F8DE08C931B |
:100D20001092000180916F028093C6000895EF92A7 |
:100D3000FF920F931F93CF93DF937A01722F93E269 |
:100D400090936F02609370028093710203E010E051 |
:100D500060E0A2E7B2E046C0F701E60FF11D908126 |
:100D60006F5F715019F4E0E040E00FC0F701E60F4B |
:100D7000F11D40816F5F715011F4E0E006C0F70192 |
:100D8000E60FF11DE0816F5F7150892F8695869582 |
:100D9000835C8C935527892F99278370907024E06A |
:100DA000880F991F2A95E1F79A0194E036952795C7 |
:100DB0009A95E1F7822B835CED0189834F70507027 |
:100DC000440F551F440F551F8E2F8295869586958B |
:100DD0008370842B835C8A83EF73E35CEB830C5F0B |
:100DE0001F4F1496772309F0B7CFC8010E946906F8 |
:100DF000E6E0CDB7DEB70C94D62D1F93CF93DF93EB |
:100E0000EC0170E0A22FBB27129748C0E42FFF2708 |
:100E1000EE54FC4F30814F5FE42FFF27EE54FC4F20 |
:100E200050814F5FE42FFF27EE54FC4F10814F5F3E |
:100E3000E42FFF27EE54FC4F20814F5F842F99272A |
:100E4000A817B90774F15D53FE01E70FF11D3D537B |
:100E5000330F330F852F82958F70382B308361309D |
:100E600001F1912F9D537F5FFE01E70FF11D71503E |
:100E70005295507F892F86958695582B50836350C5 |
:100E80006F3F79F07E5FFE01E70FF11D9295990F9C |
:100E9000990F907C2D53922B90837F5F662309F0EE |
:100EA000B5CFDF91CF911F9108951F93182F8A30EE |
:100EB00019F48DE00E9455078091C00085FFFCCF9A |
:100EC0001093C60080E090E01F9108950895E1EC32 |
:100ED000F0E088E18083A0ECB0E08C9182608C939C |
:100EE0008081806880838081806480838AE28093AF |
:100EF000C40088EC90E00E94810B90939C03809347 |
:100F00009B03089580910001882309F468C08091B3 |
:100F10008C01882371F080910001882351F02BE02F |
:100F20004DE953E060916E0287E40E9497061092AB |
:100F30008C0180919B0390919C030E948A0B8823D3 |
:100F400021F480918E018823B1F0809100018823E3 |
:100F500091F022E348E454E060916E0284E40E9440 |
:100F6000970610928E018AEF90E00E94810B909379 |
:100F70009C0380939B0380918D018823F1F08091E5 |
:100F800000018823D1F00E94151010928D018091EC |
:100F90009A018F5F80939A01843011F410929A0124 |
:100FA00080919A0144E1849FA00111244A5E5E4F22 |
:100FB00024E160E0805D0E94970680918F01882384 |
:100FC00071F080910001882351F02AE048EA53E053 |
:100FD00060916E0286E50E94970610928F01089537 |
:100FE000A2E0B0E0E6EFF7E00C94BD2D8091910116 |
:100FF000882309F48FC08FEF809301018091B4039F |
:101000009927AA27BB27FC01E356F040E431F105FC |
:1010100008F07EC0E85CFF4F0C94E52D2091940110 |
:1010200043E06BE08DE993E00E94FD068091C601EC |
:1010300090919F03892B8093C60181E080938E015C |
:1010400067C02091940143E062E0CE0101960E94C6 |
:10105000FD068091C6019981892B8093C60181E0AC |
:1010600080938D0155C02091940143E064E086E9AE |
:1010700091E00E94FD064CC081E080938F0148C042 |
:1010800081E080938C0144C02091940143E062E0B0 |
:10109000CE0101960E94FD0689818F3F89F086303E |
:1010A00010F085E089834AE361EC74E089810E9455 |
:1010B000950389812AE341EC54E060916E0208C0F7 |
:1010C00010916E020E9474032AE341EC54E0612FF8 |
:1010D000855B0E9497061CC02091940143E06AE35F |
:1010E00081EC94E00E94FD068091B4034AE361EC38 |
:1010F00074E08B560E947B038091B4038B56A2E070 |
:10110000B0E0082E0E94F82D0E9474030E941B1E5E |
:1011100010929101E3E0CE5F0C94D92D982F80912D |
:101120007A04813069F48091C501E82FFF27EA5ED7 |
:10113000FE4F90838F5F8093C50121E030E005C0B2 |
:10114000892F0E945507282F3327C90108951F931F |
:10115000182F04C080E30E948E0811501116D4F39A |
:101160001F9108951F93182F04C080E20E948E08DB |
:1011700011501116D4F31F9108950F931F93CF931D |
:10118000DF938C01EB0108C0F8010F5F1F4FE49162 |
:101190008E2F0E948E0821972097B1F7DF91CF9173 |
:1011A0001F910F9108950F931F93CF93DF938C019D |
:1011B000EB0106C0F80181918F010E948E082197F2 |
:1011C0002097C1F7DF91CF911F910F910895A3E36D |
:1011D000B0E0EDEEF8E00C94AE2D29968FAD299796 |
:1011E00080937A04CE01855B9F4F9D838C832B96E1 |
:1011F0008EAD9FAD2B979FA78EA72224332421016C |
:1012000002C0130124010EA51FA502C00F5F1F4FCE |
:10121000F801F490FF2019F0F5E2FF16B9F7B801D4 |
:101220008EA59FA5681B790B11F00E94BD08FF20B9 |
:1012300009F446C20F5F1F4F1FA70EA71982AC818A |
:10124000BD811BAA1AAA9FEF99ABEEA5FFA5CF01FE |
:1012500001969FA78EA7B49095E7B91621F08B2D24 |
:101260008062883789F4EBA9E0FF07C02D903D909C |
:101270004D905C901397149607C08D919C91119797 |
:101280001C01442455241296F0E2BF1621F48981F2 |
:101290008823D9F685C083E2B81609F483C09AE2A0 |
:1012A000B91621F0EDE2BE1669F408C0FD011296F0 |
:1012B000E081EAABE7FFC9CFE195EAABFBA9F061BA |
:1012C000FF7D72C08BE2B81609F46AC09EE2B916BF |
:1012D000B1F52EA53FA52F5F3F4FEEA5FFA5849149 |
:1012E0008A3221F0B82E20E030E01BC0FD011296BA |
:1012F0004081518157FF02C04FEF5FEF49AB3FA7DD |
:101300002EA7A3CFC90143E0880F991F4A95E1F7A3 |
:10131000220F331F280F391F2B0D311D2053304052 |
:10132000B49031968B2D80538A3060F3FFA7EEA7DF |
:10133000A90137FF02C04FEF5FEF49AB8DCFF0E35C |
:10134000BF1631F48BA984FD80CF80628BAB7DCF3B |
:101350008B2D81538930E8F420E030E0C90113E09F |
:10136000880F991F1A95E1F7220F331F280F391F95 |
:101370002B0D311D20533040EEA5FFA5CF01019666 |
:101380009FA78EA7B4908B2D80538A3038F32AAB59 |
:1013900063CF98E6B91651F4EBA9E460EBAB55CFF7 |
:1013A000B98253CFFBA9F860FBAB4FCF8CE6B816E0 |
:1013B00021F49BA991609BAB48CFBD83AC83E3E64E |
:1013C000BE1639F41296BD83AC8312978C918E832E |
:1013D0001CC1F4E4BF1639F084E6B81639F099E67A |
:1013E000B91659F503C0EBA9E160EBABFBA9F0FF1F |
:1013F00008C01496BD83AC835E904E903E902E90B4 |
:101400000AC01296BD83AC839E918E911C01442428 |
:1014100037FC4094542C57FC03C08AE088AB96C03C |
:101420005094409430942094211C311C411C511C38 |
:101430008DE289839AE098AB89C0EFE4BE1629F06B |
:10144000FFE6BF1639F488E065C09BA991609BABAD |
:10145000E8E05AC0F0E7BF1681F41296BD83AC8372 |
:101460009E918E911C01442455248BA980648BABE2 |
:1014700090E198ABE8E7BE2E68C0E3E7BE16E9F559 |
:101480001296BD83AC83DE90CE90C114D10489F452 |
:1014900088E28E838EE68F8385E788878CE689874E |
:1014A0008A8789E28B871C8676E0C72ED12CCC0EEA |
:1014B000DD1EF9A9F7FD13C04F2F552747FD5095A5 |
:1014C00060E070E0C6010E94B62B009711F419A9E4 |
:1014D0000DC08C1919A981174CF4182F07C0F601FB |
:1014E00001900020E9F731971E2F1C191982420143 |
:1014F000310163E7B62E40E094C085E5B81631F0BF |
:1015000095E7B91649F4EAE0E8AB1FC0FBA9F16022 |
:10151000FBAB8AE088AB19C098E5B91621F0E8E783 |
:10152000BE1609F06EC0FBA9F3FD02C080E1F2CF48 |
:10153000211431044104510419F490E198AB05C021 |
:10154000EBA9E064EBABF0E1F8AB198289A987FD68 |
:1015500003C09BA99F7D9BAB21143104410451041E |
:1015600061F4E9A9EE2349F46624772443015EE29D |
:10157000C52ED12CCC0EDD1E3EC04EE2C42ED12C89 |
:10158000CC0EDD1EF8A9EF2EFF2400271127C20183 |
:10159000B101A80197010E94712D6A3020F430E357 |
:1015A000A32EA60E08C027E5A22EA60E88E5B81623 |
:1015B00011F49FEDA922F601A2926F01C201B101BF |
:1015C000A80197010E94712D39014A012E143F0490 |
:1015D0004006510618F019012A01D9CFF8A9F830B0 |
:1015E00051F48BA983FF07C090E3A91621F080E393 |
:1015F000F60182936F01CE018C19182F125D49A953 |
:1016000010C0BB2009F45CC0BE82198242013101C6 |
:1016100000E096E0C92ED12CCC0EDD1E11E021E0B9 |
:1016200005C0212F042F011B07FD00E089818823BD |
:1016300019F0812F8F5F07C09BA996FD02C0812FF3 |
:1016400002C0822F8E5FA82EA00EEBA9EE2EFF24E3 |
:1016500080E3482E512C4E205F204114510421F488 |
:101660008AA98A190E94B2088981882329F061E039 |
:1016700070E0CE01019609C0E6FE09C080E38A83CE |
:10168000BB8262E070E0CE0102960E94D308F0E2D5 |
:101690004F16510421F48AA98A190E94A708802FA5 |
:1016A0000E94A708612F772767FD7095C6010E94E9 |
:1016B000D308E4FEA6CD8AA98A190E94B208A1CD5A |
:1016C000E2E1CD5C0C94CA2D82E085BD83EA84BD45 |
:1016D00017BC88E788BD83EC8093B00086E08093D8 |
:1016E000B100E0E7F0E0808182608083EEE6F0E028 |
:1016F0008081816080838AE08093B3001092B20081 |
:1017000008952091A3013091A4012F5F3F4F820FD4 |
:10171000931F08952091A3013091A401821B930B84 |
:10172000892F992786958074992708951F920F9283 |
:101730000FB60F921124EF92FF920F931F932F93E6 |
:101740003F934F935F936F937F938F939F93AF9349 |
:10175000BF93CF93DF93EF93FF938091020181506A |
:10176000809302018F3F09F069C083E88093B00045 |
:1017700080918901C82FDD27D093A901C093A801CA |
:101780008091E704E090E3042091D6013091D701E5 |
:101790004091D8015091D90180FF18C0FF24002743 |
:1017A0001127CA01B90120E830E040E050E00E9472 |
:1017B000932DC801B7010E942B2D20E032E040E0BC |
:1017C00050E00E94932DC20FD31F17C0FF240027A3 |
:1017D0001127CA01B90120E830E040E050E00E9442 |
:1017E000932DC801B7010E942B2D20E032E040E08C |
:1017F00050E00E94932DC21BD30BD093A901C0933C |
:10180000A8012091A8013091A9018091E4049927B1 |
:101810002817390734F08091E50499278217930738 |
:1018200024F49093A9018093A8018091A80180934A |
:10183000B3008091E6048093020104C083E08093AA |
:10184000B0005F98FF91EF91DF91CF91BF91AF9181 |
:101850009F918F917F916F915F914F913F912F91C8 |
:101860001F910F91FF90EF900F900FBE0F901F9060 |
:1018700018951F920F920FB60F9211242F933F933A |
:101880004F935F936F937F938F939F93AF93BF9388 |
:10189000EF93FF938091AA0181508093AA018F3F1B |
:1018A00001F58AE08093AA01809103018F5F817026 |
:1018B00080930301882319F481E08093A50180912E |
:1018C000A3019091A40101969093A4018093A30198 |
:1018D0008091CF01882329F08091CF01815080939E |
:1018E000CF018091A6019091A701029758F08091B5 |
:1018F000A6019091A70101979093A7018093A6015B |
:101900005A9A01C05A988091C90483FF02C00E946C |
:10191000C029FF91EF91BF91AF919F918F917F91DE |
:101920006F915F914F913F912F910F900FBE0F904C |
:101930001F9018952091A3013091A4012F5F3F4F74 |
:10194000280F391F8091A3019091A401A901481B80 |
:10195000590B57FFF7CF089510927C008FEC8093BE |
:101960007A0008951F920F920FB60F921124EF92F2 |
:10197000FF920F931F932F933F934F935F936F9318 |
:101980007F938F939F93AF93BF93CF93DF93EF9307 |
:10199000FF9310927A008091C1018F5F8093C10103 |
:1019A0008150E82FFF27E830F10508F0CFC2E45B53 |
:1019B000FF4F0C94E52D2091D4013091D5018091F9 |
:1019C000780090917900281B390B8091AF0190919C |
:1019D000B001820F931F9093B0018093AF0180916B |
:1019E000B9018F5F8093B9018091FA019091FB0159 |
:1019F000A091FC01B091FD01442737FD4095542F83 |
:101A0000820F931FA41FB51F8093FA019093FB01CF |
:101A1000A093FC01B093FD018091FE019091FF0124 |
:101A2000A0910002B0910102820F931FA41FB51F65 |
:101A30008093FE019093FF01A0930002B0930102F6 |
:101A400081E08093C2018091BF019091C001019615 |
:101A50009093C0018093BF017DC260917800709126 |
:101A600079008091D2019091D301681B790B80910C |
:101A7000F2019091F301A091F401B091F5019B0165 |
:101A8000442737FD4095542F820F931FA41FB51F85 |
:101A90008093F2019093F301A093F401B093F501C8 |
:101AA0008091F6019091F701A091F801B091F901B0 |
:101AB000820F931FA41FB51F8093F6019093F70127 |
:101AC000A093F801B093F90180917800909179008A |
:101AD0000A9710F464E47DEF80917800909179008A |
:101AE000895E934010F06CEB72E08091AD019091B3 |
:101AF000AE01860F971F9093AE018093AD01809148 |
:101B0000B8018F5F8093B80182E058C0609178007F |
:101B1000709179008091D0019091D101681B790B6F |
:101B20008091EA019091EB01A091EC01B091ED015F |
:101B30009B01442737FD4095542F820F931FA41F0C |
:101B4000B51F8093EA019093EB01A093EC01B09351 |
:101B5000ED018091EE019091EF01A091F001B09123 |
:101B6000F101820F931FA41FB51F8093EE01909384 |
:101B7000EF01A093F001B093F10180917800909172 |
:101B800079000A9710F464E47DEF809178009091D9 |
:101B90007900895E934010F06CEB72E08091AB01AC |
:101BA0009091AC01860F971F9093AC018093AB018D |
:101BB0008091B7018F5F8093B70184E08093C20169 |
:101BC000C9C1409104015091050180917800909124 |
:101BD00079009A01220F331F240F351F63E070E054 |
:101BE0000E944A2D260F371F369527953695279543 |
:101BF000309305012093040186E0E0CF8091080531 |
:101C0000909109052091780030917900821B930B07 |
:101C100090937C0480937B048091B1019091B201F8 |
:101C200020917B0430917C04820F931F9093B2012A |
:101C30008093B1018091BB018F5F8093BB0187E0EE |
:101C4000BDCF809178009091790020910605309168 |
:101C50000705821B930B90938704809386048091E1 |
:101C6000B3019091B4012091860430918704820FD2 |
:101C7000931F9093B4018093B3018091BA018F5F59 |
:101C80008093BA0185E08093C20186E0E4C0609150 |
:101C9000780070917900E0900A05F0900B050091B2 |
:101CA0000C0510910D05882777FD8095982F0E94CF |
:101CB000692CA80197010E94C32B0E944C2C7093A1 |
:101CC000B6016093B5012091B5013091B601E09164 |
:101CD0007B04F0917C04809186049091870497FFA7 |
:101CE00003C0909581959F4F64E070E00E945E2D47 |
:101CF000EB01CF01F7FF03C0909581959F4F64E002 |
:101D000070E00E945E2D260F371F2C0F3D1F309371 |
:101D1000B6012093B5018091B5019091B60102976B |
:101D200004F160910A0570910B0580910C0590916A |
:101D30000D0520E030E048E454E40E94732C882331 |
:101D40000CF03CC060910A0570910B0580910C0568 |
:101D500090910D052AE037ED43EA5CE30E94C42B25 |
:101D600025C08091B5019091B6018F5F9F4F34F5EA |
:101D700060910A0570910B0580910C0590910D05FD |
:101D800020E030E046E154E40E94762C1816B4F4CA |
:101D900060910A0570910B0580910C0590910D05DD |
:101DA0002AE037ED43EA5CE30E94C32B60930A0507 |
:101DB00070930B0580930C0590930D0581E0809343 |
:101DC000BC01809178009091790090937E0480937B |
:101DD0007D0420910202309103024091040250914F |
:101DE00005028091B5019091B601AA2797FDA095B3 |
:101DF000BA2F280F391F4A1F5B1F2093020230930E |
:101E000003024093040250930502E0900202F09016 |
:101E10000302009104021091050260910202709188 |
:101E20000302809104029091050220E034E040E03A |
:101E300050E00E94932DE21AF30A040B150BE09276 |
:101E40000202F0920302009304021093050283E061 |
:101E50008093C20187E08093C1017CC080918B0494 |
:101E600090918C042091780030917900820F931F1B |
:101E700090938C0480938B04809183048F5F809374 |
:101E8000830480918304853008F460C080917800D9 |
:101E90009091790090930B0180930A011092830432 |
:101EA00080917F049091800420918B0430918C0468 |
:101EB000821B930B20911F0230912002821B930BF7 |
:101EC0009093BE018093BD0160918B0470918C044E |
:101ED000E0900601F09007010091080110910901BE |
:101EE000882777FD8095982FA8019701220F331F2F |
:101EF000441F551F2E0D3F1D401F511F620F731FA2 |
:101F0000841F951F24E030E040E050E00E94932DB4 |
:101F10002093060130930701409308015093090173 |
:101F200020917F04309180048091060190910701F7 |
:101F3000A0910801B0910901281B390B30932002B0 |
:101F400020931F0210928C0410928B041092C201F5 |
:101F50001092C1018091C20180937C008FEC80932C |
:101F60007A00FF91EF91DF91CF91BF91AF919F9157 |
:101F70008F917F916F915F914F913F912F911F9121 |
:101F80000F91FF90EF900F900FBE0F901F9018953C |
:101F9000CF93DF93A3E0B0E00E94EB2D802DC82FFC |
:101FA000DD27C531D10508F02A97C7BD84E690E04A |
:101FB0000E949A0C80910A0190910B0182559340E6 |
:101FC000D0F4C0E0D0E017C0C7BD82E390E00E942B |
:101FD0009A0C8BEB91E09F938F931F920E94E708DE |
:101FE00080910A0190910B010F900F900F908458EF |
:101FF000934020F02196CA3FD10530F3A3E0B0E032 |
:102000000C2E0E94F82DC093880488EC90E00E946A |
:102010009A0CDF91CF910895E6E1F1E080E281939F |
:1020200091E0E636F907D9F70895FF920F931F93D1 |
:102030008091C601282F3327C90181709070682FC5 |
:10204000882391F08091C701882311F0815002C04C |
:10205000809166018093C701E6E1F1E080E281931F |
:1020600091E0E636F907D9F7A9014270507021FFD7 |
:102070000DC08091C7018F5F8093C701E6E1F1E059 |
:1020800080E2819391E0E636F907D9F7662321F0E3 |
:10209000452B11F01092C70181E18093C501809119 |
:1020A000C70199279F938F9385E994E09F938F931E |
:1020B00081E08F930E94E7088091C7010F900F90F5 |
:1020C0000F900F900F90E82FFF27ED30F10508F0EB |
:1020D000BCC3EC5AFF4F0C94E52D1092C50183E868 |
:1020E00094E09F938F9311E01F930E94E70884E18F |
:1020F0008093C5018CE390E09F938F931F921F9272 |
:102100008CE794E09F938F931F930E94E70888E2E7 |
:102110008093C5010E94740399279F938F938FE644 |
:1021200094E09F938F931F930E94E7088CE3809322 |
:10213000C5018FE594E09F938F931F930E94E7085A |
:1021400080C38091C90480FF44C01092C501809172 |
:102150001F02909120029F938F9380E594E09F93BC |
:102160008F9311E01F930E94E70884E18093C501DB |
:1021700080912102909122029F938F9381E494E0B9 |
:102180009F938F931F930E94E70888E28093C50175 |
:1021900080910A0190910B019F938F9382E394E0C9 |
:1021A0009F938F931F930E94E7088CE38093C50150 |
:1021B0008091880499279F938F9383E294E09F9363 |
:1021C0008F931F930E94E7088DB79EB744968DBFEB |
:1021D00041C384E18093C5018CE194E09F938F9388 |
:1021E00011E01F930E94E70888E28093C5018EE00A |
:1021F00094E09F938F931F930E94E7088DB79EB73B |
:102200000696E5CF1092C50184E094E09F938F93EA |
:1022100011E01F930E94E70884E18093C50160915B |
:10222000D6017091D7018091D8019091D90120E019 |
:1022300034E040E050E00E94932D5F934F933F9332 |
:102240002F9385EF93E09F938F931F930E94E7084E |
:1022500088E28093C5016091DE017091DF01809179 |
:10226000E0019091E10120E034E040E050E00E9484 |
:10227000932D5F934F933F932F9386EE93E09F931D |
:102280008F931F930E94E7088CE38093C501809190 |
:102290000602909107029F938F9387ED93E09F939F |
:1022A0008F931F930E94E7088DB79EB746968FCFF6 |
:1022B0001092C5018091990490919A0420919704FD |
:1022C000309198049F938F933F932F9387EC93E0E3 |
:1022D0009F938F9311E01F930E94E70884E18093FE |
:1022E000C50180919D0490919E0420919B043091A2 |
:1022F0009C049F938F933F932F9387EB93E09F933F |
:102300008F931F930E94E70888E28093C501809114 |
:10231000A1049091A20420919F043091A0049F9366 |
:102320008F933F932F9387EA93E09F938F931F930D |
:102330000E94E7088CE38093C5018091A3049091EB |
:10234000A4049F938F9387E993E070C01092C50116 |
:10235000E091C204FF27EE0FFF1FEB56FB4F2081D9 |
:102360003181E091C104FF27EE0FFF1FEB56FB4FB9 |
:10237000808191813F932F939F938F9387E893E080 |
:102380009F938F9311E01F930E94E70884E180934D |
:10239000C501E091C404FF27EE0FFF1FEB56FB4F72 |
:1023A00020813181E091C304FF27EE0FFF1FEB5620 |
:1023B000FB4F808191813F932F939F938F9387E76A |
:1023C00093E09F938F931F930E94E70888E2809386 |
:1023D000C501E091C604FF27EE0FFF1FEB56FB4F30 |
:1023E00020813181E091C504FF27EE0FFF1FEB56DE |
:1023F000FB4F808191813F932F939F938F9387E62B |
:1024000093E09F938F931F930E94E7088CE3809340 |
:10241000C501E091C704FF27EE0FFF1FEB56FB4FEE |
:10242000808191819F938F9387E593E09F938F9312 |
:102430001F930E94E7088DB79EB74A96C8CE1092A8 |
:10244000C50189E493E09F938F9311E01F930E944D |
:10245000E70884E18093C5012091D0013091D1013A |
:102460008091AB019091AC016091B7013F932F93A4 |
:1024700077270E945E2D7F936F938AE393E09F936B |
:102480008F931F930E94E70888E28093C5012091F3 |
:10249000D2013091D3018091AD019091AE01609154 |
:1024A000B8013F932F9377270E945E2D7F936F9300 |
:1024B0008BE293E09F938F931F930E94E7088CE336 |
:1024C0008093C5012091D4013091D5018091AF0155 |
:1024D0009091B0016091B9013F932F9377270E94AB |
:1024E0005E2D7F936F938CE193E09F938F931F9367 |
:1024F0005BC01092C5018FE093E09F938F9381E0C2 |
:10250000F82EFF920E94E70884E18093C501209194 |
:102510000605309107058091B3019091B401609157 |
:10252000BA013F932F9377270E945E2D7F936F937D |
:1025300080E093E09F938F93FF920E94E70888E2E8 |
:102540008093C50120910805309109058091B10162 |
:102550009091B2016091BB013F932F9377270E9426 |
:102560005E2D7F936F9381EF92E09F938F93FF9205 |
:102570000E94E7088CE38093C50160910A05709181 |
:102580000B0580910C0590910D0500917D04109133 |
:102590007E040E944C2C7F936F931F930F9382EEC7 |
:1025A00092E09F938F93FF920E94E7088DB79EB7AA |
:1025B00048960DCE84E18093C501809104019091ED |
:1025C00005019F938F9383ED92E09F938F9311E08A |
:1025D0001F930E94E70888E28093C501809117024B |
:1025E00099279F938F9384EC92E09F938F931F93EF |
:1025F0000E94E7088DB79EB70A96E9CD1092C501F3 |
:1026000085EB92E09F938F9311E01F930E94E70860 |
:1026100084E18093C50180910A0290910B029F93FF |
:102620008F9386EA92E09F938F931F930E94E7080F |
:1026300088E28093C50180910602909107029F93E2 |
:102640008F9387E992E09F938F931F930E94E708EF |
:102650008CE38093C50180910802909109029F93B9 |
:102660008F9388E892E0E8C01092C50180910F0234 |
:10267000909110029F938F938CE792E09F938F939A |
:1026800011E01F930E94E70884E18093C5018091C7 |
:102690001102909112029F938F9380E792E09F9393 |
:1026A0008F931F930E94E70888E28093C501809171 |
:1026B0001302909114029F938F9384E692E09F936C |
:1026C0008F931F930E94E7088CE38093C50180914C |
:1026D0001502909116029F938F9388E592E06FCD3B |
:1026E0001092C50180E592E09F938F9311E01F93B4 |
:1026F0000E94E70884E18093C501809189019927B0 |
:102700009F938F9382E492E09F938F931F930E94F5 |
:10271000E70888E28093C5018091A8019091A90102 |
:102720009F938F9384E392E09F938F931F930E94D4 |
:10273000E7088CE38093C5018091E50499279F9376 |
:102740008F938091E40499279F938F9386E292E080 |
:102750009F938F931F930E94E70836CD1092C50177 |
:102760008EE192E09F938F9311E01F930E94E70800 |
:1027700084E18093C50180911905992787FD909583 |
:102780009F938F938FE092E09F938F931F930E946C |
:10279000E70888E28093C50180911A05992787FD93 |
:1027A00090959F938F9380E092E09F938F931F93D8 |
:1027B0000E94E7088CE38093C50180911B0599274F |
:1027C00087FD90959F938F9381EF91E035C0109294 |
:1027D000C50187EE91E09F938F9311E01F930E94B4 |
:1027E000E70884E18093C50180911C0590911D0547 |
:1027F0009F938F9389ED91E09F938F931F930E94F6 |
:10280000E70888E28093C50180911E0590911F051D |
:102810009F938F938BEC91E09F938F931F930E94D4 |
:10282000E7088CE38093C5018091200590912105F4 |
:102830009F938F938DEB91E09F938F931F930E94B3 |
:10284000E7088DB79EB74296C2CC8150809366014F |
:102850001092C7011092C6011F910F91FF90089529 |
:102860001092B9008AE28093B800089585EA8093B7 |
:10287000BC00089584E98093BC0008958093BB0058 |
:1028800085E88093BC00089585EC8093BC00089592 |
:1028900085E88093BC0008951F920F920FB60F92A7 |
:1028A00011248F939F93EF93FF938091C8018F5FC3 |
:1028B0008093C80181508330E9F1843028F481305D |
:1028C00081F0823078F508C08530D9F18530B8F1D3 |
:1028D000863009F04FC03EC08091C901880F8E5AE2 |
:1028E00012C08091C9018F5F8093C90181508130EE |
:1028F00081F0813030F0823079F0833009F041C0CE |
:102900000EC0809160028093BB0085E88093BC007C |
:1029100038C080916102F7CF80916402F4CF80913A |
:102920006502F1CF8091C901843010F41092C80182 |
:1029300085EAECCF8091CA01880F8D5AE4CF85ECEF |
:10294000E5CFE091CA01FF278091BB00E357FB4F21 |
:102950008083DBCF8091CA01E82FFF279091BB00D5 |
:10296000EF56FB4F90838F5F8093CA01843010F045 |
:102970001092CA0184E98093BC001092C8011092A1 |
:10298000C901FF91EF919F918F910F900FBE0F9012 |
:102990001F90189583EC80938100EFE6F0E0808132 |
:1029A000806280831092D5011092D4011092D301DD |
:1029B0001092D2011092D1011092D00108951F926D |
:1029C0000F920FB60F9211240F931F932F933F93E3 |
:1029D0004F935F936F937F938F939F93AF93BF9327 |
:1029E000CF93DF93EF93FF93209186003091870080 |
:1029F0008091CD019091CE01281B390B80918600EA |
:102A0000909187009093CE018093CD01C9018D5D97 |
:102A100095408356994148F481E090E09093CC0131 |
:102A20008093CB011092670154C0C091CB01D0912B |
:102A3000CC01CA30D1050CF04CC0C9018B5F90406D |
:102A4000845B914008F040C0A901425D5140FE0105 |
:102A5000EE0FFF1FEB56FB4F80819181FA01E81BBF |
:102A6000F90BCF01F7FF03C0909581959F4F069713 |
:102A70004CF480911702883C28F480911702865FFD |
:102A800080931702FE01EE0FFF1F8F010B561B4FA5 |
:102A9000D8012D913C91C901880F991F820F931F76 |
:102AA000840F951F64E070E00E945E2DD8018D9127 |
:102AB0009C9111979B01281B390BE555FB4F3183E6 |
:102AC000208311967C936E932196D093CC01C09372 |
:102AD000CB01FF91EF91DF91CF91BF91AF919F918A |
:102AE0008F917F916F915F914F913F912F911F91A6 |
:102AF0000F910F900FBE0F901F901895AF92BF923D |
:102B0000CF92DF92EF92FF920F931F9310927A0071 |
:102B10008091B701882369F08091AB019091AC015D |
:102B20006091B70177270E945E2D7093FE04609339 |
:102B3000FD048091B801882369F08091AD019091E6 |
:102B4000AE016091B80177270E945E2D7093FC045E |
:102B50006093FB048091B901882369F08091AF01F3 |
:102B60009091B0016091B90177270E945E2D70931A |
:102B70001205609311058091BA018823D9F1609103 |
:102B8000B3017091B4012091BA01E0900E05F0906C |
:102B90000F050027F7FC0095102F5701680183E00F |
:102BA000AA0CBB1CCC1CDD1C8A95D1F7AE18BF0843 |
:102BB000C00AD10A882777FD8095982FB4E0660F68 |
:102BC000771F881F991FBA95D1F7332744275527B8 |
:102BD0000E94932DA20EB31EC41ED51EC601B501C0 |
:102BE00028E030E040E050E00E94932D30930F0544 |
:102BF00020930E058091BB018823D9F16091B1012A |
:102C00007091B2012091BB01E0901705F09018057A |
:102C10000027F7FC0095102F57016801A3E0AA0CCC |
:102C2000BB1CCC1CDD1CAA95D1F7AE18BF08C00A8E |
:102C3000D10A882777FD8095982FF4E0660F771FDB |
:102C4000881F991FFA95D1F73327442755270E94EB |
:102C5000932DA20EB31EC41ED51EC601B50128E0D9 |
:102C600030E040E050E00E94932D3093180520930F |
:102C700017058091BC018823A1F16091B501709185 |
:102C8000B6012091BC01E0900005F09001050027FD |
:102C9000F7FC0095102F57016801E3E0AA0CBB1C5C |
:102CA000CC1CDD1CEA95D1F7AE18BF08C00AD10ACA |
:102CB000882777FD8095982F3327442755270E9432 |
:102CC000932DA20EB31EC41ED51EC601B50128E069 |
:102CD00030E040E050E00E94932D309301052093B6 |
:102CE00000051092AC011092AB011092B701109246 |
:102CF000AE011092AD011092B8011092B001109285 |
:102D0000AF011092B9011092B2011092B10110926C |
:102D1000BB011092B4011092B3011092BA0110924B |
:102D2000B6011092B5011092BC018091FA01909108 |
:102D3000FB01A091FC01B091FD018093E60190930D |
:102D4000E701A093E801B093E9018091EA01909135 |
:102D5000EB01A091EC01B091ED018093D60190932D |
:102D6000D701A093D801B093D9018091F20190913D |
:102D7000F301A091F401B091F5018093DE019093ED |
:102D8000DF01A093E001B093E1018091EE01909109 |
:102D9000EF01A091F001B091F1018093DA019093DD |
:102DA000DB01A093DC01B093DD018091F6019091ED |
:102DB000F701A091F801B091F9018093E20190939D |
:102DC000E301A093E401B093E5018FEC80937A00D6 |
:102DD00020910F02309110028091C504E82FFF2747 |
:102DE000EE0FFF1FEB56FB4F8081918182599F4F61 |
:102DF000281739071CF42F5F3F4F0CC08081918149 |
:102E000082599F4F821793074CF42115310531F0F9 |
:102E1000215030403093100220930F022091110274 |
:102E2000309112028091C604E82FFF27EE0FFF1F9A |
:102E3000EB56FB4F8081918182599F4F28173907AC |
:102E40001CF42F5F3F4F0CC08081918182599F4FAE |
:102E5000821793074CF42115310531F02150304091 |
:102E60003093120220931102209113023091140228 |
:102E70008091C704E82FFF27EE0FFF1FEB56FB4F93 |
:102E80008081918182599F4F281739071CF42F5F49 |
:102E90003F4F0CC08081918182599F4F82179307C9 |
:102EA0004CF42115310531F021503040309314029B |
:102EB0002093130220911502309116028091C804CC |
:102EC000E82FFF27EE0FFF1FEB56FB4F808191810C |
:102ED00082599F4F281739071CF42F5F3F4F0CC0B2 |
:102EE0008081918182599F4F821793074CF421155D |
:102EF000310531F0215030403093160220931502F5 |
:102F000080910F029091100297FF05C0109210025D |
:102F100010920F020AC08F3F910539F034F08FEF05 |
:102F200090E09093100280930F0280911102909193 |
:102F3000120297FF05C010921202109211020AC0ED |
:102F40008F3F910539F034F08FEF90E090931202AB |
:102F500080931102809113029091140297FF05C093 |
:102F600010921402109213020AC08F3F910539F09B |
:102F700034F08FEF90E090931402809313028091CD |
:102F800015029091160297FF05C01092160210923A |
:102F900015020AC08F3F910539F034F08FEF90E0B1 |
:102FA00090931602809315021F910F91FF90EF905E |
:102FB000DF90CF90BF90AF90089510927A008091EB |
:102FC000B701882369F08091AB019091AC016091C9 |
:102FD000B70177270E945E2D7093FE046093FD0475 |
:102FE0008091B801882369F08091AD019091AE0184 |
:102FF0006091B80177270E945E2D7093FC04609366 |
:10300000FB048091B901882369F08091AF01909110 |
:10301000B0016091B90177270E945E2D709312056F |
:10302000609311058091BA018823D1F06091B301BA |
:103030007091B4012091BA01882777FD8095982F6F |
:10304000F4E0660F771F881F991FFA95D1F7332791 |
:10305000442755270E94932D30930F0520930E058A |
:103060008091BB018823D1F06091B1017091B201D0 |
:103070002091BB01882777FD8095982FE4E0660FAB |
:10308000771F881F991FEA95D1F7332744275527C3 |
:103090000E94932D30931805209317058091BC0151 |
:1030A000882369F08091B5019091B6016091BC01CF |
:1030B00077270E945E2D70930105609300051092A2 |
:1030C000AC011092AB011092B7011092AE011092B8 |
:1030D000AD011092B8011092B0011092AF011092A0 |
:1030E000B9011092B2011092B1011092BB0110927D |
:1030F000B4011092B3011092BA011092B60110926D |
:10310000B5011092BC018FEC80937A0020910F02E0 |
:10311000309110028091C504E82FFF27EE0FFF1FAA |
:10312000EB56FB4F8081918182599F4F28173907B9 |
:103130001CF42F5F3F4F0CC08081918182599F4FBB |
:10314000821793074CF42115310531F0215030409E |
:103150003093100220930F0220911102309112023D |
:103160008091C604E82FFF27EE0FFF1FEB56FB4FA1 |
:103170008081918182599F4F281739071CF42F5F56 |
:103180003F4F0CC08081918182599F4F82179307D6 |
:103190004CF42115310531F02150304030931202AA |
:1031A0002093110220911302309114028091C704E0 |
:1031B000E82FFF27EE0FFF1FEB56FB4F8081918119 |
:1031C00082599F4F281739071CF42F5F3F4F0CC0BF |
:1031D0008081918182599F4F821793074CF421156A |
:1031E000310531F021503040309314022093130206 |
:1031F00020911502309116028091C804E82FFF2714 |
:10320000EE0FFF1FEB56FB4F8081918182599F4F3C |
:10321000281739071CF42F5F3F4F0CC08081918124 |
:1032200082599F4F821793074CF42115310531F0D5 |
:1032300021503040309316022093150280910F02E6 |
:103240009091100297FF05C01092100210920F0289 |
:103250000AC08F3F910539F034F08FEF90E09093E2 |
:10326000100280930F02809111029091120297FF39 |
:1032700005C010921202109211020AC08F3F9105F0 |
:1032800039F034F08FEF90E09093120280931102A6 |
:10329000809113029091140297FF05C010921402BE |
:1032A000109213020AC08F3F910539F034F08FEF6E |
:1032B00090E09093140280931302809115029091F4 |
:1032C000160297FF05C0109216021092150208957B |
:1032D0008F3F910539F034F08FEF90E09093160214 |
:1032E0008093150208951F938091CC048B3F98F032 |
:1032F0008B3F19F480910F020EC08C3F19F480911E |
:10330000110209C08D3F19F48091130204C08E3F51 |
:1033100021F480911502809381018091810188239D |
:1033200019F41092810104C08F3F11F48093810140 |
:103330008091CB048B3F98F08B3F19F480910F0262 |
:103340000EC08C3F19F48091110209C08D3F19F411 |
:103350008091130204C08E3F21F480911502809366 |
:10336000800180918001882319F41092800105C0AA |
:10337000843618F084E6809380018091CD048B3FE1 |
:1033800098F08B3F19F480910F020EC08C3F19F416 |
:103390008091110209C08D3F19F48091130204C07D |
:1033A0008E3F21F4809115028093820180918201E9 |
:1033B000882319F41092820105C0843618F084E63F |
:1033C000809382018091CF048B3F98F08B3F19F45A |
:1033D00080910F020EC08C3F19F48091110209C038 |
:1033E0008D3F19F48091130204C08E3F21F4809127 |
:1033F00015028093830180918301882319F4109230 |
:10340000830104C08F3F11F4809383018091D6041F |
:103410008B3F98F08B3F19F480910F020EC08C3FC8 |
:1034200019F48091110209C08D3F19F480911302A3 |
:1034300004C08E3F21F48091150280938401809115 |
:103440008401882319F41092840104C08F3F11F481 |
:10345000809384018091D7048B3F98F08B3F19F4BF |
:1034600080910F020EC08C3F19F48091110209C0A7 |
:103470008D3F19F48091130204C08E3F21F4809196 |
:10348000150280938501809185018B3010F48AE0CC |
:1034900002C08F3F11F4809385018091D8048B3F47 |
:1034A00098F08B3F19F480910F020EC08C3F19F4F5 |
:1034B0008091110209C08D3F19F48091130204C05C |
:1034C0008E3F21F4809115028093860180918601C0 |
:1034D000882319F41092860104C08F3F11F4809361 |
:1034E00086018091DD048B3F98F08B3F19F4809129 |
:1034F0000F020EC08C3F19F48091110209C08D3F5C |
:1035000019F48091130204C08E3F21F480911502BA |
:103510008093880180918801882319F41092880192 |
:1035200004C08F3F11F4809388018091DE048B3FAB |
:1035300098F08B3F19F480910F020EC08C3F19F464 |
:103540008091110209C08D3F19F48091130204C0CB |
:103550008E3F21F4809115028093230280912302F3 |
:10356000882319F41092230204C08F3F11F4809332 |
:1035700023028091DF048B3F98F08B3F19F48091F8 |
:103580000F020EC08C3F19F48091110209C08D3FCB |
:1035900019F48091130204C08E3F21F4809115022A |
:1035A0008093240280912402882319F4109224022B |
:1035B00004C08F3F11F4809324028091E0048B3F7C |
:1035C00098F08B3F19F480910F020EC08C3F19F4D4 |
:1035D0008091110209C08D3F19F48091130204C03B |
:1035E0008E3F21F48091150280932502809125025F |
:1035F000882319F41092250204C08F3F11F48093A0 |
:1036000025028091E1048B3F98F08B3F19F4809163 |
:103610000F020EC08C3F19F48091110209C08D3F3A |
:1036200019F48091130204C08E3F21F48091150299 |
:103630008093260280912602882319F41092260294 |
:1036400004C08F3F11F4809326029091E2049B3FC7 |
:10365000B0F09B3F19F480910F0204C09C3F29F405 |
:1036600080911102809389010CC09D3F19F48091D3 |
:103670001302F8CF9E3F29F480911502F3CF909367 |
:10368000890180918901882319F41092890104C06D |
:103690008F3F11F4809389019B3FB0F09B3F19F459 |
:1036A00080910F0204C09C3F29F480911102809305 |
:1036B00089010CC09D3F19F480911302F8CF9E3F01 |
:1036C00029F480911502F3CF9093890180918901AB |
:1036D000882319F41092890104C08F3F11F480935C |
:1036E00089019B3FB0F09B3F19F480910F0204C009 |
:1036F0009C3F29F480911102809389010CC09D3F69 |
:1037000019F480911302F8CF9E3F29F4809115029D |
:10371000F3CF9093890180918901882319F4109245 |
:10372000890104C08F3F11F48093890110918801B1 |
:10373000612F772767FD7095872F972F0E94692C3F |
:1037400017FF06C020E030E040E853E40E94C42B9D |
:1037500027E137EB41ED58E30E94E32C60937C01B5 |
:1037600070937D0180937E0190937F018091D404BA |
:10377000809310058091D3048093FF041F910895D6 |
:1037800081E08093C10442E04093C20483E08093CF |
:10379000C30494E09093C40435E03093C50486E0FC |
:1037A0008093C60487E08093C7041092C9048EE119 |
:1037B0008093CA048BEF8093CC048AE08093CD047D |
:1037C00022E32093CB042093CF044093CE04909324 |
:1037D000D0041092D10490E19093D2048FE08093B2 |
:1037E000D3048AEF8093D4048AE18093D504909324 |
:1037F000D6048FEA8093D7048093D8048AE5809317 |
:10380000D90483E28093DA0484E18093DB0410928C |
:10381000DC043093DD0482EB8093DE041092DF043D |
:103820001092E0041092E10484E68093E20488E2BE |
:103830008093E3041092E7042093E40486E98093E4 |
:10384000E5043093E604AFEEB4E0E8E6F1E08CE0A6 |
:1038500001900D928150E1F7089581E08093C104B9 |
:1038600052E05093C20483E08093C30444E0409349 |
:10387000C40435E03093C50486E08093C60487E035 |
:103880008093C70428E02093C8041092C9049EE1E5 |
:103890009093CA048BEF8093CC048AE08093CD048C |
:1038A00086E48093CB049093CF045093CE0440934E |
:1038B000D0042093D10490E19093D2048FE08093C0 |
:1038C000D3048AEF8093D4048AE18093D504909343 |
:1038D000D60488E78093D70496E99093D8048AE5C4 |
:1038E0008093D90483E28093DA0484E18093DB043B |
:1038F0001092DC043093DD0482EB8093DE0410929E |
:10390000DF041092E0041092E10484E68093E20464 |
:1039100088E28093E3041092E70482E38093E40456 |
:103920009093E5043093E604AFEEB4E0E0E7F1E015 |
:103930008CE001900D928150E1F7089580911E0274 |
:10394000882301F5109261021092600210926402C5 |
:103950001092650280919601882311F08093600295 |
:1039600080919701882311F08093610280919801E2 |
:10397000882311F08093650280919901882311F0CA |
:1039800080936402809160029927909373048093DE |
:103990007204809161029927909375048093740456 |
:1039A00080916502992790937704809376048091A3 |
:1039B0006402992790937904809378041092C80147 |
:1039C0001092C9010E9436140895CF93DF9310928C |
:1039D000070510920605109209051092080580E06F |
:1039E00090E0A0E0B0E080930A0590930B05A093CF |
:1039F0000C05B0930D051092D1011092D0011092D8 |
:103A0000D3011092D2011092D5011092D4010E94DC |
:103A1000DD1785E090E00E94810BEC01CE010E9451 |
:103A20008A0B8823D9F30E94DD178091C90480FF97 |
:103A300010C080910A0190910B01875B934038F48C |
:103A400080910A0190910B018E5E924010F40E94C9 |
:103A5000C80F8091FD049091FE0497FF03C09095DC |
:103A600081959F4F9093D1018093D0018091FB0469 |
:103A70009091FC0497FF03C0909581959F4F909380 |
:103A8000D3018093D201809111059091120597FF87 |
:103A900003C0909581959F4F9093D5018093D40159 |
:103AA00088E0E6E0F5E0ACE2B1E0182E0E94F32DEC |
:103AB0001092EA011092EB011092EC011092ED01CC |
:103AC0001092EE011092EF011092F0011092F101AC |
:103AD0001092F2011092F3011092F4011092F5018C |
:103AE0001092F6011092F7011092F8011092F9016C |
:103AF0001092FA011092FB011092FC011092FD014C |
:103B00001092FE041092FD041092FC041092FB042B |
:103B100010921205109211058091060190910701F3 |
:103B2000A0910801B09109019093800480937F04D3 |
:103B30001092BE011092BD01109202021092030277 |
:103B400010920402109205028091060290910702E1 |
:103B500090930902809308020E944E2882E390E02D |
:103B60009093A7018093A601DF91CF910895CF9301 |
:103B7000DF93109207051092060510920905109226 |
:103B8000080580E090E0A0E0B0E080930A05909303 |
:103B90000B05A0930C05B0930D050E94DD1785E081 |
:103BA00090E00E94810BEC01CE010E948A0B8823D9 |
:103BB000D9F30E94DD1780910E0590910F0597FFB4 |
:103BC00003C0909581959F4F60E170E00E945E2D4B |
:103BD000C6E0D5E070930705609306058091170550 |
:103BE0009091180597FF03C0909581959F4F60E1D4 |
:103BF00070E00E945E2D7093090560930805609146 |
:103C00007D0470917E04882777FD8095982F0E940F |
:103C1000692C60930A0570930B0580930C059093B3 |
:103C20000D0588E0ACE2B1E0FE01182E0E94042EE2 |
:103C3000DF91CF9108951F93182F0EC080911E021F |
:103C4000882361F484E690E09093A7018093A60115 |
:103C50008AEF90E00E949A0C115080F71F9108950E |
:103C6000A6E0B0E0E6E3FEE10C94AE2D0E947E15E6 |
:103C7000299AE091C304FF27EE0FFF1FEB56FB4F7D |
:103C80004080518048E750E0440E551E57FE02C068 |
:103C90004424552480911702843608F048C080914E |
:103CA0000101882331F484EF91E09093A701809380 |
:103CB000A60180912F0290913002009731F0019778 |
:103CC0009093300280932F0204C010921E02109233 |
:103CD0000D02289A80912A0290912B02815D9740D3 |
:103CE00018F18091DA04482E552481E080930D026A |
:103CF000E091C104FF27EE0FFF1FEB56FB4F11822F |
:103D00001082E091C204FF27EE0FFF1FEB56FB4F1E |
:103D100011821082E091C404FF27EE0FFF1FEB56C3 |
:103D2000FB4F11821082CBC110921E02C8C180913C |
:103D300017028D3808F4C3C110920D028091DB0484 |
:103D400022E3829FC00111249093300280932F02BE |
:103D500069E2461651046CF080912A0290912B0280 |
:103D60007FEF8F3F970781F1019690932B0280930D |
:103D70002A0280912A0290912B02883C910520F022 |
:103D800088E24816510404F510924502109246024A |
:103D90001092470210924802109241021092420281 |
:103DA00010924302109244021092FA011092FB0109 |
:103DB0001092FC011092FD011092FE011092FF0181 |
:103DC000109200021092010299EC491651040CF471 |
:103DD000D6C080911E02882309F071C1E091C4040D |
:103DE000FF27EE0FFF1FEB56FB4F808191818C3434 |
:103DF00091050CF4C1C080912E028F5F80932E023A |
:103E0000893C08F45CC129980E94E51C10921E02AE |
:103E100010922E0210922B0210922A028091C1045D |
:103E2000282F3327F901EE0FFF1FEB56FB4F808140 |
:103E30009181873491059CF4E091C204FF27EE0F35 |
:103E4000FF1FEB56FB4F0190F081E02DF7FF03C001 |
:103E5000F095E195FF4FE734F1050CF46CC08091CB |
:103E6000C204682F7727DB01AA0FBB1FAB56BB4FDD |
:103E70008D919C911197873491053CF0F901EE0FDB |
:103E8000FF1FEB56FB4F808191818D919C91873470 |
:103E9000910564F0F901EE0FFF1FEB56FB4F808197 |
:103EA00091818734910514F042E001C041E0FB01AB |
:103EB000EE0FFF1FEB56FB4F8081918186349105F9 |
:103EC0005CF4F901EE0FFF1FEB56FB4F80819181EF |
:103ED000873491050CF043E0FB01EE0FFF1FEB561A |
:103EE000FB4F808191818A5B9F4F5CF4F901EE0F5B |
:103EF000FF1FEB56FB4F80819181873491050CF0B9 |
:103F000044E0660F771F6B567B4FFB0180819181E8 |
:103F10008A5B9F4F5CF4220F331F2B563B4FD90116 |
:103F20008D919C91863491050CF445E0A2E0B0E0BF |
:103F3000042E0E94F82D0E9474034AE361EC74E0A1 |
:103F40000E9495030E9474030E941B1E8091C90465 |
:103F500080FFB5C080910A0190910B01875B93406F |
:103F600040F480910A0190910B018E5E924008F01E |
:103F7000A6C00E94C80FA3C010922E02A0C0F3E2F8 |
:103F80004F1651040CF09BC08091C404482F552754 |
:103F9000FA01EE0FFF1FEB56FB4F80819181855B8D |
:103FA0009F4F0CF06DC080912D028F5F80932D028A |
:103FB000893C08F467C088EC80932D0281E090E092 |
:103FC00090932B0280932A0281E080931E0210922C |
:103FD0003D0210923E0210923F0210924002109257 |
:103FE000FA011092FB011092FC011092FD01109257 |
:103FF000FE011092FF011092000210920102109235 |
:10400000EA011092EB011092EC011092ED01109276 |
:10401000F2011092F3011092F4011092F5018091D7 |
:10402000D6019091D701A091D801B091D901809388 |
:10403000EE019093EF01A093F001B093F101809114 |
:10404000DE019091DF01A091E001B091E101809348 |
:10405000F6019093F701A093F801B093F901109243 |
:1040600045021092460210924702109248021092A6 |
:10407000410210924202109243021092440202C086 |
:1040800010922D02440F551F4B565B4FDA018D9154 |
:104090009C918C3491058CF080912C028F5F8093E1 |
:1040A0002C02893C60F010921E0288EC80932C0256 |
:1040B00010922B0210922A0202C010922C028091C0 |
:1040C0006701815080936701809167018F3F29F0DC |
:1040D00080910D02882309F412C10E947319E091A6 |
:1040E000C104FF27EE0FFF1FDF01AB56BB4F8D91C1 |
:1040F0009C916091D0047727E555FB4F2081318159 |
:104100004091D1045527FC01E69FC001E79F900D27 |
:10411000F69F900D1124D901A49F9001A59F300D09 |
:10412000B49F300D1124820F931F90931902809336 |
:104130001802E091C204FF27EE0FFF1FDF01AB560C |
:10414000BB4F8D919C91E555FB4F20813181FC0146 |
:10415000E69FC001E79F900DF69F900D1124B901D5 |
:10416000649F9001659F300D749F300D1124820F64 |
:10417000931F90931B0280931A02E091C404FF27BF |
:10418000EE0FFF1FEB56FB4F80819181909581953B |
:104190009F4F90931D0280931C0210918501612F07 |
:1041A000772767FD7095872F972F0E94692C17FF3F |
:1041B00006C020E030E040E853E40E94C42B20E039 |
:1041C00030E040E251E40E94C42B20E030E040E8BF |
:1041D0005BE30E94E32C5B016C0160931305709319 |
:1041E0001405809315059093160510918601612F93 |
:1041F000772767FD7095872F972F0E94692C17FFEF |
:1042000006C020E030E040E853E40E94C42B20E0E8 |
:1042100030EE4BE257E40E94062C60930205709347 |
:10422000030580930405909305058091C90482FFDE |
:104230000CC080E090E0A0E0B0E080930205909395 |
:104240000305A0930405B093050520E030E040E0AD |
:1042500050E0C601B5010E94732C882364F480E00D |
:1042600090E0A0E0B0E08093130590931405A09334 |
:104270001505B093160520E030E040E050E0609175 |
:1042800002057091030580910405909105050E9437 |
:10429000732C882364F480E090E0A0E0B0E0809389 |
:1042A000020590930305A0930405B0930505809142 |
:1042B0000D02882321F110921D0210921C0210920F |
:1042C00019021092180210921B0210921A028DEC21 |
:1042D0009CECACECBDE38093130590931405A09384 |
:1042E0001505B09316058AE097EDA3EABBE380932A |
:1042F000020590930305A0930405B09305058091F2 |
:10430000BF019091C0018D54914008F477C0A090F6 |
:10431000D601B090D701C090D801D090D90180913A |
:10432000DA019091DB018A199B0990933402809302 |
:1043300033024091DE015091DF016091E001709104 |
:10434000E1012091E2013091E301241B350B309310 |
:104350003202209331021092C0011092BF01873ABD |
:10436000910534F08091D0019091D101019608C05F |
:104370008A559F4F4CF48091D0019091D1010197C3 |
:104380009093D1018093D001273A310534F0809188 |
:10439000D2019091D301019608C02A553F4F4CF4A9 |
:1043A0008091D2019091D30101979093D301809392 |
:1043B000D20110927A00A092EE01B092EF01C09269 |
:1043C000F001D092F1014093F6015093F701609310 |
:1043D000F8017093F9018091E6019091E701A091B5 |
:1043E000E801B091E9018093FE019093FF01A09351 |
:1043F0000002B09301028FEC80937A00E090D50424 |
:10440000FF24002711276091D6017091D701809178 |
:10441000D8019091D901A80197010E94932D809114 |
:104420000E0590910F05AA2797FDA095BA2F281B7E |
:10443000390B4A0B5B0BCA01B90120E130E040E0C7 |
:1044400050E00E94932D59016A0120933902309364 |
:104450003A0240933B0250933C026091DE0170911E |
:10446000DF018091E0019091E101A80197010E9494 |
:10447000932D8091170590911805AA2797FDA09577 |
:10448000BA2F281B390B4A0B5B0BCA01B90120E17B |
:1044900030E040E050E00E94932D209335023093AD |
:1044A00036024093370250933802E5EFAE16E1E052 |
:1044B000BE06E0E0CE06E0E0DE062CF084EF91E000 |
:1044C000A0E0B0E00DC0FCE0AF16FEEFBF06FFEFCE |
:1044D000CF06FFEFDF0664F48CE09EEFAFEFBFEF97 |
:1044E0008093390290933A02A0933B02B0933C022E |
:1044F000253F61E0360760E0460760E056072CF094 |
:1045000084EF91E0A0E0B0E009C02C503E4F4F4F47 |
:104510005F4F64F48CE09EEFAFEFBFEF8093350206 |
:1045200090933602A0933702B093380210927A002B |
:104530008091EA019091EB01A091EC01B091ED0125 |
:104540002091390230913A0240913B0250913C0255 |
:10455000821B930BA40BB50B8093EA019093EB01A4 |
:10456000A093EC01B093ED018091F2019091F301E1 |
:10457000A091F401B091F5012091350230913602FD |
:104580004091370250913802821B930BA40BB50B5C |
:104590008093F2019093F301A093F401B093F5019D |
:1045A00080901C0290901D02540197FE04C0AA2422 |
:1045B000BB24A818B90885E1A816B1043CF0809185 |
:1045C000C90484FD03C081E080938A01E090D20495 |
:1045D000CC24B7FCC094DC2CB401882777FD8095EF |
:1045E000982F2E2D3327442755270E942B2D9B01D2 |
:1045F000AC01C601B5010E942B2D20E032E040E065 |
:1046000050E00E94932D89019A01FF24E89CC0018B |
:10461000E99C900DF89C900D112464E070E00E94DC |
:104620005E2D600F711F882777FD8095982F60930E |
:104630003D0270933E0280933F029093400220918E |
:10464000FA013091FB014091FC015091FD01261BC4 |
:10465000370B480B590B2093FA013093FB01409321 |
:10466000FC015093FD018091FA019091FB01A09112 |
:10467000FC01B091FD018155934CA040B04064F025 |
:1046800080E593ECA0E0B0E08093FA019093FB0109 |
:10469000A093FC01B093FD018091FA019091FB0180 |
:1046A000A091FC01B091FD01805B9C43AF4FBF4FD7 |
:1046B00064F480EB9CE3AFEFBFEF8093FA0190933B |
:1046C000FB01A093FC01B093FD018FEC80937A0075 |
:1046D0008091C90483FFA0C080910C028150809317 |
:1046E0000C028F3FD9F40E94C62890930702809352 |
:1046F00006022091080230910902821B930B845E0E |
:104700009D4F68E671E00E945E2D845B904090931F |
:104710000B0280930A0282E380930C026091D6011F |
:104720007091D7018091D8019091D90120E032E0B9 |
:1047300040E050E00E94932D890137FF03C010959F |
:1047400001951F4F6091DE017091DF018091E001C2 |
:104750009091E10120E032E040E050E00E94932D92 |
:10476000B90137FF03C0709561957F4F60177107DE |
:104770000CF4B8016332710574F480918A018823C6 |
:1047800051F0809106029091070290930902809364 |
:10479000080210928A01209184013327629FC00190 |
:1047A000639F900D729F900D112460E470E00E9451 |
:1047B0005E2DA901461B570B141615066CF51092B9 |
:1047C0007A000091FA011091FB012091FC013091D7 |
:1047D000FD0180910A0290910B02BC01469FC0012D |
:1047E000479F900D569F900D112460E270E00E944B |
:1047F0005E2D882777FD8095982F060F171F281F9D |
:10480000391F0093FA011093FB012093FC013093B0 |
:10481000FD018FEC80937A00809159048F5F809323 |
:104820005904809127028150809327028F3F09F01D |
:104830007EC081E380932702E090D504FF24002707 |
:1048400011276091D6017091D7018091D801909184 |
:10485000D901A80197010E94932D30935B04209306 |
:104860005A046091DE017091DF018091E001909126 |
:10487000E101A80197010E94932D30935D042093DC |
:104880005C0480910E0590910F0590935F048093D6 |
:104890005E048091170590911805909361048093B0 |
:1048A00060048091110590911205909363048093A8 |
:1048B000620480911F02909120029093650480937E |
:1048C000640460910202709103028091040290914D |
:1048D000050220E032E040E050E00E94932D30934A |
:1048E00067042093660450926904409268048091A2 |
:1048F00006029091070290936B0480936A04809162 |
:1049000026059091270590936D0480936C04809107 |
:1049100028059091290590936F0480936E048091EF |
:104920002A0590912B0590937104809370046090F8 |
:104930000205709003058090040590900505A090F5 |
:104940001305B0901405C0901505D0901605609120 |
:10495000D6017091D7018091D8019091D9010E9420 |
:10496000692CA40193010E94E32C7B018C016091CE |
:10497000FD047091FE04882777FD8095982F0E9492 |
:10498000692CA60195010E94E32C9B01AC01C80192 |
:10499000B7010E94C42B0E944C2C1B017093FE0493 |
:1049A0006093FD046091DE017091DF018091E00170 |
:1049B0009091E1010E94692CA40193010E94E32CD3 |
:1049C0007B018C016091FB047091FC04882777FDCA |
:1049D0008095982F0E94692CA60195010E94E32CD6 |
:1049E0009B01AC01C801B7010E94C42B0E944C2C52 |
:1049F0007E836D837093FC046093FB0460911105CA |
:104A000070911205882777FD8095982F0E94692C58 |
:104A10007B018C0120E030E040E05FE3C601B5019E |
:104A20000E94E32C9B01AC01C801B7010E94E32C5A |
:104A30007B018C016091E6017091E7018091E801B2 |
:104A40009091E9010E94692CA40193010E94E32C3A |
:104A50009B01AC01C801B7010E94C42B0E944C2CE1 |
:104A60009B01709312056093110571E0271678E0A1 |
:104A700037061CF080E098E007C080E0281688EF39 |
:104A8000380634F480E098EF9093FE048093FD04A0 |
:104A9000AD81BE81A150B8401CF080E098E007C015 |
:104AA0004D815E814050584F34F480E098EF9093F0 |
:104AB000FC048093FB0478E0213037071CF080E091 |
:104AC00098E005C02050384F34F480E098EF909380 |
:104AD0001205809311058091C904992780FFBEC0FB |
:104AE0002091810181FF0EC02233B0F480911F021A |
:104AF0009091200244979093220280932102109279 |
:104B00000E020DC08091CE04289FC001112444974D |
:104B1000909322028093210281E080930E02809183 |
:104B20000D02882321F0109222021092210220917E |
:104B30001F0230912002409121025091220242171F |
:104B400053070CF08BC080910E02882309F486C0B5 |
:104B5000241B350B809182019927DC012A9FC0011B |
:104B60002B9F900D3A9F900D112460E170E00E9400 |
:104B70005E2D8201061B170B2091BD013091BE01F5 |
:104B8000809180019927FC012E9FC0012F9F900DDD |
:104B90003E9F900D112468E070E00E945E2D061B80 |
:104BA000170B6091020270910302809104029091B0 |
:104BB000050220E032E040E050E00E94932DCA015F |
:104BC000B901209183013327442755270E942B2DBB |
:104BD00020E230E040E050E00E94932DFFEF2E3CB9 |
:104BE0003F0714F42EEC3FEF8091280290912902A8 |
:104BF000AC0164E0440F551F6A95E1F7481B590B5F |
:104C00002333310514F022E330E0021B130BCA01F9 |
:104C1000800F911F60E170E00E945E2D7093290269 |
:104C2000609328028091CA049927681779073CF499 |
:104C3000481659065CF090932902809328028091CF |
:104C40002802909129024816590624F4509229020C |
:104C5000409228024090280250902902C0901105ED |
:104C6000D090120580913D0290913E02C81AD90A57 |
:104C700025E6C216D10424F014E6C12ED12C09C0B9 |
:104C80004CE9C4164FEFD40624F4BCE9CB2EBFEF99 |
:104C9000DB2E609178017091790180917A01909179 |
:104CA0007B0169837A838B839C83209118023091E6 |
:104CB00019028091490290914A02281B390B609198 |
:104CC000FD047091FE04621B730B882777FD8095AD |
:104CD000982F0E94692C9B01AC0169817A818B819C |
:104CE0009C810E94E32C0E944C2CFB017093630278 |
:104CF000609362028B01222717FD2095322F80914D |
:104D0000450290914602A0914702B0914802080FD7 |
:104D1000191F2A1F3B1F0093450210934602209340 |
:104D20004702309348021016110612061306ACF41F |
:104D3000C80117FF03C0909581959F4F60E071E017 |
:104D40000E945E2D6F5F7F4F882777FD8095982F9B |
:104D5000061B170B280B390B14C0C80117FF03C023 |
:104D6000909581959F4F60E071E00E945E2D6F5F8E |
:104D70007F4F882777FD8095982F060F171F281FD4 |
:104D8000391F009345021093460220934702309347 |
:104D900048028091450290914602A0914702B0914D |
:104DA000480281387EE3970770E0A70770E0B707F5 |
:104DB0002CF080E89EE3A0E0B0E009C08058914C60 |
:104DC000AF4FBF4F64F480E891ECAFEFBFEF80933B |
:104DD000450290934602A0934702B0934802809008 |
:104DE0007C0190907D01A0907E01B0907F01BF0179 |
:104DF000882777FD8095982F0E94692C7B018C0174 |
:104E0000609145027091460280914702909148025C |
:104E10000E94692C9B01AC01C501B4010E94E32CE6 |
:104E20009B01AC01C801B7010E94C42B0E944C2C0D |
:104E30009601260F371F240D351D66244AE04416BF |
:104E4000510414F4A1E06A2E37FD02C0662019F067 |
:104E500040E050E008C080911005482F55272417E6 |
:104E600035070CF4A9018091FF04282E3324910109 |
:104E7000241635060CF49A0120936002C201861BA9 |
:104E8000970BBC016C0D7D1D77FD02C0662019F0EB |
:104E900080E090E007C08091100599276817790796 |
:104EA0000CF4CB019101281639060CF49C012093D7 |
:104EB000610220911A0230911B0280914B02909165 |
:104EC0004C02281B390B6091FB047091FC04621B9F |
:104ED000730B882777FD8095982F0E94692C9B0182 |
:104EE000AC0169817A818B819C810E94E32C0E94B4 |
:104EF0004C2CFB0170935F0260935E028B012227B2 |
:104F000017FD2095322F8091410290914202A0918D |
:104F10004302B0914402080F191F2A1F3B1F009340 |
:104F20004102109342022093430230934402101630 |
:104F3000110612061306ACF4C80117FF03C09095C2 |
:104F400081959F4F60E071E00E945E2D6F5F7F4F03 |
:104F5000882777FD8095982F061B170B280B390B98 |
:104F600014C0C80117FF03C0909581959F4F60E062 |
:104F700071E00E945E2D6F5F7F4F882777FD8095DF |
:104F8000982F060F171F281F391F009341021093F7 |
:104F90004202209343023093440280914102909157 |
:104FA0004202A0914302B091440281382EE392075D |
:104FB00020E0A20720E0B2072CF080E89EE3A0E00A |
:104FC000B0E009C08058914CAF4FBF4F64F480E807 |
:104FD00091ECAFEFBFEF8093410290934202A09318 |
:104FE0004302B0934402BF01882777FD8095982F34 |
:104FF0000E94692C7B018C016091410270914202F8 |
:1050000080914302909144020E94692C9B01AC0163 |
:10501000C501B4010E94E32C9B01AC01C801B7019A |
:105020000E94C42B0E944C2C9201260F371F2C1972 |
:105030003D0937FD02C0662019F040E050E008C08D |
:1050400080911005482F5527241735070CF4A90126 |
:105050009101241635060CF49A0120936502461A34 |
:10506000570AB2016C197D0977FD02C0662019F05C |
:1050700020E030E008C080911005282F3327621708 |
:1050800073070CF49B01C101221633060CF4C9010D |
:1050900080936402E2E1CA5F0C94CA2D80914D02B4 |
:1050A00090914E02A0914F02B09150028093550210 |
:1050B00090935602A0935702B093580280915102E8 |
:1050C00090915202A0915302B091540280935902E0 |
:1050D00090935A02A0935B02B0935C0208951092E1 |
:1050E0004A021092490210924C0210924B0208950B |
:1050F0001F920F920FB60F9211242F933F934F934D |
:105100008F939F9380912205833019F08430A1F50D |
:1051100008C08EB580935D021EBC84E0809322059A |
:105120002BC080915D029927382F22278EB59927B1 |
:10513000282B392BC9018D509E4F875E9340D0F4A8 |
:1051400080912505853019F0863069F406C03093CA |
:1051500027052093260586E00BC030932905209370 |
:10516000280587E005C030932B0520932A0585E0AC |
:1051700080932505109222059F918F914F913F9129 |
:105180002F910F900FBE0F901F901895AAE0B0E0DE |
:10519000ECECF8E20C94AE2DA090DE04BB2433E0DE |
:1051A000AA0CBB1C3A95E1F7CC24DD246091D60112 |
:1051B0007091D7018091D8019091D901A6019501F4 |
:1051C0000E94932D79018A01FF24E7FCF094C70126 |
:1051D0000E946B2B2C01C7010E94AE2B3C016091F9 |
:1051E000DE017091DF018091E0019091E101A60163 |
:1051F00095010E94932D79018A01FF24E7FCF09428 |
:10520000C7010E946B2B9A878987C7010E94AE2B2A |
:105210001C016091260570912705E0902805F0900B |
:10522000290520911A05332727FD3095E21AF30A44 |
:105230000027F7FC0095102FA0902A05B0902B05B1 |
:1052400020911B05332727FD3095A21AB30ACC24E1 |
:10525000B7FCC094DC2C20911905332727FD30952D |
:10526000621B730B882777FD8095982F882477FC25 |
:105270008094982CA40193010E942B2D3B014C019A |
:1052800089859A85AA2797FDA095BA2F8D839E833D |
:10529000AF83B887C201AA2797FDA095BA2F89834B |
:1052A0009A83AB83BC83C801B7012D813E814F81B6 |
:1052B00058850E942B2D29813A814B815C810E9467 |
:1052C0002B2D20E034E040E050E00E94932D620E50 |
:1052D000731E841E951E442437FC4094542CC60132 |
:1052E000B501A20191010E942B2D29813A814B81A8 |
:1052F0005C810E942B2D20E034E040E050E00E94D1 |
:10530000932D621A730A840A950AC801B701A20193 |
:1053100091010E942B2D7B018C01C601B5012D81CD |
:105320003E814F8158850E942B2DE60EF71E081FE7 |
:10533000191FC801B70120E034E040E050E00E94AE |
:10534000932D79018A01C401B30120E034E040E0EB |
:1053500050E00E94932DDA01C901B7010E94CC2AC6 |
:105360009C0197FF05C088279927821B930B04C0D7 |
:1053700088E691E0821B930BE2E1C65F0C94CA2D94 |
:1053800080912205813041F0813018F0823049F55A |
:105390001CC02A9A81E016C02A9880912505853084 |
:1053A00011F481E305C0863011F482E301C083E388 |
:1053B0008EBD88E090E00E94810B9093240580933D |
:1053C000230582E080932205089580912305909122 |
:1053D00024050E948A0B882321F01EBC83E0809361 |
:1053E00022050895A0E0B0E0E8EFF9E20C94B02DBA |
:1053F000299A2898EE24FF2400E010E0AA24BB2478 |
:10540000CC24DD24662477248824992462E3462E64 |
:1054100055248091260590912705081719072CF42B |
:1054200000912605109127050BC0809126059091CB |
:1054300027058E159F0524F4E0902605F09027059A |
:105440008091280590912905C816D9062CF4C090A2 |
:105450002805D09029050BC0809128059091290539 |
:105460008A159B0524F4A0902805B0902905809109 |
:105470002A0590912B05881699062CF480902A0510 |
:1054800090902B050BC080912A0590912B058615D5 |
:10549000970524F460902A0570902B05552081F41F |
:1054A00085B191E0892785B985B192E0892785B9D1 |
:1054B00082E390E09093A7018093A60152E3552EDA |
:1054C0008AE090E00E94810BEC01CE010E948A0BE1 |
:1054D0008823D9F3E091C304FF27EE0FFF1FEB569B |
:1054E000FB4F80819181843691050CF44A944420CD |
:1054F00011F05A948ECFC8018E199F0990931D0503 |
:1055000080931C05C6018A199B0990931F058093FF |
:105510001E05C401861997099093210580932005E3 |
:10552000E9E1F5E0C8018E0D9F1D62E070E00E9488 |
:105530005E2D60931905C6018A0D9B1D62E070E027 |
:105540000E945E2D60931A05C401860D971D62E0CE |
:1055500070E00E945E2D60931B0589E0A4E3B1E03A |
:10556000182E0E94042EE0E1CDB7DEB70C94CC2DAE |
:1055700083ED8CBD84B1846A84B95B9885E08093A7 |
:1055800025051092220589E0E9E1F5E0A4E3B1E008 |
:10559000182E0E94F32D08951F93CF93DF93EC01F3 |
:1055A000892B31F46115710519F480E090E08FC00A |
:1055B00077FD02C011E001C01FEF209729F48AE5B2 |
:1055C0001802C001112483C0882777FD8095982F89 |
:1055D00026E0660F771F881F991F2A95D1F79E0135 |
:1055E000442737FD4095542F0E94932DF90137FF32 |
:1055F00003C0F095E195FF4F41E0EA35F40734F43C |
:10560000E656FB4F8491282F332747C05CE1E73AE9 |
:10561000F5071CF02AE530E040C089E0ED38F807D6 |
:105620001CF029E530E039C045E0EA3BF4071CF006 |
:1056300028E530E032C054E0E731F5071CF027E5FB |
:1056400030E02BC083E0EE32F8071CF026E530E0B6 |
:1056500024C042E0E939F4071CF025E530E01DC024 |
:1056600052E0E233F5071CF024E530E016C081E09B |
:10567000E73EF8071CF023E530E00FC041E0ED3ACB |
:10568000F4071CF022E530E008C0EF57F1401CF0B1 |
:1056900021E530E002C020E530E01C161D066CF468 |
:1056A000812F992787FD9095AC01249FC001259FEC |
:1056B000900D349F900D11240AC011162CF484EB28 |
:1056C00090E0821B930B03C0C901845B9040DF9183 |
:1056D000CF911F910895FC0197FD03C041E050E078 |
:1056E00005C0F095E195FF4F4FEF5FEFEB35F1050A |
:1056F0005CF0CF018B5590408A35910540F484EBE6 |
:1057000090E08E1B9F0BFC0121E030E010C0CF0128 |
:10571000855B90408A35910518F4E45BF04005C044 |
:1057200088E691E08E1B9F0BFC012FEF3FEFEE0F01 |
:10573000FF1FEC50FA4F85919491BC01629FC0010C |
:10574000639F900D729F900D11249C01429FC00198 |
:10575000439F900D529F900D112408952AE530E04B |
:10576000281B390BC9010E946B2B0895FC01415085 |
:10577000504030F001900616D1F73197CF010895CF |
:105780008827992708955058192EEFD001D0D2C0FC |
:10579000BA176207730784079507B1F188F40EF40E |
:1057A00010940B2EBA2FA02D062E622F202D072E1F |
:1057B000732F302D082E842F402D092E952F502D1C |
:1057C000FF275523B9F0591B49F0573E98F04695ED |
:1057D00037952795A795F0405395C9F776F0BA0FFE |
:1057E000621F731F841F30F4879577956795B7956F |
:1057F000F040939517FA0F2E0895BF1BBB27BA0BE5 |
:10580000620B730B840BF6CFDEF6DBC0AED001D09B |
:1058100091C0552359F0992369F09F575F57951B05 |
:1058200033F442F4903811F4915805C09BC091585C |
:105830009F3F09F4C6C0BB27112462177307840772 |
:1058400030F4660F771F881FBB1F915098F311D05B |
:105850000F920FD00F920DD0A0E8261737074807F8 |
:105860001B0609F0A048BA2F602D7F918F9100246C |
:105870000895A0E80024621773078407B10528F093 |
:10588000621B730B840BB1090A2A660F771F881FEE |
:10589000BB1FA69581F7089597FB73D09F3738F00B |
:1058A000FEE9F91B982F872F762F6B2F05C086C036 |
:1058B0009695879577956795F150D0F73EF490953A |
:1058C0008095709561957F4F8F4F9F4F0895E89415 |
:1058D00003C097FB0EF4F3DFB62F672F782F892FC5 |
:1058E0009EE9002427C00ED05EF004C00BD026F045 |
:1058F00001C008D019F020F48FEF089580E00895DA |
:1059000081E0089597FB092E052600F8689430D0B1 |
:10591000E89407FC07C0621773078407950721F016 |
:1059200008F400940794989408959A95BB0F661F05 |
:10593000771F881F11249923A1F08823B2F79F3F76 |
:1059400059F0BB0F48F421F4002011F460FF04C0AB |
:105950006F5F7F4F8F4F9F4F881F9795879597F960 |
:1059600008952CC09FEF80EC0895052E092607FAB4 |
:10597000440F551F5F3F79F0AA27A51708F051E0A3 |
:105980004795880F991F9F3F31F0BB27B91708F043 |
:1059900091E0879508959F919F911124E3CF97FB04 |
:1059A000880F991F9F3F31F0BB27B91708F091E08E |
:1059B000879508959F919F911124D4CF66277727CB |
:1059C000882799270895D1DF01D0B4CF992339F0E2 |
:1059D000552329F09F575F57950F13F49AF1F1CF94 |
:1059E00091589F3FE1F3629FA12D0F92BB27639FC8 |
:1059F000A00DB11DEE27729FA00DB11DEE1FAF933C |
:105A0000AA27649FB00DE11D739FB00DE11DAA1F71 |
:105A10006627829FB00DE11DA61F5527749FE00DDC |
:105A2000A11D551F839FE00DA11D561F849FA00D32 |
:105A3000511D852F7A2F6E2F1F900F9088231AF4F7 |
:105A4000939539F48FCF000C111CBB1F661F771F75 |
:105A5000881F01280895629FD001739FF001829FE3 |
:105A6000E00DF11D649FE00DF11D929FF00D839FED |
:105A7000F00D749FF00D659FF00D9927729FB00D8A |
:105A8000E11DF91F639FB00DE11DF91FBD01CF019D |
:105A900011240895AA1BBB1B51E107C0AA1FBB1FFD |
:105AA000A617B70710F0A61BB70B881F991F5A95AA |
:105AB000A9F780959095BC01CD01089597FB092E1B |
:105AC00007260AD077FD04D0E5DF06D000201AF4BF |
:105AD000709561957F4F0895F6F7909581959F4F4A |
:105AE0000895A1E21A2EAA1BBB1BFD010DC0AA1F1F |
:105AF000BB1FEE1FFF1FA217B307E407F50720F037 |
:105B0000A21BB30BE40BF50B661F771F881F991FB1 |
:105B10001A9469F760957095809590959B01AC01FA |
:105B2000BD01CF01089597FB092E05260ED057FD24 |
:105B300004D0D7DF0AD0001C38F45095409530953A |
:105B400021953F4F4F4F5F4F0895F6F79095809501 |
:105B5000709561957F4F8F4F9F4F08952F923F9281 |
:105B60004F925F926F927F928F929F92AF92BF926D |
:105B7000CF92DF92EF92FF920F931F93CF93DF9319 |
:105B8000CDB7DEB7CA1BDB0B0FB6F894DEBF0FBE76 |
:105B9000CDBF09942A88398848885F846E847D84C3 |
:105BA0008C849B84AA84B984C884DF80EE80FD80C5 |
:105BB0000C811B81AA81B981CE0FD11D0FB6F8943B |
:105BC000DEBF0FBECDBFED010895EE0FFF1F0590A4 |
:105BD000F491E02D0994F999FECFB2BDA1BDF89AD8 |
:105BE000119600B40895F7DF01921A94E1F7089531 |
:105BF000F999FECFB2BDA1BD00BC11960FB6F894C5 |
:105C0000FA9AF99A0FBE08950190F2DF1A94E1F71B |
:045C10000895FFCF25 |
:105C140001640A016400007D0000FF030102030423 |
:105C240005060708090A48616C6C6F2057656C7497 |
:105C34000000000000000000000000000000000060 |
:105C44000000000000000000000000000000000050 |
:105C54000000000000000000000000000000000040 |
:105C64000000000000000000000000000000000030 |
:105C74000000000000000C014B616D6572610000C2 |
:105C84004E6F726D616C00000000803F17B7D13811 |
:0C5C940030FB103A403296020A64010016 |
:00000001FF |
/branches/MicroMag3_Nick666/v0.60/GPS.c |
---|
0,0 → 1,26 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
signed int GPS_Nick = 0; |
signed int GPS_Roll = 0; |
long GpsAktuell_X = 0; |
long GpsAktuell_Y = 0; |
long GpsZiel_X = 0; |
long GpsZiel_Y = 0; |
void GPS_Neutral(void) |
{ |
GpsZiel_X = GpsAktuell_X; |
GpsZiel_Y = GpsAktuell_Y; |
} |
void GPS_BerechneZielrichtung(void) |
{ |
GPS_Nick = 0; |
GPS_Roll = 0; |
} |
/branches/MicroMag3_Nick666/v0.60/Settings.h |
---|
--- branches/MicroMag3_Nick666/v0.60/_Settings.h (nonexistent) |
+++ branches/MicroMag3_Nick666/v0.60/_Settings.h (revision 715) |
@@ -0,0 +1,50 @@ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Testmodi |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define MOTOR_OFF 0 |
+#define MOTOR_TEST 0 |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Abstimmung |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define ACC_AMPLIFY 16 |
+#define FAKTOR_P 1 |
+#define FAKTOR_I 0.0001 |
+ |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Debug-Interface |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+#define SIO_DEBUG 1 // Soll der Debugger aktiviert sein? |
+#define MIN_DEBUG_INTERVALL 250 // in diesem Intervall werden Degugdaten ohne Aufforderung gesendet |
+ |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+// Sender |
+// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
+ #define K_NICK 0 |
+ #define K_ROLL 1 |
+ #define K_GAS 2 |
+ #define K_GIER 3 |
+ #define K_POTI1 4 |
+ #define K_POTI2 5 |
+ #define K_POTI3 6 |
+ #define K_POTI4 7 |
+// +++++++++++++++++++++++++++++++ |
+// + Getestete Settings: |
+// +++++++++++++++++++++++++++++++ |
+// Setting: Kamera |
+// Stick_P:3 |
+// Stick_D:0 |
+// Gyro_P: 175 |
+// Gyro_I: 175 |
+// Ki_Anteil: 10 |
+// +++++++++++++++++++++++++++++++ |
+// + Getestete Settings: |
+// +++++++++++++++++++++++++++++++ |
+// Setting: Normal |
+// Stick_P:2 |
+// Stick_D:8 |
+// Gyro_P: 80 |
+// Gyro_I: 150 |
+// Ki_Anteil: 5 |
+ |
/branches/MicroMag3_Nick666/v0.60/analog.c |
---|
0,0 → 1,155 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az, UBat = 100; |
volatile int AccumulateNick = 0, AccumulateRoll = 0, AccumulateGier = 0; |
volatile int accumulate_AccRoll = 0,accumulate_AccNick = 0,accumulate_AccHoch = 0; |
volatile char MessanzahlNick = 0, MessanzahlRoll = 0, MessanzahlGier = 0; |
volatile char messanzahl_AccNick = 0, messanzahl_AccRoll = 0, messanzahl_AccHoch = 0; |
volatile long Luftdruck = 32000; |
volatile int StartLuftdruck; |
volatile unsigned int MessLuftdruck = 1023; |
unsigned char DruckOffsetSetting; |
volatile int HoeheD = 0; |
volatile char messanzahl_Druck; |
volatile int tmpLuftdruck; |
volatile unsigned int ZaehlMessungen = 0; |
//####################################################################################### |
// |
void ADC_Init(void) |
//####################################################################################### |
{ |
ADMUX = 0;//Referenz ist extern |
ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE); |
//Free Running Mode, Division Factor 128, Interrupt on |
} |
//####################################################################################### |
// |
void SucheLuftruckOffset(void) |
//####################################################################################### |
{ |
unsigned int off; |
off = eeprom_read_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET]); |
if(off > 20) off -= 10; |
OCR0A = off; |
Delay_ms(100); |
if(MessLuftdruck < 850) off = 0; |
for(; off < 250;off++) |
{ |
OCR0A = off; |
Delay_ms(50); |
printf("."); |
if(MessLuftdruck < 900) break; |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_LAST_OFFSET], off); |
DruckOffsetSetting = off; |
Delay_ms(200); |
} |
//####################################################################################### |
// |
SIGNAL(SIG_ADC) |
//####################################################################################### |
{ |
static unsigned char kanal=0,state = 0; |
signed int wert; |
ANALOG_OFF; |
switch(state++) |
{ |
case 0: |
wert = (signed int) AdNeutralGier - ADC; |
AccumulateGier += wert; // |
MessanzahlGier++; |
Mess_Integral_Gier += wert;// / 16; |
Mess_Integral_Gier2 += wert; |
kanal = 1; |
ZaehlMessungen++; |
break; |
case 1: |
wert = (signed int) ADC - AdNeutralRoll; |
Mess_IntegralRoll += wert; |
Mess_IntegralRoll2 += wert; |
if(ADC < 10) wert = -700; |
if(ADC > 1000) wert = +700; |
AccumulateRoll += wert; |
MessanzahlRoll++; |
kanal = 2; |
break; |
case 2: |
wert = (signed int) ADC - AdNeutralNick; |
Mess_IntegralNick += wert; |
Mess_IntegralNick2 += wert; |
if(ADC < 10) wert = -700; |
if(ADC > 1000) wert = +700; |
AccumulateNick += wert; |
MessanzahlNick++; |
kanal = 4; |
break; |
case 3: |
UBat = (3 * UBat + ADC / 3) / 4;//(UBat + ((ADC * 39) / 256) + 19) / 2; |
kanal = 6; |
break; |
case 4: |
Aktuell_ay = acc_neutral.Y - ADC; |
accumulate_AccRoll += Aktuell_ay; |
messanzahl_AccRoll++; |
kanal = 7; |
break; |
case 5: |
Aktuell_ax = ADC - acc_neutral.X; |
accumulate_AccNick += Aktuell_ax; |
messanzahl_AccNick++; |
kanal = 5; |
state = 6; |
break; |
case 6: |
accumulate_AccHoch = (signed int) ADC - acc_neutral.Z; |
accumulate_AccHoch += abs(Aktuell_ay) / 4 + abs(Aktuell_ax) / 4; |
if(accumulate_AccHoch > 1) |
{ |
if(acc_neutral.Z < 800) acc_neutral.Z+= 0.02; |
} |
else if(accumulate_AccHoch < -1) |
{ |
if(acc_neutral.Z > 600) acc_neutral.Z-= 0.02; |
} |
messanzahl_AccHoch = 1; |
Aktuell_az = ADC; |
Mess_Integral_Hoch += accumulate_AccHoch; // Integrieren |
Mess_Integral_Hoch -= Mess_Integral_Hoch / 1024; // dämpfen |
kanal = 3; |
state = 7; |
break; |
case 7: |
tmpLuftdruck += ADC; |
if(++messanzahl_Druck >= 5) |
{ |
MessLuftdruck = ADC; |
messanzahl_Druck = 0; |
HoeheD = (int)(StartLuftdruck - tmpLuftdruck - HoehenWert); // D-Anteil = neuerWert - AlterWert |
Luftdruck = (tmpLuftdruck + 3 * Luftdruck) / 4; |
HoehenWert = StartLuftdruck - Luftdruck; |
tmpLuftdruck = 0; |
} |
kanal = 0; |
state = 0; |
break; |
default: |
kanal = 0; |
state = 0; |
break; |
} |
ADMUX = kanal; |
ANALOG_ON; |
} |
/branches/MicroMag3_Nick666/v0.60/analog.h |
---|
0,0 → 1,23 |
/*####################################################################################### |
#######################################################################################*/ |
extern volatile int UBat; |
extern volatile int AccumulateNick, AccumulateRoll, AccumulateGier,accumulate_AccRoll,accumulate_AccNick,accumulate_AccHoch; |
extern volatile char MessanzahlNick, MessanzahlRoll, MessanzahlGier,messanzahl_AccNick, messanzahl_AccRoll,messanzahl_AccHoch; |
extern volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az; |
extern volatile long Luftdruck; |
extern volatile char messanzahl_Druck; |
extern volatile unsigned int ZaehlMessungen; |
extern unsigned char DruckOffsetSetting; |
extern volatile int HoeheD; |
extern volatile unsigned int MessLuftdruck; |
extern volatile int StartLuftdruck; |
extern unsigned int ReadADC(unsigned char adc_input); |
extern void ADC_Init(void); |
extern void SucheLuftruckOffset(void); |
#define ANALOG_OFF ADCSRA=0 |
#define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE) |
/branches/MicroMag3_Nick666/v0.60/compass.c |
---|
0,0 → 1,234 |
/* |
Copyright 2007, Niklas Nold |
This program (files compass.c and compass.h) is free software; you can redistribute it and/or modify |
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; |
either version 3 of the License, or (at your option) any later version. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Please note: All the other files for the project "Mikrokopter" by H. Buss are under the license (license_buss.txt) published by www.mikrokopter.de |
*/ |
#include "main.h" |
struct MM3_calib_struct ee_calib EEMEM; // Reservierung im EEPROM |
struct MM3_working_struct MM3; |
struct MM3_calib_struct MM3_calib; |
//############################################################################ |
// Initialisierung |
void init_MM3(void) |
//############################################################################ |
{ |
// SPI-Schnittstelle initialisieren |
SPCR = (1<<SPIE)|(1<<SPE)|(1<<MSTR)|(1<<SPR1)|(1<<SPR0); // Interrupt an, Master, 156 kHz Oszillator |
DDRB |= (1<<PB7)|(1<<PB5)|(1<<PB2); // J8, MOSI, SCK Ausgang |
PORTD &= ~(1<<PD3); // J5 permanent auf Low |
// Init Statemachine |
MM3.AXIS = MM3_X; |
MM3.STATE = MM3_RESET; |
// Kalibrierung aus dem EEprom lesen |
eeprom_read_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Wird in der SIGNAL (SIG_OVERFLOW0) aufgerufen |
void timer0_MM3(void) |
//############################################################################ |
{ |
switch (MM3.STATE) |
{ |
case MM3_RESET: |
PORTB |= (1<<PB2); // J8 auf High, MM3 Reset |
MM3.STATE = MM3_START_TRANSFER; |
return; |
case MM3_START_TRANSFER: |
PORTB &= ~(1<<PB2); // J8 auf Low (war ~125 µs auf High) |
if (MM3.AXIS == MM3_X) SPDR = 0x31; // Schreiben ins SPDR löst automatisch SPI-Übertragung (MOSI und MISO) aus |
else if (MM3.AXIS == MM3_Y) SPDR = 0x32; // Micromag Period Select ist auf 256 (0x30) |
else SPDR = 0x33; //if (MM3.AXIS == MM3_Z) // 1: x-Achse, 2: Y-Achse, 3: Z-Achse |
MM3.DRDY = SetDelay(8); // Laut Datenblatt max. Zeit bis Messung fertig (bei PS 256 eigentlich 4 ms) |
MM3.STATE = MM3_WAIT_DRDY; |
return; |
case MM3_WAIT_DRDY: |
if (CheckDelay(MM3.DRDY)) {SPDR = 0x00;MM3.STATE = MM3_DRDY;} // Irgendwas ins SPDR, damit Übertragung ausgelöst wird, wenn Wartezeit vorbei |
return; // Jetzt gehts weiter in SIGNAL (SIG_SPI) |
} |
} |
//############################################################################ |
// SPI byte ready |
SIGNAL (SIG_SPI) |
//############################################################################ |
{ |
static char tmp; |
int wert; |
switch (MM3.STATE) |
{ |
case MM3_DRDY: // 1. Byte ist da, zwischenspeichern |
tmp = SPDR; |
SPDR = 0x00; // Übertragung von 2. Byte auslösen |
MM3.STATE = MM3_BYTE2; |
return; |
case MM3_BYTE2: // 2. Byte der entsprechenden Achse ist da |
wert = tmp; |
wert <<= 8; // 1. Byte an MSB-Stelle rücken |
wert |= SPDR; // 2. Byte dranpappen |
if(abs(wert) < Max_Axis_Value) // Spikes filtern. Zuweisung nur, wenn Max-Wert nicht überschritten |
switch (MM3.AXIS) |
{ |
case MM3_X: |
MM3.x_axis = wert; |
MM3.AXIS = MM3_Y; |
break; |
case MM3_Y: |
MM3.y_axis = wert; |
MM3.AXIS = MM3_Z; |
break; |
default: //case MM3_Z: |
MM3.z_axis = wert; |
MM3.AXIS = MM3_X; |
} |
MM3.STATE = MM3_RESET; |
} |
} |
//############################################################################ |
// Kompass kalibrieren |
void calib_MM3(void) |
//############################################################################ |
{ |
signed int x_min=0,x_max=0,y_min=0,y_max=0,z_min=0,z_max=0; |
uint8_t measurement=50,beeper=0; |
unsigned int timer; |
GRN_ON; |
ROT_OFF; |
while (measurement) |
{ |
//H_earth = MM3.x_axis*MM3.x_axis + MM3.y_axis*MM3.y_axis + MM3.z_axis*MM3.z_axis; |
if (MM3.x_axis > x_max) x_max = MM3.x_axis; |
else if (MM3.x_axis < x_min) x_min = MM3.x_axis; |
if (MM3.y_axis > y_max) y_max = MM3.y_axis; |
else if (MM3.y_axis < y_min) y_min = MM3.y_axis; |
if (MM3.z_axis > z_max) z_max = MM3.z_axis; |
else if (MM3.z_axis < z_min) z_min = MM3.z_axis; |
if (!beeper) |
{ |
ROT_FLASH; |
GRN_FLASH; |
beeptime = 50; |
beeper = 50; |
} |
beeper--; |
// Schleife mit 100 Hz |
timer = SetDelay(10); |
while(!CheckDelay(timer)); |
// Wenn Gas zurück genommen wird, Kalibrierung mit 1/2 Sekunde Verzögerung beenden |
if (PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] < 100) measurement--; |
} |
// Wertebereich der Achsen |
MM3_calib.X_range = (x_max - x_min); |
MM3_calib.Y_range = (y_max - y_min); |
MM3_calib.Z_range = (z_max - z_min); |
// Offset der Achsen |
MM3_calib.X_off = (x_max + x_min) / 2; |
MM3_calib.Y_off = (y_max + y_min) / 2; |
MM3_calib.Z_off = (z_max + z_min) / 2; |
// und im EEProm abspeichern |
eeprom_write_block(&MM3_calib,&ee_calib,sizeof(struct MM3_calib_struct)); |
} |
//############################################################################ |
// Neigungskompensierung und Berechnung der Ausrichtung |
int heading_MM3(void) |
//############################################################################ |
{ |
signed int sin_nick, cos_nick, sin_roll, cos_roll; |
long x_axis, y_axis, z_axis; |
long x_corr, y_corr; |
signed int heading; |
int8_t nicktilt,rolltilt; |
unsigned int div_faktor; |
div_faktor = (uint16_t)EE_Parameter.UserParam1 * 8; |
// Berechung von sinus und cosinus |
nicktilt = (IntegralNick/div_faktor); |
sin_nick = sin_i(nicktilt); |
cos_nick = cos_i(nicktilt); |
rolltilt = (IntegralRoll/div_faktor); |
sin_roll = sin_i(rolltilt); |
cos_roll = cos_i(rolltilt); |
// Offset |
x_axis = (MM3.x_axis - MM3_calib.X_off); |
y_axis = (MM3.y_axis - MM3_calib.Y_off); |
z_axis = (MM3.z_axis - MM3_calib.Z_off); |
/* |
// Normierung Wertebereich |
if ((MM3_calib.X_range > MM3_calib.Y_range) && (MM3_calib.X_range > MM3_calib.Z_range)) |
{ |
y_axis = (y_axis * MM3_calib.X_range) / MM3_calib.Y_range; |
z_axis = (z_axis * MM3_calib.X_range) / MM3_calib.Z_range; |
} |
else if ((MM3_calib.Y_range > MM3_calib.X_range) && (MM3_calib.Y_range > MM3_calib.Z_range)) |
{ |
x_axis = (x_axis * MM3_calib.Y_range) / MM3_calib.X_range; |
z_axis = (z_axis * MM3_calib.Y_range) / MM3_calib.Z_range; |
} |
else //if ((MM3_calib.Z_range > MM3_calib.X_range) && (MM3_calib.Z_range > MM3_calib.Y_range)) |
{ |
x_axis = (x_axis * MM3_calib.Z_range) / MM3_calib.X_range; |
y_axis = (y_axis * MM3_calib.Z_range) / MM3_calib.Y_range; |
} |
*/ |
// Neigungskompensierung |
x_corr = x_axis * cos_nick; |
x_corr += (y_axis * sin_roll * sin_nick) /1024; |
x_corr -= (z_axis * cos_roll * sin_nick) /1024; |
x_corr /= 1024; |
y_corr = y_axis * cos_roll; |
y_corr += z_axis * sin_roll; |
y_corr /= 1024; |
// Winkelberechnung |
heading = atan2_i(x_corr, y_corr); |
if (heading < 0) heading = -heading; |
else heading = 360 - heading; |
return (heading); |
} |
/branches/MicroMag3_Nick666/v0.60/compass.h |
---|
0,0 → 1,44 |
struct MM3_working_struct |
{ |
uint8_t STATE; |
unsigned int DRDY; |
uint8_t AXIS; |
volatile signed int x_axis; |
volatile signed int y_axis; |
volatile signed int z_axis; |
}; |
struct MM3_calib_struct |
{ |
int8_t X_off; |
int8_t Y_off; |
int8_t Z_off; |
uint16_t X_range; |
uint16_t Y_range; |
uint16_t Z_range; |
}; |
extern struct MM3_working_struct MM3; |
extern struct MM3_calib_struct MM3_calib; |
void init_MM3(void); |
void timer0_MM3(void); |
void calib_MM3(void); |
int heading_MM3(void); |
#define Max_Axis_Value 500 |
// Die Werte der Statemachine |
#define MM3_RESET 0 |
#define MM3_START_TRANSFER 1 |
#define MM3_WAIT_DRDY 2 |
#define MM3_DRDY 3 |
#define MM3_BYTE2 4 |
#define MM3_X 5 |
#define MM3_Y 6 |
#define MM3_Z 7 |
#define MM3_TILT 8 |
#define MM3_IDLE 9 |
/branches/MicroMag3_Nick666/v0.60/fc.c |
---|
0,0 → 1,846 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten (nicht-kommerziellen) Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-commercial use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
// + clearly linked as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
unsigned char h,m,s; |
volatile unsigned char Timeout = 0; |
int MesswertNick,MesswertRoll,MesswertGier; |
volatile int AdNeutralNick = 0,AdNeutralRoll = 0,AdNeutralGier = 0; |
int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
long IntegralNick = 0,IntegralNick2 = 0; |
long IntegralRoll = 0,IntegralRoll2 = 0; |
long Integral_Gier = 0; |
volatile long Mess_IntegralNick = 0,Mess_IntegralNick2 = 0; |
volatile long Mess_IntegralRoll = 0,Mess_IntegralRoll2 = 0; |
volatile long Mess_Integral_Gier = 0,Mess_Integral_Gier2 = 0; |
volatile long Mess_Integral_Hoch = 0; |
int KompassValue = 0; |
int KompassStartwert = 0; |
int KompassRichtung = 0; |
uint8_t updKompass = 0; |
unsigned char MAX_GAS,MIN_GAS; |
unsigned char Notlandung = 0; |
unsigned char HoehenReglerAktiv = 0; |
float GyroFaktor; |
float IntegralFaktor; |
int DiffNick,DiffRoll; |
int Poti1 = 0, Poti2 = 0, Poti3 = 0, Poti4 = 0; |
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links; |
unsigned char MotorWert[5]; |
volatile unsigned char SenderOkay = 0; |
int StickNick = 0,StickRoll = 0,StickGier = 0; |
char MotorenEin = 0; |
int HoehenWert = 0; |
int SollHoehe = 0; |
float Kp = FAKTOR_P; |
float Ki = FAKTOR_I; |
unsigned char Parameter_Luftdruck_D = 48; // Wert : 0-250 |
unsigned char Parameter_MaxHoehe = 251; // Wert : 0-250 |
unsigned char Parameter_Hoehe_P = 16; // Wert : 0-32 |
unsigned char Parameter_Hoehe_ACC_Wirkung = 58; // Wert : 0-250 |
unsigned char Parameter_KompassWirkung = 64; // Wert : 0-250 |
unsigned char Parameter_Gyro_P = 50; // Wert : 10-250 |
unsigned char Parameter_Gyro_I = 150; // Wert : 0-250 |
unsigned char Parameter_Gier_P = 2; // Wert : 1-20 |
unsigned char Parameter_I_Faktor = 10; // Wert : 1-20 |
unsigned char Parameter_UserParam1 = 0; |
unsigned char Parameter_UserParam2 = 0; |
unsigned char Parameter_UserParam3 = 0; |
unsigned char Parameter_UserParam4 = 0; |
unsigned char Parameter_ServoNickControl = 100; |
struct mk_param_struct EE_Parameter; |
struct acc_neutral_struct ee_acc_neutral EEMEM; // Reservierung im EEPROM |
struct acc_neutral_struct acc_neutral; |
void Piep(unsigned char Anzahl) |
{ |
while(Anzahl--) |
{ |
if(MotorenEin) return; //auf keinen Fall im Flug! |
beeptime = 100; |
Delay_ms(250); |
} |
} |
//############################################################################ |
// Neutrallage kalibrieren und fest im EEPROM abspeichern |
void calib_acc(void) |
//############################################################################ |
{ |
unsigned int timer; |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
CalibrierMittelwert(); |
timer = SetDelay(5); |
while (!CheckDelay(timer)); |
CalibrierMittelwert(); |
acc_neutral.X = abs(Mittelwert_AccNick) / ACC_AMPLIFY; |
acc_neutral.Y = abs(Mittelwert_AccRoll) / ACC_AMPLIFY; |
acc_neutral.Z = Aktuell_az; |
eeprom_write_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
} |
//############################################################################ |
// Nullwerte ermitteln |
void SetNeutral(void) |
//############################################################################ |
{ |
unsigned int timer; |
acc_neutral.X = 0; |
acc_neutral.Y = 0; |
acc_neutral.Z = 0; |
AdNeutralNick = 0; |
AdNeutralRoll = 0; |
AdNeutralGier = 0; |
CalibrierMittelwert(); |
timer = SetDelay(5); |
while (!CheckDelay(timer)); |
CalibrierMittelwert(); |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
AdNeutralNick= abs(MesswertNick); |
AdNeutralRoll= abs(MesswertRoll); |
AdNeutralGier= abs(MesswertGier); |
eeprom_read_block(&acc_neutral,&ee_acc_neutral,sizeof(struct acc_neutral_struct)); |
Mess_IntegralNick = 0; |
Mess_IntegralNick2 = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralRoll2 = 0; |
Mess_Integral_Gier = 0; |
MesswertNick = 0; |
MesswertRoll = 0; |
MesswertGier = 0; |
StartLuftdruck = Luftdruck; |
HoeheD = 0; |
Mess_Integral_Hoch = 0; |
KompassStartwert = KompassValue; |
GPS_Neutral(); |
beeptime = 50; |
} |
//############################################################################ |
// Bildet den Mittelwert aus den Messwerten |
void Mittelwert(void) |
//############################################################################ |
{ |
// ADC auschalten, damit die Werte sich nicht während der Berechnung ändern |
ANALOG_OFF; |
if(MessanzahlNick) (MesswertNick = AccumulateNick / MessanzahlNick); |
if(MessanzahlRoll) (MesswertRoll = AccumulateRoll / MessanzahlRoll); |
if(MessanzahlGier) (MesswertGier = AccumulateGier / MessanzahlGier); |
if(messanzahl_AccNick) Mittelwert_AccNick = ((long)Mittelwert_AccNick * 7 + ((ACC_AMPLIFY * (long)accumulate_AccNick) / messanzahl_AccNick)) / 8L; |
if(messanzahl_AccRoll) Mittelwert_AccRoll = ((long)Mittelwert_AccRoll * 7 + ((ACC_AMPLIFY * (long)accumulate_AccRoll) / messanzahl_AccRoll)) / 8L; |
if(messanzahl_AccHoch) Mittelwert_AccHoch = ((long)Mittelwert_AccHoch * 7 + ((long)accumulate_AccHoch) / messanzahl_AccHoch) / 8L; |
AccumulateNick = 0; MessanzahlNick = 0; |
AccumulateRoll = 0; MessanzahlRoll = 0; |
AccumulateGier = 0; MessanzahlGier = 0; |
accumulate_AccRoll = 0;messanzahl_AccRoll = 0; |
accumulate_AccNick = 0;messanzahl_AccNick = 0; |
accumulate_AccHoch = 0;messanzahl_AccHoch = 0; |
Integral_Gier = Mess_Integral_Gier; |
// Integral_Gier2 = Mess_Integral_Gier2; |
IntegralNick = Mess_IntegralNick; |
IntegralRoll = Mess_IntegralRoll; |
IntegralNick2 = Mess_IntegralNick2; |
IntegralRoll2 = Mess_IntegralRoll2; |
// ADC einschalten |
ANALOG_ON; |
/* |
//------------------------------------------------------------------------------ |
if(MesswertNick > 200) MesswertNick += 4 * (MesswertNick - 200); |
else |
if(MesswertNick < -200) MesswertNick += 4 * (MesswertNick + 200); |
if(MesswertRoll > 200) MesswertRoll += 4 * (MesswertRoll - 200); |
else |
if(MesswertRoll < -200) MesswertRoll += 4 * (MesswertRoll + 200); |
//------------------------------------------------------------------------------ |
*/ |
if(Poti1 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110) Poti1++; else if(Poti1 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110 && Poti1) Poti1--; |
if(Poti2 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110) Poti2++; else if(Poti2 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110 && Poti2) Poti2--; |
if(Poti3 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110) Poti3++; else if(Poti3 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110 && Poti3) Poti3--; |
if(Poti4 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110) Poti4++; else if(Poti4 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110 && Poti4) Poti4--; |
if(Poti1 < 0) Poti1 = 0; else if(Poti1 > 255) Poti1 = 255; |
if(Poti2 < 0) Poti2 = 0; else if(Poti2 > 255) Poti2 = 255; |
if(Poti3 < 0) Poti3 = 0; else if(Poti3 > 255) Poti3 = 255; |
if(Poti4 < 0) Poti4 = 0; else if(Poti4 > 255) Poti4 = 255; |
} |
//############################################################################ |
// Messwerte beim Ermitteln der Nullage |
void CalibrierMittelwert(void) |
//############################################################################ |
{ |
// ADC auschalten, damit die Werte sich nicht während der Berechnung ändern |
ANALOG_OFF; |
if(MessanzahlNick) (MesswertNick = AccumulateNick / MessanzahlNick); |
if(MessanzahlRoll) (MesswertRoll = AccumulateRoll / MessanzahlRoll); |
if(MessanzahlGier) (MesswertGier = AccumulateGier / MessanzahlGier); |
if(messanzahl_AccNick) Mittelwert_AccNick = ((ACC_AMPLIFY * (long)accumulate_AccNick) / messanzahl_AccNick); |
if(messanzahl_AccRoll) Mittelwert_AccRoll = (ACC_AMPLIFY * (long)accumulate_AccRoll) / messanzahl_AccRoll; |
if(messanzahl_AccHoch) Mittelwert_AccHoch = accumulate_AccHoch / messanzahl_AccHoch; |
AccumulateNick = 0; MessanzahlNick = 0; |
AccumulateRoll = 0; MessanzahlRoll = 0; |
AccumulateGier = 0; MessanzahlGier = 0; |
accumulate_AccRoll = 0;messanzahl_AccRoll = 0; |
accumulate_AccNick = 0;messanzahl_AccNick = 0; |
accumulate_AccHoch = 0;messanzahl_AccHoch = 0; |
// ADC einschalten |
ANALOG_ON; |
if(Poti1 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110) Poti1++; else if(Poti1 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]] + 110 && Poti1) Poti1--; |
if(Poti2 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110) Poti2++; else if(Poti2 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]] + 110 && Poti2) Poti2--; |
if(Poti3 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110) Poti3++; else if(Poti3 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]] + 110 && Poti3) Poti3--; |
if(Poti4 < PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110) Poti4++; else if(Poti4 > PPM_in[EE_Parameter.Kanalbelegung[K_POTI4]] + 110 && Poti4) Poti4--; |
if(Poti1 < 0) Poti1 = 0; else if(Poti1 > 255) Poti1 = 255; |
if(Poti2 < 0) Poti2 = 0; else if(Poti2 > 255) Poti2 = 255; |
if(Poti3 < 0) Poti3 = 0; else if(Poti3 > 255) Poti3 = 255; |
if(Poti4 < 0) Poti4 = 0; else if(Poti4 > 255) Poti4 = 255; |
} |
//############################################################################ |
// Senden der Motorwerte per I2C-Bus |
void SendMotorData(void) |
//############################################################################ |
{ |
if(MOTOR_OFF || !MotorenEin) |
{ |
Motor_Hinten = 0; |
Motor_Vorne = 0; |
Motor_Rechts = 0; |
Motor_Links = 0; |
if(MotorTest[0]) Motor_Vorne = MotorTest[0]; |
if(MotorTest[1]) Motor_Hinten = MotorTest[1]; |
if(MotorTest[2]) Motor_Links = MotorTest[2]; |
if(MotorTest[3]) Motor_Rechts = MotorTest[3]; |
} |
DebugOut.Analog[12] = Motor_Vorne; |
DebugOut.Analog[13] = Motor_Hinten; |
DebugOut.Analog[14] = Motor_Links; |
DebugOut.Analog[15] = Motor_Rechts; |
//Start I2C Interrupt Mode |
twi_state = 0; |
motor = 0; |
i2c_start(); |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Konstanten |
// + 0-250 -> normale Werte |
// + 251 -> Poti1 |
// + 252 -> Poti2 |
// + 253 -> Poti3 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
void DefaultKonstanten1(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.Kanalbelegung[K_POTI4] = 8; |
EE_Parameter.GlobalConfig = 0;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV | CFG_KOMPASS_FIX;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-32 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 70; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 30; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 2; // Wert : 0-50 |
EE_Parameter.Stick_P = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 8; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 16; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 26; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 16; // Wert : 0-250 |
EE_Parameter.Gyro_P = 120; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 150; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 90; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 5; |
EE_Parameter.UserParam1 = 178; //zur freien Verwendung |
EE_Parameter.UserParam2 = 0; //zur freien Verwendung |
EE_Parameter.UserParam3 = 0; //zur freien Verwendung |
EE_Parameter.UserParam4 = 0; //zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
memcpy(EE_Parameter.Name, "Normal\0", 12); |
} |
void DefaultKonstanten2(void) |
{ |
EE_Parameter.Kanalbelegung[K_NICK] = 1; |
EE_Parameter.Kanalbelegung[K_ROLL] = 2; |
EE_Parameter.Kanalbelegung[K_GAS] = 3; |
EE_Parameter.Kanalbelegung[K_GIER] = 4; |
EE_Parameter.Kanalbelegung[K_POTI1] = 5; |
EE_Parameter.Kanalbelegung[K_POTI2] = 6; |
EE_Parameter.Kanalbelegung[K_POTI3] = 7; |
EE_Parameter.GlobalConfig = 0;//CFG_HOEHENREGELUNG | /*CFG_HOEHEN_SCHALTER |*/ CFG_KOMPASS_AKTIV;//0x01; |
EE_Parameter.Hoehe_MinGas = 30; |
EE_Parameter.MaxHoehe = 251; // Wert : 0-32 251 -> Poti1 |
EE_Parameter.Hoehe_P = 10; // Wert : 0-32 |
EE_Parameter.Luftdruck_D = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_ACC_Wirkung = 50; // Wert : 0-250 |
EE_Parameter.Hoehe_Verstaerkung = 2; // Wert : 0-50 |
EE_Parameter.Stick_P = 4; //2 // Wert : 1-6 |
EE_Parameter.Stick_D = 0; //8 // Wert : 0-64 |
EE_Parameter.Gier_P = 16; // Wert : 1-20 |
EE_Parameter.Gas_Min = 15; // Wert : 0-32 |
EE_Parameter.Gas_Max = 250; // Wert : 33-250 |
EE_Parameter.GyroAccFaktor = 26; // Wert : 1-64 |
EE_Parameter.KompassWirkung = 16; // Wert : 0-250 |
EE_Parameter.Gyro_P = 175; //80 // Wert : 0-250 |
EE_Parameter.Gyro_I = 175; // Wert : 0-250 |
EE_Parameter.UnterspannungsWarnung = 90; // Wert : 0-250 |
EE_Parameter.NotGas = 35; // Wert : 0-250 // Gaswert bei Empangsverlust |
EE_Parameter.NotGasZeit = 20; // Wert : 0-250 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
EE_Parameter.UfoAusrichtung = 0; // X oder + Formation |
EE_Parameter.I_Faktor = 5; |
EE_Parameter.UserParam1 = 178; //zur freien Verwendung |
EE_Parameter.UserParam2 = 0; //zur freien Verwendung |
EE_Parameter.UserParam3 = 0; //zur freien Verwendung |
EE_Parameter.UserParam4 = 0; //zur freien Verwendung |
EE_Parameter.UserParam3 = 0; //zur freien Verwendung |
EE_Parameter.UserParam4 = 0; //zur freien Verwendung |
EE_Parameter.ServoNickControl = 100; // Wert : 0-250 // Stellung des Servos |
EE_Parameter.ServoNickComp = 40; // Wert : 0-250 // Einfluss Gyro/Servo |
EE_Parameter.ServoNickCompInvert = 0; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
EE_Parameter.ServoNickMin = 50; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickMax = 150; // Wert : 0-250 // Anschlag |
EE_Parameter.ServoNickRefresh = 5; |
memcpy(EE_Parameter.Name, "Kamera\0", 12); |
} |
//############################################################################ |
// Trägt ggf. das Poti als Parameter ein |
void ParameterZuordnung(void) |
//############################################################################ |
{ |
#define CHK_POTI(b,a,min,max) { if(a > 250) { if(a == 251) b = Poti1; else if(a == 252) b = Poti2; else if(a == 253) b = Poti3; else if(a == 254) b = Poti4;} else b = a; if(b <= min) b = min; else if(b >= max) b = max;} |
CHK_POTI(Parameter_MaxHoehe,EE_Parameter.MaxHoehe,0,255); |
CHK_POTI(Parameter_Luftdruck_D,EE_Parameter.Luftdruck_D,0,100); |
CHK_POTI(Parameter_Hoehe_P,EE_Parameter.Hoehe_P,0,100); |
CHK_POTI(Parameter_Hoehe_ACC_Wirkung,EE_Parameter.Hoehe_ACC_Wirkung,0,255); |
CHK_POTI(Parameter_KompassWirkung,EE_Parameter.KompassWirkung,0,255); |
CHK_POTI(Parameter_Gyro_P,EE_Parameter.Gyro_P,10,255); |
CHK_POTI(Parameter_Gyro_I,EE_Parameter.Gyro_I,0,255); |
CHK_POTI(Parameter_I_Faktor,EE_Parameter.I_Faktor,0,255); |
CHK_POTI(Parameter_UserParam1,EE_Parameter.UserParam1,0,255); |
CHK_POTI(Parameter_UserParam2,EE_Parameter.UserParam2,0,255); |
CHK_POTI(Parameter_UserParam3,EE_Parameter.UserParam3,0,255); |
CHK_POTI(Parameter_UserParam4,EE_Parameter.UserParam4,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
CHK_POTI(Parameter_ServoNickControl,EE_Parameter.ServoNickControl,0,255); |
Ki = (float) Parameter_I_Faktor * 0.0001; |
MAX_GAS = EE_Parameter.Gas_Max; |
MIN_GAS = EE_Parameter.Gas_Min; |
} |
//############################################################################ |
// |
void MotorRegler(void) |
//############################################################################ |
{ |
int motorwert,pd_ergebnis,h,tmp_int; |
int GierMischanteil,GasMischanteil; |
static long SummeNick=0,SummeRoll=0; |
static long sollGier = 0,tmp_long,tmp_long2; |
static int IntegralFehlerNick = 0; |
static int IntegralFehlerRoll = 0; |
static unsigned int RcLostTimer; |
static unsigned char delay_neutral = 0; |
static unsigned char delay_einschalten = 0,delay_ausschalten = 0; |
static unsigned int modell_fliegt = 0; |
static int hoehenregler = 0; |
static char TimerWerteausgabe = 0; |
static char NeueKompassRichtungMerken = 1; |
Mittelwert(); |
GRN_ON; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gaswert ermitteln |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GasMischanteil = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + 120; |
if(GasMischanteil < 0) GasMischanteil = 0; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang schlecht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay < 100) |
{ |
if(!PcZugriff) beeptime = 500; |
if(RcLostTimer) RcLostTimer--; |
else |
{ |
MotorenEin = 0; |
Notlandung = 0; |
} |
ROT_ON; |
if(modell_fliegt > 2000) // wahrscheinlich in der Luft --> langsam absenken |
{ |
GasMischanteil = EE_Parameter.NotGas; |
Notlandung = 1; |
PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] = 0; |
PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] = 0; |
PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] = 0; |
/* Poti1 = 65; |
Poti2 = 48; |
Poti3 = 0; |
*/ } |
else MotorenEin = 0; |
} |
else |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Emfang gut |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(SenderOkay > 140) |
{ |
Notlandung = 0; |
RcLostTimer = EE_Parameter.NotGasZeit * 50; |
if(GasMischanteil > 40) |
{ |
if(modell_fliegt < 0xffff) modell_fliegt++; |
} |
if((modell_fliegt < 200) || (GasMischanteil < 40)) |
{ |
SummeNick = 0; |
SummeRoll = 0; |
Mess_Integral_Gier = 0; |
Mess_Integral_Gier2 = 0; |
} |
if((GasMischanteil > 200) && MotorenEin == 0) |
{ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// auf Nullwerte kalibrieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) // Neutralwerte |
{ |
unsigned char setting; |
if(++delay_neutral > 200) // nicht sofort |
{ |
GRN_OFF; |
SetNeutral(); |
MotorenEin = 0; |
delay_neutral = 0; |
modell_fliegt = 0; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70 || abs(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]) > 70) |
{ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < 70) setting = 1; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] > 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 2; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] < 70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 3; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] <-70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > 70) setting = 4; |
if(PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] <-70 && PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < 70) setting = 5; |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], setting); // aktiven Datensatz merken |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
Piep(GetActiveParamSetNumber()); |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung aktiviert? |
{ |
if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset(); |
} |
} |
} |
else delay_neutral = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gas ist unten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(GasMischanteil < 35) |
{ |
// Starten |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -75) |
{ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Einschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(++delay_einschalten > 200) |
{ |
delay_einschalten = 200; |
modell_fliegt = 1; |
MotorenEin = 1; |
sollGier = 0; |
Mess_Integral_Gier = 0; |
Mess_Integral_Gier2 = 0; |
Mess_IntegralNick = 0; |
Mess_IntegralRoll = 0; |
Mess_IntegralNick2 = IntegralNick; |
Mess_IntegralRoll2 = IntegralRoll; |
SummeNick = 0; |
SummeRoll = 0; |
} |
} |
else delay_einschalten = 0; |
//Auf Neutralwerte setzen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Auschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 75) |
{ |
if(++delay_ausschalten > 200) // nicht sofort |
{ |
MotorenEin = 0; |
delay_ausschalten = 200; |
modell_fliegt = 0; |
} |
} |
else delay_ausschalten = 0; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// neue Werte von der Funke |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(!NewPpmData-- || Notlandung) |
{ |
ParameterZuordnung(); |
StickNick = PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] * EE_Parameter.Stick_P; |
StickNick += PPM_diff[EE_Parameter.Kanalbelegung[K_NICK]] * EE_Parameter.Stick_D; |
StickRoll = PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]] * EE_Parameter.Stick_P; |
StickRoll += PPM_diff[EE_Parameter.Kanalbelegung[K_ROLL]] * EE_Parameter.Stick_D; |
StickGier = -PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]; |
GyroFaktor = ((float)Parameter_Gyro_P + 10.0) / 256.0; |
IntegralFaktor = ((float) Parameter_Gyro_I) / 44000; |
if(EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) IntegralFaktor = 0; |
if(GyroFaktor < 0) GyroFaktor = 0; |
if(IntegralFaktor < 0) IntegralFaktor = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Bei Empfangsausfall im Flug |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(Notlandung) |
{ |
StickGier = 0; |
StickNick = 0; |
StickRoll = 0; |
GyroFaktor = 0.1; |
IntegralFaktor = 0.005; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gyro-Drift kompensieren |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#define DRIFT_FAKTOR 3 |
if(ZaehlMessungen >= 1000 / DRIFT_FAKTOR) |
{ |
IntegralFehlerNick = IntegralNick2 - IntegralNick; |
IntegralFehlerRoll = IntegralRoll2 - IntegralRoll; |
ZaehlMessungen = 0; |
if(IntegralFehlerNick > 500/DRIFT_FAKTOR) AdNeutralNick++; |
if(IntegralFehlerNick < -500/DRIFT_FAKTOR) AdNeutralNick--; |
if(IntegralFehlerRoll > 500/DRIFT_FAKTOR) AdNeutralRoll++; |
if(IntegralFehlerRoll < -500/DRIFT_FAKTOR) AdNeutralRoll--; |
//if(Mess_Integral_Gier2 > 500/DRIFT_FAKTOR) AdNeutralGier--; |
//if(Mess_Integral_Gier2 <-500/DRIFT_FAKTOR) AdNeutralGier++; |
ANALOG_OFF; // ADC ausschalten, damit die Werte sich nicht während der Berechnung ändern |
Mess_IntegralNick2 = IntegralNick; |
Mess_IntegralRoll2 = IntegralRoll; |
Mess_Integral_Gier2 = Integral_Gier; |
ANALOG_ON; // ADC einschalten |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Integrale auf ACC-Signal abgleichen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
tmp_long = (long)(IntegralNick / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccNick) / 16; |
tmp_long2 = (long)(IntegralRoll / EE_Parameter.GyroAccFaktor - (long)Mittelwert_AccRoll) / 16; |
#define AUSGLEICH 500 |
if(tmp_long > AUSGLEICH) tmp_long = AUSGLEICH; |
if(tmp_long < -AUSGLEICH) tmp_long =-AUSGLEICH; |
if(tmp_long2 > AUSGLEICH) tmp_long2 = AUSGLEICH; |
if(tmp_long2 <-AUSGLEICH) tmp_long2 =-AUSGLEICH; |
ANALOG_OFF; // ADC ausschalten, damit die Werte sich nicht während der Berechnung ändern |
Mess_IntegralNick -= tmp_long; |
Mess_IntegralRoll -= tmp_long2; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gieren wie in .66c |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(abs(StickGier) > 20) // war 35 |
{ |
if(!(EE_Parameter.GlobalConfig & CFG_KOMPASS_FIX)) NeueKompassRichtungMerken = 1; |
} |
tmp_int = (long)EE_Parameter.Gier_P * ((long)StickGier * abs(StickGier)) / 512L; // expo y = ax + bx² |
tmp_int += (EE_Parameter.Gier_P * StickGier) / 4; |
sollGier = tmp_int; |
Mess_Integral_Gier -= tmp_int; |
if(Mess_Integral_Gier > 50000) Mess_Integral_Gier = 50000; // begrenzen |
if(Mess_Integral_Gier <-50000) Mess_Integral_Gier =-50000; |
ANALOG_ON; // ADC einschalten |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Kompass |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
{ |
int w,v; |
if (!updKompass--) // Aufruf mit ~10 Hz |
{ |
KompassValue = heading_MM3(); |
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
updKompass = 50; |
} |
w = abs(IntegralNick /512); // mit zunehmender Neigung den Einfluss drosseln |
v = abs(IntegralRoll /512); |
if(v > w) w = v; // grösste Neigung ermitteln |
if(w < 35 && NeueKompassRichtungMerken) |
{ |
KompassStartwert = KompassValue; |
NeueKompassRichtungMerken = 0; |
} |
w = (w * Parameter_KompassWirkung) / 64; // auf die Wirkung normieren |
w = Parameter_KompassWirkung - w; // Wirkung ggf drosseln |
if(w > 0) |
{ |
ANALOG_OFF; // ADC ausschalten, damit die Werte sich nicht während der Berechnung ändern |
Mess_Integral_Gier += (KompassRichtung * w) / 32; // nach Kompass ausrichten |
ANALOG_ON; // ADC einschalten |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Debugwerte zuordnen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DebugOut.Sekunden++; |
if(!TimerWerteausgabe--) |
{ |
TimerWerteausgabe = 49; |
// DebugOut.Analog[0] = MesswertNick; |
// DebugOut.Analog[1] = MesswertRoll; |
// DebugOut.Analog[2] = MesswertGier; |
DebugOut.Analog[0] = IntegralNick / EE_Parameter.GyroAccFaktor; |
DebugOut.Analog[1] = IntegralRoll / EE_Parameter.GyroAccFaktor; |
DebugOut.Analog[2] = Mittelwert_AccNick; |
DebugOut.Analog[3] = Mittelwert_AccRoll; |
DebugOut.Analog[4] = MesswertGier; |
DebugOut.Analog[5] = HoehenWert; |
DebugOut.Analog[6] = (Mess_Integral_Hoch / 512); |
DebugOut.Analog[7] = GasMischanteil; |
DebugOut.Analog[8] = KompassValue; |
DebugOut.Analog[9] = MM3.x_axis; |
DebugOut.Analog[10] = MM3.y_axis; |
DebugOut.Analog[11] = MM3.z_axis; |
// DebugOut.Analog[9] = SollHoehe; |
// DebugOut.Analog[10] = Mess_Integral_Gier / 128; |
// DebugOut.Analog[11] = KompassStartwert; |
// DebugOut.Analog[10] = Parameter_Gyro_I; |
// DebugOut.Analog[10] = EE_Parameter.Gyro_I; |
// DebugOut.Analog[9] = KompassRichtung; |
// DebugOut.Analog[10] = GasMischanteil; |
// DebugOut.Analog[3] = HoeheD * 32; |
// DebugOut.Analog[4] = hoehenregler; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Drehgeschwindigkeit und -winkel zu einem Istwert zusammenfassen |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
MesswertNick = IntegralNick * IntegralFaktor + MesswertNick * GyroFaktor; |
MesswertRoll = IntegralRoll * IntegralFaktor + MesswertRoll * GyroFaktor; |
MesswertGier = MesswertGier * (GyroFaktor/2) + Integral_Gier * IntegralFaktor; |
// Maximalwerte abfangen |
#define MAX_SENSOR 2048 |
if(MesswertNick > MAX_SENSOR) MesswertNick = MAX_SENSOR; |
if(MesswertNick < -MAX_SENSOR) MesswertNick = -MAX_SENSOR; |
if(MesswertRoll > MAX_SENSOR) MesswertRoll = MAX_SENSOR; |
if(MesswertRoll < -MAX_SENSOR) MesswertRoll = -MAX_SENSOR; |
if(MesswertGier > MAX_SENSOR) MesswertGier = MAX_SENSOR; |
if(MesswertGier < -MAX_SENSOR) MesswertGier = -MAX_SENSOR; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Höhenregelung |
// Die Höhenregelung schwächt lediglich das Gas ab, erhöht es allerdings nicht |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//OCR0B = 180 - (Poti1 + 120) / 4; |
//DruckOffsetSetting = OCR0B; |
if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG)) // Höhenregelung |
{ |
int tmp_int; |
if(EE_Parameter.GlobalConfig & CFG_HOEHEN_SCHALTER) // Regler wird über Schalter gesteuert |
{ |
if(Parameter_MaxHoehe < 50) |
{ |
SollHoehe = HoehenWert - 20; // Parameter_MaxHoehe ist der PPM-Wert des Schalters |
HoehenReglerAktiv = 0; |
} |
else |
HoehenReglerAktiv = 1; |
} |
else |
{ |
SollHoehe = Parameter_MaxHoehe * EE_Parameter.Hoehe_Verstaerkung - 20; |
HoehenReglerAktiv = 1; |
} |
if(Notlandung) SollHoehe = 0; |
h = HoehenWert; |
if((h > SollHoehe) && HoehenReglerAktiv) // zu hoch --> drosseln |
{ h = ((h - SollHoehe) * (int) Parameter_Hoehe_P) / 16; // Differenz bestimmen --> P-Anteil |
h = GasMischanteil - h; // vom Gas abziehen |
h -= (HoeheD * Parameter_Luftdruck_D)/8; // D-Anteil |
tmp_int = ((Mess_Integral_Hoch / 512) * (signed long) Parameter_Hoehe_ACC_Wirkung) / 32; |
if(tmp_int > 50) tmp_int = 50; |
else if(tmp_int < -50) tmp_int = -50; |
h -= tmp_int; |
hoehenregler = (hoehenregler*15 + h) / 16; |
if(hoehenregler < EE_Parameter.Hoehe_MinGas) // nicht unter MIN |
{ |
if(GasMischanteil >= EE_Parameter.Hoehe_MinGas) hoehenregler = EE_Parameter.Hoehe_MinGas; |
if(GasMischanteil < EE_Parameter.Hoehe_MinGas) hoehenregler = GasMischanteil; |
} |
if(hoehenregler > GasMischanteil) hoehenregler = GasMischanteil; // nicht mehr als Gas |
GasMischanteil = hoehenregler; |
} |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Mischer und PI-Regler |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Gier-Anteil |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
GierMischanteil = MesswertGier - sollGier; // Regler für Gier |
if(GierMischanteil > 100) GierMischanteil = 100; |
if(GierMischanteil < -100) GierMischanteil = -100; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Nick-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffNick = Kp * (MesswertNick - (StickNick - GPS_Nick)); // Differenz bestimmen |
SummeNick += DiffNick; // I-Anteil |
if(SummeNick > 0) SummeNick-= (abs(SummeNick)/256 + 1); else SummeNick += abs(SummeNick)/256 + 1; |
if(SummeNick > 16000) SummeNick = 16000; |
if(SummeNick < -16000) SummeNick = -16000; |
pd_ergebnis = DiffNick + Ki * SummeNick; // PI-Regler für Nick |
// Motor Vorn |
motorwert = GasMischanteil + pd_ergebnis + GierMischanteil; // Mischer |
if ((motorwert < 0) | (GasMischanteil < 10)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Vorne = motorwert; |
// Motor Heck |
motorwert = GasMischanteil - pd_ergebnis + GierMischanteil; |
if ((motorwert < 0) | (GasMischanteil < 10)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Hinten = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Roll-Achse |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
DiffRoll = Kp * (MesswertRoll - (StickRoll - GPS_Roll)); // Differenz bestimmen |
SummeRoll += DiffRoll; // I-Anteil |
if(SummeRoll > 0) SummeRoll-= (abs(SummeRoll)/256 + 1); else SummeRoll += abs(SummeRoll)/256 + 1; |
if(SummeRoll > 16000) SummeRoll = 16000; |
if(SummeRoll < -16000) SummeRoll = -16000; |
pd_ergebnis = DiffRoll + Ki * SummeRoll; // PI-Regler für Roll |
// Motor Links |
motorwert = GasMischanteil + pd_ergebnis - GierMischanteil; |
if ((motorwert < 0) | (GasMischanteil < 10)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Links = motorwert; |
// Motor Rechts |
motorwert = GasMischanteil - pd_ergebnis - GierMischanteil; |
if ((motorwert < 0) | (GasMischanteil < 10)) motorwert = 0; |
else if(motorwert > MAX_GAS) motorwert = MAX_GAS; |
if (motorwert < MIN_GAS) motorwert = MIN_GAS; |
Motor_Rechts = motorwert; |
// +++++++++++++++++++++++++++++++++++++++++++++++ |
} |
/branches/MicroMag3_Nick666/v0.60/fc.h |
---|
0,0 → 1,113 |
/*####################################################################################### |
Flight Control |
#######################################################################################*/ |
#ifndef _FC_H |
#define _FC_H |
extern volatile unsigned char Timeout; |
extern unsigned char Sekunde,Minute; |
extern long IntegralNick,IntegralNick2; |
extern long IntegralRoll,IntegralRoll2; |
extern long Integral_Gier; |
extern volatile long Mess_IntegralNick,Mess_IntegralNick2; |
extern volatile long Mess_IntegralRoll,Mess_IntegralRoll2; |
extern volatile long Mess_Integral_Hoch; |
extern volatile long Mess_Integral_Gier,Mess_Integral_Gier2; |
extern int KompassValue; |
extern int KompassStartwert; |
extern int KompassRichtung; |
extern int HoehenWert; |
extern int SollHoehe; |
extern int MesswertNick,MesswertRoll,MesswertGier; |
extern int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch; |
extern volatile int AdNeutralNick,AdNeutralRoll,AdNeutralGier; |
void MotorRegler(void); |
void SendMotorData(void); |
void CalibrierMittelwert(void); |
void Mittelwert(void); |
void SetNeutral(void); |
void Piep(unsigned char Anzahl); |
void DefaultKonstanten1(void); |
void DefaultKonstanten2(void); |
unsigned char h,m,s; |
volatile unsigned char Timeout; |
int DiffNick,DiffRoll; |
extern int Poti1, Poti2, Poti3, Poti4; |
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links; |
unsigned char MotorWert[5]; |
volatile unsigned char SenderOkay; |
int StickNick,StickRoll,StickGier; |
char MotorenEin; |
extern void DefaultKonstanten(void); |
struct mk_param_struct |
{ |
unsigned char Kanalbelegung[8]; // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3 |
unsigned char GlobalConfig; // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv |
unsigned char Hoehe_MinGas; // Wert : 0-100 |
unsigned char Luftdruck_D; // Wert : 0-250 |
unsigned char MaxHoehe; // Wert : 0-32 |
unsigned char Hoehe_P; // Wert : 0-32 |
unsigned char Hoehe_Verstaerkung; // Wert : 0-50 |
unsigned char Hoehe_ACC_Wirkung; // Wert : 0-250 |
unsigned char Stick_P; // Wert : 1-6 |
unsigned char Stick_D; // Wert : 0-64 |
unsigned char Gier_P; // Wert : 1-20 |
unsigned char Gas_Min; // Wert : 0-32 |
unsigned char Gas_Max; // Wert : 33-250 |
unsigned char GyroAccFaktor; // Wert : 1-64 |
unsigned char KompassWirkung; // Wert : 0-32 |
unsigned char Gyro_P; // Wert : 10-250 |
unsigned char Gyro_I; // Wert : 0-250 |
unsigned char UnterspannungsWarnung; // Wert : 0-250 |
unsigned char NotGas; // Wert : 0-250 //Gaswert bei Empängsverlust |
unsigned char NotGasZeit; // Wert : 0-250 // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen |
unsigned char UfoAusrichtung; // X oder + Formation |
unsigned char I_Faktor; // Wert : 0-250 |
unsigned char UserParam1; // Wert : 0-250 |
unsigned char UserParam2; // Wert : 0-250 |
unsigned char UserParam3; // Wert : 0-250 |
unsigned char UserParam4; // Wert : 0-250 |
unsigned char ServoNickControl; // Wert : 0-250 // Stellung des Servos |
unsigned char ServoNickComp; // Wert : 0-250 // Einfluss Gyro/Servo |
unsigned char ServoNickMin; // Wert : 0-250 // Anschlag |
unsigned char ServoNickMax; // Wert : 0-250 // Anschlag |
unsigned char ServoNickRefresh; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
unsigned char ServoNickCompInvert; // Wert : 0-250 // Richtung Einfluss Gyro/Servo |
unsigned char Reserved[7]; |
char Name[12]; |
}; |
struct acc_neutral_struct |
{ |
volatile int X; |
volatile int Y; |
volatile float Z; |
}; |
extern struct acc_neutral_struct acc_neutral; |
extern void calib_acc(void); |
extern struct mk_param_struct EE_Parameter; |
extern unsigned char Parameter_Luftdruck_D; |
extern unsigned char Parameter_MaxHoehe; |
extern unsigned char Parameter_Hoehe_P; |
extern unsigned char Parameter_Hoehe_ACC_Wirkung; |
extern unsigned char Parameter_KompassWirkung; |
extern unsigned char Parameter_Gyro_P; |
extern unsigned char Parameter_Gyro_I; |
extern unsigned char Parameter_Gier_P; |
extern unsigned char Parameter_ServoNickControl; |
#endif //_FC_H |
/branches/MicroMag3_Nick666/v0.60/flight.pnproj |
---|
0,0 → 1,0 |
<Project name="Flight-Ctrl"><File path="uart.h"></File><File path="main.c"></File><File path="main.h"></File><File path="makefile"></File><File path="uart.c"></File><File path="printf_P.h"></File><File path="printf_P.c"></File><File path="timer0.c"></File><File path="timer0.h"></File><File path="old_macros.h"></File><File path="twimaster.c"></File><File path="version.txt"></File><File path="twimaster.h"></File><File path="rc.c"></File><File path="rc.h"></File><File path="fc.h"></File><File path="fc.c"></File><File path="menu.h"></File><File path="menu.c"></File><File path="_Settings.h"></File><File path="analog.c"></File><File path="analog.h"></File><File path="GPS.c"></File><File path="gps.h"></File><File path="license_buss.txt"></File><File path="mymath.c"></File><File path="mymath.h"></File><File path="compass.c"></File><File path="compass.h"></File><File path="COPYING"></File><File path="COPYING.LESSER"></File></Project> |
/branches/MicroMag3_Nick666/v0.60/flight.pnps |
---|
0,0 → 1,0 |
<pd><ViewState><e p="Flight-Ctrl" x="true"></e></ViewState></pd> |
/branches/MicroMag3_Nick666/v0.60/gps.h |
---|
0,0 → 1,4 |
extern signed int GPS_Nick; |
extern signed int GPS_Roll; |
extern void GPS_Neutral(void); |
extern void GPS_BerechneZielrichtung(void); |
/branches/MicroMag3_Nick666/v0.60/license_buss.txt |
---|
0,0 → 1,52 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten und nichtkommerziellen Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt und genannt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-profit use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet, our webpage (http://www.MikroKopter.de) must be |
// + clearly linked and named as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
/branches/MicroMag3_Nick666/v0.60/main.c |
---|
0,0 → 1,236 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + Nur für den privaten Gebrauch |
// + www.MikroKopter.com |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
// + dass eine Nutzung (auch auszugsweise) nur für den privaten und nicht-kommerziellen Gebrauch zulässig ist. |
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
// + bzgl. der Nutzungsbedingungen aufzunehmen. |
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
// + Verkauf von Luftbildaufnahmen, usw. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
// + auf anderen Webseiten oder Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
// + eindeutig als Ursprung verlinkt und genannt werden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
// + Benutzung auf eigene Gefahr |
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
// + mit unserer Zustimmung zulässig |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
// + this list of conditions and the following disclaimer. |
// + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
// + from this software without specific prior written permission. |
// + * The use of this project (hardware, software, binary files, sources and documentation) is only permittet |
// + for non-commercial use (directly or indirectly) |
// + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
// + with our written permission |
// + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
// + clearly linked as origin |
// + * porting to systems other than hardware from www.mikrokopter.de is not allowed |
// + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
// + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
// + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
// + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
// + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
// + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
// + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
// + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
// + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
// + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// + POSSIBILITY OF SUCH DAMAGE. |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
// Reservierung im EEPROM |
unsigned char EEPromArray[10] EEMEM; |
struct mk_param_struct EEParameterArray[5] EEMEM; |
// -- Parametersatz aus EEPROM lesen --- |
// number [0..5] |
void ReadParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if (number > 5) number = 5; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_read_block(buffer, &EEParameterArray[number], length); |
} |
// -- Parametersatz ins EEPROM schreiben --- |
// number [0..5] |
void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length) |
{ |
if (number > 5) number = 5; |
number--; // Auf Index 0 bis 4 anpassen |
eeprom_write_block(buffer, &EEParameterArray[number], length); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], number); // diesen Parametersatz als aktuell merken |
} |
unsigned char GetActiveParamSetNumber(void) |
{ |
return(eeprom_read_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET])); |
} |
//############################################################################ |
//Hauptprogramm |
int main (void) |
//############################################################################ |
{ |
unsigned int timer; |
unsigned int timer2 = 0; |
DDRC = 0x01; // SCL |
PORTC = 0xff; // Pullup SDA |
DDRB = 0x1B; // LEDs und Druckoffset |
PORTB |= (1<<PB0); // LED_Rot |
DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
DDRD |= (1<<PD7); // J7 |
PORTD = 0xF7; |
MCUSR &=~(1<<WDRF); |
WDTCSR |= (1<<WDCE)|(1<<WDE); |
WDTCSR = 0; |
beeptime = 1000; |
StickGier = 0; PPM_in[K_GAS] = 0;StickRoll = 0; StickNick = 0; |
ROT_OFF; |
Timer_Init(); |
UART_Init(); |
rc_sum_init(); |
ADC_Init(); |
i2c_init(); |
init_MM3(); |
sei(); |
VersionInfo.Hauptversion = VERSION_HAUPTVERSION; |
VersionInfo.Nebenversion = VERSION_NEBENVERSION; |
VersionInfo.PCKompatibel = VERSION_KOMPATIBEL; |
printf("\n\rFlightControl V%d.%d ", VERSION_HAUPTVERSION, VERSION_NEBENVERSION); |
printf("\n\r=============================="); |
GRN_ON; |
if(eeprom_read_byte(&EEPromArray[EEPROM_ADR_VALID]) != 10) // seit V 0.60 |
{ |
printf("\n\rInit. EEPROM: Generiere Default-Parameter..."); |
DefaultKonstanten1(); |
for (unsigned char i=0;i<6;i++) |
{ |
if(i==2) DefaultKonstanten2(); |
WriteParameterSet(i, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
} |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], 1); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], 10); |
calib_acc(); |
} |
ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
printf("\n\rBenutze Parametersatz %d", GetActiveParamSetNumber()); |
//kurze Wartezeit (sonst reagiert die "Kompass kalibrieren?"-Abfrage nicht |
timer = SetDelay(500); |
while(!CheckDelay(timer)); |
//Kompass kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 100) |
{ |
printf("\n\rKalibriere Kompass"); |
calib_MM3(); |
} |
//Neutrallage kalibrieren? |
if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] < -100) |
{ |
printf("\n\rKalibriere Neutrallage"); |
calib_acc(); |
} |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
printf("\n\rAbgleich Luftdrucksensor.."); |
timer = SetDelay(2500); |
SucheLuftruckOffset(); |
while (!CheckDelay(timer)); |
printf("OK\n\r"); |
} |
SetNeutral(); |
ROT_OFF; |
beeptime = 2000; |
DebugIn.Analog[1] = 1000; |
DebugIn.Digital[0] = 0x55; |
printf("\n\rSteuerung: "); |
if (EE_Parameter.GlobalConfig & CFG_HEADING_HOLD) printf("HeadingHold"); |
else printf("Neutral"); |
printf("\n\n\r"); |
LcdClear(); |
while (1) |
{ |
if (UpdateMotor) // ReglerIntervall |
{ |
UpdateMotor=0; |
MotorRegler(); |
SendMotorData(); |
ROT_OFF; |
if(PcZugriff) PcZugriff--; |
if(SenderOkay) SenderOkay--; |
if (UBat < EE_Parameter.UnterspannungsWarnung) |
{ |
beeptime = 2000; |
} |
if(!Timeout) |
{ |
i2c_init(); |
} |
else |
{ |
ROT_OFF; |
} |
} |
if(SIO_DEBUG) |
{ |
DatenUebertragung(); |
BearbeiteRxDaten(); |
} |
else BearbeiteRxDaten(); |
if(CheckDelay(timer2)) |
{ |
if(MotorenEin) PORTC ^= 0x10; else PORTC &= ~0x10; |
timer = SetDelay(500); |
} |
} |
return (1); |
} |
/branches/MicroMag3_Nick666/v0.60/main.h |
---|
0,0 → 1,87 |
#ifndef _MAIN_H |
#define _MAIN_H |
//Hier die Quarz Frequenz einstellen |
#if defined (__AVR_ATmega32__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
#endif |
#if defined (__AVR_ATmega644__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
//#define SYSCLK 16000000L //Quarz Frequenz in Hz |
#endif |
// neue Hardware |
#define ROT_OFF PORTB &=~(1<<PB0) |
#define ROT_ON PORTB |= (1<<PB0) |
#define ROT_FLASH PORTB ^= (1<<PB0) |
#define GRN_OFF PORTB &=~(1<<PB1) |
#define GRN_ON PORTB |= (1<<PB1) |
#define GRN_FLASH PORTB ^= (1<<PB1) |
//#ifndef F_CPU |
//#error ################## F_CPU nicht definiert oder ungültig ############# |
//#endif |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//#define ANZ_MITTELWERT 4 |
#define EEPROM_ADR_VALID 1 |
#define EEPROM_ADR_ACTIVE_SET 2 |
#define EEPROM_ADR_LAST_OFFSET 3 |
#define CFG_HOEHENREGELUNG 0x01 |
#define CFG_HOEHEN_SCHALTER 0x02 |
#define CFG_HEADING_HOLD 0x04 |
#define CFG_KOMPASS_AKTIV 0x08 |
#define CFG_KOMPASS_FIX 0x10 |
#define CFG_GPS_AKTIV 0x20 |
extern void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length); |
extern void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length); |
extern unsigned char GetActiveParamSetNumber(void); |
extern unsigned char EEPromArray[]; |
#include <stdlib.h> |
#include <string.h> |
#include <avr/io.h> |
#include <avr/pgmspace.h> |
#include <avr/interrupt.h> |
#include <avr/eeprom.h> |
#include <avr/boot.h> |
#include <avr/wdt.h> |
#include "old_macros.h" |
#include "_settings.h" |
#include "printf_P.h" |
#include "compass.h" |
#include "timer0.h" |
#include "uart.h" |
#include "analog.h" |
#include "twimaster.h" |
#include "menu.h" |
#include "rc.h" |
#include "fc.h" |
#include "gps.h" |
#include "mymath.h" |
#ifndef EEMEM |
#define EEMEM __attribute__ ((section (".eeprom"))) |
#endif |
#define DEBUG_DISPLAY_INTERVALL 123 // in ms |
#define DELAY_US(x) ((unsigned int)( (x) * 1e-6 * F_CPU )) |
#endif //_MAIN_H |
/branches/MicroMag3_Nick666/v0.60/makefile |
---|
0,0 → 1,393 |
#-------------------------------------------------------------------- |
# MCU name |
MCU = atmega644 |
F_CPU = 20000000 |
#------------------------------------------------------------------- |
HAUPT_VERSION = 0 |
NEBEN_VERSION = 60 |
VERSION_KOMPATIBEL = 4 # PC-Kompatibilität |
#------------------------------------------------------------------- |
ifeq ($(MCU), atmega32) |
# FUSE_SETTINGS= -u -U lfuse:w:0xff:m -U hfuse:w:0xcf:m |
HEX_NAME = MEGA32 |
endif |
ifeq ($(MCU), atmega644) |
FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
#FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
# -u bei neuen Controllern wieder einspielen |
HEX_NAME = MEGA644 |
endif |
ifeq ($(F_CPU), 16000000) |
QUARZ = 16MHZ |
endif |
ifeq ($(F_CPU), 20000000) |
QUARZ = 20MHZ |
endif |
# Output format. (can be srec, ihex, binary) |
FORMAT = ihex |
# Target file name (without extension). |
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)_MM3 |
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization. |
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
OPT = s |
########################################################################################################## |
# List C source files here. (C dependencies are automatically generated.) |
SRC = main.c uart.c printf_P.c timer0.c analog.c menu.c |
SRC += twimaster.c rc.c fc.c GPS.c |
SRC += compass.c mymath.c |
########################################################################################################## |
# List Assembler source files here. |
# Make them always end in a capital .S. Files ending in a lowercase .s |
# will not be considered source files but generated files (assembler |
# output from the compiler), and will be deleted upon "make clean"! |
# Even though the DOS/Win* filesystem matches both .s and .S the same, |
# it will preserve the spelling of the filenames, and gcc itself does |
# care about how the name is spelled on its command-line. |
ASRC = |
# List any extra directories to look for include files here. |
# Each directory must be seperated by a space. |
EXTRAINCDIRS = |
# Optional compiler flags. |
# -g: generate debugging information (for GDB, or for COFF conversion) |
# -O*: optimization level |
# -f...: tuning, see gcc manual and avr-libc documentation |
# -Wall...: warning level |
# -Wa,...: tell GCC to pass this to the assembler. |
# -ahlms: create assembler listing |
CFLAGS = -O$(OPT) \ |
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \ |
-Wall -Wstrict-prototypes \ |
-mtiny-stack -mcall-prologues \ |
#-Wno-pointer-sign \ |
-Wa,-adhlns=$(<:.c=.lst) \ |
$(patsubst %,-I%,$(EXTRAINCDIRS)) |
# Set a "language standard" compiler flag. |
# Unremark just one line below to set the language standard to use. |
# gnu99 = C99 + GNU extensions. See GCC manual for more information. |
#CFLAGS += -std=c89 |
#CFLAGS += -std=gnu89 |
#CFLAGS += -std=c99 |
CFLAGS += -std=gnu99 |
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) -DVERSION_KOMPATIBEL=$(VERSION_KOMPATIBEL) |
# Optional assembler flags. |
# -Wa,...: tell GCC to pass this to the assembler. |
# -ahlms: create listing |
# -gstabs: have the assembler create line number information; note that |
# for use in COFF files, additional information about filenames |
# and function names needs to be present in the assembler source |
# files -- see avr-libc docs [FIXME: not yet described there] |
ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs |
# Optional linker flags. |
# -Wl,...: tell GCC to pass this to linker. |
# -Map: create map file |
# --cref: add cross reference to map file |
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref |
# Additional libraries |
# Minimalistic printf version |
#LDFLAGS += -Wl,-u,vfprintf -lprintf_min |
# Floating point printf version (requires -lm below) |
#LDFLAGS += -Wl,-u,vfprintf -lprintf_flt |
# -lm = math library |
LDFLAGS += -lm |
##LDFLAGS += -T./linkerfile/avr5.x |
# Programming support using avrdude. Settings and variables. |
# Programming hardware: alf avr910 avrisp bascom bsd |
# dt006 pavr picoweb pony-stk200 sp12 stk200 stk500 |
# |
# Type: avrdude -c ? |
# to get a full listing. |
# |
#AVRDUDE_PROGRAMMER = stk200 |
AVRDUDE_PROGRAMMER = dt006 |
#AVRDUDE_PROGRAMMER = ponyser |
#falls Ponyser ausgewählt wird, muss sich unsere avrdude-Configdatei im Bin-Verzeichnis des Compilers befinden |
#AVRDUDE_PORT = com1 # programmer connected to serial device |
AVRDUDE_PORT = lpt1 # programmer connected to parallel port |
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS) |
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) |
# Uncomment the following if you want avrdude's erase cycle counter. |
# Note that this counter needs to be initialized first using -Yn, |
# see avrdude manual. |
#AVRDUDE_ERASE += -y |
# Uncomment the following if you do /not/ wish a verification to be |
# performed after programming the device. |
AVRDUDE_FLAGS += -V |
# Increase verbosity level. Please use this when submitting bug |
# reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> |
# to submit bug reports. |
#AVRDUDE_FLAGS += -v -v |
# --------------------------------------------------------------------------- |
# Define directories, if needed. |
DIRAVR = c:/winavr |
DIRAVRBIN = $(DIRAVR)/bin |
DIRAVRUTILS = $(DIRAVR)/utils/bin |
DIRINC = . |
DIRLIB = $(DIRAVR)/avr/lib |
# Define programs and commands. |
SHELL = sh |
CC = avr-gcc |
OBJCOPY = avr-objcopy |
OBJDUMP = avr-objdump |
SIZE = avr-size |
# Programming support using avrdude. |
AVRDUDE = avrdude |
REMOVE = rm -f |
COPY = cp |
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex |
ELFSIZE = $(SIZE) -A $(TARGET).elf |
# Define Messages |
# English |
MSG_ERRORS_NONE = Errors: none |
MSG_BEGIN = -------- begin -------- |
MSG_END = -------- end -------- |
MSG_SIZE_BEFORE = Size before: |
MSG_SIZE_AFTER = Size after: |
MSG_COFF = Converting to AVR COFF: |
MSG_EXTENDED_COFF = Converting to AVR Extended COFF: |
MSG_FLASH = Creating load file for Flash: |
MSG_EEPROM = Creating load file for EEPROM: |
MSG_EXTENDED_LISTING = Creating Extended Listing: |
MSG_SYMBOL_TABLE = Creating Symbol Table: |
MSG_LINKING = Linking: |
MSG_COMPILING = Compiling: |
MSG_ASSEMBLING = Assembling: |
MSG_CLEANING = Cleaning project: |
# Define all object files. |
OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) |
# Define all listing files. |
LST = $(ASRC:.S=.lst) $(SRC:.c=.lst) |
# Combine all necessary flags and optional flags. |
# Add target processor to flags. |
#ALL_CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I. $(CFLAGS) |
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) |
ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS) |
# Default target. |
all: begin gccversion sizebefore $(TARGET).elf $(TARGET).hex $(TARGET).eep \ |
$(TARGET).lss $(TARGET).sym sizeafter finished end |
# Eye candy. |
# AVR Studio 3.x does not check make's exit code but relies on |
# the following magic strings to be generated by the compile job. |
begin: |
@echo |
@echo $(MSG_BEGIN) |
finished: |
@echo $(MSG_ERRORS_NONE) |
end: |
@echo $(MSG_END) |
@echo |
# Display size of file. |
sizebefore: |
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi |
sizeafter: |
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi |
# Display compiler version information. |
gccversion : |
@$(CC) --version |
# Convert ELF to COFF for use in debugging / simulating in |
# AVR Studio or VMLAB. |
COFFCONVERT=$(OBJCOPY) --debugging \ |
--change-section-address .data-0x800000 \ |
--change-section-address .bss-0x800000 \ |
--change-section-address .noinit-0x800000 \ |
--change-section-address .eeprom-0x810000 |
coff: $(TARGET).elf |
@echo |
@echo $(MSG_COFF) $(TARGET).cof |
$(COFFCONVERT) -O coff-avr $< $(TARGET).cof |
extcoff: $(TARGET).elf |
@echo |
@echo $(MSG_EXTENDED_COFF) $(TARGET).cof |
$(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof |
# Program the device. |
program: $(TARGET).hex $(TARGET).eep |
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) |
# Create final output files (.hex, .eep) from ELF output file. |
%.hex: %.elf |
@echo |
@echo $(MSG_FLASH) $@ |
$(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@ |
%.eep: %.elf |
@echo |
@echo $(MSG_EEPROM) $@ |
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \ |
--change-section-lma .eeprom=0 -O $(FORMAT) $< $@ |
# Create extended listing file from ELF output file. |
%.lss: %.elf |
@echo |
@echo $(MSG_EXTENDED_LISTING) $@ |
$(OBJDUMP) -h -S $< > $@ |
# Create a symbol table from ELF output file. |
%.sym: %.elf |
@echo |
@echo $(MSG_SYMBOL_TABLE) $@ |
avr-nm -n $< > $@ |
# Link: create ELF output file from object files. |
.SECONDARY : $(TARGET).elf |
.PRECIOUS : $(OBJ) |
%.elf: $(OBJ) |
@echo |
@echo $(MSG_LINKING) $@ |
$(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS) |
# Compile: create object files from C source files. |
%.o : %.c |
@echo |
@echo $(MSG_COMPILING) $< |
$(CC) -c $(ALL_CFLAGS) $< -o $@ |
# Compile: create assembler files from C source files. |
%.s : %.c |
$(CC) -S $(ALL_CFLAGS) $< -o $@ |
# Assemble: create object files from assembler source files. |
%.o : %.S |
@echo |
@echo $(MSG_ASSEMBLING) $< |
$(CC) -c $(ALL_ASFLAGS) $< -o $@ |
# Target: clean project. |
clean: begin clean_list finished end |
clean_list : |
@echo |
@echo $(MSG_CLEANING) |
# $(REMOVE) $(TARGET).hex |
$(REMOVE) $(TARGET).eep |
$(REMOVE) $(TARGET).obj |
$(REMOVE) $(TARGET).cof |
$(REMOVE) $(TARGET).elf |
$(REMOVE) $(TARGET).map |
$(REMOVE) $(TARGET).obj |
$(REMOVE) $(TARGET).a90 |
$(REMOVE) $(TARGET).sym |
$(REMOVE) $(TARGET).lnk |
$(REMOVE) $(TARGET).lss |
$(REMOVE) $(OBJ) |
$(REMOVE) $(LST) |
$(REMOVE) $(SRC:.c=.s) |
$(REMOVE) $(SRC:.c=.d) |
# Automatically generate C source code dependencies. |
# (Code originally taken from the GNU make user manual and modified |
# (See README.txt Credits).) |
# |
# Note that this will work with sh (bash) and sed that is shipped with WinAVR |
# (see the SHELL variable defined above). |
# This may not work with other shells or other seds. |
# |
%.d: %.c |
set -e; $(CC) -MM $(ALL_CFLAGS) $< \ |
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > $@; \ |
[ -s $@ ] || rm -f $@ |
# Remove the '-' if you want to see the dependency files generated. |
-include $(SRC:.c=.d) |
# Listing of phony targets. |
.PHONY : all begin finish end sizebefore sizeafter gccversion coff extcoff \ |
clean clean_list program |
/branches/MicroMag3_Nick666/v0.60/math.d |
---|
0,0 → 1,2 |
math.o math.d : math.c main.h old_macros.h _settings.h printf_P.h compass.h \ |
timer0.h uart.h analog.h twimaster.h menu.h rc.h fc.h gps.h math.h |
/branches/MicroMag3_Nick666/v0.60/menu.c |
---|
0,0 → 1,129 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
unsigned int TestInt = 0; |
#define ARRAYGROESSE 10 |
unsigned char Array[ARRAYGROESSE] = {1,2,3,4,5,6,7,8,9,10}; |
char DisplayBuff[80] = "Hallo Welt"; |
unsigned char DispPtr = 0; |
unsigned char RemoteTasten = 0; |
#define KEY1 0x01 |
#define KEY2 0x02 |
#define KEY3 0x04 |
#define KEY4 0x08 |
#define KEY5 0x10 |
void LcdClear(void) |
{ |
unsigned char i; |
for(i=0;i<80;i++) DisplayBuff[i] = ' '; |
} |
void Menu(void) |
{ |
static unsigned char MaxMenue = 12,MenuePunkt=0; |
if(RemoteTasten & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue; LcdClear(); } |
if(RemoteTasten & KEY2) { MenuePunkt++; LcdClear(); } |
if((RemoteTasten & KEY1) && (RemoteTasten & KEY2)) MenuePunkt = 0; |
LCD_printfxy(17,0,"[%i]",MenuePunkt); |
switch(MenuePunkt) |
{ |
case 0: |
LCD_printfxy(0,0,"++ MikroKopter ++"); |
LCD_printfxy(0,1,"V%d.%d",VERSION_HAUPTVERSION, VERSION_NEBENVERSION); |
LCD_printfxy(0,2,"Setting: %d ",GetActiveParamSetNumber()); |
LCD_printfxy(0,3,"(c) Holger Buss"); |
// if(RemoteTasten & KEY3) TestInt--; |
// if(RemoteTasten & KEY4) TestInt++; |
break; |
case 1: |
if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
{ |
LCD_printfxy(0,0,"Hoehe: %5i",HoehenWert); |
LCD_printfxy(0,1,"SollHoehe: %5i",SollHoehe); |
LCD_printfxy(0,2,"Luftdruck: %5i",MessLuftdruck); |
LCD_printfxy(0,3,"Off : %5i",DruckOffsetSetting); |
} |
else |
{ |
LCD_printfxy(0,1,"Keine "); |
LCD_printfxy(0,2,"Höhenregelung"); |
} |
break; |
case 2: |
LCD_printfxy(0,0,"akt. Lage"); |
LCD_printfxy(0,1,"Nick: %5i",IntegralNick/1024); |
LCD_printfxy(0,2,"Roll: %5i",IntegralRoll/1024); |
LCD_printfxy(0,3,"Kompass: %5i",KompassValue); |
break; |
case 3: |
LCD_printfxy(0,0,"K1:%4i K2:%4i ",PPM_in[1],PPM_in[2]); |
LCD_printfxy(0,1,"K3:%4i K4:%4i ",PPM_in[3],PPM_in[4]); |
LCD_printfxy(0,2,"K5:%4i K6:%4i ",PPM_in[5],PPM_in[6]); |
LCD_printfxy(0,3,"K7:%4i Kanäle ",PPM_in[7]); |
break; |
case 4: |
LCD_printfxy(0,0,"Ni:%4i Ro:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_NICK]],PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]); |
LCD_printfxy(0,1,"Gs:%4i Gi:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_GAS]],PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]); |
LCD_printfxy(0,2,"P1:%4i P2:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI1]],PPM_in[EE_Parameter.Kanalbelegung[K_POTI2]]); |
LCD_printfxy(0,3,"P3:%4i Kanäle ",PPM_in[EE_Parameter.Kanalbelegung[K_POTI3]]); |
break; |
case 5: |
LCD_printfxy(0,0,"Gyro - Sensor"); |
LCD_printfxy(0,1,"Nick %4i (%3i)",AccumulateNick / MessanzahlNick, AdNeutralNick); |
LCD_printfxy(0,2,"Roll %4i (%3i)",AccumulateRoll / MessanzahlRoll, AdNeutralRoll); |
LCD_printfxy(0,3,"Gier %4i (%3i)",AccumulateGier / MessanzahlGier, AdNeutralGier); |
break; |
case 6: |
LCD_printfxy(0,0,"ACC - Sensor"); |
LCD_printfxy(0,1,"Nick %4i (%3i)",accumulate_AccNick / messanzahl_AccNick,acc_neutral.X); |
LCD_printfxy(0,2,"Roll %4i (%3i)",accumulate_AccRoll / messanzahl_AccRoll,acc_neutral.Y); |
LCD_printfxy(0,3,"Hoch %4i (%3i)",Aktuell_az/*accumulate_AccHoch / messanzahl_AccHoch*/,(int)acc_neutral.Z); |
break; |
case 7: |
LCD_printfxy(0,1,"Spannung: %5i",UBat); |
LCD_printfxy(0,2,"Empf.Pegel:%5i",SenderOkay); |
break; |
case 8: |
LCD_printfxy(0,0,"Kompass "); |
LCD_printfxy(0,1,"Richtung: %5i",KompassRichtung); |
LCD_printfxy(0,2,"Messwert: %5i",KompassValue); |
LCD_printfxy(0,3,"Start: %5i",KompassStartwert); |
break; |
case 9: |
LCD_printfxy(0,0,"Poti1: %3i",Poti1); |
LCD_printfxy(0,1,"Poti2: %3i",Poti2); |
LCD_printfxy(0,2,"Poti3: %3i",Poti3); |
LCD_printfxy(0,3,"Poti4: %3i",Poti4); |
break; |
case 10: |
LCD_printfxy(0,0,"Servo " ); |
LCD_printfxy(0,1,"Setpoint %3i",Parameter_ServoNickControl); |
LCD_printfxy(0,2,"Stellung: %3i",ServoValue); |
LCD_printfxy(0,3,"Range:%3i-%3i",EE_Parameter.ServoNickMin,EE_Parameter.ServoNickMax); |
break; |
case 11: |
LCD_printfxy(0,0,"MM3 Off"); |
LCD_printfxy(0,1,"X_Offset: %3i",MM3_calib.X_off); |
LCD_printfxy(0,2,"Y_Offset: %3i",MM3_calib.Y_off); |
LCD_printfxy(0,3,"Z_Offset: %3i",MM3_calib.Z_off); |
break; |
case 12: |
LCD_printfxy(0,0,"MM3 Range"); |
LCD_printfxy(0,1,"X_Range: %4i",MM3_calib.X_range); |
LCD_printfxy(0,2,"Y_Range: %4i",MM3_calib.Y_range); |
LCD_printfxy(0,3,"Z_Range: %4i",MM3_calib.Z_range); |
break; |
default: MaxMenue = MenuePunkt - 1; |
MenuePunkt = 0; |
break; |
} |
RemoteTasten = 0; |
} |
/branches/MicroMag3_Nick666/v0.60/menu.h |
---|
0,0 → 1,7 |
void LcdClear(void); |
extern void Menu(void); |
extern char DisplayBuff[80]; |
extern unsigned char DispPtr; |
unsigned char RemoteTasten; |
/branches/MicroMag3_Nick666/v0.60/mymath.c |
---|
0,0 → 1,110 |
/* |
Copyright 2007, Niklas Nold |
This program (files math.c and math.h) is free software; you can redistribute it and/or modify |
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; |
either version 3 of the License, or (at your option) any later version. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
Please note: All the other files for the project "Mikrokopter" by H. Buss are under the license (license_buss.txt) published by www.mikrokopter.de |
*/ |
#include "main.h" |
const uint8_t pgm_atan[346] PROGMEM = {0,1,2,3,4,4,5,6,7,8,9,10,11,11,12,13,14,15,16,17,17,18,19,20,21,21,22,23,24,24,25,26,27,27,28,29,29,30,31,31,32,33,33,34,35,35,36,36,37,37,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,45,46,46,47,47,48,48,48,49,49,50,50,50,51,51,51,52,52,52,53,53,53,54,54,54,55,55,55,55,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,60,61,61,61,61,62,62,62,62,62,63,63,63,63,63,63,64,64,64,64,64,64,65,65,65,65,65,65,66,66,66,66,66,66,66,67,67,67,67,67,67,67,68,68,68,68,68,68,68,68,69,69,69,69,69,69,69,69,69,70,70,70,70,70,70,70,70,70,71,71,71,71,71,71,71,71,71,71,71,72,72,72,72,72,72,72,72,72,72,72,73,73,73,73,73,73,73,73,73,73,73,73,73,73,74,74,74,74,74,74,74,74,74,74,74,74,74,74,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79}; |
//############################################################################ |
// Arkustangens2 im Gradmaß |
signed int atan2_i(signed int x, signed int y) |
//############################################################################ |
{ |
int i,angle; |
int8_t m; |
if (!x && !y) return 0; //atan2 = 0 für x und y = 0 |
if (y < 0) m=-1; |
else m=1; |
if (!x) return (90*m); // atan2 = 90° für x = 0 |
i = abs(((long)y*64) / x); // Berechne i für die Lookup table (Schrittweite atan(x) ist 0,015625 -> y *64) |
if (i<346) angle = pgm_read_byte(&pgm_atan[i]); // Lookup für 1° bis 79° |
else if (i>7334) angle = 90; // Grenzwert ist 90° |
else if (i>2444) angle = 89; // 89° bis 80° über Wertebereiche |
else if (i>1465) angle = 88; |
else if (i>1046) angle = 87; |
else if (i>813) angle = 86; |
else if (i>664) angle = 85; |
else if (i>561) angle = 84; |
else if (i>486) angle = 83; |
else if (i>428) angle = 82; |
else if (i>382) angle = 81; |
else angle = 80; // (i>345) |
if (x > 0) return (angle*m); // Quadrant I und IV |
else if ((x < 0) && (m > 0)) return (-angle + 180); // Quadrant II |
else return (angle - 180); // x < 0 && y < 0 Quadrant III |
} |
const uint16_t pgm_sinus_i[91] PROGMEM = {0,18,36,54,71,89,107,125,143,160,178,195,213,230,248,265,282,299,316,333,350,367,384,400,416,433,449,465,481,496,512,527,543,558,573,587,602,616,630,644,658,672,685,698,711,724,737,749,761,773,784,796,807,818,828,839,849,859,868,878,887,896,904,912,920,928,935,943,949,956,962,968,974,979,984,989,994,998,1002,1005,1008,1011,1014,1016,1018,1020,1022,1023,1023,1024,1024}; |
//############################################################################ |
// Kosinusfunktion im Gradmaß |
signed int cos_i(signed int winkel) |
//############################################################################ |
{ |
return (sin_i(90-winkel)); |
} |
//############################################################################ |
// Sinusfunktion im Gradmaß |
signed int sin_i(signed int winkel) |
//############################################################################ |
{ |
short int m,n; |
signed int sinus; |
if (winkel < 0) |
{ |
m = -1; |
winkel = abs(winkel); |
} |
else m = +1; |
// Quadranten auswerten |
if (winkel <= 90) n=1; |
else if ((winkel > 90) && (winkel <= 180)) {winkel = 180 - winkel; n = 1;} |
else if ((winkel > 180) && (winkel <= 270)) {winkel = winkel - 180; n = -1;} |
else {winkel = 360 - winkel; n = -1;} //if ((winkel > 270) && (winkel <= 360)) |
sinus = pgm_read_word(&pgm_sinus_i[winkel]); |
return (sinus*m*n); |
} |
/* |
const uint8_t pgm_asin[201] PROGMEM = {0,0,1,1,1,1,2,2,2,3,3,3,3,4,4,4,5,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9,10,10,10,11,11,11,12,12,12,12,13,13,13,14,14,14,14,15,15,15,16,16,16,17,17,17,17,18,18,18,19,19,19,20,20,20,20,21,21,21,22,22,22,23,23,23,24,24,24,25,25,25,25,26,26,26,27,27,27,28,28,28,29,29,29,30,30,30,31,31,31,32,32,32,33,33,33,34,34,34,35,35,35,36,36,37,37,37,38,38,38,39,39,39,40,40,41,41,41,42,42,42,43,43,44,44,44,45,45,46,46,46,47,47,48,48,49,49,49,50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57,58,58,59,59,60,60,61,62,62,63,64,64,65,66,66,67,68,68,69,70,71,72,73,74,75,76,77,79,80,82,84,90}; |
//############################################################################ |
// Akurssinusfunktion im Gradmaß |
int8_t asin_i(signed int i) |
//############################################################################ |
{ |
signed char m; |
if (i < 0) {m=-1;i=abs(i);} |
else m=1; |
i %= 200; |
return (pgm_read_byte(&pgm_asin[i]) * m); |
} |
*/ |
/branches/MicroMag3_Nick666/v0.60/mymath.h |
---|
0,0 → 1,8 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
extern int atan2_i(signed int x, signed int y); |
extern signed int cos_i(signed int winkel); |
extern signed int sin_i(signed int winkel); |
//extern int8_t asin_i(signed int i); |
/branches/MicroMag3_Nick666/v0.60/old_macros.h |
---|
0,0 → 1,47 |
/* |
For backwards compatibility only. |
Ingo Busker ingo@mikrocontroller.com |
*/ |
#ifndef cbi |
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) |
#endif |
#ifndef sbi |
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) |
#endif |
#ifndef inb |
#define inb(sfr) _SFR_BYTE(sfr) |
#endif |
#ifndef outb |
#define outb(sfr, val) (_SFR_BYTE(sfr) = (val)) |
#endif |
#ifndef inw |
#define inw(sfr) _SFR_WORD(sfr) |
#endif |
#ifndef outw |
#define outw(sfr, val) (_SFR_WORD(sfr) = (val)) |
#endif |
#ifndef outp |
#define outp(val, sfr) outb(sfr, val) |
#endif |
#ifndef inp |
#define inp(sfr) inb(sfr) |
#endif |
#ifndef BV |
#define BV(bit) _BV(bit) |
#endif |
#ifndef PRG_RDB |
#define PRG_RDB pgm_read_byte |
#endif |
/branches/MicroMag3_Nick666/v0.60/printf_P.c |
---|
0,0 → 1,480 |
// Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist nicht von der Lizenz für den MikroKopter-Teil unterstellt |
/* |
Copyright (C) 1993 Free Software Foundation |
This file is part of the GNU IO Library. This library is free |
software; you can redistribute it and/or modify it under the |
terms of the GNU General Public License as published by the |
Free Software Foundation; either version 2, or (at your option) |
any later version. |
This library is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this library; see the file COPYING. If not, write to the Free |
Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
As a special exception, if you link this library with files |
compiled with a GNU compiler to produce an executable, this does not cause |
the resulting executable to be covered by the GNU General Public License. |
This exception does not however invalidate any other reasons why |
the executable file might be covered by the GNU General Public License. */ |
/* |
* Copyright (c) 1990 Regents of the University of California. |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* are met: |
* 1. Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* 2. Redistributions in binary form must reproduce the above copyright |
* notice, this list of conditions and the following disclaimer in the |
* documentation and/or other materials provided with the distribution. |
* 3. [rescinded 22 July 1999] |
* 4. Neither the name of the University nor the names of its contributors |
* may be used to endorse or promote products derived from this software |
* without specific prior written permission. |
* |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* SUCH DAMAGE. |
*/ |
/****************************************************************************** |
This file is a patched version of printf called _printf_P |
It is made to work with avr-gcc for Atmel AVR MCUs. |
There are some differences from standard printf: |
1. There is no floating point support (with fp the code is about 8K!) |
2. Return type is void |
3. Format string must be in program memory (by using macro printf this is |
done automaticaly) |
4. %n is not implemented (just remove the comment around it if you need it) |
5. If LIGHTPRINTF is defined, the code is about 550 bytes smaller and the |
folowing specifiers are disabled : |
space # * . - + p s o O |
6. A function void uart_sendchar(char c) is used for output. The UART must |
be initialized before using printf. |
Alexander Popov |
sasho@vip.orbitel.bg |
******************************************************************************/ |
/* |
* Actual printf innards. |
* |
* This code is large and complicated... |
*/ |
#include <string.h> |
#ifdef __STDC__ |
#include <stdarg.h> |
#else |
#include <varargs.h> |
#endif |
#include "main.h" |
//#define LIGHTPRINTF |
char PrintZiel; |
char Putchar(char zeichen) |
{ |
if(PrintZiel == OUT_LCD) { DisplayBuff[DispPtr++] = zeichen; return(1);} |
else return(uart_putchar(zeichen)); |
} |
void PRINT(const char * ptr, unsigned int len) |
{ |
for(;len;len--) Putchar(*ptr++); |
} |
void PRINTP(const char * ptr, unsigned int len) |
{ |
for(;len;len--) Putchar(pgm_read_byte(ptr++)); |
} |
void PAD_SP(signed char howmany) |
{ |
for(;howmany>0;howmany--) Putchar(' '); |
} |
void PAD_0(signed char howmany) |
{ |
for(;howmany>0;howmany--) Putchar('0'); |
} |
#define BUF 40 |
/* |
* Macros for converting digits to letters and vice versa |
*/ |
#define to_digit(c) ((c) - '0') |
#define is_digit(c) ((c)<='9' && (c)>='0') |
#define to_char(n) ((n) + '0') |
/* |
* Flags used during conversion. |
*/ |
#define LONGINT 0x01 /* long integer */ |
#define LONGDBL 0x02 /* long double; unimplemented */ |
#define SHORTINT 0x04 /* short integer */ |
#define ALT 0x08 /* alternate form */ |
#define LADJUST 0x10 /* left adjustment */ |
#define ZEROPAD 0x20 /* zero (as opposed to blank) pad */ |
#define HEXPREFIX 0x40 /* add 0x or 0X prefix */ |
void _printf_P (char ziel,char const *fmt0, ...) /* Works with string from FLASH */ |
{ |
va_list ap; |
register const char *fmt; /* format string */ |
register char ch; /* character from fmt */ |
register int n; /* handy integer (short term usage) */ |
register char *cp; /* handy char pointer (short term usage) */ |
const char *fmark; /* for remembering a place in fmt */ |
register unsigned char flags; /* flags as above */ |
signed char width; /* width from format (%8d), or 0 */ |
signed char prec; /* precision from format (%.3d), or -1 */ |
char sign; /* sign prefix (' ', '+', '-', or \0) */ |
unsigned long _ulong=0; /* integer arguments %[diouxX] */ |
#define OCT 8 |
#define DEC 10 |
#define HEX 16 |
unsigned char base; /* base for [diouxX] conversion */ |
signed char dprec; /* a copy of prec if [diouxX], 0 otherwise */ |
signed char dpad; /* extra 0 padding needed for integers */ |
signed char fieldsz; /* field size expanded by sign, dpad etc */ |
/* The initialization of 'size' is to suppress a warning that |
'size' might be used unitialized. It seems gcc can't |
quite grok this spaghetti code ... */ |
signed char size = 0; /* size of converted field or string */ |
char buf[BUF]; /* space for %c, %[diouxX], %[eEfgG] */ |
char ox[2]; /* space for 0x hex-prefix */ |
PrintZiel = ziel; // bestimmt, LCD oder UART |
va_start(ap, fmt0); |
fmt = fmt0; |
/* |
* Scan the format for conversions (`%' character). |
*/ |
for (;;) { |
for (fmark = fmt; (ch = pgm_read_byte(fmt)) != '\0' && ch != '%'; fmt++) |
/* void */; |
if ((n = fmt - fmark) != 0) { |
PRINTP(fmark, n); |
} |
if (ch == '\0') |
goto done; |
fmt++; /* skip over '%' */ |
flags = 0; |
dprec = 0; |
width = 0; |
prec = -1; |
sign = '\0'; |
rflag: ch = PRG_RDB(fmt++); |
reswitch: |
#ifdef LIGHTPRINTF |
if (ch=='o' || ch=='u' || (ch|0x20)=='x') { |
#else |
if (ch=='u' || (ch|0x20)=='x') { |
#endif |
if (flags&LONGINT) { |
_ulong=va_arg(ap, unsigned long); |
} else { |
register unsigned int _d; |
_d=va_arg(ap, unsigned int); |
_ulong = flags&SHORTINT ? (unsigned long)(unsigned short)_d : (unsigned long)_d; |
} |
} |
#ifndef LIGHTPRINTF |
if(ch==' ') { |
/* |
* ``If the space and + flags both appear, the space |
* flag will be ignored.'' |
* -- ANSI X3J11 |
*/ |
if (!sign) |
sign = ' '; |
goto rflag; |
} else if (ch=='#') { |
flags |= ALT; |
goto rflag; |
} else if (ch=='*'||ch=='-') { |
if (ch=='*') { |
/* |
* ``A negative field width argument is taken as a |
* - flag followed by a positive field width.'' |
* -- ANSI X3J11 |
* They don't exclude field widths read from args. |
*/ |
if ((width = va_arg(ap, int)) >= 0) |
goto rflag; |
width = -width; |
} |
flags |= LADJUST; |
flags &= ~ZEROPAD; /* '-' disables '0' */ |
goto rflag; |
} else if (ch=='+') { |
sign = '+'; |
goto rflag; |
} else if (ch=='.') { |
if ((ch = PRG_RDB(fmt++)) == '*') { |
n = va_arg(ap, int); |
prec = n < 0 ? -1 : n; |
goto rflag; |
} |
n = 0; |
while (is_digit(ch)) { |
n = n*10 + to_digit(ch); |
ch = PRG_RDB(fmt++); |
} |
prec = n < 0 ? -1 : n; |
goto reswitch; |
} else |
#endif /* LIGHTPRINTF */ |
if (ch=='0') { |
/* |
* ``Note that 0 is taken as a flag, not as the |
* beginning of a field width.'' |
* -- ANSI X3J11 |
*/ |
if (!(flags & LADJUST)) |
flags |= ZEROPAD; /* '-' disables '0' */ |
goto rflag; |
} else if (ch>='1' && ch<='9') { |
n = 0; |
do { |
n = 10 * n + to_digit(ch); |
ch = PRG_RDB(fmt++); |
} while (is_digit(ch)); |
width = n; |
goto reswitch; |
} else if (ch=='h') { |
flags |= SHORTINT; |
goto rflag; |
} else if (ch=='l') { |
flags |= LONGINT; |
goto rflag; |
} else if (ch=='c') { |
*(cp = buf) = va_arg(ap, int); |
size = 1; |
sign = '\0'; |
} else if (ch=='D'||ch=='d'||ch=='i') { |
if(ch=='D') |
flags |= LONGINT; |
if (flags&LONGINT) { |
_ulong=va_arg(ap, long); |
} else { |
register int _d; |
_d=va_arg(ap, int); |
_ulong = flags&SHORTINT ? (long)(short)_d : (long)_d; |
} |
if ((long)_ulong < 0) { |
_ulong = -_ulong; |
sign = '-'; |
} |
base = DEC; |
goto number; |
} else |
/* |
if (ch=='n') { |
if (flags & LONGINT) |
*va_arg(ap, long *) = ret; |
else if (flags & SHORTINT) |
*va_arg(ap, short *) = ret; |
else |
*va_arg(ap, int *) = ret; |
continue; // no output |
} else |
*/ |
#ifndef LIGHTPRINTF |
if (ch=='O'||ch=='o') { |
if (ch=='O') |
flags |= LONGINT; |
base = OCT; |
goto nosign; |
} else if (ch=='p') { |
/* |
* ``The argument shall be a pointer to void. The |
* value of the pointer is converted to a sequence |
* of printable characters, in an implementation- |
* defined manner.'' |
* -- ANSI X3J11 |
*/ |
/* NOSTRICT */ |
_ulong = (unsigned int)va_arg(ap, void *); |
base = HEX; |
flags |= HEXPREFIX; |
ch = 'x'; |
goto nosign; |
} else if (ch=='s') { // print a string from RAM |
if ((cp = va_arg(ap, char *)) == NULL) { |
cp=buf; |
cp[0] = '('; |
cp[1] = 'n'; |
cp[2] = 'u'; |
cp[4] = cp[3] = 'l'; |
cp[5] = ')'; |
cp[6] = '\0'; |
} |
if (prec >= 0) { |
/* |
* can't use strlen; can only look for the |
* NUL in the first `prec' characters, and |
* strlen() will go further. |
*/ |
char *p = (char*)memchr(cp, 0, prec); |
if (p != NULL) { |
size = p - cp; |
if (size > prec) |
size = prec; |
} else |
size = prec; |
} else |
size = strlen(cp); |
sign = '\0'; |
} else |
#endif /* LIGHTPRINTF */ |
if(ch=='U'||ch=='u') { |
if (ch=='U') |
flags |= LONGINT; |
base = DEC; |
goto nosign; |
} else if (ch=='X'||ch=='x') { |
base = HEX; |
/* leading 0x/X only if non-zero */ |
if (flags & ALT && _ulong != 0) |
flags |= HEXPREFIX; |
/* unsigned conversions */ |
nosign: sign = '\0'; |
/* |
* ``... diouXx conversions ... if a precision is |
* specified, the 0 flag will be ignored.'' |
* -- ANSI X3J11 |
*/ |
number: if ((dprec = prec) >= 0) |
flags &= ~ZEROPAD; |
/* |
* ``The result of converting a zero value with an |
* explicit precision of zero is no characters.'' |
* -- ANSI X3J11 |
*/ |
cp = buf + BUF; |
if (_ulong != 0 || prec != 0) { |
register unsigned char _d,notlastdigit; |
do { |
notlastdigit=(_ulong>=base); |
_d = _ulong % base; |
if (_d<10) { |
_d+='0'; |
} else { |
_d+='a'-10; |
if (ch=='X') _d&=~0x20; |
} |
*--cp=_d; |
_ulong /= base; |
} while (notlastdigit); |
#ifndef LIGHTPRINTF |
// handle octal leading 0 |
if (base==OCT && flags & ALT && *cp != '0') |
*--cp = '0'; |
#endif |
} |
size = buf + BUF - cp; |
} else { //default |
/* "%?" prints ?, unless ? is NUL */ |
if (ch == '\0') |
goto done; |
/* pretend it was %c with argument ch */ |
cp = buf; |
*cp = ch; |
size = 1; |
sign = '\0'; |
} |
/* |
* All reasonable formats wind up here. At this point, |
* `cp' points to a string which (if not flags&LADJUST) |
* should be padded out to `width' places. If |
* flags&ZEROPAD, it should first be prefixed by any |
* sign or other prefix; otherwise, it should be blank |
* padded before the prefix is emitted. After any |
* left-hand padding and prefixing, emit zeroes |
* required by a decimal [diouxX] precision, then print |
* the string proper, then emit zeroes required by any |
* leftover floating precision; finally, if LADJUST, |
* pad with blanks. |
*/ |
/* |
* compute actual size, so we know how much to pad. |
*/ |
fieldsz = size; |
dpad = dprec - size; |
if (dpad < 0) |
dpad = 0; |
if (sign) |
fieldsz++; |
else if (flags & HEXPREFIX) |
fieldsz += 2; |
fieldsz += dpad; |
/* right-adjusting blank padding */ |
if ((flags & (LADJUST|ZEROPAD)) == 0) |
PAD_SP(width - fieldsz); |
/* prefix */ |
if (sign) { |
PRINT(&sign, 1); |
} else if (flags & HEXPREFIX) { |
ox[0] = '0'; |
ox[1] = ch; |
PRINT(ox, 2); |
} |
/* right-adjusting zero padding */ |
if ((flags & (LADJUST|ZEROPAD)) == ZEROPAD) |
PAD_0(width - fieldsz); |
/* leading zeroes from decimal precision */ |
PAD_0(dpad); |
/* the string or number proper */ |
PRINT(cp, size); |
/* left-adjusting padding (always blank) */ |
if (flags & LADJUST) |
PAD_SP(width - fieldsz); |
} |
done: |
va_end(ap); |
} |
/branches/MicroMag3_Nick666/v0.60/printf_P.h |
---|
0,0 → 1,19 |
#ifndef _PRINTF_P_H_ |
#define _PRINTF_P_H_ |
#include <avr/pgmspace.h> |
#define OUT_V24 0 |
#define OUT_LCD 1 |
extern void _printf_P (char, char const *fmt0, ...); |
extern char PrintZiel; |
#define printf_P(format, args...) _printf_P(OUT_V24,format , ## args) |
#define printf(format, args...) _printf_P(OUT_V24,PSTR(format) , ## args) |
#define LCD_printfxy(x,y,format, args...) { DispPtr = y * 20 + x; _printf_P(OUT_LCD,PSTR(format) , ## args);} |
#define LCD_printf(format, args...) { _printf_P(OUT_LCD,PSTR(format) , ## args);} |
#endif |
/branches/MicroMag3_Nick666/v0.60/rc.c |
---|
0,0 → 1,85 |
/*####################################################################################### |
Decodieren eines RC Summen Signals |
#######################################################################################*/ |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "rc.h" |
#include "main.h" |
volatile int PPM_in[11]; |
volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
volatile unsigned char NewPpmData = 1; |
//############################################################################ |
//zum decodieren des PPM-Signals wird Timer1 mit seiner Input |
//Capture Funktion benutzt: |
void rc_sum_init (void) |
//############################################################################ |
{ |
TCCR1B=(1<<CS11)|(1<<CS10)|(1<<ICES1)|(1<<ICNC1);//|(1 << WGM12); //timer1 prescale 64 |
// PWM |
//TCCR1A = (1 << COM1B1) | (1 << WGM11) | (1 << WGM10); |
//TCCR1B |= (1 << WGM12); |
//OCR1B = 55; |
TIMSK1 |= _BV(ICIE1); |
AdNeutralGier = 0; |
AdNeutralRoll = 0; |
AdNeutralNick = 0; |
return; |
} |
//############################################################################ |
//Diese Routine startet und inizialisiert den Timer für RC |
SIGNAL(SIG_INPUT_CAPTURE1) |
//############################################################################ |
{ |
static unsigned int AltICR=0; |
signed int signal = 0; |
static int index; |
signal = (unsigned int) ICR1 - AltICR; |
AltICR = ICR1; |
//Syncronisationspause? |
if ((signal > 1500) && (signal < 8000)) |
{ |
index = 1; |
NewPpmData = 0; // Null bedeutet: Neue Daten |
// OCR2A = Poti2/2 + 80; |
} |
else |
{ |
if(index < 10) |
{ |
if((signal > 250) && (signal < 687)) |
{ |
signal -= 466; |
// Stabiles Signal |
if(abs(signal - PPM_in[index]) < 6) { if(SenderOkay < 200) SenderOkay += 10;} |
signal = (3 * (PPM_in[index]) + signal) / 4; |
//373 entspricht ca. 1.5ms also Mittelstellung |
PPM_diff[index] = signal - PPM_in[index]; |
PPM_in[index] = signal; |
} |
index++; |
/* if(index == 5) PORTD |= 0x20; else PORTD &= ~0x20; // Servosignal an J3 anlegen |
if(index == 6) PORTD |= 0x10; else PORTD &= ~0x10; // Servosignal an J4 anlegen |
if(index == 7) PORTD |= 0x08; else PORTD &= ~0x08; // Servosignal an J5 anlegen */ |
} |
} |
} |
/branches/MicroMag3_Nick666/v0.60/rc.h |
---|
0,0 → 1,29 |
/*####################################################################################### |
Derkodieren eines RC Summen Signals |
#######################################################################################*/ |
#ifndef _RC_H |
#define _RC_H |
#if defined (__AVR_ATmega32__) |
#define TIMER_TEILER CK64 |
#define TIMER_RELOAD_VALUE 250 |
#endif |
#if defined (__AVR_ATmega644__) |
//#define TIMER_TEILER CK64 |
#define TIMER_RELOAD_VALUE 250 |
//#define TIMER_TEILER CK256 // bei 20MHz |
//#define TIMER_RELOAD_VALUE -78 // bei 20MHz |
#endif |
#define GAS PPM_in[2] |
extern void rc_sum_init (void); |
extern volatile int PPM_in[11]; |
extern volatile int PPM_diff[11]; // das diffenzierte Stick-Signal |
extern volatile unsigned char NewPpmData; |
#endif //_RC_H |
/branches/MicroMag3_Nick666/v0.60/timer0.c |
---|
0,0 → 1,118 |
#include "main.h" |
volatile unsigned int CountMilliseconds = 0; |
volatile unsigned char UpdateMotor = 0; |
volatile unsigned int beeptime = 0; |
int ServoValue = 0; |
enum { |
STOP = 0, |
CK = 1, |
CK8 = 2, |
CK64 = 3, |
CK256 = 4, |
CK1024 = 5, |
T0_FALLING_EDGE = 6, |
T0_RISING_EDGE = 7 |
}; |
SIGNAL (SIG_OVERFLOW0) // 9,8kHz |
{ |
static unsigned char cnt_1ms = 1,cnt = 0; |
// TCNT0 -= 250;//TIMER_RELOAD_VALUE; |
if(!cnt--) |
{ |
cnt = 10; |
cnt_1ms++; |
cnt_1ms %= 2; |
if(!cnt_1ms) UpdateMotor = 1; |
CountMilliseconds++; |
if(Timeout) Timeout--; |
} |
if(beeptime > 1) |
{ |
beeptime--; |
PORTD |= (1<<PD2); |
} |
else |
PORTD &= ~(1<<PD2); |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) timer0_MM3(); // Kompass auslesen |
} |
void Timer_Init(void) |
{ |
TCCR0B = CK8; |
TCCR0A = (1<<COM0A1)|(1<<COM0B1)|3;//fast PWM |
OCR0A = 0; |
OCR0B = 120; |
//TCNT0 = -TIMER_RELOAD_VALUE; // reload |
//OCR1 = 0x00; |
TCCR2A=(1<<COM2A1)|(1<<COM2A0)|3; |
TCCR2B=(0<<CS20)|(1<<CS21)|(1<<CS22); |
// TIMSK2 |= _BV(TOIE2); |
TIMSK2 |= _BV(OCIE2A); |
TIMSK0 |= _BV(TOIE0); |
OCR2A = 10; |
TCNT2 = 0; |
} |
// ----------------------------------------------------------------------- |
unsigned int SetDelay (unsigned int t) |
{ |
// TIMSK0 &= ~_BV(TOIE0); |
return(CountMilliseconds + t + 1); |
// TIMSK0 |= _BV(TOIE0); |
} |
// ----------------------------------------------------------------------- |
char CheckDelay(unsigned int t) |
{ |
// TIMSK0 &= ~_BV(TOIE0); |
return(((t - CountMilliseconds) & 0x8000) >> 9); |
// TIMSK0 |= _BV(TOIE0); |
} |
// ----------------------------------------------------------------------- |
void Delay_ms(unsigned int w) |
{ |
unsigned int akt; |
akt = SetDelay(w); |
while (!CheckDelay(akt)); |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Servo ansteuern |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(SIG_OUTPUT_COMPARE2A) |
{ |
static unsigned char timer = 10; |
if(!timer--) |
{ |
TCCR2A=(1<<COM2A1)|(0<<COM2A0)|3; |
ServoValue = Parameter_ServoNickControl; |
if(EE_Parameter.ServoNickCompInvert & 0x01) ServoValue += ((long) EE_Parameter.ServoNickComp * (IntegralNick / 128)) / 512; |
else ServoValue -= ((long) EE_Parameter.ServoNickComp * (IntegralNick / 128)) / 512; |
if(ServoValue < EE_Parameter.ServoNickMin) ServoValue = EE_Parameter.ServoNickMin; |
else if(ServoValue > EE_Parameter.ServoNickMax) ServoValue = EE_Parameter.ServoNickMax; |
//DebugOut.Analog[10] = ServoValue; |
OCR2A = ServoValue;// + 75; |
timer = EE_Parameter.ServoNickRefresh; |
} |
else |
{ |
TCCR2A =3; |
PORTD&=~0x80; |
} |
} |
/branches/MicroMag3_Nick666/v0.60/timer0.h |
---|
0,0 → 1,13 |
#define TIMER_TEILER CK8 |
#define TIMER_RELOAD_VALUE 250 |
void Timer_Init(void); |
void Delay_ms(unsigned int); |
unsigned int SetDelay (unsigned int t); |
char CheckDelay (unsigned int t); |
extern volatile unsigned int CountMilliseconds; |
extern volatile unsigned char UpdateMotor; |
extern volatile unsigned int beeptime; |
extern int ServoValue; |
/branches/MicroMag3_Nick666/v0.60/twimaster.c |
---|
0,0 → 1,115 |
/*############################################################################ |
############################################################################*/ |
#include "main.h" |
volatile unsigned char twi_state = 0; |
volatile unsigned char motor = 0; |
volatile unsigned char motor_rx[8]; |
//############################################################################ |
//Initzialisieren der I2C (TWI) Schnittstelle |
void i2c_init(void) |
//############################################################################ |
{ |
TWSR = 0; |
TWBR = ((SYSCLK/SCL_CLOCK)-16)/2; |
} |
//############################################################################ |
//Start I2C |
void i2c_start(void) |
//############################################################################ |
{ |
TWCR = (1<<TWSTA) | (1<<TWEN) | (1<<TWINT) | (1<<TWIE); |
} |
//############################################################################ |
//Stop I2C |
void i2c_stop(void) |
//############################################################################ |
{ |
TWCR = (1<<TWEN) | (1<<TWSTO) | (1<<TWINT); |
} |
//############################################################################ |
//Write to I2C |
void i2c_write_byte(char byte) |
//############################################################################ |
{ |
TWDR = byte; |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
} |
//############################################################################ |
// I2C receive byte and send ACK |
void i2c_receive_byte(void) |
//############################################################################ |
{ |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE) | (1<<TWEA); |
} |
//############################################################################ |
// I2C receive last byte and send NOT ACK |
void i2c_receive_last_byte(void) |
//############################################################################ |
{ |
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWIE); |
} |
//############################################################################ |
//Start I2C |
SIGNAL (TWI_vect) |
//############################################################################ |
{ |
static unsigned char motorread = 0; |
switch (twi_state++) // First i2c_start from SendMotorData() |
{ |
// Master Transmit |
case 0: // Address Slave SL+W |
i2c_write_byte(0x52+(motor*2)); |
break; |
case 1: // Send Data |
switch(motor++) |
{ |
case 0: |
i2c_write_byte(Motor_Vorne); |
break; |
case 1: |
i2c_write_byte(Motor_Hinten); |
break; |
case 2: |
i2c_write_byte(Motor_Rechts); |
break; |
case 3: |
i2c_write_byte(Motor_Links); |
break; |
} |
break; |
case 2: // Repeat case 0+1 for all Slaves |
if (motor < 4) twi_state = 0; |
i2c_start(); // Repeated start -> switch salve or switch Master Transmit -> Master Receive |
break; |
// Master Receive |
case 3: // Address Slave SL+R |
i2c_write_byte(0x53+(motorread*2)); |
break; |
case 4: //1. Byte vom Motor übertragen |
i2c_receive_byte(); |
break; |
case 5: // 1. Byte lesen und 2. Byte übertragen |
motor_rx[motorread] = TWDR; |
i2c_receive_last_byte(); |
break; |
case 6: //2. Byte lesen |
motor_rx[motorread+4] = TWDR; |
motorread++; |
if (motorread > 3) motorread=0; |
default: |
i2c_stop(); |
twi_state = 0; |
motor = 0; |
} |
} |
/branches/MicroMag3_Nick666/v0.60/twimaster.h |
---|
0,0 → 1,33 |
/*############################################################################ |
############################################################################*/ |
#ifndef _I2C_MASTER_H |
#define _I2C_MASTER_H |
//############################################################################ |
// I2C Konstanten |
#define SCL_CLOCK 200000L |
#define I2C_TIMEOUT 30000 |
#define I2C_START 0x08 |
#define I2C_REPEATED_START 0x10 |
#define I2C_TX_SLA_ACK 0x18 |
#define I2C_TX_DATA_ACK 0x28 |
#define I2C_RX_SLA_ACK 0x40 |
#define I2C_RX_DATA_ACK 0x50 |
//############################################################################ |
extern volatile unsigned char twi_state; |
extern volatile unsigned char motor; |
extern volatile unsigned char motor_rx[8]; |
void i2c_init (void); // I2C initialisieren |
void i2c_start (void); // Start I2C |
void i2c_stop (void); // Stop I2C |
void i2c_write_byte (char byte); // 1 Byte schreiben |
void i2c_receive_byte(void); // 1 Byte empfangen |
void i2c_receive_last_byte(void); // letztes Byte empfangen |
#endif |
/branches/MicroMag3_Nick666/v0.60/uart.c |
---|
0,0 → 1,328 |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// + Copyright (c) 04.2007 Holger Buss |
// + only for non-profit use |
// + www.MikroKopter.com |
// + see the File "License.txt" for further Informations |
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
#include "main.h" |
#include "uart.h" |
unsigned char DebugGetAnforderung = 0,DebugDisplayAnforderung = 0,DebugDataAnforderung = 0,GetVersionAnforderung = 0; |
unsigned volatile char SioTmp = 0; |
unsigned volatile char SendeBuffer[MAX_SENDE_BUFF]; |
unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF]; |
unsigned volatile char NMEABuffer[MAX_EMPFANGS_BUFF]; |
unsigned volatile char NeuerDatensatzEmpfangen = 0; |
unsigned volatile char NeueKoordinateEmpfangen = 0; |
unsigned volatile char UebertragungAbgeschlossen = 1; |
unsigned volatile char CntCrcError = 0; |
unsigned volatile char AnzahlEmpfangsBytes = 0; |
unsigned volatile char PC_DebugTimeout = 0; |
unsigned char PcZugriff = 100; |
unsigned char MotorTest[4] = {0,0,0,0}; |
unsigned char MeineSlaveAdresse; |
struct str_DebugOut DebugOut; |
struct str_Debug DebugIn; |
struct str_VersionInfo VersionInfo; |
int Debug_Timer; |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ Sende-Part der Datenübertragung |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(INT_VEC_TX) |
{ |
static unsigned int ptr = 0; |
unsigned char tmp_tx; |
if(!UebertragungAbgeschlossen) |
{ |
ptr++; // die [0] wurde schon gesendet |
tmp_tx = SendeBuffer[ptr]; |
if((tmp_tx == '\r') || (ptr == MAX_SENDE_BUFF)) |
{ |
ptr = 0; |
UebertragungAbgeschlossen = 1; |
} |
UDR = tmp_tx; |
} |
else ptr = 0; |
} |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
//++ Empfangs-Part der Datenübertragung, incl. CRC-Auswertung |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
SIGNAL(INT_VEC_RX) |
{ |
static unsigned int crc; |
static unsigned char crc1,crc2,buf_ptr; |
static unsigned char UartState = 0; |
unsigned char CrcOkay = 0; |
SioTmp = UDR; |
if(buf_ptr >= MAX_EMPFANGS_BUFF) UartState = 0; |
if(SioTmp == '\r' && UartState == 2) |
{ |
UartState = 0; |
crc -= RxdBuffer[buf_ptr-2]; |
crc -= RxdBuffer[buf_ptr-1]; |
crc %= 4096; |
crc1 = '=' + crc / 64; |
crc2 = '=' + crc % 64; |
CrcOkay = 0; |
if((crc1 == RxdBuffer[buf_ptr-2]) && (crc2 == RxdBuffer[buf_ptr-1])) CrcOkay = 1; else { CrcOkay = 0; CntCrcError++;}; |
if(!NeuerDatensatzEmpfangen && CrcOkay) // Datensatz schon verarbeitet |
{ |
NeuerDatensatzEmpfangen = 1; |
AnzahlEmpfangsBytes = buf_ptr; |
RxdBuffer[buf_ptr] = '\r'; |
if(/*(RxdBuffer[1] == MeineSlaveAdresse || (RxdBuffer[1] == 'a')) && */(RxdBuffer[2] == 'R')) wdt_enable(WDTO_250MS); // Reset-Commando |
} |
} |
else |
switch(UartState) |
{ |
case 0: |
if(SioTmp == '#' && !NeuerDatensatzEmpfangen) UartState = 1; // Startzeichen und Daten schon verarbeitet |
buf_ptr = 0; |
RxdBuffer[buf_ptr++] = SioTmp; |
crc = SioTmp; |
break; |
case 1: // Adresse auswerten |
UartState++; |
RxdBuffer[buf_ptr++] = SioTmp; |
crc += SioTmp; |
break; |
case 2: // Eingangsdaten sammeln |
RxdBuffer[buf_ptr] = SioTmp; |
if(buf_ptr < MAX_EMPFANGS_BUFF) buf_ptr++; |
else UartState = 0; |
crc += SioTmp; |
break; |
default: |
UartState = 0; |
break; |
} |
} |
// -------------------------------------------------------------------------- |
void AddCRC(unsigned int wieviele) |
{ |
unsigned int tmpCRC = 0,i; |
for(i = 0; i < wieviele;i++) |
{ |
tmpCRC += SendeBuffer[i]; |
} |
tmpCRC %= 4096; |
SendeBuffer[i++] = '=' + tmpCRC / 64; |
SendeBuffer[i++] = '=' + tmpCRC % 64; |
SendeBuffer[i++] = '\r'; |
UebertragungAbgeschlossen = 0; |
UDR = SendeBuffer[0]; |
} |
// -------------------------------------------------------------------------- |
void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len) |
{ |
unsigned int pt = 0; |
unsigned char a,b,c; |
unsigned char ptr = 0; |
SendeBuffer[pt++] = '#'; // Startzeichen |
SendeBuffer[pt++] = modul; // Adresse (a=0; b=1,...) |
SendeBuffer[pt++] = cmd; // Commando |
while(len) |
{ |
if(len) { a = snd[ptr++]; len--;} else a = 0; |
if(len) { b = snd[ptr++]; len--;} else b = 0; |
if(len) { c = snd[ptr++]; len--;} else c = 0; |
SendeBuffer[pt++] = '=' + (a >> 2); |
SendeBuffer[pt++] = '=' + (((a & 0x03) << 4) | ((b & 0xf0) >> 4)); |
SendeBuffer[pt++] = '=' + (((b & 0x0f) << 2) | ((c & 0xc0) >> 6)); |
SendeBuffer[pt++] = '=' + ( c & 0x3f); |
} |
AddCRC(pt); |
} |
// -------------------------------------------------------------------------- |
void Decode64(unsigned char *ptrOut, unsigned char len, unsigned char ptrIn,unsigned char max) // Wohin mit den Daten; Wie lang; Wo im RxdBuffer |
{ |
unsigned char a,b,c,d; |
unsigned char ptr = 0; |
unsigned char x,y,z; |
while(len) |
{ |
a = RxdBuffer[ptrIn++] - '='; |
b = RxdBuffer[ptrIn++] - '='; |
c = RxdBuffer[ptrIn++] - '='; |
d = RxdBuffer[ptrIn++] - '='; |
if(ptrIn > max - 2) break; // nicht mehr Daten verarbeiten, als empfangen wurden |
x = (a << 2) | (b >> 4); |
y = ((b & 0x0f) << 4) | (c >> 2); |
z = ((c & 0x03) << 6) | d; |
if(len--) ptrOut[ptr++] = x; else break; |
if(len--) ptrOut[ptr++] = y; else break; |
if(len--) ptrOut[ptr++] = z; else break; |
} |
} |
// -------------------------------------------------------------------------- |
void BearbeiteRxDaten(void) |
{ |
if(!NeuerDatensatzEmpfangen) return; |
//unsigned int tmp_int_arr1[1]; |
//unsigned int tmp_int_arr2[2]; |
//unsigned int tmp_int_arr3[3]; |
unsigned char tmp_char_arr2[2]; |
//unsigned char tmp_char_arr3[3]; |
//unsigned char tmp_char_arr4[4]; |
//if(!MotorenEin) |
PcZugriff = 255; |
switch(RxdBuffer[2]) |
{ |
case 'c':// Debugdaten incl. Externe IOs usw |
Decode64((unsigned char *) &DebugIn,sizeof(DebugIn),3,AnzahlEmpfangsBytes); |
/* for(unsigned char i=0; i<4;i++) |
{ |
EE_CheckAndWrite(&EE_Buffer[EE_DEBUGWERTE + i*2], DebugIn.Analog[i]); |
EE_CheckAndWrite(&EE_Buffer[EE_DEBUGWERTE + i*2 + 1], DebugIn.Analog[i] >> 8); |
}*/ |
RemoteTasten |= DebugIn.RemoteTasten; |
DebugDataAnforderung = 1; |
break; |
case 'h':// x-1 Displayzeilen |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
RemoteTasten |= tmp_char_arr2[0]; |
DebugDisplayAnforderung = 1; |
break; |
case 't':// Motortest |
Decode64((unsigned char *) &MotorTest[0],sizeof(MotorTest),3,AnzahlEmpfangsBytes); |
break; |
case 'v': // Version-Anforderung und Ausbaustufe |
GetVersionAnforderung = 1; |
break; |
case 'g':// "Get"-Anforderung für Debug-Daten |
// Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
DebugGetAnforderung = 1; |
break; |
case 'q':// "Get"-Anforderung für Settings |
// Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
if(tmp_char_arr2[0] != 0xff) |
{ |
if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
} |
else |
SendOutData('L' + GetActiveParamSetNumber()-1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct)); |
break; |
case 'l': |
case 'm': |
case 'n': |
case 'o': |
case 'p': // Parametersatz speichern |
Decode64((unsigned char *) &EE_Parameter.Kanalbelegung[0],sizeof(struct mk_param_struct),3,AnzahlEmpfangsBytes); |
WriteParameterSet(RxdBuffer[2] - 'l' + 1, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], RxdBuffer[2] - 'l' + 1); // aktiven Datensatz merken |
Piep(GetActiveParamSetNumber()); |
break; |
} |
// DebugOut.AnzahlZyklen = Debug_Timer_Intervall; |
NeuerDatensatzEmpfangen = 0; |
} |
//############################################################################ |
//Routine für die Serielle Ausgabe |
int uart_putchar (char c) |
//############################################################################ |
{ |
if (c == '\n') |
uart_putchar('\r'); |
//Warten solange bis Zeichen gesendet wurde |
loop_until_bit_is_set(USR, UDRE); |
//Ausgabe des Zeichens |
UDR = c; |
return (0); |
} |
// -------------------------------------------------------------------------- |
void WriteProgramData(unsigned int pos, unsigned char wert) |
{ |
//if (ProgramLocation == IN_RAM) Buffer[pos] = wert; |
// else eeprom_write_byte(&EE_Buffer[pos], wert); |
// Buffer[pos] = wert; |
} |
//############################################################################ |
//INstallation der Seriellen Schnittstelle |
void UART_Init (void) |
//############################################################################ |
{ |
//Enable TXEN im Register UCR TX-Data Enable & RX Enable |
UCR=(1 << TXEN) | (1 << RXEN); |
// UART Double Speed (U2X) |
USR |= (1<<U2X); |
// RX-Interrupt Freigabe |
UCSRB |= (1<<RXCIE); |
// TX-Interrupt Freigabe |
UCSRB |= (1<<TXCIE); |
//Teiler wird gesetzt |
UBRR=(SYSCLK / (BAUD_RATE * 8L) - 1); |
//UBRR = 33; |
//öffnet einen Kanal für printf (STDOUT) |
//fdevopen (uart_putchar, 0); |
//sbi(PORTD,4); |
Debug_Timer = SetDelay(200); |
} |
//--------------------------------------------------------------------------------------------- |
void DatenUebertragung(void) |
{ |
static char dis_zeile = 0; |
if(!UebertragungAbgeschlossen) return; |
if(DebugGetAnforderung && UebertragungAbgeschlossen) // Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
{ |
SendOutData('G',MeineSlaveAdresse,(unsigned char *) &DebugIn,sizeof(DebugIn)); |
DebugGetAnforderung = 0; |
} |
if((CheckDelay(Debug_Timer) || DebugDataAnforderung) && UebertragungAbgeschlossen) |
{ |
SendOutData('D',MeineSlaveAdresse,(unsigned char *) &DebugOut,sizeof(DebugOut)); |
DebugDataAnforderung = 0; |
Debug_Timer = SetDelay(MIN_DEBUG_INTERVALL); |
} |
if(DebugDisplayAnforderung && UebertragungAbgeschlossen) |
{ |
Menu(); |
DebugDisplayAnforderung = 0; |
if(++dis_zeile == 4) dis_zeile = 0; |
SendOutData('0' + dis_zeile,0,&DisplayBuff[20 * dis_zeile],20); // DisplayZeile übertragen |
} |
if(GetVersionAnforderung && UebertragungAbgeschlossen) |
{ |
SendOutData('V',MeineSlaveAdresse,(unsigned char *) &VersionInfo,sizeof(VersionInfo)); |
GetVersionAnforderung = 0; |
} |
} |
/branches/MicroMag3_Nick666/v0.60/uart.h |
---|
0,0 → 1,95 |
#ifndef _UART_H |
#define _UART_H |
#define MAX_SENDE_BUFF 150 |
#define MAX_EMPFANGS_BUFF 150 |
void BearbeiteRxDaten(void); |
extern unsigned char DebugGetAnforderung; |
extern unsigned volatile char SendeBuffer[MAX_SENDE_BUFF]; |
extern unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF]; |
extern unsigned volatile char UebertragungAbgeschlossen; |
extern unsigned volatile char PC_DebugTimeout; |
extern unsigned volatile char NeueKoordinateEmpfangen; |
extern unsigned char MeineSlaveAdresse; |
extern unsigned char PcZugriff; |
extern int Debug_Timer; |
extern void UART_Init (void); |
extern int uart_putchar (char c); |
extern void boot_program_page (uint32_t page, uint8_t *buf); |
extern void DatenUebertragung(void); |
extern void DecodeNMEA(void); |
extern unsigned char MotorTest[4]; |
struct str_DebugOut |
{ |
unsigned char Digital[13]; |
unsigned int AnzahlZyklen; |
unsigned int Zeit; |
unsigned char Sekunden; |
unsigned int Analog[16]; // Debugwerte |
}; |
extern struct str_DebugOut DebugOut; |
struct str_Debug |
{ |
unsigned char Digital[2]; |
unsigned char RemoteTasten; |
unsigned int Analog[4]; |
}; |
extern struct str_Debug DebugIn; |
struct str_VersionInfo |
{ |
unsigned char Hauptversion; |
unsigned char Nebenversion; |
unsigned char PCKompatibel; |
unsigned char Rserved[7]; |
}; |
extern struct str_VersionInfo VersionInfo; |
//Die Baud_Rate der Seriellen Schnittstelle ist 9600 Baud |
//#define BAUD_RATE 9600 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 14400 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 28800 //Baud Rate für die Serielle Schnittstelle |
//#define BAUD_RATE 38400 //Baud Rate für die Serielle Schnittstelle |
#define BAUD_RATE 57600 //Baud Rate für die Serielle Schnittstelle |
//Anpassen der seriellen Schnittstellen Register wenn ein ATMega128 benutzt wird |
#if defined (__AVR_ATmega128__) |
# define USR UCSR0A |
# define UCR UCSR0B |
# define UDR UDR0 |
# define UBRR UBRR0L |
# define EICR EICRB |
#endif |
#if defined (__AVR_ATmega32__) |
# define USR UCSRA |
# define UCR UCSRB |
# define UBRR UBRRL |
# define EICR EICRB |
# define INT_VEC_RX SIG_UART_RECV |
# define INT_VEC_TX SIG_UART_TRANS |
#endif |
#if defined (__AVR_ATmega644__) |
# define USR UCSR0A |
# define UCR UCSR0B |
# define UDR UDR0 |
# define UBRR UBRR0L |
# define EICR EICR0B |
# define TXEN TXEN0 |
# define RXEN RXEN0 |
# define RXCIE RXCIE0 |
# define TXCIE TXCIE0 |
# define U2X U2X0 |
# define UCSRB UCSR0B |
# define UDRE UDRE0 |
# define INT_VEC_RX SIG_USART_RECV |
# define INT_VEC_TX SIG_USART_TRANS |
#endif |
#endif //_UART_H |
/branches/MicroMag3_Nick666/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 |