-
Couldn't load subscription status.
- Fork 9
Log Details
Below is a list of the various log categories you will encounter in the log files. The first section contains a list of useful categories in alphabetically order. The second section contains a list of the remaining categories with a very brief description in case you are interested.
An example log file can be found here
Here is a brief mapping between the variables you have access to in your code and variables in the logs (note these mappings only matter in the "aa241x" branch of the code when you begin programming your own firmware)::
-
roll-> Roll -
pitch-> Pitch -
yaw-> Yaw -
roll_rate-> RollRate -
pitch_rate-> PitchRate -
yaw_rate-> YawRate
-
speed_body_u-> u -
speed_body_v-> v -
speed_body_w-> w -
position_N-> N -
position_E-> E -
position_D_gps-> Dgps -
position_D_baro-> Dbaro -
ground_speed-> GrndSpd or GrndCrs (depending on code version)
-
in_mission-> InM -
start_time-> STim -
current_time-> CTim -
final_time-> FTim -
mission_failed-> MFail -
turn_num-> TrnNum -
turn_degrees-> TurnDeg -
num_violations-> NumV -
in_violation-> InV -
out_of_bounds-> OoB
-
accel_body_x-> AccX -
accel_body_y-> AccY -
accel_body_z-> AccZ
-
vel_N-> VelN -
vel_E-> VelE -
vel_D-> VelD
-
ground_course-> Cog (at the moment just heading, but will be mapped to Cog) -
gps_ok-> Fix
-
air_speed-> TrueSpeed
-
battery_voltage-> VFilt -
battery_current-> C
-
roll_servo_out-> Roll -
pitch_servo_out-> Pitch -
yaw_servo_out-> Yaw -
throttle_servo_out-> Throttle
-
man_roll_in-> CH0 -
man_pitch_in-> CH1 -
man_throttle_in-> CH2 -
man_yaw_in-> CH3 -
man_flaps_in-> CH4 -
man_aux1_in-> CH5 -
man_aux2_in-> CH6
Param Values - these values can be found in the parameter list.
roll_trimpitch_trimyaw_trim
Unmapped
local_pos_ne_validlocal_pos_d_valid
-Note that if it says that the data type is only present in the AA241x version of the code, those variables will not be in the logs when using the default Pixhawk firmware. So for PS1, you will not have ADAT
Only present in the AA241x version of the code. This contains the calculated auxiliary data that is not found in other log categories.
- Dbaro [m] - the barometeric pressure altitude above the center of lake lag
- Dgps [m] - the gps altitude above the center of lake lag (Note: this is the altitude used in mission)
- E [m] - East position from the center of lake lag
- GrndCrs or GrndSpd (renamed to GrndSpd recently) [m/s] - Ground speed as measured by GPS
- N [m] - North position from center of lake lag
- u [m/s] - body velocity in the x direction
- v [m/s] - body velocity in the y direction
- w [m/s] - body velocity in the z direction
- InM [bool] - Whether or not you are actively in the mission (after start, before finish)
- STim [usec] - Start time in microseconds using the absolute time function of the Pixhawk
- CTim [sec] - Current mission time in seconds from crossing the start line
- FTim [sec] - Final total time after crossing the finish line
- MFail [bool] - Whether or not you have failed the mission
- TrnNum [int] - Which turn number you are on (-1: not in mission, 0: no turns completed, 1: first turn completed, 2: all turns completed)
- TurnDeg [deg] - Total accumulated degrees of the current turn
- NumV [int] - Total number of keepout violations
- InV [bool] - Whether or not you are currently violating the keepout condition
- OoB [bool] - Whether or not you are currently out of bounds
Only meaningful if pitot tube is installed. Contains airspeed information.
- AirTemp [C] - air temperature used to filter baro pressure information
- IndSpeed [m/s] - indicated airspeed
- TrueSpeed [m/s] - true airspeed
This contains the setpoint information for the attitude. These fields can be set by setting the *_desired variables from either the high or low module.
- PitchSp
- RollSp
- ThrustSp
- YawSP
This contains all of the attitude information.
- GX, GY, GZ [?] - Compensated gravity vector
- Pitch [rad] - pitch ranges from -pi/2..pi/2
- PitchRate [rad/sec] - pitch rate
- Roll [rad] - roll ranges from -pi..pi
- RollRate [rad/sec] - roll rate
- Yaw [rad] - yaw ranges from -pi..pi (note that in NED coordinate system this means that 0 is pointed N, pi/2 is E, -pi/2 is W, +/- pi is S)
- YawRate [rad/sec] - yaw rate
- qw, qx, qy, qz - quaternions
This contains the output for the main actuators. Values are bound between -1..1 with the exception of throttle which is bound from 0..1. These values will get converted by the pixhawk to the required PWM values for the servos.
- Pitch - the output to the pitch actuator
- Roll - the output to the roll actuator
- Thrust - the output for the thrust
- Yaw - the output to the yaw actuator
Contains information on the battery.
- C [A] - current being pulled
- Discharged [mAh] - the amount of capacity that has been discharged
- V [V] - the battery voltage
- VFilt [V] - filtered battery voltage
The fused GPS position estimate. It is not the raw GPS measurement. Position as calculated by the position estimator which will take more sources of information into account than just GPS, e.g. control inputs of the vehicle in a Kalman-filter implementation.
- Alt [m] - altitude AMSL (Above Mean Sea Level)
- EPH - standard deviation of estimate horizontally
- EPV - standard deviation of vertical
- Lat [deg*1e7] - latitude in degree * 1e7
- Lon [deg*1e7] - longitude in degree * 1e7
- TALT [m] - terrain altitude (WGS84)
- VelD [m/s] - ground downward velocity
- VelE [m/s] - ground eastwards velocity
- VelN [m/s] - ground northwards velocity
Raw GPS position in WGS84 coordinates. This is not the the data that is used to provide you with North, East, Down positions.
- Alt
- Cog [rad] - course over ground (not heading, but direction of movement) ranging from 0..2*pi
- EPH
- EPV
- Fix - 1: have a GPS fix, 0: no fix
- GPSTime
- J
- Lat
- Lon
- N - number of satellites in view
- SNR
- TALT
- VelD
- VelE
- VelN
GPS position setpoint. Currently not being used, but watch for updates.
Only present in the AA241x code. The custom high priority module data.
Scaled and filtered data from the onboard sensors.
- AccX [m/s^2] - accelerometer reading x direction (body acceleration x direction)
- AccY [m/s^2] - accelerometer reading y direction (body acceleration y direction)
- AccZ [m/s^2] - accelerometer reading z direction (body acceleration z direction)
- GyroX [rad/sec] - gyroscope reading x direction
- GyroY [rad/sec] - gyroscope reading y direction
- GyroZ [rad/sec] - gyroscope reading z direction
- MagX [Gs] - magnetometer reading x direction
- MagY [Gs] - magnetometer reading y direction
- MagZ [Gs] - magnetometer reading z direction
IMU1, IMU2 - Inertial Measurement Unit Sensors (2) (3)
Continued inertial measurement unit sensor information. Gives data from secondary sensors. Not used in the AA241x code.
Only present in the AA241x code. The custom low priority module data.
Fused local position.
- Dist
- DistR
- EPH
- EPV
- GFlg
- PFlg
- RAlt
- RLat
- RLon
- VX
- VY
- VZ
- X
- Y
- Z [m] - downward relative position based on fused baro and GPS measurement (0 is altitude where Pixhawk was turned on)
Output PWM signal to the control servos.
- OUT0 - roll servo
- OUT1 - pitch servo
- OUT2 - yaw servo
- OUT3 - throttle (speed controller)
R/C inputs for each channel ranging from -1..1, with the exception of throttle which ranges from 0..1.
- Ch0 - aileron input
- Ch1 - pitch input
- Ch2 - throttle input
- Ch3 - yaw input
- Ch5, Ch6, Ch7 - other channel inputs
- Count - total number of r/c inputs seen by the receiver
- SignalLost - 1: signal from transmitter has been lost, 0: otherwise
Barometeric pressure sensor information. You may note some variations between BaroAlt and the ADAT. Dbaro values as the barometric pressure altitude used in the ADAT category has been smoothed and is also a downwards position (therefore will be a negative of BaroAlt
- BaroAlt [m] - temperature compensated relative altitude
- BaroPres [mbar] - temperature compensated barometric pressure
- BaroTemp [C] - temperature
- DiffPres [Pa] - differential pressure between current and starting location
- DiffPresFilt [Pa] - filtered differential pressure
Vehicle status information.
- ArmState - 1: armed, 0: not armed
- BatRem - decimal percentage of the amount of battery that is remaining
- BatWarn
- FailsafeState
- Landed
- MainState
Wind estimate data.
- CovX - covariance in north estimate (0 means no estimate)
- CovY - covariance in east estimate (0 means no estimate)
- X [m/s] - northward wind direction
- Y [m/s] - eastward wind direction
AIR1 - Air Sensor Data
Contains sensor information related to the air.
- BaroAlt
- BaroPa
- BaroTmp
- DiffPres
- DiffPresF
ARSP - Attitude Rate Setpoint
This constains the setpoint information for the attitude rate. Not of interest.
ATC1 - Actuator Controls Group 1
This contains the output for the acutators in control group 1. Control group 1 is not used for your aircraft so none of these fields will be of interest.
ENCD - Encoder Status
Information on the encodes. Not of interest.
ESC - Speed Controller
Contains information from the speed controller, though none of this information will be populated by the ESCs being used. Not of interest.
ETS0 - Estimator (1/2)
Estimator status information. Data from the estimator that does all the state estimation to be able to monitor the estimator's performance. Not immediately of interest, but definitely interesting.
EST1 - Estimator (2/2)
Continued estimator status information.
GS0A, GS0B, GS1A, GS1A
Detailed information on all the GPS satellites in view. Only active in extended logging which is not being used.
LPSP - Local Position Setpint
Setpoint of local position. Not used in the AA241x code.
PWR - Power
General raw power information from the power module.
TECS - Total Energy Controller
Data on the total energy controller (not activated in the AA241x version of the code, therefore will be empty).
TEL0, TEL1, TEL2, TEL3 - Telemetry Links
Status on the telemetry links.
DIST - Range Finder
This should not be present in the AA241x code logs. Rangefinder distance. Not of interest.
FLOW - Optical Flow Sensor
This should not be present in the AA241x code logs. Optical flow sensor data. Not of interest.
VICN - Vicon Position System
Should not be present in the AA241x version of the code. Vicon position information.
VISN - Vision Position Information
Should not be present in the AA241x version of the code. Vision position estimate.