Maneeshsky / aeroquad

Automatically exported from code.google.com/p/aeroquad
0 stars 0 forks source link

OSD callsign suport #122

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
OSD should support displaying of call-sign (arbitrary text), this is to comply 
with legal requirement of transmitting call-sign with (video downlink) radio 
signal. 

I will attach the necessary bits here after making the patch a little more 
generic.

Original issue reported on code.google.com by khau...@gmail.com on 14 Jun 2011 at 8:17

GoogleCodeExporter commented 9 years ago
patch:

diff -ru AeroQuad.org/OSD.h AeroQuad.callsign/OSD.h
--- AeroQuad.org/OSD.h  2011-06-05 16:45:48.000000000 +0300
+++ AeroQuad.callsign/OSD.h     2011-06-15 07:40:53.000000000 +0300
@@ -39,6 +39,7 @@
 #define ShowReticle            //Displays a reticle in the centre of the screen.
 #define ShowFlightTimer        //Displays how long the motors have been armed for since the Arduino was last reset
 #define ShowAttitudeIndicator
+#define ShowCallSign
 #define feet                   //Comment this line out for altitude measured in metres, uncomment it for feet

 //Choose your video standard:
@@ -64,6 +65,13 @@
 //Flight timer - 6 characters long
 #define TIMER_ROW 0
 #define TIMER_COL 23
+//Callsign
+#define CALLSIGN_ROW 2
+#define CALLSIGN_COL 23
+#ifdef ShowCallSign
+byte *callsign = (byte*)"OH2FXR";
+#endif
+
 /********************** End of user configuration section ********************************/

 //OSD pins on AQ v2 shield:
@@ -217,7 +225,11 @@
       buf[1] = 0x02;
       writeChars( buf, 2, RETICLE_ROW, RETICLE_COL ); //write 2 chars to row (middle), column 14
     #endif
-
+
+    #ifdef ShowCallSign
+      writeChars( callsign, strlen((char*)callsign), CALLSIGN_ROW, 
CALLSIGN_COL );
+    #endif
+
     #ifdef ShowFlightTimer
     updateTimer();
     #endif

Original comment by khau...@gmail.com on 15 Jun 2011 at 4:43

GoogleCodeExporter commented 9 years ago
Please see 
http://aeroquad.com/showthread.php?2942-OSD-implementation-using-MAX7456&p=32429
&viewfull=1#post32429

Original comment by CaranchoEngineering@gmail.com on 25 Jun 2011 at 4:56

GoogleCodeExporter commented 9 years ago

Original comment by CaranchoEngineering@gmail.com on 24 Jul 2011 at 10:21