mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-22 15:46:14 +01:00
c50f3e016c
Unused parameter removal & end of file tidying by the Arduino IDE
33 lines
1.4 KiB
C++
33 lines
1.4 KiB
C++
/*
|
|
* © 2023, Neil McKechnie. All rights reserved.
|
|
*
|
|
* This file is part of DCC++EX API
|
|
*
|
|
* This is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* It is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with CommandStation. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include "IO_Servo.h"
|
|
#include "FSH.h"
|
|
|
|
// Profile for a bouncing signal or turnout
|
|
// The profile below is in the range 0-100% and should be combined with the desired limits
|
|
// of the servo set by _activePosition and _inactivePosition. The profile is symmetrical here,
|
|
// i.e. the bounce is the same on the down action as on the up action. First entry isn't used.
|
|
//
|
|
// Note: This has been put into its own .CPP file to ensure that duplicates aren't created
|
|
// if the IO_Servo.h library is #include'd in multiple source files.
|
|
//
|
|
const uint8_t FLASH Servo::_bounceProfile[30] =
|
|
{0,2,3,7,13,33,50,83,100,83,75,70,65,60,60,65,74,84,100,83,75,70,70,72,75,80,87,92,97,100};
|