Skip to content
Snippets Groups Projects
Commit cc4e4a0f authored by Marwan B's avatar Marwan B
Browse files

initial commit

parents
No related branches found
No related tags found
1 merge request!1initial commit
Showing
with 510 additions and 0 deletions
# Binaries werden nicht versioniert!
*.o
*.exe
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<style>
.key {background-color:lightgrey;}
</style>
<title>User manual for Bluedot Darmstadt</title>
</head>
<body>
<h1>Bluedot Darmstadt</h1>
<h2>Station tuning</h2>
<h3>Automatic tuning <span class="key">&uarr;</span> / <span class="key">&darr;</span></h3>
<p>Press <span class="key">&uarr;</span> / <span class="key">&darr;</span>;
the car radio will automatically search for the next station</p>
<p>If you hold <span class="key">&uarr;</span> / <span class="key">&darr;</span>,
seek tuning will speed up in upwards or downwards direction.
</p>
<h3>Seek tuning</h3>
<table>
<tr>
<td><span class="key">&uarr;</span></td>
<td>Up</td>
</tr>
<tr>
<td><span class="key">&darr;</span></td>
<td>Down</td>
</tr>
<tr>
<td><span class="key">&lt;&lt;</span></td>
<td>Down in short intervals</td>
</tr>
<tr>
<td><span class="key">&gt;&gt;</span></td>
<td>Up in short intervals</td>
</tr>
</table>
<h3>Manual tuning with <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span></h3>
<p>Press <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span>,
the frequency will change in short intervals downwards or upwards.
</p>
<p>
If you hold <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span> down,
the frequency scan will accelerate.
</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<style>
.key {background-color:lightgrey;}
</style>
<title>User manual for Bluedot Dieburg</title>
</head>
<body>
<h1>Bluedot Dieburg</h1>
<h2>Tuning into a station</h2>
<p>There are various ways of tuning into a station.</p>
<h3>Automatic station seek tuning</h3>
<p>Press the <span class="key">&uarr;</span> or <span class="key">&darr;</span> button.</p>
<p>The radio tunes into the next receiavable station</p>
<h3>Tuning into stations manually</h3>
<p>You can also tune into stations manually.</p>
<p>Press the <span class="key">&larr;</span> or <span class="key">&rarr;</span> button.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<style>
.key {background-color:lightgrey;}
</style>
<title>User manual for Bluedot Griesheim</title>
</head>
<body>
<h1>Bluedot Griesheim</h1>
<h2>Selecting a station</h2>
<p>The display will indicate the station name or, if no data is received, the frequency of the station currently playing.</p>
<p>There are several different ways of selecting a station:</p>
<h3>...by station search or manually</h3>
<h4>Start the station search function by pressing</h4>
<p><span class="key">&uarr;</span> (up) or <span class="key">&darr;</span> (down).</p>
<p>The station search will stop at the next station within reception range.
If you hold down <span class="key">&uarr;</span> or <span class="key">&darr;</span>,
the station search will run forwards or backwards quickly.
</p>
<h4>Start the manual search</h4>
<p>by pressing <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span>,
the frequency will move up or down in increments.
</p>
<p>
If you hold <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span> down,
then the frequency will run through quickly.
</p>
</body>
</html>
#ifdef DARMSTADT
#define CITY Darmstadt
#endif
#ifdef DIEBURG
#define CITY Dieburg
#endif
#ifdef GRIESHEIM
#define CITY Griesheim
#endif
#ifdef DEUTSCH
#include "lang_de_griesheim.txt"
#endif
#ifdef CITY
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<style>
.key {background-color:lightgrey;}
</style>
<title>User manual for Bluedot CITY</title>
</head>
<body>
<h1>Bluedot CITY</h1>
#if defined DARMSTADT || defined GRIESHEIM
The display will indicate the station name or, if no data is received, the frequency of the station currently playing.
There are several different ways of selecting a station:
<h2>Station tuning</h2>
#endif
// dieburg has only the ⬆/⬇ tuning for the manual tuning
#if defined DIEBURG
<h2>Tuning into a station</h2>
<p>There are various ways of tuning into a station.</p>
<h3>Automatic station seek tuning</h3>
<p>Press the <span class="key">&uarr;</span> or <span class="key">&darr;</span> button.</p>
<p>The radio tunes into the next receiavable station</p>
<h3>Tuning into stations manually</h3>
<p>You can also tune into stations manually.</p>
<p>Press the <span class="key">&larr;</span> or <span class="key">&rarr;</span> button.</p>
#endif
// darmstadt only has seek tuning
#if defined DARMSTADT
<h3>Seek tuning</h3>
<table>
<tr>
<td><span class="key">&uarr;</span></td>
<td>Up</td>
</tr>
<tr>
<td><span class="key">&darr;</span></td>
<td>Down</td>
</tr>
<tr>
<td><span class="key">&lt;&lt;</span></td>
<td>Down in short intervals</td>
</tr>
<tr>
<td><span class="key">&gt;&gt;</span></td>
<td>Up in short intervals</td>
</tr>
</table>
#endif
// darmstadt and dieburg have the >> tuning
#if defined DARMSTADT || defined GRIESHEIM
<h3>Automatic tuning <span class="key">&uarr;</span> / <span class="key">&darr;</span></h3>
<p>Press <span class="key">&uarr;</span> / <span class="key">&darr;</span>;
the car radio will automatically search for the next station</p>
<p>If you hold <span class="key">&uarr;</span> / <span class="key">&darr;</span>,
seek tuning will speed up in upwards or downwards direction.
</p>
<h3>Manual tuning with <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span></h3>
<p>Press <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span>,
the frequency will change in short intervals downwards or upwards.
</p>
<p>
If you hold <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span> down,
the frequency scan will accelerate.
</p>
#endif
#if defined GRIESHEIM
<h3>Manual Tuning with numeric Keypad</h3>
<p>
You can use the numeric Keypad to manually type in the frequency of a station you are looking for.
</p>
#endif
</body>
</html>
#endif
\ No newline at end of file
In this folder you find
- a windows batch file (createManual.bat) that creates the manuals on windows
- a linux batch file (createManual.sh) that creates the manuals on linux
- 3 text files with the manual pages for 3 car radios (Darmstadt.txt, Dieburg.txt, Griesheim.txt)
- a cpp file (_RadioManual.cpp) that uses the C-preprocessor to include the txt-files depending on parameters passed
This exercise requires the GNU C-preprocessor. So please make sure that the command gcc is working in a console window.
Maybe you have to adopt your path-Variable to make sure that gcc is found.
Be aware that the scripts compare strings. So it is important to use the correct spelling and to take care of uppercase letters.
It your environment is properly set up you can start the script (.sh or .bat) in a console window as follows
on windows: .\createManual.bat DARMSTADT darmstadt.html or
on Linux: ./createManual.sh DARMSTADT darmstadt.html
If you need some help about C-Preprocessor commands, look at
https://de.wikibooks.org/wiki/C-Programmierung:_Pr%C3%A4prozessor
@ECHO OFF
rem param1 is target, param2 is output-file (e.g.)
IF NOT "%2"=="" GOTO 2Params
IF NOT "%1"=="" GOTO 1Params
GOTO 0Params
:0Params
ECHO No Radio specified. Try again!
ECHO 1st parameter specifies radio (e.g. DARMSTADT)
ECHO 2nd parameter specifies filename for output (e.g. Darmstadt.html)
GOTO End1
:1Params
@ECHO ON
gcc -E -P -Wall -D %1 _RadioManual.cpp
@ECHO OFF
GOTO End1
:2Params
@ECHO ON
gcc -E -P -Wall -D %1 -o %2 _RadioManual.cpp
@ECHO OFF
GOTO End1
:End1
\ No newline at end of file
#!/bin/sh
#clear
# param1 is target, param2 is output-file
NoOfParams="0"
if [ $1 ]; then
NoOfParams="1"
fi
if [ $2 ]; then
NoOfParams="2"
fi
case $NoOfParams in
1)
gcc -E -P -Wall -D $1 _RadioManual.cpp
;;
2)
gcc -E -P -Wall -D $1 -o $2 _RadioManual.cpp
;;
3)
gcc -E -P -Wall -D $1 -D $2 -o $3 _RadioManual.cpp
;;
*)
echo "No Radio specified. Try again!"
echo "1st parameter specifies radio (e.g. DARMSTADT)"
echo "2nd parameter specifies filename for output (e.g. Darmstadt.html)"
;;
esac
\ No newline at end of file
#!/bin/sh
#clear
# param1 is target, param2 is output-file
NoOfParams="0"
if [ $1 ]; then
NoOfParams="1"
fi
if [ $2 ]; then
NoOfParams="2"
fi
if [ $3 ]; then
NoOfParams="3"
fi
if [ ! -d "./oneFitsAll/" ]; then
mkdir -p ./oneFitsAll/translation
fi
case $NoOfParams in
1)
gcc -E -P -Wall -D $1 oneForAll.cpp
;;
2)
gcc -E -P -Wall -D $1 -o ./oneFitsAll/$2 oneForAll.cpp
;;
3)
gcc -E -P -Wall -D $1 -D $2 -o ./oneFitsAll/translation/$3 oneForAll.cpp
;;
*)
echo "No Radio specified. Try again!"
echo "1st parameter specifies radio (e.g. DARMSTADT)"
echo "2nd parameter specifies filename for output (e.g. Darmstadt.html)"
;;
esac
\ No newline at end of file
The display will indicate the station name or, if no data is received, the frequency of the station currently playing.
There are several different ways of selecting a station:
<h2>Station tuning</h2>
\ No newline at end of file
<h3>Manual Tuning with numeric Keypad</h3>
<p>
You can use the numeric Keypad to manually type in the frequency of a station you are looking for.
</p>
\ No newline at end of file
<h3>Seek tuning</h3>
<table>
<tr>
<td><span class="key">&uarr;</span></td>
<td>Up</td>
</tr>
<tr>
<td><span class="key">&darr;</span></td>
<td>Down</td>
</tr>
<tr>
<td><span class="key">&lt;&lt;</span></td>
<td>Down in short intervals</td>
</tr>
<tr>
<td><span class="key">&gt;&gt;</span></td>
<td>Up in short intervals</td>
</tr>
</table>
\ No newline at end of file
Das Display zeigt die Nummer der Radiostation an, falls keine Informationen erhalten wurden, wird die Frequenz der Station angezeigt.
Es gibt verschieden Arten für Stations auswahl:
\ No newline at end of file
<h3>Manuelles Tuning mithilfe der Nummern</h3>
<p>
Sie können die Frequenz einer Station manuelle eingeben, mithilfe der nummerischen Knöpfe.
</p>
\ No newline at end of file
<h2>Station Auswahl</h2>
<h3>Automatische Auswahl <span class="key">&uarr;</span> / <span class="key">&darr;</span></h3>
<p>Drücken Sie den <span class="key">&uarr;</span> / <span class="key">&darr;</span>;
das Radio wird automatische die nächste Station aussuchen.</p>
<p>Halten Sie den <span class="key">&uarr;</span> / <span class="key">&darr;</span> Knopf,
wird die Geschwindikeit nach oben oder unten erhöht.
</p>
<h3>Manuelle Suche <span class="key">&lt;&lt;</span> oder <span class="key">&gt;&gt;</span></h3>
<p>Drücken Sie den <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span> Knopf,
die Frequenz wird sich in kleinen Intervallen oben oder unten änderen.
</p>
<p>
Falls Sie den <span class="key">&lt;&lt;</span> oder <span class="key">&gt;&gt;</span> Knopf halten,
erhöht sich die Geschwindikeit der Frequenzsuche.
</p>
\ No newline at end of file
<h3>Automatic tuning <span class="key">&uarr;</span> / <span class="key">&darr;</span></h3>
<p>Press <span class="key">&uarr;</span> / <span class="key">&darr;</span>;
the car radio will automatically search for the next station</p>
<p>If you hold <span class="key">&uarr;</span> / <span class="key">&darr;</span>,
seek tuning will speed up in upwards or downwards direction.
</p>
<h3>Manual tuning with <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span></h3>
<p>Press <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span>,
the frequency will change in short intervals downwards or upwards.
</p>
<p>
If you hold <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span> down,
the frequency scan will accelerate.
</p>
\ No newline at end of file
<h2>Tuning into a station</h2>
<p>There are various ways of tuning into a station.</p>
<h3>Automatic station seek tuning</h3>
<p>Press the <span class="key">&uarr;</span> or <span class="key">&darr;</span> button.</p>
<p>The radio tunes into the next receiavable station</p>
<h3>Tuning into stations manually</h3>
<p>You can also tune into stations manually.</p>
<p>Press the <span class="key">&larr;</span> or <span class="key">&rarr;</span> button.</p>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<style>
.key {background-color:lightgrey;}
</style>
<title>User manual for Bluedot City</title>
</head>
<body>
<h1>Bluedot Griesheim</h1>
Das Display zeigt die Nummer der Radiostation an, falls keine Informationen erhalten wurden, wird die Frequenz der Station angezeigt.
Es gibt verschieden Arten für Stations auswahl:
<h2>Station Auswahl</h2>
<h3>Automatische Auswahl <span class="key">&uarr;</span> / <span class="key">&darr;</span></h3>
<p>Drücken Sie den <span class="key">&uarr;</span> / <span class="key">&darr;</span>;
das Radio wird automatische die nächste Station aussuchen.</p>
<p>Halten Sie den <span class="key">&uarr;</span> / <span class="key">&darr;</span> Knopf,
wird die Geschwindikeit nach oben oder unten erhöht.
</p>
<h3>Manuelle Suche <span class="key">&lt;&lt;</span> oder <span class="key">&gt;&gt;</span></h3>
<p>Drücken Sie den <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span> Knopf,
die Frequenz wird sich in kleinen Intervallen oben oder unten änderen.
</p>
<p>
Falls Sie den <span class="key">&lt;&lt;</span> oder <span class="key">&gt;&gt;</span> Knopf halten,
erhöht sich die Geschwindikeit der Frequenzsuche.
</p>
<h3>Manuelles Tuning mithilfe der Nummern</h3>
<p>
Sie können die Frequenz einer Station manuelle eingeben, mithilfe der nummerischen Knöpfe.
</p>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<style>
.key {background-color:lightgrey;}
</style>
<title>User manual for Bluedot Griesheim</title>
</head>
<body>
<h1>Bluedot Griesheim</h1>
The display will indicate the station name or, if no data is received, the frequency of the station currently playing.
There are several different ways of selecting a station:
<h2>Station tuning</h2>
<h3>Automatic tuning <span class="key">&uarr;</span> / <span class="key">&darr;</span></h3>
<p>Press <span class="key">&uarr;</span> / <span class="key">&darr;</span>;
the car radio will automatically search for the next station</p>
<p>If you hold <span class="key">&uarr;</span> / <span class="key">&darr;</span>,
seek tuning will speed up in upwards or downwards direction.
</p>
<h3>Manual tuning with <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span></h3>
<p>Press <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span>,
the frequency will change in short intervals downwards or upwards.
</p>
<p>
If you hold <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span> down,
the frequency scan will accelerate.
</p>
<h3>Manual Tuning with numeric Keypad</h3>
<p>
You can use the numeric Keypad to manually type in the frequency of a station you are looking for.
</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<style>
.key {background-color:lightgrey;}
</style>
<title>User manual for Bluedot Griesheim</title>
</head>
<body>
<h1>Bluedot Griesheim</h1>
Das Display zeigt die Nummer der Radiostation an, falls keine Informationen erhalten wurden, wird die Frequenz der Station angezeigt.
Es gibt verschieden Arten für Stations auswahl:
<h2>Station Auswahl</h2>
<h3>Automatische Auswahl <span class="key">&uarr;</span> / <span class="key">&darr;</span></h3>
<p>Drücken Sie den <span class="key">&uarr;</span> / <span class="key">&darr;</span>;
das Radio wird automatische die nächste Station aussuchen.</p>
<p>Halten Sie den <span class="key">&uarr;</span> / <span class="key">&darr;</span> Knopf,
wird die Geschwindikeit nach oben oder unten erhöht.
</p>
<h3>Manuelle Suche <span class="key">&lt;&lt;</span> oder <span class="key">&gt;&gt;</span></h3>
<p>Drücken Sie den <span class="key">&lt;&lt;</span> or <span class="key">&gt;&gt;</span> Knopf,
die Frequenz wird sich in kleinen Intervallen oben oder unten änderen.
</p>
<p>
Falls Sie den <span class="key">&lt;&lt;</span> oder <span class="key">&gt;&gt;</span> Knopf halten,
erhöht sich die Geschwindikeit der Frequenzsuche.
</p>
<h3>Manuelles Tuning mithilfe der Nummern</h3>
<p>
Sie können die Frequenz einer Station manuelle eingeben, mithilfe der nummerischen Knöpfe.
</p>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment