Skip to content

Commit 9fe4d74

Browse files
committed
v9.9.0 manch changes according to README.md
1 parent b7d3434 commit 9fe4d74

11 files changed

Lines changed: 428 additions & 55 deletions

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,15 @@ const uint8_t shakerStop = 60; // Shaker power while engine stop (max. 255, abou
515515

516516
## Changelog (newest on top):
517517

518+
### New in V 9.9.0:
519+
- New NEOPIXEL_UNION_JACK animation for Land Rover ;-)
520+
- New MAX_POWER_MILLIAMPS setting for Neopixels. This and other optimizations is eliminating the flickering Neopixels issue
521+
- 3_adjustmentsESC.h: globalAccelerationPercentage allows to adjust the acceleration, if vehicle setting is not OK
522+
- 4_adjustmentsTransmission.h: lowRangePercentage allows to adjust the acceleration in low transmission (off road) range. Used for MODE1_SHIFTING and WPL 2 speed transmission
523+
- Channel failsafe changed
524+
- 2_adjustmentsRemote.h: External SBUS library not required anymore. See option #define EMBEDDED_SBUS. "sbusInverted" moved to remote configuration profiles, so you don't have to change it anymore
525+
- SBUS still unstable with Flysky remotes! Especially in combination with WIRELESS_TRAILER. Use IBUS in this case! I'm thankful for hints about this bug. Differences: Micro RC is sending an SBUS packet every 14ms, Flysky every 7ms
526+
518527
### New in V 9.8.0:
519528
- Adjustable RECOVERY_HYSTERESIS for battery protection
520529
- 8_adjustmentsSound.h (masterVolumeCrawlerThreshold) and 3_adjustmentsESC.h (crawlerEscRampTime): switchable crawler mode with just minimal inertia for gearbox protection. Allows to have a "show mode" and a "competition mode"
File renamed without changes.

src/1_adjustmentsVehicle.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//#include "vehicles/ScaniaV8_50ton.h" // SCANIA V8 50 ton truck. Unknown model. Bad quality!
2929
//#include "vehicles/ScaniaV8.h" // SCANIA V8 truck, unknown model
3030
//#include "vehicles/1000HpScaniaV8.h" // 1000 HP SCANIA V8 truck with open pipes. Insane sound! Good bass speakers reqired
31-
//#include "vehicles/Scania143.h" // SCANIA 143 V8 - the legend! The best sounding in my opinion
31+
#include "vehicles/Scania143.h" // SCANIA 143 V8 - the legend! The best sounding in my opinion
3232
//#include "vehicles/ScaniaV8Firetruck.h" // SCANIA V8 firetruck, automatic Allison 6 speed transmission with torque converter, "Martinshorn" siren
3333
//#include "vehicles/VolvoFH16_750.h" // Volvo FH16 750 truck. Inline 6, 750 horses, open pipes!
3434
//#include "vehicles/VolvoFH16_OpenPipe.h" // Volvo FH truck. Inline 6, open pipes, alternative version
@@ -84,7 +84,7 @@
8484
// EU SUV --------
8585
//#include "vehicles/DefenderV8Automatic.h" // Land Rover Defender 90 V8 automatic (very nice V8 with lots of bass)
8686
//#include "vehicles/DefenderV8OpenPipeAutomatic.h" // Land Rover Defender 90 V8 automatic, open pipes (optimised for smaller speakers)
87-
#include "vehicles/DefenderV8OpenPipe.h" // Land Rover Defender 90 V8 manual, open pipes (optimised for smaller speakers)
87+
//#include "vehicles/DefenderV8OpenPipe.h" // Land Rover Defender 90 V8 manual, open pipes (optimised for smaller speakers)
8888
//#include "vehicles/DefenderV8CrawlerAutomatic.h" // Land Rover Defender 90 V8 automatic crawler
8989
//#include "vehicles/DefenderTd5.h" // Land Rover Defender 90 Td5 R5 Diesel
9090

src/2_adjustmentsRemote.h

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//#define RGT_EX86100 // <------- MT-305 remote delivered with RGT EX86100 crawler (use PWM communication setting)
88
//#define GRAUPNER_MZ_12 // <------- Graupner MZ-12 PRO
99
#define MICRO_RC // <------- The car style DIY "Micro RC" remote. Don't use this with standard remotes!
10-
//#define MICRO_RC_STICK // <------- The stick based DIY "Micro RC" remote. Don't use this with standard remotes!
10+
//#define MICRO_RC_STICK // <------- The stick based DIY "Micro RC" remote. Don't use this with standard remotes!
1111

