Skip to content

Commit

Permalink
remove obc features until it compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Dec 17, 2014
1 parent dc681f1 commit 19ec0cd
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
4 changes: 2 additions & 2 deletions conf/airframes/OpenUAS/conf_openuas_obc2014.xml
Expand Up @@ -7,7 +7,7 @@
telemetry="telemetry/default_fixedwing.xml"
flight_plan="flight_plans/basic.xml"
settings="settings/fixedwing_basic.xml"
settings_modules="modules/nav_smooth.xml modules/infrared_adc.xml"
settings_modules="modules/nav_smooth.xml modules/infrared_adc.xml modules/tune_airspeed.xml"
gui_color="blue"
/>
<aircraft
Expand All @@ -18,7 +18,7 @@
telemetry="telemetry/default_fixedwing_imu_9k6.xml"
flight_plan="flight_plans/OpenUAS/openuas_obc2014_kingaroy.xml"
settings="settings/control/ctl_energy.xml [settings/estimation/ins_neutrals.xml] settings/estimation/ac_char.xml settings/fixedwing_basic.xml"
settings_modules="modules/gps_ubx_ucenter.xml modules/airspeed_adc.xml modules/photogrammetry_calculator.xml modules/nav_smooth.xml"
settings_modules="modules/gps_ubx_ucenter.xml modules/airspeed_adc.xml modules/tune_airspeed.xml modules/photogrammetry_calculator.xml modules/nav_smooth.xml"
gui_color="#fffffac7c07a"
/>
</conf>
9 changes: 6 additions & 3 deletions conf/airframes/OpenUAS/openuas_vivify_mk1.xml
Expand Up @@ -116,7 +116,7 @@
<configure name="MODEM_BAUD" value="B9600"/>
</subsystem>

<define name="OUTBACK_CHALLENGE_DANGEROUS_RULE_RC_LOST_NO_AP" value="TRUE"/>
<define name="OUTBACK_CHALLENGE_DANGEROUS_RULE_RC_LOST_NO_AP" value="FALSE"/>
<define name="OUTBACK_CHALLENGE_VERY_DANGEROUS_RULE_AP_CAN_FORCE_FAILSAFE" value="FALSE"/>
<define name="OUTBACK_CHALLENGE_VERY_DANGEROUS_RULE_NO_AP_MUST_FAILSAFE" value="FALSE"/>

Expand Down Expand Up @@ -199,10 +199,12 @@
<load name="airspeed_adc.xml">
<configure name="ADC_AIRSPEED" value="ADC_1"/>
<define name="ADC_CHANNEL_AIRSPEED_NB_SAMPLES" value="16"/>
<define name="AIRSPEED_QUADRATIC_SCALE" value="0.355"/>
<define name="AIRSPEED_BIAS" value="413"/>
<define name="AIRSPEED_ADC_QUADRATIC_SCALE" value="0.355"/>
<define name="AIRSPEED_ADC_BIAS" value="413"/>
</load>

<load name="tune_airspeed.xml" />

<load name="adc_generic.xml">
<!-- If we want to read the voltage of battery voltage main engine over AP board via V_BATT -->
<!-- To display the value,e.g. make a papget scale to 0.0048? and set 8.7 min 12.6max for a 3cell -->
Expand Down Expand Up @@ -276,6 +278,7 @@
<define name="AirbrakesOn()" value="(ap_state->commands[COMMAND_BRAKE]=SERVO_BRAKE_FULL)" />
<define name="Fly()" value="(ap_state->commands[COMMAND_FORCECRASH]=0)" />
<define name="ForceCrash()" value="(ap_state->commands[COMMAND_FORCECRASH]=9600)" />
<define name="ThrottleHigh()" value="(ap_state->commands[COMMAND_THROTTLE]>9600/2)" />
</section>

<commands>
Expand Down
24 changes: 12 additions & 12 deletions conf/flight_plans/OpenUAS/include_obc2014_mission.xml
Expand Up @@ -201,7 +201,7 @@ TST-3 = -26° 35' 23.2" * 151° 50' 45.9"
-->
<!-- TODO Set QNH here based on GPS height if allowed from commitee -->
<call fun="NavSetAltitudeReferenceHere()" />
<call fun="compute_qnh()"/>
<!-- CDW call fun="compute_qnh()"/-->
</block>

<!-- *********** Set the ground reference height and the home position *********** -->
Expand All @@ -222,9 +222,9 @@ TST-3 = -26° 35' 23.2" * 151° 50' 45.9"
<block name="Landing Position Stored" pre_call="NavKillThrottle()" strip_button="Store" strip_icon="recenter.png">
<call fun="NavSetWaypointPosAndAltHere(WP_TD)"/>
<set value="DownlinkSendWpNr(WP_TD)" var="unit"/>
<set value="SetAltitudeForFinalFromTo(WP_TD,WP_AF)" var="unit"/>
<!-- CDW set value="SetAltitudeForFinalFromTo(WP_TD,WP_AF)" var="unit"/-->
<call fun="nav_compute_final_from_glide(WP_AF, WP_TD, V_CTL_GLIDE_RATIO)"/>
<call fun="nav_compute_flare_from_aftd(WP_AF, WP_TD, WP_FLARE)"/>
<!-- CDW call fun="nav_compute_flare_from_aftd(WP_AF, WP_TD, WP_FLARE)"/-->
<set value="DownlinkSendWpNr(WP_AF)" var="unit"/>
<set value="DownlinkSendWpNr(WP_FLARE)" var="unit"/>
<deroute block="HoldingPoint"/>
Expand All @@ -245,17 +245,17 @@ TST-3 = -26° 35' 23.2" * 151° 50' 45.9"
*********** Search Area Entry Procedure Start ***********
***************************************************** -->
<block name="Start Scruteneering Flight" strip_button="Scrut" group="TO">
<set value="SCRUTENEERING_FLIGHT" var="obc_flight_mode" />
<!-- CDW set value="SCRUTENEERING_FLIGHT" var="obc_flight_mode" /-->
<deroute block="ReadyForDeparture"/>
</block>

