mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 00:53:34 +08:00
added airflow topics to logger
This commit is contained in:
@@ -302,10 +302,10 @@ FixedwingPositionINDIControl::rc_channels_poll()
|
||||
// use flaps channel to select manual feedthrough
|
||||
if (!_switch_sitl) {
|
||||
if (_rc_channels.channels[5]>=0.f){
|
||||
_switch_manual = 1;
|
||||
_switch_manual = true;
|
||||
}
|
||||
else{
|
||||
_switch_manual = 0;
|
||||
_switch_manual = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -977,6 +977,7 @@ FixedwingPositionINDIControl::Run()
|
||||
|
||||
if (_counter==100) {
|
||||
_counter = 0;
|
||||
//PX4_INFO("Feedthrough switch: \t%.2f", (double)(_rc_channels.channels[5]));
|
||||
//PX4_INFO("frequency: \t%.3f", (double)(1000000*100)/(hrt_absolute_time()-_last_time));
|
||||
_last_time = hrt_absolute_time();
|
||||
}
|
||||
|
||||
@@ -52,6 +52,8 @@ void LoggedTopics::add_default_topics()
|
||||
add_topic("actuator_controls_3", 100);
|
||||
add_topic("actuator_controls_4", 100);
|
||||
add_topic("actuator_controls_5", 100);
|
||||
add_topic("airflow_aoa", 100);
|
||||
add_topic("airflow_slip", 100);
|
||||
add_topic("airspeed", 1000);
|
||||
add_topic("airspeed_validated", 200);
|
||||
add_topic("camera_capture");
|
||||
|
||||
Reference in New Issue
Block a user