mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 21:23:57 +08:00
MindPX: Code clean up.
This commit is contained in:
committed by
Lorenz Meier
parent
b280e28623
commit
278124bfb8
@@ -179,16 +179,6 @@ then
|
|||||||
set USE_IO no
|
set USE_IO no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# should set to 0.8 for mindpx-v2 borad.
|
|
||||||
if param compare INAV_LIDAR_ERR 0.5
|
|
||||||
then
|
|
||||||
if ver hwcmp MINDPX_V2
|
|
||||||
then
|
|
||||||
param set INAV_LIDAR_ERR 0.8
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set parameters and env variables for selected AUTOSTART
|
# Set parameters and env variables for selected AUTOSTART
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -146,22 +146,6 @@ static struct spi_dev_s *spi2;
|
|||||||
static struct spi_dev_s *spi4;
|
static struct spi_dev_s *spi4;
|
||||||
static struct sdio_dev_s *sdio;
|
static struct sdio_dev_s *sdio;
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
#ifdef __cplusplus
|
|
||||||
__EXPORT int matherr(struct __exception *e)
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
__EXPORT int matherr(struct exception *e)
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
__EXPORT int nsh_archinitialize(void)
|
__EXPORT int nsh_archinitialize(void)
|
||||||
{
|
{
|
||||||
/* configure ADC pins */
|
/* configure ADC pins */
|
||||||
@@ -303,16 +287,5 @@ __EXPORT int nsh_archinitialize(void)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
px4_arch_configgpio(GPIO_I2C2_SCL);
|
|
||||||
px4_arch_configgpio(GPIO_I2C2_SDA);
|
|
||||||
message("[boot] Initialized ext I2C Port\n");
|
|
||||||
|
|
||||||
px4_arch_configgpio(GPIO_I2C1_SCL);
|
|
||||||
px4_arch_configgpio(GPIO_I2C1_SDA);
|
|
||||||
message("[boot] Initialized onboard I2C Port\n");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user