|
Re: Camera problem Serial Port 2 Inserting Extra Null Bytes?
The code I am using is Kevin Watson's 2007 streamlined code with modifications to send virtual window commands when the confidence is in the range for two target detection. The code will usually work for 15 minutes or more if I start it by disconnecting the main battery and wait until the backup battery operation stops. But eventually communication between the RC and the camera degrades and the extra zero bytes shown before happen. Because they happen in the middle of the tracking packet (in the example I posted) and I am using Kevin's code to send a properly formatted tracking packet there is something else going on in the system that is dependent on start-up conditions. It is possible that some residual IFI serial port code is writing to the serial port transmit register from time to time so I removed all of the code I could that might do that except for what is in IFI's library. I am stumped as to where the zero bytes are coming from and I am convinced they are real because the camera NCK's the packets with the zero bytes.
|