ArduCopter: rename purple to APM2
This commit is contained in:
parent
a9dfc68bc0
commit
1d66b075b0
@ -63,5 +63,5 @@
|
||||
#define USERHOOK_VARIABLES "UserVariables.h"
|
||||
|
||||
|
||||
// enable this for the new 'purple' hardware
|
||||
// #define CONFIG_APM_HARDWARE APM_HARDWARE_PURPLE
|
||||
// enable this for the new 'APM2' hardware
|
||||
// #define CONFIG_APM_HARDWARE APM_HARDWARE_APM2
|
||||
|
@ -114,8 +114,8 @@ static void update_events(void);
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// RC Hardware
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#if CONFIG_APM_HARDWARE == APM_HARDWARE_PURPLE
|
||||
APM_RC_Purple APM_RC;
|
||||
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
|
||||
APM_RC_APM2 APM_RC;
|
||||
#else
|
||||
APM_RC_APM1 APM_RC;
|
||||
#endif
|
||||
@ -123,8 +123,8 @@ static void update_events(void);
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Dataflash
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#if CONFIG_APM_HARDWARE == APM_HARDWARE_PURPLE
|
||||
DataFlash_Purple DataFlash;
|
||||
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
|
||||
DataFlash_APM2 DataFlash;
|
||||
#else
|
||||
DataFlash_APM1 DataFlash;
|
||||
#endif
|
||||
|
@ -18,8 +18,8 @@ hilnocli:
|
||||
heli:
|
||||
make -f Makefile EXTRAFLAGS="-DFRAME_CONFIG=HELI_FRAME"
|
||||
|
||||
purple:
|
||||
make -f Makefile EXTRAFLAGS="-DCONFIG_APM_HARDWARE=APM_HARDWARE_PURPLE -DCLI_SLIDER_ENABLED=DISABLED"
|
||||
apm2:
|
||||
make -f Makefile EXTRAFLAGS="-DCONFIG_APM_HARDWARE=APM_HARDWARE_APM2 -DCLI_SLIDER_ENABLED=DISABLED"
|
||||
|
||||
mavlink10:
|
||||
make -f Makefile EXTRAFLAGS="-DHIL_MODE=HIL_MODE_ATTITUDE -DMAVLINK10 -DCLI_ENABLED=DISABLED -DLOGGING_ENABLED=DISABLED"
|
||||
|
@ -43,10 +43,10 @@
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// PURPLE HARDWARE DEFAULTS
|
||||
// APM2 HARDWARE DEFAULTS
|
||||
//
|
||||
|
||||
#if CONFIG_APM_HARDWARE == APM_HARDWARE_PURPLE
|
||||
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
|
||||
# define CONFIG_IMU_TYPE CONFIG_IMU_MPU6000
|
||||
# define CONFIG_PUSHBUTTON DISABLED
|
||||
# define CONFIG_RELAY DISABLED
|
||||
@ -108,7 +108,7 @@
|
||||
# define SLIDE_SWITCH_PIN 40
|
||||
# define PUSHBUTTON_PIN 41
|
||||
# define USB_MUX_PIN -1
|
||||
#elif CONFIG_APM_HARDWARE == APM_HARDWARE_PURPLE
|
||||
#elif CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
|
||||
# define A_LED_PIN 27
|
||||
# define B_LED_PIN 26
|
||||
# define C_LED_PIN 25
|
||||
|
@ -354,6 +354,6 @@ enum gcs_severity {
|
||||
|
||||
// APM Hardware selection
|
||||
#define APM_HARDWARE_APM1 1
|
||||
#define APM_HARDWARE_PURPLE 2
|
||||
#define APM_HARDWARE_APM2 2
|
||||
|
||||
#endif // _DEFINES_H
|
||||
|
@ -56,7 +56,7 @@ static void run_cli(void)
|
||||
static void init_ardupilot()
|
||||
{
|
||||
#if USB_MUX_PIN > 0
|
||||
// on the purple board we have a mux thet switches UART0 between
|
||||
// on the APM2 board we have a mux thet switches UART0 between
|
||||
// USB and the board header. If the right ArduPPM firmware is
|
||||
// installed we can detect if USB is connected using the
|
||||
// USB_MUX_PIN
|
||||
@ -235,7 +235,7 @@ static void init_ardupilot()
|
||||
adc.Init(&timer_scheduler); // APM ADC library initialization
|
||||
#endif // CONFIG_ADC
|
||||
|
||||
#if CONFIG_APM_HARDWARE == APM_HARDWARE_PURPLE
|
||||
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
|
||||
barometer.Init(1, true);
|
||||
#else
|
||||
barometer.Init(1, false);
|
||||
|
Loading…
Reference in New Issue
Block a user