I am new to the drone hobby and I kindly need some help. I build a custom drone, put a pixhawk on it, and I currently have it flying indoors using PX4Flow only for state estimation. I would like to perform system identification. I have the data from the sdcard and I have converted from ulog to csv, but I am still a bit confused about what the csv files mean, their columns etc.
Moreover, I know I would need to choose sampling rates etc. but I have very little idea of how to proceed. Please help if you can.
@dakejahl so this means if I define my custom uORB Messages I can create my personal specified uLOG entries?
Also do you know, if thereās a possibility to recieve the uORBs on a companion computer via mavros?
@dakejahl Thank you very much for your response. I have gone through the links you gave. The last one (the defs for each topic) was most helpful. I have another question. I want to perform system id and I guess I would need to use the āactuator_controlsā topic. however, I can see there are several topics under this definition. And no further information is given as to what is what. I am flying from a radio, so I donāt know which input is actuator_controls_0 or ā¦_1 or ā¦_2 etc. Do you have any ideas on that?
For the sensor_combined messages I can see that there is some description about the different topics. For instance,
gyro_rad # average angular rate measured in the XYZ body frame in rad/s over the last gyro sampling period
@dakejahl and @hsu-ret Thank you once again. One other confusion. Which signals are logged by The actuator_controls_0, and actuator_outputs topics?
The mixer takes in Torques(roll,pitch,yaw) and Thrust, and converts it to actuator outputs (pwm) values which sets the speed of the motors.
From this, my understanding is that, the āactuator_controls_0ā topic records the control_input commands going into the mixer, while the āactuator_outputsā topic records the setpoint pwm values going out of the mixer into the motors. I just want to confirm that I am right.
Or if Iām missing something because, I am unsure if the āactuator_controls_0ā are the ones going out of the mixer into the motors and the āactuator_outputsā are the signals measured from the motors.
I am currently trying to plot the signals and compare them with the log analysis from flight review but it would be helpful if someone can comment on this.
Thank you.
Please help clear my confusion.
Update:
So after a chat with @RicardoM17 I understand that the āactuator_controls_oā topic indeed records the controller commands going into the mixer which then computes the individual PWM values for each actuator recorded in āactuator_outputs_0ā. Incase anyone else in future, has similar confusion.
Thanks guys.
Thank you for leaving the update about what you found out. Iām logging in SDLOG_PROFILE=3 and I have 3 topics in the log file:
actuator_controls_0
actuator_controls_3
actuator_outputs
Iām trying to figure out what each one is. After flying my quadrotor, the logged actuator_controls_0 and actuator_outputs signals are identical, but actuator_controls_3 is different and varies from +1 to -1. This is true in manual mode, position mode, altitude mode.
Could anyone shed light on what signal actuator_controls_3 is actually logging, as it relates to the control block diagram? ie, is it the āRC inputsā from the hand controller, before going into the PID controller? Or is it the signal coming out of the PID controller into the mixer (seems unlikely since that is actuator_controls_0 according to this thread).
Also I would have expected to see a difference between actuator_controls_0 and actuator_outputs depending on autopilot mode