1212
// For testing only!
1313
//#define FLYSKY_FS_I6S_EXCAVATOR_TEST // <------- Flysky FS-i6s for KABOLITE K336 hydraulic excavator
@@ -23,9 +23,12 @@
2323
// PWM mode active, if SBUS, IBUS, and PPM are disabled (// in front of #define)
2424

2525
// SBUS communication (RX header, 13 channels. This is my preferred communication protocol)--------
26+
/* NOTE! SBUS is causing weird issues with Flysky remotes. Use IBUS instead! */
2627
#define SBUS_COMMUNICATION // control signals are coming in via the SBUS interface (comment it out for classic PWM RC signals)
27-
boolean sbusInverted = false; // false = wired to non standard (inverted) SBUS signal (for example from my "Micro RC" receiver)
28+
// NOTE: "boolean sbusInverted = true / false" was moved to the remote configuration profiles, so you don't have to change it
2829
uint32_t sbusBaud = 100000; // Standard is 100000. Try to lower it, if your channels are coming in unstable. Working range is about 96000 - 104000.
30+
#define EMBEDDED_SBUS // SBUS library not used, if defined (It is working fine with MICRO_RC, but still unstable with Flysky remotes, use IBUS for them)
31+
uint16_t sbusFailsafeTimeout = 100; // Failsafe is triggered after this timeout in milliseconds (about 100, was 50)
2932

3033
// IBUS communication (RX header, 13 channels not recommended, NO FAILSAFE, if bad contact in iBUS wiring!) --------
3134
//#define IBUS_COMMUNICATION // control signals are coming in via the IBUS interface (comment it out for classic PWM RC signals)
@@ -38,7 +41,7 @@ uint32_t sbusBaud = 100000; // Standard is 100000. Try to lower it, if your chan
3841

3942
// CHANNEL LINEARITY SETTINGS ****************************************************************************************************************
4043

41-
#define EXPONENTIAL_THROTTLE // Exponential throttle curve. Ideal for enhanced slow speed control in crawlers
44+
//#define EXPONENTIAL_THROTTLE // Exponential throttle curve. Ideal for enhanced slow speed control in crawlers
4245
//#define EXPONENTIAL_STEERING // Exponential steering curve. More steering accuracy around center position
4346

4447
// CHANNEL AVERAGING (EXPERIMENTAL!) **********************************************************************************************************
@@ -145,6 +148,9 @@ const uint16_t pulseSpan = 480;
145148
//#define AUTO_ENGINE_ON_OFF
146149
//#define AUTO_INDICATORS
147150

151+
// SBUS mode ----
152+
boolean sbusInverted = true; // true = standard (non inverted) SBUS signal
153+
148154
#endif
149155

150156
// Flysky FS-i6S remote configuration profile (for excavators only) ---------------------------------------------------------------------------------
@@ -213,6 +219,9 @@ const uint16_t pulseSpan = 480;
213219
//#define AUTO_ENGINE_ON_OFF
214220
//#define AUTO_INDICATORS
215221

222+
// SBUS mode ----
223+
boolean sbusInverted = true; // true = standard (non inverted) SBUS signal
224+
216225
#endif
217226

218227
// Flysky FS-i6S remote configuration profile (for excavators only) ---------------------------------------------------------------------------------
@@ -281,6 +290,9 @@ const uint16_t pulseSpan = 480;
281290
//#define AUTO_ENGINE_ON_OFF
282291
//#define AUTO_INDICATORS
283292

293+
// SBUS mode ----
294+
boolean sbusInverted = true; // true = standard (non inverted) SBUS signal
295+
284296
#endif
285297

286298
// Flysky GT5 / Reely GT6 EVO / Absima CR6P remote configuration profile (thanks to BlackbirdXL1 for making this profile)-----------------------
@@ -373,6 +385,9 @@ const uint16_t pulseSpan = 480;
373385
//#define AUTO_ENGINE_ON_OFF
374386
#define AUTO_INDICATORS
375387

388+
// SBUS mode ----
389+
boolean sbusInverted = true; // true = standard (non inverted) SBUS signal
390+
376391
#endif
377392

378393
// RGT MT-305 configuration profile (comes with EX86100) -----------------------
@@ -460,6 +475,9 @@ const uint16_t pulseSpan = 500;
460475
#define AUTO_ENGINE_ON_OFF
461476
#define AUTO_INDICATORS
462477

478+
// SBUS mode ----
479+
boolean sbusInverted = true; // true = standard (non inverted) SBUS signal
480+
463481
#endif
464482

465483
// Graupner mz-12 PRO remote configuration profile ---------------------------------------------------------------------------------------------------
@@ -526,6 +544,9 @@ const uint16_t pulseSpan = 480;
526544
//#define AUTO_ENGINE_ON_OFF
527545
#define AUTO_INDICATORS
528546

