Difference between revisions of "Module/AOA adc"

From PaparazziUAV
Jump to navigation Jump to search
 
m (Fixed a couple more typos)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
AOA_adc is a simple module that is be written to test the flight behaviour with a Angle Of Attacke sensor.  
<categorytree style="float:right; clear:right; margin-left:1ex; border: 1px solid gray; padding: 0.7ex;" mode=pages>Modules</categorytree>
 
== Introduction ==
 
AOA_adc is a simple module that has been written to test the flight behaviour with a Angle Of Attack sensor.  
 
It reads the value of an defined ADC port and converts it to an angle.
 
=== Implementation option A ===


It only reads the value of an defined ADC port and converts it to radiant.
A mode variable named h_ctl_pitch_mode in the stabilization_attitude.c enables to switch between estimator_theta (IMU) and estimator_AOA to control the elevator.
A mode variable named h_ctl_pitch_mode in the stabilization_attitude.c enables to switch between estimator_theta (IMU) and estimator_AOA to control the elevator.


Be aware: This module is in construction. Feel free to upgrade it.
=== Measurements ===


{TODO: description}


== Module Infos ==
== Hardware ==
 
{TODO: image}


Angle of Attack ADC Sensor
Angle of Attack ADC Sensor
*'''US DIGITAL MA3-A10-236-N'''
*'''US DIGITAL MA3-A10-236-N'''
If you are using the analog version of this sensor, be sure to connect it to a 5V tolerant ADC on you autopilot. For instance ADC2 on Lisa/M is not 5V tolerant, so a voltage divider is needed to scale the signal down to 3.3V.
ModuleXML
ModuleXML
*AOA_adc.xml  
*AOA_adc.xml  
Line 19: Line 30:


== Airframe Adjustments ==
== Airframe Adjustments ==
* (1) '''Insert''' the software module in the airframe:
* (1) '''Insert''' the software module in the airframe:
        <modules>
<source lang="xml">
              <load name="AOA_adc.xml">   
  <modules>
                      <configure name="ADC_AOA" value="ADC_6"/>
    <load name="AOA_adc.xml">   
                      <define name="AOA_OFFSET" value="-0.135000005364"/>   
      <configure name="ADC_AOA" value="ADC_6"/>
                      <define name="AOA_FILTER" value="0.875999987125"/>   
      <define name="AOA_OFFSET" value="-0.135000005364"/>   
                      <define name="USE_AOA"/>   
      <define name="AOA_FILTER" value="0.875999987125"/>   
              </load>  
      <define name="USE_AOA"/>   
        </modules>
    </load>  
  </modules>
</source>
* Legend:
* Legend:
**The ACS_AOA defines on whitch port the US Digital Sensor is connected to.
**The ACS_AOA defines on whitch port the US Digital Sensor is connected to.
Line 37: Line 51:
* (3)  Now you can turn on the pitch stabilization by setting the '''PITCH_Mode''' to 1
* (3)  Now you can turn on the pitch stabilization by setting the '''PITCH_Mode''' to 1
** PITCH_Mode = 0 --> estimator_thata from IMU (default)
** PITCH_Mode = 0 --> estimator_thata from IMU (default)
[[Category:Modules]]

Latest revision as of 03:28, 28 November 2017

Introduction

AOA_adc is a simple module that has been written to test the flight behaviour with a Angle Of Attack sensor.

It reads the value of an defined ADC port and converts it to an angle.

Implementation option A

A mode variable named h_ctl_pitch_mode in the stabilization_attitude.c enables to switch between estimator_theta (IMU) and estimator_AOA to control the elevator.

Measurements

{TODO: description}

Hardware

{TODO: image}

Angle of Attack ADC Sensor

  • US DIGITAL MA3-A10-236-N

If you are using the analog version of this sensor, be sure to connect it to a 5V tolerant ADC on you autopilot. For instance ADC2 on Lisa/M is not 5V tolerant, so a voltage divider is needed to scale the signal down to 3.3V. ModuleXML

  • AOA_adc.xml

Code- and headerfile

  • sw/airborne/modules/sensors

Settings file

  • AOA_adc.xml

Airframe Adjustments

  • (1) Insert the software module in the airframe:
  <modules>
    <load name="AOA_adc.xml">  
      <configure name="ADC_AOA" value="ADC_6"/>
      <define name="AOA_OFFSET" value="-0.135000005364"/>   
      <define name="AOA_FILTER" value="0.875999987125"/>   
      <define name="USE_AOA"/>  
    </load> 
  </modules>
  • Legend:
    • The ACS_AOA defines on whitch port the US Digital Sensor is connected to.
    • The AOA_OFFSET is needed to adjust the Zero rad mark in the normal flightposition. It can be changed with the AOA_adc.xml settings loaded.
    • The AOA_FILTER describes the PT1 filter value of the angle. 0 = no filter
    • Define USE_AOA to make the module work.
  • (2) Load the settings XML in the GCS: AOA_adc.xml
  • (3) Now you can turn on the pitch stabilization by setting the PITCH_Mode to 1
    • PITCH_Mode = 0 --> estimator_thata from IMU (default)