<block name="Start Search Flight" strip_button="Search" group="TO">
<set value="SEARCH_FLIGHT" var="obc_flight_mode" />
<!-- CDW set value="SEARCH_FLIGHT" var="obc_flight_mode" /-->
<deroute block="ReadyForDeparture"/>
</block>

<block name="Start Drop Flight" strip_button="Drop" group="TO">
<set value="DROP_FLIGHT" var="obc_flight_mode" />
<!-- CDW set value="DROP_FLIGHT" var="obc_flight_mode" /-->
<deroute block="ReadyForDeparture"/>
</block>

Expand All @@ -282,7 +282,7 @@ TST-3 = -26° 35' 23.2" * 151° 50' 45.9"
</block>

<block name="determineflighttype">
<exception cond="(obc_flight_mode == SCRUTENEERING_FLIGHT)" deroute="ScrutineeringAutonomyTriangle"/>
<!-- CDW exception cond="(obc_flight_mode == SCRUTENEERING_FLIGHT)" deroute="ScrutineeringAutonomyTriangle"/-->
<!-- otherwise goto search area via entry lane -->
<deroute block="EntryLane1"/>
</block>
Expand Down Expand Up @@ -333,7 +333,7 @@ to “Airfield Home” and orbit for either a landing or regain of Data Link.
</block>

<block name="determinerescuetype">
<exception cond="(obc_flight_mode == DROP_FLIGHT)" deroute="RescueJoe"/>
<!-- CDW exception cond="(obc_flight_mode == DROP_FLIGHT)" deroute="RescueJoe"/-->
<deroute block="SearchForJoe" />
</block>

Expand All @@ -360,7 +360,7 @@ best to perform many real life tests with the CAM
*********** -->

<block name="SearchForJoeLateral">
<call fun="nav_survey_poly_osam_setup(WP_SA1, 5, 158, CourseFromToEnuDeg(WP_SA1, WP_SA2))"/> <!-- TODO correct angle of how we want to search -->
<call fun="nav_survey_poly_osam_setup_towards(WP_SA1, 5, 158, WP_SA2)"/> <!-- TODO correct angle of how we want to search -->
<deroute block="Searching" />
</block>

Expand All @@ -384,7 +384,7 @@ best to perform many real life tests with the CAM
call fun="InitializePolygonSurvey(WP_S1, NumOfCorners, SweepWidth, Orientation)"/> -->

<!-- SweepWidth max photo with at height - 20 pct overlap 180- etc-->
<call fun="nav_survey_poly_osam_setup(WP_SA1, 5, 158, CourseFromToEnuDeg(WP_SA1, WP_SA5))"/> <!-- TODO correct angle of how we want to search -->
<call fun="nav_survey_poly_osam_setup_towards(WP_SA1, 5, 158, WP_SA5)"/> <!-- TODO correct angle of how we want to search -->
</block>

<block name="Searching">
Expand Down Expand Up @@ -500,7 +500,7 @@ extern bool_t compute_alignment(uint8_t w1, uint8_t w2, uint8_t start, uint8_t e

<block name="ComputeLandingApproach" >
<call fun="nav_compute_final_from_glide(WP_AF, WP_TD, V_CTL_GLIDE_RATIO)"/>
<call fun="nav_compute_flare_from_aftd(WP_AF, WP_TD, WP_FLARE)"/>
<!-- CDW call fun="nav_compute_flare_from_aftd(WP_AF, WP_TD, WP_FLARE)"/-->
<set value="DownlinkSendWpNr(WP_AF)" var="unit"/>
<set value="DownlinkSendWpNr(WP_FLARE)" var="unit"/>
</block>
Expand Down Expand Up @@ -558,7 +558,7 @@ termination mode (Section 5.6).

<block name="CommsHoldLoiter" strip_button="CommsHold" strip_icon="recenter.png" group="Link" > <!-- TODO other ICON -->
<!-- stop streaming thumbnails -->
<set value="0" var="ticket_thumbnails"/>
<!-- CDW set value="0" var="ticket_thumbnails"/ -->
<!-- TODO: maybe set a little lower speed ? max endurence speed? -->
<set value="set_airspeed_nominal" var="v_ctl_auto_airspeed_setpoint"/>
<!-- Rules 2014 state a loiter of maximum 2 minutes = 120seconds is allowed -->
Expand Down
2 changes: 1 addition & 1 deletion conf/flight_plans/OpenUAS/include_obc2014_safety.xml
Expand Up @@ -70,7 +70,7 @@
<!-- FTD will failsafe if no heartbeat arrives from AP (with GPS) during 100ms -->

<!-- Soft Altitude GeoFence 2800ft MSL-->
<exception cond="MoreThan(GetAmsl(), 2800) && gps_has_been_good()" deroute="AlmostHeightViolation" />
<!-- RE_ENABLE CDW <exception cond="MoreThan(GetAmsl(), 2800) && gps_has_been_good()" deroute="AlmostHeightViolation" />-->

<!-- Hard Altitude GeoFence 3000ft MSL
Removed: because: theoretically impossible to climb 200ft without engine.
Expand Down

0 comments on commit 19ec0cd

Please sign in to comment.