Skip to content

Commit

Permalink
autogyro takeoff updats
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak committed Jul 18, 2022
1 parent eaa5828 commit a561b61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,13 @@ float AutogyroTakeoff::getPitch(float tecsPitch)
switch (_state) {

case AutogyroTakeoffState::TAKEOFF_ERROR:
case AutogyroTakeoffState::PRE_TAKEOFF_PREROTATE_START: // 0 Null pitch
return 0;

case AutogyroTakeoffState::PRE_TAKEOFF_PREROTATE_START: // 0 Null pitch
case AutogyroTakeoffState::PRE_TAKEOFF_PREROTATE: // 1 maximal pitch
case AutogyroTakeoffState::PRE_TAKEOFF_DONE: // 2
return math::radians(_param_rwto_max_pitch.get());
//return math::radians(_param_rwto_max_pitch.get());
return math::radians(_param_rwto_psp.get());

// FLy
default:
Expand Down
3 changes: 1 addition & 2 deletions src/modules/logger/logged_topics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ void LoggedTopics::add_default_topics()
add_optional_topic("actuator_controls_status_0", 300);
add_topic("airspeed", 1000);
add_optional_topic("airspeed_validated", 200);
add_optional_topic("autogyro_takeoff_status", 100);
add_optional_topic("autotune_attitude_control_status", 100);
add_optional_topic("camera_capture");
add_optional_topic("camera_trigger");
Expand Down Expand Up @@ -96,7 +95,7 @@ void LoggedTopics::add_default_topics()
add_topic("sensor_selection");
add_topic("sensors_status_imu", 200);
add_topic("system_power", 500);
add_optional_topic("takeoff_status", 1000);
add_topic("takeoff_status");
add_optional_topic("tecs_status", 200);
add_topic("trajectory_setpoint", 200);
add_topic("transponder_report");
Expand Down

0 comments on commit a561b61

Please sign in to comment.