547+
// SBUS mode ----
548+
boolean sbusInverted = true; // true = standard (non inverted) SBUS signal
549+
529550
#endif
530551

531552
// "Micro RC" (the car style one) DIY Arduino remote configuration profile -------------------------------------------------------------------------------------------
@@ -592,6 +613,9 @@ const uint16_t pulseSpan = 480;
592613
//#define AUTO_ENGINE_ON_OFF
593614
#define AUTO_INDICATORS
594615

616+
// SBUS mode ----
617+
boolean sbusInverted = false; // false = non standard (inverted) SBUS signal
618+
595619
#endif
596620

597621
// "Micro RC" (The stick based one) DIY Arduino remote configuration profile -------------------------------------------------------------------------------------------
@@ -658,4 +682,7 @@ const uint16_t pulseSpan = 480;
658682
//#define AUTO_ENGINE_ON_OFF
659683
#define AUTO_INDICATORS
660684

685+
// SBUS mode ----
686+
boolean sbusInverted = false; // false = non standard (inverted) SBUS signal
687+
661688
#endif

src/3_adjustmentsESC.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ const uint16_t escReversePlus = 0;
115115
const uint16_t brakeMargin = 0; // For RZ7886 motor driver and 370 motor = 10
116116

117117
// Crawler mode escRampTime (see "8_adjustmentsSound.h") WARNING: a very low setting may damage your transmission!
118-
const uint8_t crawlerEscRampTime = 10; // about 10, less = more direct control = less virtual inertia
118+
const uint8_t crawlerEscRampTime = 10; // about 10 (15 for Jeep), less = more direct control = less virtual inertia
119+
120+
// Allows to scale vehicle file dependent acceleration
121+
uint16_t globalAccelerationPercentage = 100; // about 100 - 200% (200 for Jeep) Experimental, may cause automatic transmission shifting issues!
119122

120123
/* Battery low discharge protection (only for boards with voltage divider resistors):
121124
* IMPORTANT: Enter used resistor values in Ohms (Ω) and THEN adjust DIODE_DROP, until your readings match the actual battery voltage! */
@@ -127,9 +130,9 @@ const float RECOVERY_HYSTERESIS = 0.2; // around 0.2 V
127130
* When selecting resistors, always use two of the same magnitude: Like, for example, 10k/2k, 20k/4k or 100k/20k. NEVER exceed a ratio LOWER than (4:1 = 4)!
128131
* WARNING: If the ratio is too LOW, like 10k/5k (2:1 = 2), the battery voltage will most likely DAMAGE the controller permanently!
129132
* Example calculation: 2000 / (2000 + 10000) = 0.166 666 666 7; 7.4 V * 0.167 = 1.2358 V (of 3.3 V maximum on GPIO Pin). */
130-
const uint16_t RESISTOR_TO_BATTTERY_PLUS = 10000; // Value in Ohms (Ω), for example 10000
131-
const uint16_t RESISTOR_TO_GND = 2000; // Value in Ohms (Ω), for example 1000. Measuring exact resistor values before soldering, if possible is recommended!
132-
const float DIODE_DROP = 0.34; // Fine adjust measured value and/or consider diode voltage drop (about 0.34V for SS34 diode)
133+
uint16_t RESISTOR_TO_BATTTERY_PLUS = 10000; // Value in Ohms (Ω), for example 10000
134+
uint16_t RESISTOR_TO_GND = 2000; // Value in Ohms (Ω), for example 2000. Measuring exact resistor values before soldering, if possible is recommended!
135+
float DIODE_DROP = 0.34; // Fine adjust measured value and/or consider diode voltage drop (about 0.34V for SS34 diode)
133136
/* It is recommended to add a sticker to your ESP32, which includes the 3 calibration values above */
134137
volatile int outOfFuelVolumePercentage = 80; // Adjust the message volume in %
135138
// Select the out of fuel message you want:

src/4_adjustmentsTransmission.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
// In some cases we want a different reverse acceleration for automatic transmission vehicles.
2626
uint16_t automaticReverseAccelerationPercentage = 100;
2727

28+
// Low range percentage is used for MODE1_SHIFTING (off road reducer)
29+
uint16_t lowRangePercentage = 58;// WPL 2 speed ratios = 29:1, 17:1 = 58% in low range. You may want to change this for other 2 speed transmissions
30+
2831
// Transmission controls options ===========================================================================================================
2932
// #define SEMI_AUTOMATIC This will simulate a semi automatic transmission. Shifting is not controlled by the 3 position switch in this mode!
3033
//#define SEMI_AUTOMATIC // Works for VIRTUAL_3_SPEED or real 3 speed transmission. Don't select this @ the same time as VIRTUAL_16_SPEED_SEQUENTIAL

