[DJI-log-discuss] Drone Type

Ross Finlayson finlayson at live555.com
Sun Jul 26 17:47:43 PDT 2020



> On Jul 27, 2020, at 12:19 PM, big dog <ifusereqtrue at gmail.com> wrote:
> 
> Hi,
> 
> I am troubleshooting the drone type information but struggling with my limited c++ knowledge. In my log the drone type is unknown, this is a mavic 2.
> 
> I can see interpretationTables.cpp and i see mavic 2 is missing, am i right in assuming that an int is output and mapped to a string? 
> 
> Per my previous email about printing out information, i have put the following in the parseRecord_RECOVER.cpp at the top of the function:
> 
> for (u_int8_t const* p = ptr; p < limit; ++p) fprintf(stderr, "PRINT DRONE HERE:%02x", *p);
> fprintf(stderr, "PRINT DRONE: \n");

Suggestion: Change this code to the following:
	fprintf(stderr, "PRINT DRONE HERE:\n”);
	for (u_int8_t const* p = ptr; p < limit; ++p) fprintf(stderr, “%02x:", *p);
	fprintf(stderr, “\nDONE\n”);
	exit(0);

If you do this, you’ll see output that shows the very first RECOVER record, but none more.

Send us the output that you see - between "PRINT DRONE HERE:” and “DONE”.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the DJI-log-discuss mailing list