rusefi-1/firmware/hw_layer
Andrey G a1387d3bd2
Fixes (#2807)
* tle6240: fix Matt's trap

* map: report some default value if no map sensor configured

Othervise user will get "unexpected MAP value" warning

Thread 2 hit Breakpoint 1, validateMap (mapKPa=3121.66162) at ./controllers/sensors/map.cpp:126
126		if (cisnan(mapKPa) || mapKPa < CONFIG(mapErrorDetectionTooLow) || mapKPa > CONFIG(mapErrorDetectionTooHigh)) {
(gdb) bt
 0  validateMap (mapKPa=3121.66162) at ./controllers/sensors/map.cpp:126
 1  0x002717dc in getMap () at ./controllers/engine_cycle/map_averaging.cpp:334
 2  0x0028175a in GetMapWrapper::getMap (this=0x2004214c <mapWrapper>) at ./init/sensor/init_map.cpp:12
 3  0x0028177c in operator() (__closure=0x0) at ./init/sensor/init_map.cpp:20
 4  0x002817a8 in _FUN () at ./init/sensor/init_map.cpp:21
 5  0x002811de in FunctionPointerSensor::get (this=0x20042150 <mapSensor>) at ./controllers/sensors/function_pointer_sensor.h:24
 6  0x002651c0 in SensorRegistryEntry::get (this=0x2003ddf0 <s_sensorRegistry+48>) at ./controllers/sensors/sensor.cpp:111
 7  0x002653e2 in Sensor::get (type=SensorType::Map) at ./controllers/sensors/sensor.cpp:208
 8  0x00261f38 in updateTunerStudioState (tsOutputChannels=0x2003d2e8 <tsOutputChannels>) at ./console/status_loop.cpp:637
 9  0x00262e48 in prepareTunerStudioOutputs () at ./console/status_loop.cpp:900
 10 0x00260914 in TunerStudio::cmdOutputChannels (this=0x20021a64 <tsInstance>, tsChannel=0x2003d4dc <usbChannel>, offset=0, count=340) at ./console/binary/tunerstudio_commands.cpp:24
 11 0x00260584 in TunerStudioBase::handleCrcCommand (this=0x20021a64 <tsInstance>, tsChannel=0x2003d4dc <usbChannel>, data=0x2003d4e1 <usbChannel+5> "", incomingPacketSize=5)
    at ./console/binary/tunerstudio.cpp:701
 12 0x0025fb3c in tsProcessOne (tsChannel=0x2003d4dc <usbChannel>) at ./console/binary/tunerstudio.cpp:537
 13 0x0025fbe2 in TunerstudioThread::ThreadTask (this=0x2003d608 <usbConsole>) at ./console/binary/tunerstudio.cpp:554
 14 0x0025f094 in ThreadController<1200>::StaticThreadTaskAdapter (thread=0x2003d608 <usbConsole>) at ./controllers/system/thread_controller.h:37
 15 0x0020035e in _port_thread_start () at ChibiOS/os/common/ports/ARMCMx/compilers/GCC/chcoreasm_v7m.S:201
2021-06-10 19:39:48 -04:00
..
adc Adc fixes (#2691) 2021-05-13 15:51:18 -04:00
algo ADC cleanup, enable oversampling on H7 (#2437) 2021-03-08 14:50:50 -05:00
digital_input Proteus QC build 2021-04-30 13:57:33 -04:00
drivers Fixes (#2807) 2021-06-10 19:39:48 -04:00
mass_storage mkfs.fat phase kills gen_config #2736 2021-05-24 15:35:35 -04:00
mc33816 Doxygen titles (#2728) 2021-05-22 22:10:58 +03:00
microsecond_timer speed up boot by 48 ms (#2506) 2021-03-29 22:59:38 -04:00
ports non blocking flash on f7 dual bank 2MB (#2749) 2021-05-29 08:05:29 +03:00
sensors refactoring magic constant STOICH_RATIO 2021-05-20 02:36:55 -04:00
backup_ram.h
cdm_ion_sense.cpp
cdm_ion_sense.h
debounce.cpp rip the bandaid: find-replace most of scheduleMsg (#2572) 2021-04-21 12:53:13 -04:00
debounce.h rip the bandaid: find-replace most of scheduleMsg (#2572) 2021-04-21 12:53:13 -04:00
flash_int.h H7 flash (#2408) 2021-02-26 17:38:17 -05:00
hardware.cpp Hw layer rearrangement (#2703) 2021-05-16 06:01:00 -04:00
hardware.h Destroy all shared logger (#2574) 2021-04-21 14:28:48 -04:00
hip9011.md
hw_layer.mk Hw layer rearrangement (#2703) 2021-05-16 06:01:00 -04:00
io_pins.cpp remove simple cases of LoggingWithStorage (#2569) 2021-04-19 08:11:59 -04:00
io_pins.h
mc33816.cpp Destroy all shared logger (#2574) 2021-04-21 14:28:48 -04:00
mc33816.h Destroy all shared logger (#2574) 2021-04-21 14:28:48 -04:00
mc33816_data.c
mc33816_data.h
mc33816_memory_map.h
mmc_card.cpp no sd if early fatal (#2680) 2021-05-10 14:31:40 -04:00
mmc_card.h move some initialization steps earlier (#2480) 2021-03-25 16:22:03 -04:00
mmc_card_access.cpp remove simple cases of LoggingWithStorage (#2569) 2021-04-19 08:11:59 -04:00
pin_repository.cpp convert gpiochips to c++ (#2761) 2021-06-10 04:11:01 -04:00
pin_repository.h convert gpiochips to c++ (#2761) 2021-06-10 04:11:01 -04:00
readme.md Doxygen titles (#2728) 2021-05-22 22:10:58 +03:00
rtc_helper.cpp Kill warnings (#2623) 2021-05-04 18:55:27 -04:00
rtc_helper.h
servo.cpp set all thread priorities in the same place (#2412) 2021-02-28 07:30:45 -05:00
servo.h
smart_gpio.cpp don't expose private state (#2696) 2021-05-14 14:56:45 -04:00
smart_gpio.h hiding 8888 mess under the rug 2021-05-14 10:54:40 -04:00
stepper.cpp Logging remove 3 (#2568) 2021-04-20 14:09:41 -04:00
stepper.h Logging remove 3 (#2568) 2021-04-20 14:09:41 -04:00
stepper_dual_hbridge.cpp
trigger_input_adc.cpp Destroy all shared logger (#2574) 2021-04-21 14:28:48 -04:00
vehicle_speed.cpp Destroy all shared logger (#2574) 2021-04-21 14:28:48 -04:00
vehicle_speed.h Destroy all shared logger (#2574) 2021-04-21 14:28:48 -04:00