0,0 → 1,111 |
/***************************************************************************** |
* Copyright (C) 2008 Thomas Kaiser, thomas@ft-fanpage.de * |
* Copyright (C) 2009 Peter "woggle" Mack, mac@denich.net * |
* Copyright (C) 2011 Christian "Cebra" Brandtner, brandtner@brandtner.net * |
* Copyright (C) 2011 Harald Bongartz * |
* * |
* 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 2 of the License. * |
* * |
* 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, write to the * |
* Free Software Foundation, Inc., * |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
* * |
* * |
* Credits to: * |
* Holger Buss & Ingo Busker from mikrokopter.de for the MK project + SVN * |
* http://www.mikrokopter.de * |
* Gregor "killagreg" Stobrawa for his version of the MK code * |
* Thomas Kaiser "thkais" for the original project. See * |
* http://www.ft-fanpage.de/mikrokopter/ * |
* http://forum.mikrokopter.de/topic-4061-1.html * |
* Claas Anders "CaScAdE" Rathje for providing the font and his C-OSD code * |
* http://www.mylifesucks.de/oss/c-osd/ * |
* Harald Bongartz "HaraldB" for providing his Ideas and Code for usibility* |
*****************************************************************************/ |
|
|
#ifndef _OSD_H |
#define _OSD_H |
|
|
#define OSD_SCREEN_REFRESH 0 // Screen: Werte anzeigen |
#define OSD_SCREEN_REDRAW 1 // Screen: Labels und statischer Elemente neu zeichen, Werte anzeigen |
|
|
// Flags |
#define OSD_FLAG_AH 0 // Altitue Hold |
#define OSD_FLAG_PH 1 // Position Hold |
#define OSD_FLAG_CF 2 // Care Free |
#define OSD_FLAG_CH 3 // Coming Home |
#define OSD_FLAG_O1 4 // Out1 (LED 1) |
#define OSD_FLAG_O2 5 // Out2 (LED 2) |
#define OSD_FLAG_BA 6 // LowBat warning (MK) |
#define OSD_FLAG_CA 7 // Calibrate |
#define OSD_FLAG_ST 8 // Start |
#define OSD_FLAG_MR 9 // Motor Run |
#define OSD_FLAG_FY 10 // Fly |
#define OSD_FLAG_EL 11 // Emergency Landing |
#define OSD_FLAG_FS 12 // RS Failsave Active |
#define OSD_FLAG_GP 13 // GPS ok |
#define OSD_FLAG_S0 14 // GPS-Sat not ok (GPS NOT ok) |
#define OSD_FLAG_TU 15 // Vario Trim Up |
#define OSD_FLAG_TD 16 // Vario Trim Down |
#define OSD_FLAG_FR 17 // Free |
#define OSD_FLAG_RL 18 // Range Limit |
#define OSD_FLAG_SL 19 // No Serial Link |
#define OSD_FLAG_TR 20 // Target Reached |
#define OSD_FLAG_MC 21 // Manual Control |
|
#define OSD_FLAG_COUNT 22 |
|
|
void osd (uint8_t ShowMode); |
void vario_beep_output (void); |
void OSD_Timeout(uint8_t flag); |
void CheckMKLipo(void); |
extern volatile uint8_t OSD_active; |
extern volatile uint8_t error; |
|
void OSD_Element_Flag_Label( uint8_t xC, uint8_t yC, uint8_t item, uint8_t lOn, int8_t xoffs, int8_t yoffs); |
void OSD_Element_Flag( uint8_t xC, uint8_t yC, uint8_t item, int8_t xoffs, int8_t yoffs); |
void OSD_Element_AltitudeControl( uint8_t x, uint8_t y ); |
void OSD_Element_Altitude( uint8_t x, uint8_t y, uint8_t nStyle ); |
void OSD_Element_BattLevel2( uint8_t x, uint8_t y, int8_t xoffs, int8_t yoffs ); |
void OSD_Element_BatteryLevel_Bar( uint8_t x, uint8_t y ); |
void OSD_Element_BatteryLevel_Text( uint8_t x, uint8_t y, uint8_t nStyle ); |
void OSD_Element_BatteryLevel( uint8_t x, uint8_t y, uint8_t nStyle ); |
void OSD_Element_Capacity( uint8_t x, uint8_t y ); |
void OSD_Element_CareFree( uint8_t x, uint8_t y ); |
void OSD_Element_CompassDegree( uint8_t x, uint8_t y, uint8_t nStyle ); |
void OSD_Element_CompassDirection( uint8_t x, uint8_t y ); |
void OSD_Element_CompassRose( uint8_t x, uint8_t y ); |
void OSD_Element_Current( uint8_t x, uint8_t y ); |
void OSD_Element_FlyingTime( uint8_t x, uint8_t y ); |
void OSD_Element_GroundSpeed( uint8_t x, uint8_t y ); |
void OSD_Element_HomeCircle( uint8_t x, uint8_t y, uint8_t breite, int8_t rOffset, int8_t xoffs, int8_t yoffs ); |
void OSD_Element_HomeDegree( uint8_t x, uint8_t y ); |
void OSD_Element_HomeDistance( uint8_t x, uint8_t y, uint8_t nStyle ); |
void OSD_Element_LEDOutput( uint8_t x, uint8_t y, uint8_t bitmask ); |
void OSD_Element_LED1Output( uint8_t x, uint8_t y ); |
void OSD_Element_LED2Output( uint8_t x, uint8_t y ); |
void OSD_Element_Manuell( uint8_t x, uint8_t y ); |
void OSD_Element_NaviMode( uint8_t x, uint8_t y ); |
void OSD_Element_RCIntensity( uint8_t x, uint8_t y ); |
void OSD_Element_SatsInUse( uint8_t x, uint8_t y, uint8_t nStyle ); |
void OSD_Element_StatusFlags( uint8_t x, uint8_t y ); |
void OSD_Element_Variometer( uint8_t x, uint8_t y ); |
void OSD_Element_Target( uint8_t x, uint8_t y, uint8_t nStyle ); |
void OSD_Element_VarioWert( uint8_t x, uint8_t y ); |
void OSD_Element_WayPoint( uint8_t x, uint8_t y ); |
void OSD_Element_TargetDegree( uint8_t x, uint8_t y ); |
void OSD_Element_UpDown( uint8_t x, uint8_t y, int8_t xoffs, int8_t yoffs); |
|
#endif |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |