Subversion Repositories BL-Ctrl

Rev

Rev 50 | Rev 63 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 50 Rev 60
Line 1... Line 1...
1
/*############################################################################
1
/*#######################################################################################
-
 
2
Flight Control
-
 
3
#######################################################################################*/
-
 
4
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2
 + Regler für Brushless-Motoren
5
// + Regler für Brushless-Motoren
3
 + ATMEGA8 mit 8MHz
6
// + ATMEGA8 mit 8MHz
-
 
7
// + Nur für den privaten Gebrauch
4
 + (c) 01.2007 Holger Buss
8
// + Copyright (c) 12.2007 Holger Buss
-
 
9
// + www.MikroKopter.com
-
 
10
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
 
11
// + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), 
-
 
12
// + dass eine Nutzung (auch auszugsweise) nur für den privaten (nicht-kommerziellen) Gebrauch zulässig ist. 
-
 
13
// + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt 
-
 
14
// + bzgl. der Nutzungsbedingungen aufzunehmen. 
-
 
15
// + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen,
5
 + Nur für den privaten Gebrauch
16
// + Verkauf von Luftbildaufnahmen, usw.
-
 
17
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
 
18
// + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, 
-
 
19
// + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen
-
 
20
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
 
21
// + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts
-
 
22
// + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de"
-
 
23
// + eindeutig als Ursprung verlinkt werden
-
 
24
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
 
25
// + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion
6
 + Keine Garantie auf Fehlerfreiheit
26
// + Benutzung auf eigene Gefahr
-
 
27
// + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden
-
 
28
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
 
29
// + Die Portierung der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur 
7
 + Kommerzielle Nutzung nur mit meiner Zustimmung
30
// + mit unserer Zustimmung zulässig
-
 
31
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
 
32
// + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen
-
 
33
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
 
34
// + Redistributions of source code (with or without modifications) must retain the above copyright notice, 
8
 + Der Code ist für die Hardware BL_Ctrl V1.0 entwickelt worden
35
// + this list of conditions and the following disclaimer.
-
 
36
// +   * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived
-
 
37
// +     from this software without specific prior written permission.
-
 
38
// +   * The use of this project (hardware, software, binary files, sources and documentation) is only permittet 
-
 
39
// +     for non-commercial use (directly or indirectly)
-
 
40
// +     Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted 
9
 + www.mikrocontroller.com
41
// +     with our written permission
-
 
42
// +   * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be 
-
 
43
// +     clearly linked as origin 
-
 
44
// +   * porting to systems other than hardware from www.mikrokopter.de is not allowed
-
 
45
// +  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-
 
46
// +  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-
 
47
// +  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-
 
48
// +  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-
 
49
// +  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-
 
50
// +  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
10
############################################################################*/
51
// +  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-
 
52
// +  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN// +  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-
 
53
// +  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-
 
54
// +  POSSIBILITY OF SUCH DAMAGE. 
-
 
55
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11
#include "main.h"
56
#include "main.h"
Line 12... Line 57...
12
 
57
 
13
volatile unsigned char Phase = 0,ShadowTCCR1A = 0;
58
volatile unsigned char Phase = 0,ShadowTCCR1A = 0;
14
volatile unsigned char CompFreigabeTimer = 100;
59
volatile unsigned char CompFreigabeTimer = 100;