Project

General

Profile

Sbg » History » Version 4

Anonymous, 08/29/2016 07:46 AM

1 1 Anonymous
h1. Sbg
2
3 2 Anonymous
h2. Connexion
4
5 1 Anonymous
La connection entre le radar et la centrale à intertie se fait en utilisant le conecteur "external aiding connector". Celui-ci est connecté d'un côté à la centrale par un connecteur AluLite Fischer 19 points et de l'autre à un connteur Sub-D 9 points.
6
7
Le câblage est le suivant:
8
* Sub-D 1
9
* Sub-D 2
10
* Sub-D 3
11
* Sub-D 4
12
* Sub-D 5
13
* Sub-D 6
14
* Sub-D 7
15
* Sub-D 8
16
* Sub-D 9
17 2 Anonymous
18
h2. Utilisation de l'API
19
20 4 Anonymous
Sous Linux, pour pouvoir utiliser la bibliothèque fournie par SBG, il faut la recompiler avec l'option *-fPIC* (modification du fochier *build.sh* situé dans le répertoire *Ekinox/Software_Development/sbgECom/projects/unix*):
21 2 Anonymous
22
<pre>
23
#!/bin/sh
24
# This script is used to build the sbgCom library on unix systems.
25
# To compile the library, you have to specify the byte ordering.
26
# Example: ./build.sh SBG_PLATFORM_LITTLE_ENDIAN
27
28
# Test that we have the endianness argument
29
if [ $# -ne 1 ]; then
30
    echo "You have to specify the platform endianness using either SBG_PLATFORM_BIG_ENDIAN or SBG_PLATFORM_LITTLE_ENDIAN"
31
    exit 1
32
fi
33
34
# Test the first argument and define the GCC options according to the selected endianness
35
if [ "$1" = "SBG_PLATFORM_BIG_ENDIAN" ]; then
36
    # The platform is in big endian
37
    gccOptions="-c -Wall -D SBG_PLATFORM_BIG_ENDIAN"
38
elif [ "$1" = "SBG_PLATFORM_LITTLE_ENDIAN" ]; then
39
    # The platform is in little endian
40
    # add -fPIC => PLE
41
    gccOptions="-c -Wall -D SBG_PLATFORM_LITTLE_ENDIAN -fPIC"
42
else
43
    echo "You have entered an invalid argument"
44
    exit 1
45
fi
46
</pre>