116
edits
Changes
Day 11
,Created page with "= LOG = # <code>mc_pos_control_main.cpp:540</code> uses the paramter <code>MPC_ALT_MODE</code>, to forward the rangefinder senser velocity to the internal z_v state, to enabl..."
= LOG =
# <code>mc_pos_control_main.cpp:540</code> uses the paramter <code>MPC_ALT_MODE</code>, to forward the rangefinder senser velocity to the internal z_v state, to enable terrain following
# We need to ensure in FlightController, by subscribing the altitude topic and eventually doing some calculations, that the information in the setpoint, which INTERALLY we treat it as RELATIVE TO GROUND, in the trajectory with the list of setpoints, is CONVERTED IN TO A PX4 compatible ALTITUDE
#* Note altitude (from altitude topic) .relative means relative to home position (!)
#* TODO: Check if altitude.terrain gets meaningful values when mounting an onboard rangefinder sensor (it should)
# <code>mc_pos_control_main.cpp:540</code> uses the paramter <code>MPC_ALT_MODE</code>, to forward the rangefinder senser velocity to the internal z_v state, to enable terrain following
# We need to ensure in FlightController, by subscribing the altitude topic and eventually doing some calculations, that the information in the setpoint, which INTERALLY we treat it as RELATIVE TO GROUND, in the trajectory with the list of setpoints, is CONVERTED IN TO A PX4 compatible ALTITUDE
#* Note altitude (from altitude topic) .relative means relative to home position (!)
#* TODO: Check if altitude.terrain gets meaningful values when mounting an onboard rangefinder sensor (it should)