Hi Jorge,
Here is my Vertical control part of airframe. Auto pitch is at the bottom.
Best regards,
Refik
<section name="VERTICAL CONTROL" prefix="V_CTL_">
<define name="POWER_CTL_BAT_NOMINAL" value="11.1" unit="volt"/>
<!-- outer loop proportional gain -->
<define name="ALTITUDE_PGAIN" value="0.2"/>
<!-- outer loop saturation -->
<define name="ALTITUDE_MAX_CLIMB" value="3."/>
<!-- auto throttle inner loop -->
<define name="AUTO_THROTTLE_NOMINAL_CRUISE_THROTTLE" value="0.50"/>
<define name="AUTO_THROTTLE_MIN_CRUISE_THROTTLE" value="0.30"/>
<define name="AUTO_THROTTLE_MAX_CRUISE_THROTTLE" value="0.70"/>
<define name="AUTO_THROTTLE_LOITER_TRIM" value="1500"/>
<define name="AUTO_THROTTLE_DASH_TRIM" value="-4000"/>
<define name="AUTO_THROTTLE_CLIMB_THROTTLE_INCREMENT" value="0.20" unit="%/(m/s)"/> <!--energy oncesi 0.15 idi-->
<define name="AUTO_THROTTLE_PGAIN" value="0.01"/>
<define name="AUTO_THROTTLE_IGAIN" value="0.1"/>
<define name="AUTO_THROTTLE_PITCH_OF_VZ_PGAIN" value="0.2"/>
<define name="THROTTLE_SLEW_LIMITER" value="1" unit="s"/>
<define name="AUTO_PITCH_PGAIN" value="0.04"/>
<define name="AUTO_PITCH_IGAIN" value="0.02"/>
<!-- Auto airspeed sensor ETS controller -->
<define name="AUTO_AIRSPEED_SETPOINT" value="17.5" unit="m/s"/>
<define name="AUTO_AIRSPEED_PGAIN" value="0.060"/>
<define name="AUTO_AIRSPEED_IGAIN" value="0.050"/>
<define name="AUTO_GROUNDSPEED_SETPOINT" value="15.0" unit="m/s"/>
<define name="AUTO_GROUNDSPEED_PGAIN" value="0.75"/>
<define name="AUTO_GROUNDSPEED_IGAIN" value="0.25"/>
<define name="AUTO_PITCH_MAX_PITCH" value="RadOfDeg(25)"/>
<define name="AUTO_PITCH_MIN_PITCH" value="RadOfDeg(-10)"/>
</section>
Dear all,
I am trying to configure my Airspeed ETS Sensor for Speed Control and I am getting the following error messages at compiling:
firmwares/fixedwing/guidance/guidance_v.c:358:3: error: 'V_CTL_AUTO_PITCH_MAX_PITCH' undeclared (first use in this function)
firmwares/fixedwing/guidance/guidance_v.c:358:3: note: each undeclared identifier is reported only once for each function it appears in
firmwares/fixedwing/guidance/guidance_v.c:358:3: error: 'V_CTL_AUTO_PITCH_MIN_PITCH' undeclared (first use in this function)
make[1]: *** [/home/jorge/paparazzi/var/Piquero/ap/firmwares/fixedwing/guidance/guidance_v.o] Error 1
How should I declare "V_CTL_AUTO_PITCH_MAX_PITCH" and "V_CTL_AUTO_PITCH_MIN_PITCH"?
Best Regards,
--
Jorge Pantoja
Program Manager/Liaison
Phone: +593-989458127