mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 10:43:58 -04:00
AP_Relay: move defaulting of relay pin params to linux hwdefs
This commit is contained in:
parent
82ab52a7bf
commit
64633197cf
@ -34,25 +34,6 @@
|
|||||||
#include <SITL/SITL.h>
|
#include <SITL/SITL.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
|
||||||
#define RELAY1_PIN_DEFAULT 13
|
|
||||||
|
|
||||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
|
||||||
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE
|
|
||||||
#define RELAY1_PIN_DEFAULT 57
|
|
||||||
#define RELAY2_PIN_DEFAULT 49
|
|
||||||
#define RELAY3_PIN_DEFAULT 116
|
|
||||||
#define RELAY4_PIN_DEFAULT 113
|
|
||||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI
|
|
||||||
#define RELAY1_PIN_DEFAULT 27
|
|
||||||
#define RELAY2_PIN_DEFAULT 65
|
|
||||||
#define RELAY3_PIN_DEFAULT 22
|
|
||||||
#define RELAY4_PIN_DEFAULT 81
|
|
||||||
#define RELAY5_PIN_DEFAULT 23
|
|
||||||
#define RELAY6_PIN_DEFAULT 26
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef RELAY1_PIN_DEFAULT
|
#ifndef RELAY1_PIN_DEFAULT
|
||||||
#define RELAY1_PIN_DEFAULT -1
|
#define RELAY1_PIN_DEFAULT -1
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user