forked from ClemensElflein/CoverUI
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
759d743
commit 0ceb795
Showing
11 changed files
with
16,859 additions
and
6,169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,29 @@ | |
* @file emergency_RM-ECOW-V100.cpp | ||
* @author Apehaenger ([email protected]) | ||
* @brief YardForce RM-ECOW-V1.0.0 CoverUI Emergency class for OpenMower https://github.com/ClemensElflein/OpenMower | ||
* @version 0.2 | ||
* @date 2023-11-05 | ||
* @version 0.3 | ||
* @date 2024-09-28 | ||
* | ||
* @copyright Copyright (c) 2023 | ||
* @copyright Copyright (c) 2023, 2024 | ||
* | ||
*/ | ||
#include <Arduino.h> | ||
#include "emergency_RM-ECOW-V100.h" | ||
|
||
#include <Arduino.h> | ||
|
||
#include "../Emergency.hpp" | ||
|
||
const EmergencyPinStateDef kEmergencyPinStateDefs[] = { | ||
#ifdef MOD_HALL | ||
{PIN_HALL1, INPUT_PULLUP, Emergency_state::Emergency_lift1}, | ||
{PIN_HALL2, INPUT_PULLUP, Emergency_state::Emergency_lift1}, | ||
{PIN_HALL3, INPUT_PULLUP, Emergency_state::Emergency_lift2}, | ||
{PIN_HALL4, INPUT_PULLUP, Emergency_state::Emergency_lift2}, | ||
#endif | ||
#ifdef MOD_STOP | ||
{PIN_STOP_JP5, INPUT_PULLUP, Emergency_state::Emergency_stop1}, | ||
{PIN_STOP_JP6, INPUT_PULLUP, Emergency_state::Emergency_stop2}}; | ||
{PIN_STOP_JP6, INPUT_PULLUP, Emergency_state::Emergency_stop2} | ||
#endif | ||
}; | ||
|
||
Emergency emergency(kEmergencyPinStateDefs, sizeof(kEmergencyPinStateDefs) / sizeof(EmergencyPinStateDef)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,28 @@ | |
* @file emergency_RM-ECOW-V100.h | ||
* @author Apehaenger ([email protected]) | ||
* @brief YardForce RM-ECOW-V1.0.0 CoverUI Emergency header for OpenMower https://github.com/ClemensElflein/OpenMower | ||
* @version 0.2 | ||
* @date 2023-11-05 | ||
* @version 0.3 | ||
* @date 2024-09-28 | ||
* | ||
* @copyright Copyright (c) 2023 | ||
* @copyright Copyright (c) 2023, 2024 | ||
* | ||
*/ | ||
|
||
#ifndef YARDFORCE_EMERGENCY_RMECOWV100_HPP | ||
#define YARDFORCE_EMERGENCY_RMECOWV100_HPP | ||
|
||
#include <Arduino.h> | ||
|
||
#include "../Emergency.hpp" | ||
|
||
#define PIN_STOP_JP5 PC10 | ||
#define PIN_STOP_JP6 PA15 | ||
|
||
#define PIN_HALL1 PA8 // LIFT | ||
#define PIN_HALL2 PF6 // LIFTX | ||
#define PIN_HALL3 PA12 // LBUMP | ||
#define PIN_HALL4 PA11 // RBUMP | ||
|
||
extern Emergency emergency; | ||
|
||
#endif // YARDFORCE_EMERGENCY_RMECOWV100_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.