
Diagnosing RTL Issues in ArduPilot: A Guide Using MODE Logs
Key Takeaway
Diagnosing RTL issues in ArduPilot can be done effectively with MODE log messages.
TL;DR: Diagnosing RTL issues in ArduPilot often involves analyzing MODE Rsn log messages. Look for MODE Rsn=1 (GCS command), MODE Rsn=2 (radio failsafe), MODE Rsn=3 (battery failsafe), MODE Rsn=4 (GCS failsafe), and MODE Rsn=5 (EKF failsafe) for critical insights into why RTL might not trigger as expected.
How to Diagnose RTL Issues in ArduPilot Using MODE Logs?
Diagnosing RTL issues in ArduPilot requires understanding the functionality of Return-to-Launch (RTL) mode, which brings the drone back to its launch point under specific conditions. Analyzing MODE Rsn log messages can provide valuable insights into potential causes of RTL failures. This analysis is critical for resolving issues effectively.
MODE Rsn RsnNum ModeNum RsnReason
RsnNum: Reason number indicating the cause of mode switching.ModeNum: Numerical representation of the current flight mode.RsnReason: Descriptive text explaining the reason for the mode change.
Key Takeaway: Understanding the RTL functionality and its triggers is vital for diagnosing issues effectively.
How to Confirm RTL Issues in Mission Planner?
To analyze the MODE log messages in Mission Planner, follow these steps:
- Open Mission Planner and connect to your drone.
- Navigate to the Flight Data tab.
- Click on DataFlash Logs from the menu.
- Select Review a Log to load your flight log.
When reviewing the logs, plot these fields to gain insights into potential RTL issues:
MODE.ModeNumMODE.RsnERR.Subsys
Key Takeaway: Utilizing Mission Planner effectively allows for targeted analysis of MODE logs to identify issues related to RTL.
How to Confirm RTL Issues in MAVExplorer?
In MAVExplorer, you can use commands to visualize relevant data efficiently. For example:
MAV> graph MODE.Rsn MODE.ModeNum
This command will plot the mode reason alongside the mode number, allowing you to identify the specific reasons for mode changes and any potential RTL triggers.
Key Takeaway: MAVExplorer provides a powerful way to visualize MODE log data, enhancing your troubleshooting capabilities.
What Are the Common Causes of RTL Issues?
- Loss of RC Signal: A common cause of RTL failure occurs when the drone loses connection to the RC transmitter. This is logged as
MODE Rsn=2(radio failsafe), which may not always trigger RTL unless configured correctly. - Battery Failsafe Activation: If the battery voltage drops too low,
MODE Rsn=3indicates a battery failsafe. EnsureFS_BATT_ENABLEis set to1to ensure RTL triggers during battery failsafe conditions. - GCS Command Influence: A
MODE Rsn=1log entry indicates a command received from the Ground Control Station (GCS). This can override RTL settings if not managed properly. - EKF Failsafe:
MODE Rsn=5indicates an EKF failsafe situation but does not guarantee RTL activation without proper configuration. Ensure that settings related to EKF are optimized for reliable RTL. - Configuration Errors: Incorrect settings for parameters like
FS_THR_ENABLEcan prevent RTL from being activated during low throttle situations.
Key Takeaway: Understanding the frequency and causes of RTL issues can help pinpoint underlying problems and enhance troubleshooting efficiency.
How to Fix RTL Issues in ArduPilot?
- Set
FS_BATT_ENABLE = 1to ensure RTL triggers during battery failsafe conditions. - Verify
FS_THR_ENABLE = 1to activate RTL under low throttle situations. - Check
MODE.Rsnlogs for entries related to GCS commands (MODE Rsn=1) and adjust GCS settings if necessary. - Ensure your receiver and drone are properly calibrated to avoid radio failsafe issues.
- Review battery health and ensure voltage thresholds configured in
BATT_LOW_VOLTare appropriate. - Confirm that the drone's firmware version is up to date, as updates may include important fixes related to RTL functionality.
- Conduct a ground test to simulate failsafe conditions and verify that the RTL feature engages as expected.
- Consider documenting the results of your tests to track any changes or improvements over time.
- Understand the
FS_EKF_ACTIONvalues to ensure that the EKF failsafe settings are appropriate for your use case.
Key Takeaway: Addressing these parameter settings and configurations can significantly improve the reliability of RTL functionality.
When This Isn't Actually RTL Failure?
MODE Rsn=4indicates a GCS failsafe, which should not be confused with RTL triggers.MODE Rsn=2indicates a radio failsafe that may not always lead to RTL activation.- Low battery warnings may not trigger RTL if the
FS_BATT_ENABLEis set to0. - Conditions logged as
MODE Rsn=5may not directly result in RTL engagement.
Key Takeaway: It's essential to differentiate between actual RTL activation and other failsafe conditions to avoid misdiagnosis.
When LogHat Helps — and When It Doesn't
LogHat aids in diagnosing RTL issues by aggregating and visualizing log data from MODE messages and other relevant fields. It streamlines the process of identifying critical failures. However, it cannot substitute for manual configuration checks or hardware diagnostics, which remain essential for addressing certain RTL issues.
Key Takeaway: While LogHat enhances log analysis, it should be used in conjunction with thorough hardware and configuration checks.
What is RTL in drone operation?
A: RTL stands for Return-to-Launch, a fail-safe mode that brings the drone back to its launch point.How can I access MODE log messages?
A: MODE log messages can be accessed through Mission Planner or other compatible log analysis tools.What does MODE Rsn=1 indicate?
A: MODE Rsn=1 indicates a command received from the Ground Control Station (GCS).How does a radio failsafe influence RTL?
A: A radio failsafe, logged as MODE Rsn=2, may prevent RTL from triggering if not configured properly.What should I check if my drone doesn't initiate RTL?
A: Check parameters like FS_BATT_ENABLE and FS_THR_ENABLE to ensure they are set to 1 for correct operation under failsafe conditions.Can low battery conditions trigger RTL?
A: Yes, but only if FS_BATT_ENABLE is set to 1 and the voltage drops below the configured threshold.What is the significance of MODE Rsn=5?
A: MODE Rsn=5 indicates an EKF failsafe, which may lead to RTL, but further configuration is necessary for guaranteed activation.What is the significance of MODE Rsn=3?
A: MODE Rsn=3 indicates a battery failsafe condition, which requires proper settings to ensure RTL triggers.If you found this information helpful, consider using LogHat for deeper insights into your drone's flight logs and improved troubleshooting capabilities. Our platform is designed to assist you in understanding complex flight data effectively.
About the author
LogHat Engineering Team
The LogHat engineering team — drone-systems engineers who build and operate the LogHat flight analytics platform. Posts in this byline are written and reviewed by team members working on the parsers, analysis engine, and Vector AI that the post describes.
Tagged
Try LogHat
Analyze your flight logs in seconds
Upload a .bin, .tlog, .log, or .ulg file. Get AI crash analysis, 3D replay, and forensic PDF reports instantly.
Try LogHat Free