mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 06:23:33 +08:00
vtol_att avoid unnecessary work and delete unused
This commit is contained in:
committed by
Lorenz Meier
parent
d3a220f807
commit
66f614435f
@@ -1567,7 +1567,6 @@ int sdlog2_thread_main(int argc, char *argv[])
|
||||
/* --- VTOL VEHICLE STATUS --- */
|
||||
if(copy_if_updated(ORB_ID(vtol_vehicle_status), &subs.vtol_status_sub, &buf.vtol_status)) {
|
||||
log_msg.msg_type = LOG_VTOL_MSG;
|
||||
log_msg.body.log_VTOL.airspeed_tot = buf.vtol_status.airspeed_tot;
|
||||
log_msg.body.log_VTOL.rw_mode = buf.vtol_status.vtol_in_rw_mode;
|
||||
log_msg.body.log_VTOL.trans_mode = buf.vtol_status.vtol_in_trans_mode;
|
||||
log_msg.body.log_VTOL.failsafe_mode = buf.vtol_status.vtol_transition_failsafe;
|
||||
|
||||
@@ -466,7 +466,6 @@ struct log_ENCD_s {
|
||||
/* --- VTOL - VTOL VEHICLE STATUS */
|
||||
#define LOG_VTOL_MSG 43
|
||||
struct log_VTOL_s {
|
||||
float airspeed_tot;
|
||||
uint8_t rw_mode;
|
||||
uint8_t trans_mode;
|
||||
uint8_t failsafe_mode;
|
||||
|
||||
Reference in New Issue
Block a user