File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
cangateway/fg_connector_linux/src Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
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
3
3
RUN wget -q https://dl.bintray.com/kaitai-io/universal/0.9/kaitai-struct-compiler-0.9.zip
4
4
RUN unzip kaitai-struct-compiler-0.9.zip
5
5
COPY . .
6
6
RUN cd kaitai-struct-compiler-0.9/bin && ./kaitai-struct-compiler --target python /arinc825.ksy && mv pcm825.py /
7
7
RUN pip3 install kaitaistruct jsonpickle
8
+
8
9
CMD ./fdr.sh
Original file line number Diff line number Diff line change @@ -151,8 +151,9 @@ int main(int argc, char *argv[]) {
151
151
tx_buf .error_counter = 0 ;
152
152
tx_buf .time_stamp_lo = 0 ;
153
153
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 ;
156
157
Pmc825CanAerospaceWrite (& Pmc825 , & tx_buf , 1 );
157
158
}
158
159
continue ;
You can’t perform that action at this time.
0 commit comments