MindPX: Code clean up.

This commit is contained in:
Henry Zhang 2016-08-17 15:47:54 +08:00 committed by Lorenz Meier
parent b280e28623
commit 278124bfb8
2 changed files with 0 additions and 37 deletions

View File

@ -179,16 +179,6 @@ then
set USE_IO no
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
#

View File

@ -146,22 +146,6 @@ static struct spi_dev_s *spi2;
static struct spi_dev_s *spi4;
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)
{
/* configure ADC pins */
@ -303,16 +287,5 @@ __EXPORT int nsh_archinitialize(void)
#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;
}