Flight Log Analysis

This chapter provides valuable insights into the data logging capabilities of the Reflex. The Reflex automatically records essential flight data from the moment of arming until the drone is disarmed. This data is logged in a custom dlog format, enabling users to review and analyze flight details and performance.

  1. Accessing Flight Logs: The recorded logs can be viewed in the Reflex Web interface under the Logs section. To access the logs:

    • Launch the Web interface.
    • Navigate to the Logs page.
    • Click on the Plot icon to open the dlog viewer in a new tab.
  2. Analyzing Flight Logs:

    • Use the dlog viewer to visualize and interpret the recorded flight logs.
  3. Exporting Flight Logs:

    • On the Logs page of the Reflex Web interface, you can export the flight logs to CSV format by clicking on the CSV button next to the log file.
    • Exporting the logs to CSV allows for further analysis using external tools or software.

Flight Parameters

This section provides guidance on where to locate essential flight parameters within the dlog file when using the dlog plotter.

  • States
    • Position ENU (m): advanced-state-estimate/position
    • Velocity ENU (m/s): advanced-state-estimate/velocity_enu
    • Euler angles (degree)
      • Roll angle: advanced-state-estimate/roll_deg
      • Pitch angle: advanced-state-estimate/pitch_deg
      • Yaw angle: advanced-state-estimate/yaw_deg
    • Angular velocity filtered (rad/s): commander-status/attitude_state_lpf/velocity
    • Acceleration ENU (m/s2): advanced-state-estiamte/acceleration_enu
    • Height above ground (m): advanced-state-estimate/height_above_ground
  • Setpoints
    • Position ENU setpoint (m): commander_status/position_sp
    • Velocity ENU setpoint (m/s): commander_status/velocity_enu_sp
    • Euler angles setpoint (degree)
      • Roll angle setpoint: commander_status/roll_deg_sp
      • Pitch angle setpoint: commander_status/pitch_deg_sp
      • Yaw angle setpoint: commander_status/yaw_deg_sp
    • Angular velocity setpoint (rad/s): commander_status/angular_velocity_sp
  • Mean throttle: commander_status/mean_throttle
  • Flight mode: commander_status/flight_control/flight_mode
    • 0 = Attitude
    • 1 = Altitude
    • 2 = Position
    • 3 = Mission
    • 4 = Failsafe RTL
    • 5 = Failsafe land
    • 6 = Kill
    • 7 = Land
    • 8 = Hold
    • 9 = Takeoff
    • 10 = RTL
  • Position source: advance-state-estimate/position_source
    • 0 = GNSS
    • 1 = Mocap
  • Heading source: advance-state-estimate/heading_source
    • 0 = Magnetometer
    • 1 = GNSS
    • 2 = Motion Capture
  • Control algorithm: commander_status/active_control_algorithm
    • 0 = Feedforward
    • 1 = PID
    • 2 = INDI
  • Takeoff and landing detection:
    • Takeoff Detection : commander_status/takeoff_and_landing_detection_result/takeoff_detector_result
      • 0 = Not configured
      • 1 = Takeoff not detected
      • 2 = Takeoff detected
    • Landing Detection : commander_status/takeoff_and_landing_detection_result/landing_phase
      • 0 = Not detected
      • 1 = First Intermediate landing phase detected
      • 2 = Second intermediate landing phase detected
      • 3 = Landing detected
  • Motors
    • Motor configured : motors/motors/[ESC port number]/configured
    • RPM setpoint : motors/motors/[ESC port number]/rpm_setpoint
    • RPM feedback : motors/motors/[ESC port number]/rpm_feedback
    • Throttle setpoint : motors/motors/[ESC port number]/throttle_setpoint
  • Remote control
    • Raw channel data: rc
    • Commander processed RC data: rc_status
  • Raw sensor data
    • IMU: sensors/accgyr
    • Barometer: sensors/pressure
    • GNSS: sensors/gnss
    • Range Finder: sensors/distance
    • Magnetometer: sensors/magneto
  • Battery information: power