Skip to content

Commit a1d0fcd

Browse files
committed
fix cnl
1 parent 4fb944b commit a1d0fcd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ctf/blackbox/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
FROM ubuntu:latest
2-
RUN apt update && DEBIAN_FRONTEND="noninteractive" apt install -y wget python3-pip openjdk-8-jdk net-tools netcat unzip curl
2+
RUN apt update && DEBIAN_FRONTEND="noninteractive" apt install -y wget python3-pip openjdk-8-jdk net-tools netcat unzip curl strace
33
RUN wget -q https://dl.bintray.com/kaitai-io/universal/0.9/kaitai-struct-compiler-0.9.zip
44
RUN unzip kaitai-struct-compiler-0.9.zip
55
COPY . .
66
RUN cd kaitai-struct-compiler-0.9/bin && ./kaitai-struct-compiler --target python /arinc825.ksy && mv pcm825.py /
77
RUN pip3 install kaitaistruct jsonpickle
8+
89
CMD ./fdr.sh

ctf/cangateway/fg_connector_linux/src/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ int main(int argc, char *argv[]) {
151151
tx_buf.error_counter = 0;
152152
tx_buf.time_stamp_lo = 0;
153153
tx_buf.time_stamp_hi = 0;
154-
tx_buf.data[0] = flightgear_status.values[i].value;
155-
154+
float fval = *((float *) flightgear_status.values[i].value);
155+
float * fptr = (float *) &(tx_buf.data[0]);
156+
*fptr = fval;
156157
Pmc825CanAerospaceWrite(&Pmc825, &tx_buf, 1);
157158
}
158159
continue;

0 commit comments

Comments
 (0)