Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tlog is not writing until uncheck + check the box in settings #1232

Open
RoboSchmied opened this issue Feb 5, 2021 · 6 comments
Open

tlog is not writing until uncheck + check the box in settings #1232

RoboSchmied opened this issue Feb 5, 2021 · 6 comments

Comments

@RoboSchmied
Copy link

The tlog file is not written until I uncheck + re-check the box "Enable Mavlink Logging (tlog)" in "APM Planner 2.0 Config" menu.

The checkbox is enabled when the program starts but no tlog file is created when connecting serial port.

Disabling the checkbox "Enable Mavlink Logging (tlog)" and enabling it again makes the app create the file and log to it.

I guess it is a problem while loading the settings.

branch: master
version: APM Planner v2.0.28-rc1
platform: Linux 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux

@drobban
Copy link
Contributor

drobban commented Feb 7, 2021

Nice error report!

Would guess that the maintainer more then happily would accept a pull request if you are able to figure out the source of the problem.

Haven't worked with the source for a long while now, but more then willingly to help out if you have any questions.

@Arne-W
Copy link
Contributor

Arne-W commented Feb 14, 2021

@RoboSchmied For me it works 😄 I will have a closer look in the next days.

@Arne-W
Copy link
Contributor

Arne-W commented Feb 21, 2021

@RoboSchmied Ok I took a closer look and I am sorry as I cannot reproduce your issue.
All flags that enable the logging itself are enabled by default. The settings are loaded while you can see the splash screen - long before anything can connect. In your home folder should be an apmplanner2 folder. Inside of this folder you can find some txt files with a name starting with apmlog_. Inside you should be able to find something like

ArduPilotMegaMAV APM Connected [20210221 17:25:10.266 DEBUG] - LinkManger::startLogging() "/home/user/apmplanner2/tlogs/quadcopter//2021-02-21 17-25-10.tlog" [20210221 17:25:10.267 DEBUG] - Start MAVLink logging "/home/user/apmplanner2/tlogs/quadcopter//2021-02-21 17-25-10.tlog"

If the file does not exist we have to look closer - cause it is not logged if opening fails.

@RoboSchmied
Copy link
Author

@Arne-W you are right + thx.

This issue only occurs, when INAV is the source of the mavlink telemetry data.
Using ardupilot as telemetry source makes the logs be written normally (no issue).

Inav (flight controller software) has a limited mavlink implemetation.
inav docs:

MAVLink implementation in INAV is transmit-only.

Is this an INAV issue or should "APMPlanner" be changed to fix this issue?

@Arne-W
Copy link
Contributor

Arne-W commented Mar 4, 2021

@RoboSchmied It looks like the logging starts only if an ArduPilotMegaMAV connects - thus connecting an INAV does not trigger logging start. It would be cool if you could upload a logfile where I can see what is happening when you are connecting to the INAV device. Perhaps we can do something....

@RoboSchmied
Copy link
Author

RoboSchmied commented Mar 15, 2021

@Arne-W Thank you.
I uploaded an apmlog and a tlog file here: log-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants