[actuators] default actuators for lisa and classix

- actuators_direct is now actuators_pwm (consistency with file names)
This commit is contained in:
Gautier Hattenberger
2012-10-19 13:28:35 +02:00
parent ee6b776090
commit 4c3fb47be4
18 changed files with 101 additions and 40 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
<define name="SKIRON_I2C_SCL_TIME" value="25"/>
</subsystem>
<subsystem name="motor_mixing"/>
<subsystem name="actuators" type="direct">
<subsystem name="actuators" type="pwm">
<define name="USE_PWM0"/>
</subsystem>
<subsystem name="imu" type="navgo"/>
+1 -1
View File
@@ -24,7 +24,7 @@
<subsystem name="radio_control" type="ppm"/>
<subsystem name="telemetry" type="transparent"/>
<subsystem name="actuators" type="asctec"/>
<subsystem name="actuators" type="direct">
<subsystem name="actuators" type="pwm">
<define name="USE_PWM0"/>
<define name="USE_PWM1"/>
</subsystem>
@@ -24,6 +24,7 @@
<subsystem name="telemetry" type="xbee_api">
<configure name="MODEM_BAUD" value="B38400"/>
</subsystem>
<subsystem name="motor_mixing"/>
<subsystem name="actuators" type="mkk"/>
<subsystem name="imu" type="aspirin_v1.5"/>
<subsystem name="gps" type="ublox">
@@ -70,11 +71,11 @@
</firmware>
-->
<servos>
<servo name="FRONT" no="0" min="0" neutral="0" max="255"/>
<servo name="BACK" no="1" min="0" neutral="0" max="255"/>
<servo name="RIGHT" no="2" min="0" neutral="0" max="255"/>
<servo name="LEFT" no="3" min="0" neutral="0" max="255"/>
<servos driver="Mkk">
<servo name="FRONT" no="0" min="0" neutral="2" max="210"/>
<servo name="BACK" no="1" min="0" neutral="2" max="210"/>
<servo name="RIGHT" no="2" min="0" neutral="2" max="210"/>
<servo name="LEFT" no="3" min="0" neutral="2" max="210"/>
</servos>
<commands>
@@ -89,12 +90,10 @@
<define name="ADDR" value="{ 0x52, 0x54, 0x56, 0x58 }"/>
</section>
<section name="SUPERVISION" prefix="SUPERVISION_">
<define name="MIN_MOTOR" value="2"/>
<define name="MAX_MOTOR" value="210"/>
<define name="TRIM_A" value="0"/>
<define name="TRIM_E" value="0"/>
<define name="TRIM_R" value="0"/>
<section name="MIXING" prefix="MOTOR_MIXING_">
<define name="TRIM_ROLL" value="0"/>
<define name="TRIM_PITCH" value="0"/>
<define name="TRIM_YAW" value="0"/>
<define name="NB_MOTOR" value="4"/>
<define name="SCALE" value="256"/>
<define name="ROLL_COEF" value="{ 0, 0, -256, 256 }"/>
@@ -23,6 +23,7 @@
<subsystem name="radio_control" type="ppm"/>
</target>
<subsystem name="motor_mixing"/>
<subsystem name="actuators" type="mkk"/>
<subsystem name="telemetry" type="transparent"/>
<subsystem name="imu" type="b2_v1.2"/>
@@ -70,11 +71,11 @@
</firmware>
-->
<servos>
<servo name="FRONT" no="0" min="0" neutral="0" max="255"/>
<servo name="BACK" no="1" min="0" neutral="0" max="255"/>
<servo name="RIGHT" no="2" min="0" neutral="0" max="255"/>
<servo name="LEFT" no="3" min="0" neutral="0" max="255"/>
<servos driver="Mkk">
<servo name="FRONT" no="0" min="0" neutral="2" max="210"/>
<servo name="BACK" no="1" min="0" neutral="2" max="210"/>
<servo name="RIGHT" no="2" min="0" neutral="2" max="210"/>
<servo name="LEFT" no="3" min="0" neutral="2" max="210"/>
</servos>
<commands>
@@ -91,12 +92,10 @@
</section>
<section name="SUPERVISION" prefix="SUPERVISION_">
<define name="MIN_MOTOR" value="2"/>
<define name="MAX_MOTOR" value="210"/>
<define name="TRIM_A" value="0"/>
<define name="TRIM_E" value="0"/>
<define name="TRIM_R" value="0"/>
<section name="MIXING" prefix="MOTOR_MIXING_">
<define name="TRIM_ROLL" value="0"/>
<define name="TRIM_PITCH" value="0"/>
<define name="TRIM_YAW" value="0"/>
<define name="NB_MOTOR" value="4"/>
<define name="SCALE" value="256"/>
<define name="ROLL_COEF" value="{ 0, 0, -256, 256 }"/>
@@ -26,7 +26,7 @@
</target>
<subsystem name="motor_mixing"/>
<subsystem name="actuators" type="direct">
<subsystem name="actuators" type="pwm">
<define name="SERVO_HZ" value="400"/>
<define name="USE_SERVOS_7AND8"/>
</subsystem>
@@ -26,7 +26,7 @@
</target>
<subsystem name="motor_mixing"/>
<subsystem name="actuators" type="direct">
<subsystem name="actuators" type="pwm">
<define name="SERVO_HZ" value="400"/>
<define name="USE_SERVOS_7AND8"/>
</subsystem>
+8
View File
@@ -55,5 +55,13 @@ ifndef SYS_TIME_LED
SYS_TIME_LED = none
endif
#
# you can use different actuators by adding a configure option to your firmware section
# e.g. <configure name="ACTUATORS" value="actuators_ppm/>
#
ifndef ACTUATORS
ACTUATORS = actuators_pwm
endif
+10
View File
@@ -86,6 +86,16 @@ ifndef GPS_BAUD
GPS_BAUD=B38400
endif
#
# default actuator configuration
#
# you can use different actuators by adding a configure option to your firmware section
# e.g. <configure name="ACTUATORS" value="actuators_ppm/>
#
ifndef ACTUATORS
ACTUATORS = actuators_pwm
endif
#
# this is the DRDY pin of a max1168 on a booz IMU
#
+10
View File
@@ -89,6 +89,16 @@ ifndef GPS_BAUD
GPS_BAUD=B38400
endif
#
# default actuator configuration
#
# you can use different actuators by adding a configure option to your firmware section
# e.g. <configure name="ACTUATORS" value="actuators_ppm/>
#
ifndef ACTUATORS
ACTUATORS = actuators_pwm
endif
#
# this is the DRDY pin of a max1168 on a booz IMU
#
+10
View File
@@ -83,6 +83,16 @@ GPS_BAUD=B38400
endif
#
# default actuator configuration
#
# you can use different actuators by adding a configure option to your firmware section
# e.g. <configure name="ACTUATORS" value="actuators_ppm/>
#
ifndef ACTUATORS
ACTUATORS = actuators_pwm
endif
ifndef ADC_IR1
ADC_IR1 = 1
+10
View File
@@ -86,6 +86,16 @@ GPS_BAUD=B38400
endif
#
# default actuator configuration
#
# you can use different actuators by adding a configure option to your firmware section
# e.g. <configure name="ACTUATORS" value="actuators_ppm/>
#
ifndef ACTUATORS
ACTUATORS = actuators_pwm
endif
ifndef ADC_IR1
ADC_IR1 = 1
+1 -10
View File
@@ -34,16 +34,7 @@ endif
ifeq ($(TARGET),$(ACTUATOR_TARGET))
ifeq ($(ACTUATORS),)
ifeq ($(BOARD),lisa_l)
include $(CFG_SHARED)/actuators_direct.makefile
endif
ifeq ($(BOARD),lisa_m)
include $(CFG_SHARED)/actuators_direct.makefile
endif
else
ifneq ($(ACTUATORS),)
include $(CFG_SHARED)/$(ACTUATORS).makefile
endif
+3 -3
View File
@@ -84,10 +84,10 @@ ifeq ($(TARGET), setup_actuators)
endif
ifeq ($(BOARD),lisa_l)
include $(CFG_SHARED)/actuators_direct.makefile
include $(CFG_SHARED)/actuators_pwm.makefile
endif
ifeq ($(BOARD),lisa_m)
include $(CFG_SHARED)/actuators_direct.makefile
ifeq ($(BOARD),lisa_m)
include $(CFG_SHARED)/actuators_pwm.makefile
endif
else
+7 -1
View File
@@ -46,7 +46,13 @@
#define PPM_CCR_CRI TCCR_CR2_I
#define PPM_CR T0CR2
/* SERVOS : 4017 on FBW_RC0 connector */
/* Default actuators driver */
#define DEFAULT_ACTUATORS "subsystems/actuators/actuators_pwm.h"
#define ActuatorDefault(_x) ActuatorPwm(_x)
#define ActuatorsDefaultInit() ActuatorsPwmInit()
#define ActuatorsDefaultCommit() ActuatorsPwmCommit()
/* SERVOS : 4017 on FBW_RC0 connector (ppm driver) */
/* MAT0.1 on P0.5 */
#define SERVO_CLOCK_PIN 5
+6
View File
@@ -21,6 +21,12 @@
#define IMU_ACC_DRDY_GPIO GPIOD
#define IMU_ACC_DRDY_GPIO_PORTSOURCE GPIO_PortSourceGPIOD
/* Default actuators driver */
#define DEFAULT_ACTUATORS "subsystems/actuators/actuators_pwm.h"
#define ActuatorDefault(_x) ActuatorPwm(_x)
#define ActuatorsDefaultInit() ActuatorsPwmInit()
#define ActuatorsDefaultCommit() ActuatorsPwmCommit()
/* PA0 - ADC0 */
/* allow to define ADC_CHANNEL_VSUPPLY in the airframe file*/
+6
View File
@@ -59,6 +59,12 @@
#define IMU_ACC_DRDY_GPIO_PORTSOURCE GPIO_PortSourceGPIOB
/* Default actuators driver */
#define DEFAULT_ACTUATORS "subsystems/actuators/actuators_pwm.h"
#define ActuatorDefault(_x) ActuatorPwm(_x)
#define ActuatorsDefaultInit() ActuatorsPwmInit()
#define ActuatorsDefaultCommit() ActuatorsPwmCommit()
#define DefaultVoltageOfAdc(adc) (0.00485*adc)
+6
View File
@@ -95,6 +95,12 @@
#define IMU_ACC_DRDY_GPIO_PORTSOURCE GPIO_PortSourceGPIOB
/* Default actuators driver */
#define DEFAULT_ACTUATORS "subsystems/actuators/actuators_pwm.h"
#define ActuatorDefault(_x) ActuatorPwm(_x)
#define ActuatorsDefaultInit() ActuatorsPwmInit()
#define ActuatorsDefaultCommit() ActuatorsPwmCommit()
#define DefaultVoltageOfAdc(adc) (0.0045*adc)