kopia lustrzana https://github.com/cyoung/stratux
Merge remote-tracking branch 'upstream/master' into ahrsFusion
commit
c95ac50763
|
@ -1,4 +1,4 @@
|
||||||
CFLAGS+=-O2 -g -Wall -Werror -Ifec
|
CFLAGS+=-O2 -Wall -Werror -Ifec
|
||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
LIBS=-lm
|
LIBS=-lm
|
||||||
CC=gcc
|
CC=gcc
|
||||||
|
|
|
@ -135,7 +135,6 @@ cd stratux
|
||||||
make www
|
make www
|
||||||
make xdump978
|
make xdump978
|
||||||
make xdump1090
|
make xdump1090
|
||||||
cp -f dump978/dump978 /usr/bin/
|
|
||||||
cp -f dump1090/dump1090 /usr/bin/
|
cp -f dump1090/dump1090 /usr/bin/
|
||||||
|
|
||||||
mv /tmp/gen_gdl90 /usr/bin/gen_gdl90
|
mv /tmp/gen_gdl90 /usr/bin/gen_gdl90
|
||||||
|
|
|
@ -349,7 +349,7 @@ func makeOwnshipGeometricAltitudeReport() bool {
|
||||||
/*
|
/*
|
||||||
|
|
||||||
"SX" Stratux GDL90 message.
|
"SX" Stratux GDL90 message.
|
||||||
http://hiltonsoftware.com/stratux/StratuxStatusMessage-V01.pdf
|
http://hiltonsoftware.com/stratux/ for latest version (currently using V104)
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -492,7 +492,7 @@ func makeSXHeartbeat() []byte {
|
||||||
v := uint16(float32(10.0) * globalStatus.CPUTemp)
|
v := uint16(float32(10.0) * globalStatus.CPUTemp)
|
||||||
|
|
||||||
msg[26] = byte((v & 0xFF00) >> 8)
|
msg[26] = byte((v & 0xFF00) >> 8)
|
||||||
msg[27] = byte(v * 0xFF)
|
msg[27] = byte(v & 0xFF)
|
||||||
|
|
||||||
// Number of ADS-B towers.
|
// Number of ADS-B towers.
|
||||||
num_towers := uint8(len(ADSBTowers))
|
num_towers := uint8(len(ADSBTowers))
|
||||||
|
|
|
@ -442,7 +442,7 @@ func esListen() {
|
||||||
|
|
||||||
//FIXME: Some stale information will be renewed.
|
//FIXME: Some stale information will be renewed.
|
||||||
valid_change := true
|
valid_change := true
|
||||||
if x[1] == "3" {
|
if x[1] == "3" { // ES airborne position message. DF17 BDS 0,5.
|
||||||
//MSG,3,111,11111,AC2BB7,111111,2015/07/28,03:59:12.363,2015/07/28,03:59:12.353,,5550,,,42.35847,-83.42212,,,,,,0
|
//MSG,3,111,11111,AC2BB7,111111,2015/07/28,03:59:12.363,2015/07/28,03:59:12.353,,5550,,,42.35847,-83.42212,,,,,,0
|
||||||
//MSG,3,111,11111,A5D007,111111, , , , ,,35000,,,42.47454,-82.57433,,,0,0,0,0
|
//MSG,3,111,11111,A5D007,111111, , , , ,,35000,,,42.47454,-82.57433,,,0,0,0,0
|
||||||
alt := x[11]
|
alt := x[11]
|
||||||
|
@ -478,7 +478,7 @@ func esListen() {
|
||||||
ti.Position_valid = true
|
ti.Position_valid = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if x[1] == "4" {
|
if x[1] == "4" { // ES airborne velocity message. DF17 BDS 0,9.
|
||||||
// MSG,4,111,11111,A3B557,111111,2015/07/28,06:13:36.417,2015/07/28,06:13:36.398,,,414,278,,,-64,,,,,0
|
// MSG,4,111,11111,A3B557,111111,2015/07/28,06:13:36.417,2015/07/28,06:13:36.398,,,414,278,,,-64,,,,,0
|
||||||
speed := x[12]
|
speed := x[12]
|
||||||
track := x[13]
|
track := x[13]
|
||||||
|
@ -513,7 +513,7 @@ func esListen() {
|
||||||
ti.Speed_valid = true
|
ti.Speed_valid = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if x[1] == "1" {
|
if x[1] == "1" { // ES identification and category. DF17 BDS 0,8.
|
||||||
// MSG,1,,,%02X%02X%02X,,,,,,%s,,,,,,,,0,0,0,0
|
// MSG,1,,,%02X%02X%02X,,,,,,%s,,,,,,,,0,0,0,0
|
||||||
tail := x[10]
|
tail := x[10]
|
||||||
|
|
||||||
|
@ -525,6 +525,16 @@ func esListen() {
|
||||||
ti.Tail = tail
|
ti.Tail = tail
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if x[1] == "5" { // Surveillance alt message. DF4, DF20.
|
||||||
|
// MSG,5,,,%02X%02X%02X,,,,,,,%d,,,,,,,%d,%d,%d,%d
|
||||||
|
// MSG,5,111,11111,AB5F1B,111111,2016/01/03,04:43:52.028,2016/01/03,04:43:52.006,,13050,,,,,,,0,,0,0
|
||||||
|
alt := x[11]
|
||||||
|
|
||||||
|
altFloat, err := strconv.ParseFloat(alt, 32)
|
||||||
|
if len(alt) != 0 && err == nil {
|
||||||
|
ti.Alt = int32(altFloat)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Update "last seen" (any type of message, as long as the ICAO addr can be parsed).
|
// Update "last seen" (any type of message, as long as the ICAO addr can be parsed).
|
||||||
ti.Last_source = TRAFFIC_SOURCE_1090ES
|
ti.Last_source = TRAFFIC_SOURCE_1090ES
|
||||||
|
|
Ładowanie…
Reference in New Issue