Commit ee0dbc6b authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

prevent sattracker from making large jump at 270 degrees

parent fc09aecb
......@@ -2,7 +2,7 @@ include ../build.mk
CFLAGS= -Wall -g -I../../common/utils -I../controller -Iaalib -Ipredictlib -I../../common/trace -I../../common/include -I../../include
LDFLAGS+= -L../../common/lib/ -L${CURDIR}../../lib/ -L./lib -lutils -ltrace -static
LDFLAGS+= -L../../common/lib/ -L../../lib/ -L./lib -lutils -ltrace -static
LIBNOVA=-lnova -L../../lib/
......
......@@ -434,7 +434,7 @@ int main(int argc, char **argv)
az += copysign(360.0, last_az);
}
}
if (switch_cmd && fabs(last_az - az) > 180.0) {
if (!switch_cmd && fabs(last_az - az) > 180.0) {
switch_enabled = false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment