diff --git a/conf/airframes/TUDELFT/tudelft_iris_indi.xml b/conf/airframes/TUDELFT/tudelft_iris_indi.xml index d151b9df6c..dfef0ebf6b 100644 --- a/conf/airframes/TUDELFT/tudelft_iris_indi.xml +++ b/conf/airframes/TUDELFT/tudelft_iris_indi.xml @@ -76,7 +76,7 @@ - + diff --git a/conf/airframes/TUDELFT/tudelft_iris_pid.xml b/conf/airframes/TUDELFT/tudelft_iris_pid.xml index 0833fd7434..ff303c9af4 100644 --- a/conf/airframes/TUDELFT/tudelft_iris_pid.xml +++ b/conf/airframes/TUDELFT/tudelft_iris_pid.xml @@ -76,7 +76,7 @@ - + diff --git a/conf/modules/px4io_flash.xml b/conf/modules/px4_flash.xml similarity index 72% rename from conf/modules/px4io_flash.xml rename to conf/modules/px4_flash.xml index 2f5ad55e16..f259d8a821 100644 --- a/conf/modules/px4io_flash.xml +++ b/conf/modules/px4_flash.xml @@ -1,19 +1,19 @@ - + - Flashes the px4io f1 through the px4 bootloader. + Flashes the px4 f1 through the px4 bootloader, or resets the f4 to be flashed directly by the f4' PX4 bootloader.
- +
- - + + - + diff --git a/sw/airborne/modules/px4io_flash/protocol.h b/sw/airborne/modules/px4_flash/protocol.h similarity index 100% rename from sw/airborne/modules/px4io_flash/protocol.h rename to sw/airborne/modules/px4_flash/protocol.h diff --git a/sw/airborne/modules/px4io_flash/px4io_flash.c b/sw/airborne/modules/px4_flash/px4_flash.c similarity index 98% rename from sw/airborne/modules/px4io_flash/px4io_flash.c rename to sw/airborne/modules/px4_flash/px4_flash.c index e1d3d7a329..4be105d9d5 100644 --- a/sw/airborne/modules/px4io_flash/px4io_flash.c +++ b/sw/airborne/modules/px4_flash/px4_flash.c @@ -18,15 +18,15 @@ * . */ /** - * @file "modules/px4io_flash/px4io_flash.c" + * @file "modules/px4_flash/px4_flash.c" * @author Kevin van Hecke * Flashes the px4io f1 through the px4 bootloader, or resets the f4 to be flashed directly. * Assumes the flash port on the Pixhawk is configured as the usb. */ -#include "modules/px4io_flash/px4io_flash.h" +#include "modules/px4_flash/px4_flash.h" //#include "subsystems/datalink/downlink.h" -#include "modules/px4io_flash/protocol.h" +#include "modules/px4_flash/protocol.h" #include "mcu_periph/sys_time_arch.h" #include "subsystems/intermcu/intermcu_ap.h" @@ -65,14 +65,14 @@ tid_t px4iobl_tid; ///< id for time out of the px4 bootloader reset bool_t setToBootloaderMode; bool_t px4ioRebootTimeout; -void px4ioflash_init(void) +void px4flash_init(void) { setToBootloaderMode = FALSE; px4ioRebootTimeout = FALSE; px4iobl_tid = sys_time_register_timer(15.0, NULL); //20 (fbw pprz bl timeout)-5 (px4 fmu bl timeout) } -void px4ioflash_event(void) +void px4flash_event(void) { if (PX4IO_PORT->char_available(PX4IO_PORT->periph)) { if (!setToBootloaderMode) { diff --git a/sw/airborne/modules/px4io_flash/px4io_flash.h b/sw/airborne/modules/px4_flash/px4_flash.h similarity index 71% rename from sw/airborne/modules/px4io_flash/px4io_flash.h rename to sw/airborne/modules/px4_flash/px4_flash.h index 6e315e4f33..89ff38d765 100644 --- a/sw/airborne/modules/px4io_flash/px4io_flash.h +++ b/sw/airborne/modules/px4_flash/px4_flash.h @@ -18,16 +18,17 @@ * . */ /** - * @file "modules/px4io_flash/px4io_flash.h" + * @file "modules/px4_flash/px4_flash.h" * @author Kevin van Hecke - * Flashes the px4io f1 through the px4 bootloader. + * Flashes the px4io f1 through the px4 bootloader, or resets the f4 to be flashed directly. + * Assumes the flash port on the Pixhawk is configured as the usb. */ -#ifndef PX4IO_FLASH_H -#define PX4IO_FLASH_H +#ifndef PX4_FLASH_H +#define PX4_FLASH_H -extern void px4ioflash_init(void); -extern void px4ioflash_event(void); +extern void px4flash_init(void); +extern void px4flash_event(void); #endif