mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-25 09:06:13 +01:00
Compare commits
No commits in common. "c2fa76c76aba19039d9bf77a1a0754d06c4cd1f2" and "dfba6c6fc13ef8e3b0eb7c3521b3ff0aa8274a5f" have entirely different histories.
c2fa76c76a
...
dfba6c6fc1
|
@ -1 +1 @@
|
||||||
#define GITHUB_SHA "devel-202306261801Z"
|
#define GITHUB_SHA "devel-202306231154Z"
|
||||||
|
|
|
@ -135,11 +135,7 @@ MotorDriver::MotorDriver(int16_t power_pin, byte signal_pin, byte signal_pin2, i
|
||||||
// float calculations or libraray code.
|
// float calculations or libraray code.
|
||||||
senseFactorInternal=sense_factor * senseScale;
|
senseFactorInternal=sense_factor * senseScale;
|
||||||
tripMilliamps=trip_milliamps;
|
tripMilliamps=trip_milliamps;
|
||||||
#ifdef MAX_CURRENT
|
rawCurrentTripValue=mA2raw(trip_milliamps);
|
||||||
if (MAX_CURRENT > 0 && MAX_CURRENT < tripMilliamps)
|
|
||||||
tripMilliamps = MAX_CURRENT;
|
|
||||||
#endif
|
|
||||||
rawCurrentTripValue=mA2raw(tripMilliamps);
|
|
||||||
|
|
||||||
if (rawCurrentTripValue + senseOffset > ADCee::ADCmax()) {
|
if (rawCurrentTripValue + senseOffset > ADCee::ADCmax()) {
|
||||||
// This would mean that the values obtained from the ADC never
|
// This would mean that the values obtained from the ADC never
|
||||||
|
|
|
@ -57,21 +57,6 @@ The configuration file for DCC-EX Command Station
|
||||||
// +-----------------------v
|
// +-----------------------v
|
||||||
//
|
//
|
||||||
#define MOTOR_SHIELD_TYPE STANDARD_MOTOR_SHIELD
|
#define MOTOR_SHIELD_TYPE STANDARD_MOTOR_SHIELD
|
||||||
//
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// If you want to restrict the maximum current LOWER than what your
|
|
||||||
// motor shield can provide, you can do that here. For example if you
|
|
||||||
// have a motor shield that can provide 5A and your power supply can
|
|
||||||
// only provide 2.5A then you should restict the maximum current to
|
|
||||||
// 2.25A (90% of 2.5A) so that DCC-EX does shut off the track before
|
|
||||||
// your PS does shut DCC-EX. MAX_CURRENT is in mA so for this example
|
|
||||||
// it would be 2250, adjust the number according to your PS. If your
|
|
||||||
// PS has a higher rating than your motor shield you do not need this.
|
|
||||||
// You can use this as well if you are cautious and your trains do not
|
|
||||||
// need full current.
|
|
||||||
// #define MAX_CURRENT 2250
|
|
||||||
//
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// The IP port to talk to a WIFI or Ethernet shield.
|
// The IP port to talk to a WIFI or Ethernet shield.
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
#include "StringFormatter.h"
|
#include "StringFormatter.h"
|
||||||
|
|
||||||
|
|
||||||
#define VERSION "4.2.61"
|
#define VERSION "4.2.60"
|
||||||
// 4.2.61 - MAX_CURRENT restriction (caps motor shield value)
|
|
||||||
// 4.2.60 - Add mDNS capability to ESP32 for autodiscovery
|
// 4.2.60 - Add mDNS capability to ESP32 for autodiscovery
|
||||||
// 4.2.59 - Fix: AP SSID was DCC_ instead of DCCEX_
|
// 4.2.59 - Fix: AP SSID was DCC_ instead of DCCEX_
|
||||||
// 4.2.58 - Start motordriver as soon as possible but without waveform
|
// 4.2.58 - Start motordriver as soon as possible but without waveform
|
||||||
|
|
Loading…
Reference in New Issue
Block a user