Skip to content

Commit

Permalink
Fix nav hybrid speed (#3165)
Browse files Browse the repository at this point in the history
* fix incomplete rename

* add nav_hybrid to test conf for next time
  • Loading branch information
dewagter committed Nov 6, 2023
1 parent 7320b65 commit 140e359
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions conf/airframes/examples/cube_orange.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<module name="stabilization" type="indi_simple"/>
<module name="stabilization" type="rate_indi"/>
<module name="ins" type="ekf2"/>
<module name="nav" type="hybrid"/>

<module name="air_data"/>

Expand Down
2 changes: 1 addition & 1 deletion conf/conf_tests.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
telemetry="telemetry/highspeed_rotorcraft.xml"
flight_plan="flight_plans/rotorcraft_basic_geofence.xml"
settings="settings/rotorcraft_basic.xml"
settings_modules="modules/air_data.xml modules/airspeed_ms45xx_i2c.xml modules/electrical.xml modules/gps.xml modules/gps_ublox.xml modules/gps_ubx_ucenter.xml modules/guidance_indi_hybrid.xml modules/guidance_rotorcraft.xml modules/imu_common.xml modules/imu_heater.xml modules/ins_ekf2.xml modules/logger_sd_chibios.xml modules/nav_rotorcraft.xml modules/scheduling_indi_simple.xml modules/stabilization_indi_simple.xml"
settings_modules="modules/air_data.xml modules/airspeed_ms45xx_i2c.xml modules/electrical.xml modules/gps.xml modules/gps_ublox.xml modules/gps_ubx_ucenter.xml modules/guidance_indi_hybrid.xml modules/guidance_rotorcraft.xml modules/imu_common.xml modules/imu_heater.xml modules/ins_ekf2.xml modules/logger_sd_chibios.xml modules/nav_hybrid.xml modules/nav_rotorcraft.xml modules/scheduling_indi_simple.xml modules/stabilization_indi_simple.xml"
gui_color="blue"
/>
<aircraft
Expand Down
2 changes: 1 addition & 1 deletion conf/modules/nav_hybrid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dl_settings>
<dl_settings NAME="nav_hybrid">
<dl_setting var="nav_max_speed" min="1.0" step="1.0" max="50.0"/>
<dl_setting var="nav_hover_speed" min="0.1" step="0.1" max="10.0"/>
<dl_setting var="nav_goto_speed" min="0.1" step="0.1" max="10.0"/>
<dl_setting var="nav_max_deceleration_sp" min="0.5" step="0.1" max="10.0" shortname="max_deceleration" param="NAV_HYBRID_MAX_DECELERATION"/>
</dl_settings>
</dl_settings>
Expand Down
2 changes: 1 addition & 1 deletion sw/airborne/modules/nav/nav_rotorcraft_hybrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

// settings
extern float nav_max_speed; // max speed in route mode
extern float nav_hover_speed; // max speed in goto/stay mode
extern float nav_goto_speed; // max speed in goto/stay mode
extern float nav_max_deceleration_sp;

extern void nav_rotorcraft_hybrid_init(void);
Expand Down

0 comments on commit 140e359

Please sign in to comment.