src/6_adjustmentsLights.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Arduino.h>
22

3-
/* General LIGHTS SETTINGS ************************************************************************************************
3+
/* General LIGHTS SETTINGS ***********************************************************************************************************************
44
*
55
* Most lights settings are done in the vehicle configuration files in the /vehicles/ directory.
66
*
@@ -10,12 +10,14 @@
1010
//#define NEOPIXEL_ENABLED // GPIO0 used for WS2812 Neopixel control, if defined!
1111
#define NEOPIXEL_COUNT 8 // How many Neopixels? 8 for Knight Rider, 3 for B33lz3bub
1212
#define NEOPIXEL_BRIGHTNESS 127 // Brightness (255 is the maximum)
13+
#define MAX_POWER_MILLIAMPS 100 // Maximum allowed current draw in mA (100 recommended, depending on your 5V supply)
1314

14-
// Choose the mode you want
15+
// Choose the animation you want
1516
//#define NEOPIXEL_DEMO // Demo
1617
//#define NEOPIXEL_KNIGHT_RIDER // Knight Rider scanner animation for 8 LED (use it in combination with "kittScanner.h" "siren" sound in your vehicle file)
17-
#define NEOPIXEL_BLUELIGHT // Bluelight animation for 8 LED
18-
//#define NEOPIXEL_HIGHBEAM // Neopixel bar is used as high beam as well, if defined. Also usable in combination with NEOPIXEL_KNIGHT_RIDER & NEOPIXEL_BLUELIGHT
18+
//#define NEOPIXEL_BLUELIGHT // Bluelight animation for 8 LED
19+
#define NEOPIXEL_UNION_JACK // United Kingdom animation for 8 LED (use it in combination with "BritishNationalAnthemSiren.h" sound in your vehicle file)
20+
#define NEOPIXEL_HIGHBEAM // Neopixel bar is used as high beam as well, if defined. Also usable in combination with NEOPIXEL_KNIGHT_RIDER & NEOPIXEL_BLUELIGHT
1921
//#define NEOPIXEL_B33LZ3BUB // B33lz3bub Austria animation for 3 LED: https://www.rc-modellbau-portal.de/index.php?threads/baubericht-mercedes-actros-1851-gigaspace-tamiya.14349/page-3
2022

2123

@@ -33,9 +35,9 @@
3335

3436
// Adjust the brightness of your lights here -----------------------------------------------------------------------------------------------------
3537
// All brightness values 0 - 255
36-
uint8_t cabLightsBrightness = 255; // Usually 255, 100 for Actros
38+
uint8_t cabLightsBrightness = 255; // Usually 255, 100 for Actros & Ural
3739
uint8_t sideLightsBrightness = 200; // Usually 200, 100 for WPL C44, 50 for Landy, 100 for P407, 150 for Actros
3840
uint8_t rearlightDimmedBrightness = 30; // tailligt brightness, if not braking, about 30
3941
uint8_t rearlightParkingBrightness = 0; // 0, if you want the taillights being off, if side lights are on, or about 5 if you want them on (0 for US Mode)
4042
uint8_t headlightParkingBrightness = 0; // 0, if you want the headlights being off, if side lights are on, or about 5 if you want them on (0 for US Mode)
41-
uint8_t reversingLightBrightness = 140; // Around 140, 50 for Landy
43+
uint8_t reversingLightBrightness = 140; // Around 140, 50 for Landy & Ural

src/7_adjustmentsServos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const uint8_t SERVO_FREQUENCY = 50; // usually 50Hz, some servos may run smoothe
7777
// WARNING: never connect receiver PWM signals to the "CH" pins in BUS communication mode!
7878

7979
// Servo limits
80-
const uint16_t CH1L = 2000, CH1C = 1660, CH1R = 1190; // CH1 steering left, center, right
80+
const uint16_t CH1L = 2100, CH1C = 1660, CH1R = 1190; // CH1 steering left 2000, center 1660, right 1190
8181
const uint16_t CH2L = 1000, CH2C = 1500, CH2R = 2000; // CH2 transmission gear 1, 2, 3
8282
const uint16_t CH3L = 1435, CH3C = 1495, CH3R = 1560; // CH3 winch pull, off, release
8383
const uint16_t CH4L = 1300, CH4R = 1700; // CH4 trailer coupler (5th. wheel) locked, unlocked

0 commit comments

Comments
 (0)