Skip to content

Commit

Permalink
LIP/LC/RC ABSIS Bus Master Sketch
Browse files Browse the repository at this point in the history
Signed-off-by: John Steensen <[email protected]>
  • Loading branch information
jrsteensen committed Oct 8, 2024
1 parent cdbd091 commit cc1e9f7
Show file tree
Hide file tree
Showing 8 changed files with 292 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/**************************************************************************************
* ____ _ _ _
* / __ \ | | | | | |
* | | | |_ __ ___ _ __ | |__| | ___ _ __ _ __ ___| |_
* | | | | '_ \ / _ \ '_ \| __ |/ _ \| '__| '_ \ / _ \ __|
* | |__| | |_) | __/ | | | | | | (_) | | | | | | __/ |_
* \____/| .__/ \___|_| |_|_| |_|\___/|_| |_| |_|\___|\__|
* | |
* |_|
* ----------------------------------------------------------------------------------
* Copyright 2016-2024 OpenHornet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ----------------------------------------------------------------------------------
* Note: All other portions of OpenHornet not within the 'OpenHornet-Software'
* GitHub repository is released under the Creative Commons Attribution -
* Non-Commercial - Share Alike License. (CC BY-NC-SA 4.0)
* ----------------------------------------------------------------------------------
* This Project uses Doxygen as a documentation generator.
* Please use Doxygen capable comments.
**************************************************************************************/

/**
* @file 2A1A1-LIP_ABSIS_BUS_MASTER.ino
* @author John Steensen (<a href="mailto:[email protected]">[email protected]</a>)
* @date 10.07.2024
* @version 1.0.0
* @copyright Copyright 2016-2024 OpenHornet. Licensed under the Apache License, Version 2.0.
* @brief Functions as the DCS-BIOS RS485 Master of the UIP.
*
* @details This sketch is for the UIP ABSIS Master.
* _Based off DCS-BIOS Skunkworks `RS485Master.ino` sample code._
*
* * **Reference Designator:** 2A1A1
* * **Intended Board:** ABSIS Bus Master
* * **RS485 Bus Address:** N/A
*
* ###Wiring diagram:
*
* PIN | Function
* --- | ---
* 2 | UART1_TXENABLE_PIN (ABSIS BUS #1)
* 3 | UART2_TXENABLE_PIN (ABSIS BUS #2)
* 4 | UART3_TXENABLE_PIN (ABSIS BUS #3)
*
*/

// The following #define tells DCS-BIOS that this is a RS-485 master device.
#define DCSBIOS_RS485_MASTER

// Define where the TX_ENABLE signals are connected.
#define UART1_TXENABLE_PIN 2
#define UART2_TXENABLE_PIN 3
#define UART3_TXENABLE_PIN 4

#include "DcsBios.h"

/**
* @brief
* Arduino Setup Function
*
* Arduino standard Setup Function. Code who should be executed
* only once at the program start, belongs in this function.
*/
void setup() {
DcsBios::setup();
}

/**
* @brief Arduino Loop Function
*
* Arduino standard Loop Function. Code who should be executed
* over and over in a loop, belongs in this function.
*/
void loop() {
DcsBios::loop();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Any extra libraries included by this sketch (space separated)
LIBRARIES = Servo dcs-bios-arduino-library Wire

# Uncomment one of the following to choose the target board
include $(ROOTDIR)/include/mega2560.mk
# include $(ROOTDIR)/include/promicro.mk
# include $(ROOTDIR)/include/promini.mk
# include $(ROOTDIR)/include/s2mini.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/**************************************************************************************
* ____ _ _ _
* / __ \ | | | | | |
* | | | |_ __ ___ _ __ | |__| | ___ _ __ _ __ ___| |_
* | | | | '_ \ / _ \ '_ \| __ |/ _ \| '__| '_ \ / _ \ __|
* | |__| | |_) | __/ | | | | | | (_) | | | | | | __/ |_
* \____/| .__/ \___|_| |_|_| |_|\___/|_| |_| |_|\___|\__|
* | |
* |_|
* ----------------------------------------------------------------------------------
* Copyright 2016-2024 OpenHornet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ----------------------------------------------------------------------------------
* Note: All other portions of OpenHornet not within the 'OpenHornet-Software'
* GitHub repository is released under the Creative Commons Attribution -
* Non-Commercial - Share Alike License. (CC BY-NC-SA 4.0)
* ----------------------------------------------------------------------------------
* This Project uses Doxygen as a documentation generator.
* Please use Doxygen capable comments.
**************************************************************************************/

/**
* @file 4A1A1-LC_ABSIS_BUS_MASTER.ino
* @author John Steensen (<a href="mailto:[email protected]">[email protected]</a>)
* @date 10.07.2024
* @version 1.0.0
* @copyright Copyright 2016-2024 OpenHornet. Licensed under the Apache License, Version 2.0.
* @brief Functions as the DCS-BIOS RS485 Master of the UIP.
*
* @details This sketch is for the UIP ABSIS Master.
* _Based off DCS-BIOS Skunkworks `RS485Master.ino` sample code._
*
* * **Reference Designator:** 4A1A1
* * **Intended Board:** ABSIS Bus Master
* * **RS485 Bus Address:** N/A
*
* ###Wiring diagram:
*
* PIN | Function
* --- | ---
* 2 | UART1_TXENABLE_PIN (ABSIS BUS #1)
* 3 | UART2_TXENABLE_PIN (ABSIS BUS #2)
* 4 | UART3_TXENABLE_PIN (ABSIS BUS #3)
*
*/

