mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 16:23:56 -04:00
purple: fixed LED and IO pin defintitions
This commit is contained in:
parent
18986d1d9f
commit
40459653b5
@ -62,6 +62,27 @@
|
|||||||
# define CONFIG_SONAR_SOURCE SONAR_SOURCE_ANALOG_PIN
|
# define CONFIG_SONAR_SOURCE SONAR_SOURCE_ANALOG_PIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// LED and IO Pins
|
||||||
|
//
|
||||||
|
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM1
|
||||||
|
# define A_LED_PIN 37
|
||||||
|
# define B_LED_PIN 36
|
||||||
|
# define C_LED_PIN 35
|
||||||
|
# define LED_ON HIGH
|
||||||
|
# define LED_OFF LOW
|
||||||
|
# define SLIDE_SWITCH_PIN 40
|
||||||
|
# define PUSHBUTTON_PIN 41
|
||||||
|
#elif CONFIG_APM_HARDWARE == APM_HARDWARE_PURPLE
|
||||||
|
# define A_LED_PIN 27
|
||||||
|
# define B_LED_PIN 26
|
||||||
|
# define C_LED_PIN 25
|
||||||
|
# define LED_ON LOW
|
||||||
|
# define LED_OFF HIGH
|
||||||
|
# define SLIDE_SWITCH_PIN (-1)
|
||||||
|
# define PUSHBUTTON_PIN (-1)
|
||||||
|
# define CLI_SLIDER_ENABLED DISABLED
|
||||||
|
#endif
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// AIRSPEED_SENSOR
|
// AIRSPEED_SENSOR
|
||||||
// AIRSPEED_RATIO
|
// AIRSPEED_RATIO
|
||||||
|
@ -204,14 +204,6 @@ enum gcs_severity {
|
|||||||
#define AN4 4
|
#define AN4 4
|
||||||
#define AN5 5
|
#define AN5 5
|
||||||
|
|
||||||
// Hardware Parameters
|
|
||||||
#define SLIDE_SWITCH_PIN 40
|
|
||||||
#define PUSHBUTTON_PIN 41
|
|
||||||
|
|
||||||
#define A_LED_PIN 37 //36 = B, 37 = A, 35 = C
|
|
||||||
#define B_LED_PIN 36
|
|
||||||
#define C_LED_PIN 35
|
|
||||||
|
|
||||||
#define SPEEDFILT 400 // centimeters/second; the speed below which a groundstart will be triggered
|
#define SPEEDFILT 400 // centimeters/second; the speed below which a groundstart will be triggered
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user