config changes for why2025

This commit is contained in:
interfisch 2025-08-09 13:39:48 +02:00
parent e74b258795
commit cb3aa43657
2 changed files with 66 additions and 25 deletions

View file

@ -1,3 +1,6 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
@ -14,8 +17,6 @@ board = esp32-s3-devkitm-1
;Devboard is ESP32-S3-DevKitC-1 (N16R8). board=esp32-s3-devkitm-1 works fine
framework = arduino
monitor_speed = 115200
upload_speed = 921600

View file

@ -161,27 +161,67 @@ void setup() {
//loadHeightmapRaw();
heightraw[0]=0;
heightraw[50]=96;
heightraw[64]=103;
heightraw[87]=100;
heightraw[107]=120;
heightraw[155]=199;
heightraw[185]=220;
heightraw[238]=184;
heightraw[269]=209;
heightraw[290]=187;
heightraw[318]=120;
heightraw[358]=187;
heightraw[385]=135;
heightraw[408]=114;
heightraw[464]=203;
heightraw[494]=240;
heightraw[502]=243;
heightraw[506]=240;
heightraw[550]=203;
heightraw[574]=188;
heightraw[599]=199;
heightraw[0]=205;
heightraw[4]=207;
heightraw[14]=200;
heightraw[49]=155;
heightraw[86]=196;
heightraw[120]=163;
heightraw[137]=165;
heightraw[162]=200;
heightraw[189]=240;
heightraw[231]=205;
heightraw[243]=200;
heightraw[255]=190;
heightraw[267]=200;
heightraw[283]=205;
heightraw[299]=206;
heightraw[313]=205;
heightraw[336]=206;
heightraw[356]=200;
heightraw[409]=145;
heightraw[420]=138;
heightraw[433]=145;
heightraw[450]=161;
heightraw[501]=200;
heightraw[509]=203;
heightraw[514]=200;
heightraw[530]=178;
heightraw[547]=178;
heightraw[560]=200;
heightraw[593]=241;
heightraw[599]=238;
interpolateHeightValues();
@ -347,7 +387,7 @@ void spawnWagon(){
//Wagon tmpr = Wagon(maxid++,NUMPIXELS,&strip, height, side_startpos, _randomlength, side_multi*random(map(_randomlength,3,30,0,40)/10.0, map(_randomlength,3,30, 5,60))/10.0 , 0 , random(3.0,7.0) , Wheel((uint8_t)random(0,255))); //spawn new wagon
//Wagon tmpr = Wagon(maxid++,NUMPIXELS,&strip, height, side_startpos, _randomlength, side_multi*random(map(_randomlength,3,40,30,80)/10.0, map(_randomlength,3,40, 5,60))/10.0 , 0 , 1.8 , Wheel((uint8_t)random(0,255))); //spawn new wagon
Wagon tmpr = Wagon(maxid++,NUMPIXELS,&strip, height, side_startpos, _randomlength, side_multi*random(20,70)/10.0 , 0 , map(_randomlength,3,40,2.0,1.0) , Wheel((uint8_t)random(0,255))); //spawn new wagon
Wagon tmpr = Wagon(maxid++,NUMPIXELS,&strip, height, side_startpos, _randomlength, side_multi*random(10,50)/10.0 , 0 , map(_randomlength,3,40,2.0,1.0) , Wheel((uint8_t)random(0,255))); //spawn new wagon
//Mass: the heavier the faster is changes speed
@ -740,7 +780,7 @@ uint32_t Wheel(byte WheelPos) {
//TODO: loadHeightmapRaw does not load the right values. Check if loadheightmap does read the same saveheightmap saved.
void loadHeightmapRaw(){
int c_eepromaddress=EEPROMSTARTADDRESS_HEIGHTMAP;
uint16_t lastvalue=0;