Renamed pax4fmu-v3 to pax4fmu-v4

This commit is contained in:
David Sidrane 2015-11-18 04:50:53 -10:00 committed by Lorenz Meier
parent 7fb90d751f
commit a67097731a
27 changed files with 23 additions and 23 deletions

View File

@ -1,10 +1,10 @@
{ {
"board_id": 11, "board_id": 11,
"magic": "PX4FWv1", "magic": "PX4FWv1",
"description": "Firmware for the PX4FMUv3 board", "description": "Firmware for the PX4FMUv4 board",
"image": "", "image": "",
"build_time": 0, "build_time": 0,
"summary": "PX4FMUv3", "summary": "PX4FMUv4",
"version": "0.1", "version": "0.1",
"image_size": 0, "image_size": 0,
"git_identity": "", "git_identity": "",

View File

@ -130,8 +130,8 @@ px4fmu-v1_default:
px4fmu-v2_default: px4fmu-v2_default:
$(call cmake-build,nuttx_px4fmu-v2_default) $(call cmake-build,nuttx_px4fmu-v2_default)
px4fmu-v3_default: px4fmu-v4_default:
$(call cmake-build,nuttx_px4fmu-v3_default) $(call cmake-build,nuttx_px4fmu-v4_default)
px4fmu-v2_simple: px4fmu-v2_simple:
$(call cmake-build,nuttx_px4fmu-v2_simple) $(call cmake-build,nuttx_px4fmu-v2_simple)

View File

@ -12,7 +12,7 @@ set(config_module_list
drivers/stm32/tone_alarm drivers/stm32/tone_alarm
drivers/led drivers/led
drivers/px4fmu drivers/px4fmu
drivers/boards/px4fmu-v3 drivers/boards/px4fmu-v4
drivers/rgbled drivers/rgbled
drivers/mpu9250 drivers/mpu9250
drivers/hmc5883 drivers/hmc5883

View File

@ -458,7 +458,7 @@ function(px4_os_add_flags)
-mfpu=fpv4-sp-d16 -mfpu=fpv4-sp-d16
-mfloat-abi=hard -mfloat-abi=hard
) )
elseif (${BOARD} STREQUAL "px4fmu-v3") elseif (${BOARD} STREQUAL "px4fmu-v4")
set(cpu_flags set(cpu_flags
-mcpu=cortex-m4 -mcpu=cortex-m4
-mthumb -mthumb

View File

@ -384,7 +384,7 @@ CONFIG_BOOT_RUNFROMFLASH=y
# #
# Board Selection # Board Selection
# #
CONFIG_ARCH_BOARD_PX4FMU_V3=y CONFIG_ARCH_BOARD_PX4FMU_V4=y
CONFIG_ARCH_BOARD_CUSTOM=y CONFIG_ARCH_BOARD_CUSTOM=y
CONFIG_ARCH_BOARD="" CONFIG_ARCH_BOARD=""

View File

@ -31,16 +31,16 @@
# #
############################################################################ ############################################################################
px4_add_module( px4_add_module(
MODULE drivers__boards__px4fmu-v3 MODULE drivers__boards__px4fmu-v4
COMPILE_FLAGS COMPILE_FLAGS
-Os -Os
SRCS SRCS
px4fmu_can.c px4fmu_can.c
px4fmu3_init.c px4fmu_init.c
px4fmu_pwm_servo.c px4fmu_pwm_servo.c
px4fmu_spi.c px4fmu_spi.c
px4fmu_usb.c px4fmu_usb.c
px4fmu3_led.c px4fmu_led.c
DEPENDS DEPENDS
platforms__common platforms__common
) )

View File

@ -94,7 +94,7 @@
#endif #endif
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V3 #ifdef CONFIG_ARCH_BOARD_PX4FMU_V4
/* /*
* PX4FMUv3 GPIO numbers. * PX4FMUv3 GPIO numbers.
* *
@ -144,7 +144,7 @@
#if !defined(CONFIG_ARCH_BOARD_PX4IO_V1) && !defined(CONFIG_ARCH_BOARD_PX4IO_V2) && \ #if !defined(CONFIG_ARCH_BOARD_PX4IO_V1) && !defined(CONFIG_ARCH_BOARD_PX4IO_V2) && \
!defined(CONFIG_ARCH_BOARD_PX4FMU_V1) && !defined(CONFIG_ARCH_BOARD_PX4FMU_V2) && \ !defined(CONFIG_ARCH_BOARD_PX4FMU_V1) && !defined(CONFIG_ARCH_BOARD_PX4FMU_V2) && \
!defined(CONFIG_ARCH_BOARD_AEROCORE) && !defined(CONFIG_ARCH_BOARD_PX4_STM32F4DISCOVERY) && \ !defined(CONFIG_ARCH_BOARD_AEROCORE) && !defined(CONFIG_ARCH_BOARD_PX4_STM32F4DISCOVERY) && \
!defined(CONFIG_ARCH_BOARD_PX4FMU_V3) && !defined(CONFIG_ARCH_BOARD_SITL) !defined(CONFIG_ARCH_BOARD_PX4FMU_V4) && !defined(CONFIG_ARCH_BOARD_SITL)
# error No CONFIG_ARCH_BOARD_xxxx set # error No CONFIG_ARCH_BOARD_xxxx set
#endif #endif
/* /*

View File

@ -335,7 +335,7 @@ MEASAirspeed::cycle()
void void
MEASAirspeed::voltage_correction(float &diff_press_pa, float &temperature) MEASAirspeed::voltage_correction(float &diff_press_pa, float &temperature)
{ {
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V3) #if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
if (_t_system_power == -1) { if (_t_system_power == -1) {
_t_system_power = orb_subscribe(ORB_ID(system_power)); _t_system_power = orb_subscribe(ORB_ID(system_power));
@ -389,7 +389,7 @@ MEASAirspeed::voltage_correction(float &diff_press_pa, float &temperature)
} }
temperature -= voltage_diff * temp_slope; temperature -= voltage_diff * temp_slope;
#endif // defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V3) #endif // defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
} }
/** /**

View File

@ -121,7 +121,7 @@ private:
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V1) #if defined(CONFIG_ARCH_BOARD_PX4FMU_V1)
static const unsigned _max_actuators = 4; static const unsigned _max_actuators = 4;
#endif #endif
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V3) #if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
static const unsigned _max_actuators = 6; static const unsigned _max_actuators = 6;
#endif #endif
#if defined(CONFIG_ARCH_BOARD_AEROCORE) #if defined(CONFIG_ARCH_BOARD_AEROCORE)
@ -232,7 +232,7 @@ const PX4FMU::GPIOConfig PX4FMU::_gpio_tab[] = {
{GPIO_VDD_5V_HIPOWER_OC, 0, 0}, {GPIO_VDD_5V_HIPOWER_OC, 0, 0},
{GPIO_VDD_5V_PERIPH_OC, 0, 0}, {GPIO_VDD_5V_PERIPH_OC, 0, 0},
#endif #endif
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V3) #if defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
{GPIO_GPIO0_INPUT, GPIO_GPIO0_OUTPUT, 0}, {GPIO_GPIO0_INPUT, GPIO_GPIO0_OUTPUT, 0},
{GPIO_GPIO1_INPUT, GPIO_GPIO1_OUTPUT, 0}, {GPIO_GPIO1_INPUT, GPIO_GPIO1_OUTPUT, 0},
{GPIO_GPIO2_INPUT, GPIO_GPIO2_OUTPUT, 0}, {GPIO_GPIO2_INPUT, GPIO_GPIO2_OUTPUT, 0},

View File

@ -348,7 +348,7 @@ ADC::update_system_power(void)
} }
#endif // CONFIG_ARCH_BOARD_PX4FMU_V2 #endif // CONFIG_ARCH_BOARD_PX4FMU_V2
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V3 #ifdef CONFIG_ARCH_BOARD_PX4FMU_V4
system_power_s system_power; system_power_s system_power;
system_power.timestamp = hrt_absolute_time(); system_power.timestamp = hrt_absolute_time();
@ -381,7 +381,7 @@ ADC::update_system_power(void)
_to_system_power = orb_advertise(ORB_ID(system_power), &system_power); _to_system_power = orb_advertise(ORB_ID(system_power), &system_power);
} }
#endif // CONFIG_ARCH_BOARD_PX4FMU_V3 #endif // CONFIG_ARCH_BOARD_PX4FMU_V4
} }
uint16_t uint16_t

View File

@ -51,8 +51,8 @@
#define HW_ARCH "PX4FMU_V2" #define HW_ARCH "PX4FMU_V2"
#endif #endif
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V3 #ifdef CONFIG_ARCH_BOARD_PX4FMU_V4
#define HW_ARCH "PX4FMU_V3" #define HW_ARCH "PX4FMU_V4"
#endif #endif
#ifdef CONFIG_ARCH_BOARD_AEROCORE #ifdef CONFIG_ARCH_BOARD_AEROCORE

View File

@ -89,7 +89,7 @@ int gpio_led_main(int argc, char *argv[])
"\t\tr2\tPX4IO RELAY2" "\t\tr2\tPX4IO RELAY2"
); );
#endif #endif
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V3) #if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
errx(1, "usage: gpio_led {start|stop} [-p <n>]\n" errx(1, "usage: gpio_led {start|stop} [-p <n>]\n"
"\t-p <n>\tUse specified AUX OUT pin number (default: 1)" "\t-p <n>\tUse specified AUX OUT pin number (default: 1)"
); );
@ -111,7 +111,7 @@ int gpio_led_main(int argc, char *argv[])
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1 #ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
char *pin_name = "PX4FMU GPIO_EXT1"; char *pin_name = "PX4FMU GPIO_EXT1";
#endif #endif
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V3) #if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
char pin_name[] = "AUX OUT 1"; char pin_name[] = "AUX OUT 1";
#endif #endif
@ -154,7 +154,7 @@ int gpio_led_main(int argc, char *argv[])
} }
#endif #endif
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V3) #if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
unsigned int n = strtoul(argv[3], NULL, 10); unsigned int n = strtoul(argv[3], NULL, 10);
if (n >= 1 && n <= 6) { if (n >= 1 && n <= 6) {