// The following #define tells DCS-BIOS that this is a RS-485 master device.
#define DCSBIOS_RS485_MASTER

// Define where the TX_ENABLE signals are connected.
#define UART1_TXENABLE_PIN 2
#define UART2_TXENABLE_PIN 3
#define UART3_TXENABLE_PIN 4

#include "DcsBios.h"

/**
* @brief
* Arduino Setup Function
*
* Arduino standard Setup Function. Code who should be executed
* only once at the program start, belongs in this function.
*/
void setup() {
DcsBios::setup();
}

/**
* @brief Arduino Loop Function
*
* Arduino standard Loop Function. Code who should be executed
* over and over in a loop, belongs in this function.
*/
void loop() {
DcsBios::loop();
}
8 changes: 8 additions & 0 deletions embedded/OH4_Left_Console/4A1A1-LC_ABSIS_BUS_MASTER/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Any extra libraries included by this sketch (space separated)
LIBRARIES = Servo dcs-bios-arduino-library Wire

# Uncomment one of the following to choose the target board
include $(ROOTDIR)/include/mega2560.mk
# include $(ROOTDIR)/include/promicro.mk
# include $(ROOTDIR)/include/promini.mk
# include $(ROOTDIR)/include/s2mini.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/**************************************************************************************
* ____ _ _ _
* / __ \ | | | | | |
* | | | |_ __ ___ _ __ | |__| | ___ _ __ _ __ ___| |_
* | | | | '_ \ / _ \ '_ \| __ |/ _ \| '__| '_ \ / _ \ __|
* | |__| | |_) | __/ | | | | | | (_) | | | | | | __/ |_
* \____/| .__/ \___|_| |_|_| |_|\___/|_| |_| |_|\___|\__|
* | |
* |_|
* ----------------------------------------------------------------------------------
* Copyright 2016-2024 OpenHornet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ----------------------------------------------------------------------------------
* Note: All other portions of OpenHornet not within the 'OpenHornet-Software'
* GitHub repository is released under the Creative Commons Attribution -
* Non-Commercial - Share Alike License. (CC BY-NC-SA 4.0)
* ----------------------------------------------------------------------------------
* This Project uses Doxygen as a documentation generator.
* Please use Doxygen capable comments.
**************************************************************************************/

/**
* @file 5A1A1-RC_ABSIS_BUS_MASTER.ino
* @author John Steensen (<a href="mailto:[email protected]">[email protected]</a>)
* @date 10.07.2024
* @version 1.0.0
* @copyright Copyright 2016-2024 OpenHornet. Licensed under the Apache License, Version 2.0.
* @brief Functions as the DCS-BIOS RS485 Master of the UIP.
*
* @details This sketch is for the UIP ABSIS Master.
* _Based off DCS-BIOS Skunkworks `RS485Master.ino` sample code._
*
* * **Reference Designator:** 5A1A1
* * **Intended Board:** ABSIS Bus Master
* * **RS485 Bus Address:** N/A
*
* ###Wiring diagram:
*
* PIN | Function
* --- | ---
* 2 | UART1_TXENABLE_PIN (ABSIS BUS #1)
* 3 | UART2_TXENABLE_PIN (ABSIS BUS #2)
* 4 | UART3_TXENABLE_PIN (ABSIS BUS #3)
*
*/

// The following #define tells DCS-BIOS that this is a RS-485 master device.
#define DCSBIOS_RS485_MASTER

// Define where the TX_ENABLE signals are connected.
#define UART1_TXENABLE_PIN 2
#define UART2_TXENABLE_PIN 3
#define UART3_TXENABLE_PIN 4

#include "DcsBios.h"

/**
* @brief
* Arduino Setup Function
*
* Arduino standard Setup Function. Code who should be executed
* only once at the program start, belongs in this function.
*/
void setup() {
DcsBios::setup();
}

/**
* @brief Arduino Loop Function
*
* Arduino standard Loop Function. Code who should be executed
* over and over in a loop, belongs in this function.
*/
void loop() {
DcsBios::loop();
}
8 changes: 8 additions & 0 deletions embedded/OH5_Right_Console/5A1A1-RC_ABSIS_BUS_MASTER/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Any extra libraries included by this sketch (space separated)
LIBRARIES = Servo dcs-bios-arduino-library Wire

# Uncomment one of the following to choose the target board
include $(ROOTDIR)/include/mega2560.mk
# include $(ROOTDIR)/include/promicro.mk
# include $(ROOTDIR)/include/promini.mk
# include $(ROOTDIR)/include/s2mini.mk

0 comments on commit cc1e9f7

Please sign in to comment.