Sanity check on new sensor

lolachampcar

New Member
Joined
Jul 17, 2011
Messages
249
I'm working on adding the pot in my elevator trim motor as a Skyview trim widget.  Please let me know if I am on the right track with the following-

In Sensor (SFG) configuration file
This describes the sensor?
I am using a wiper and return from a pot
in the trim motor.  The Dynon pull up on
the wiper provides the voltage divider.
With the gain set to one, will this give me
raw voltage?  I ask because the sensor debug
screen seems to give A/D counts and not raw
voltage.  It is nice to see my physical connection
is working with the sensor debug screen :)
sensor={
id=MX_ELevator_Trim
function=VOLTS
pins=C37_P4 C37_P6 C37_P7 C37_P8 C37_P9 C37_P10 C37_P11 C37_P12 C37_P20 C37_P21 C37_P22 C37_P23 C37_P31
name=ELTRIM
min_val=0
max_val=5
resolution=.1
round=.1
is_piecewise=0
low_coeff={
c_x4=0
c_x3=0
c_x2=0
c_x1=1
c_x0=0
}
low_resistance=PULL_UP_10K
low2high_cross=0
high_coeff={
c_x4=0
c_x3=0
c_x2=0
c_x1=0
c_x0=0
}
high_resistance=PULL_UP_10K
high2low_cross=0
}




In display (DFG) configuration file
This tells the system that a "MX_Elevator_Trim"
sensor is connected to c37_p4?
c37_p4={
valid=1
name=ELTRIM
id=MX_ELevator_Trim
alarm_type=OFF
range={
max_display=5
min_display=0

range1_valid=1
range1_top=5
range1_bot=4
range1_name=R1
range1_color=RED
range2_valid=1
range2_top=4
range2_bot=1
range2_name=R2
range2_color=GREEN
range3_valid=1
range3_top=1
range3_bot=0
range3_name=R3
range3_color=RED
range4_valid=0
range4_top=10
range4_bot=5
range4_name=R4
range4_color=YELLOW
range5_valid=0
range5_top=5
range5_bot=0
range5_name=R5
range5_color=RED
}
}


This part actually turns on a widget to display data?
ems_display={
Layout_100={
c37_p1={
type=WIDGET_VBAR
x_offset=91.5
y_offset=5.5
width=15
height=25
params=3
params=0
params=0
}
c37_p2={
type=WIDGET_NONE
x_offset=0
y_offset=0
width=0
height=0
params=0
params=0
params=0
}
c37_p4={
type=WIDGET_TRIM
x_offset=169
y_offset=-8
width=20
height=50
params=0.1
params=-0.15
params=0.1
}
 

dynonsupport

Dynon Technical Support
Staff member
Joined
Mar 23, 2005
Messages
13,226
Is there a reason you aren't just using the standard trim input and configuration that SkyView already supplies? I don't see that you are trying to do anything that we don't already support.
 

dynonsupport

Dynon Technical Support
Staff member
Joined
Mar 23, 2005
Messages
13,226
Page 7-41 of the install guide and page 7-58.

Set up your inputs as "POSITION" and then the appropriate aileron, elevator, rudder, or flap, and then use the calibration wizard to calibrate them.
 
Top