Commit Graph

  • 4e24792b51 Further work handling when injection start angle passes back and forth between 0 and CRANK_ANGLE_MAX_INJ Josh Stewart 2024-12-11 14:42:58 +1100
  • dbad3818a1 Prevent missed injection pulse under specific timing conditions Josh Stewart 2024-12-11 12:04:44 +1100
  • ba19486dbf Slight tweak to fuel scheduling conditions Josh Stewart 2024-12-10 11:02:38 +1100
  • e0ad5541d8 Fix unit tests after latest rebase. tx_haggis 2024-12-07 16:33:32 -0600
  • 76423462b6 Move scheduler AVR interrupt setup into board_avr2560.cpp (why should AVR board setup differ from the other boards?) tx_haggis 2024-06-21 15:00:38 -0500
  • dd1a371ea0 ARM cores call moveToNextState directly tx_haggis 2024-06-21 14:44:06 -0500
  • bcf2b93879 MISRA fixes tx_haggis 2024-05-28 20:43:57 -0500
  • 3d2f7a8a50 Use macros to define schedule ISRs (removes repeated code) tx_haggis 2024-02-06 08:33:51 -0600
  • 42102eebc9 Use a state machine idiom to consolidate timer ISR code. tx_haggis 2024-02-06 00:19:05 -0600
  • 1cd5f34116 Break *circular* header dependencies: globals.h -> board_avr2560.h -> globals.h tx_haggis 2024-05-27 08:31:31 -0500
  • a1bac9ae32 uS_TO_TIMER_COMPARE should return COMPARE_TYPE tx_haggis 2024-06-21 09:13:35 -0500
  • bc64105970 Save RAM: drop Schedule::durationNext - use new Status setting + existing Duration instead. tx_haggis 2024-02-05 11:40:22 -0600
  • 547bd13da7 MISRA fixes tx_haggis 2023-11-06 13:56:34 -0600
  • 05c289fc93 Consolidate timeout calculation tx_haggis 2023-11-06 13:37:36 -0600
  • 1190703d8c Initialize all Schedule members in constructor tx_haggis 2023-09-16 12:36:13 -0500
  • e25136a74d Scheduler callbacks are set in pairs So model that with a setCallbacks() function. tx_haggis 2023-03-10 13:08:16 -0600
  • a781bfa5e1 Start the schedule timers externally And never turn them off - they were pretty much on continuosuly anyway. tx_haggis 2023-03-05 14:02:15 -0600
  • 4c12b476cd Remove Schedule::hasNextSchedule Use a flag value in nextDuration instead. tx_haggis 2023-03-05 13:48:52 -0600
  • bca62942b3 Schedules: remove endCompare We had 2 paths to set the inj/ign end comparator: using duration; or using endCompare Replace with Duration - in timer ticks (since it's a smaller data type) tx_haggis 2023-03-05 12:37:01 -0600
  • 70c475ba93 Remove Schedule.startCompare It is only used within the set*ScheduleRunning() functions as an intermediate calculation variable. tx_haggis 2023-03-05 12:28:17 -0600
  • 0b74d95e76 Use common setScheduleNext function. tx_haggis 2023-03-05 12:27:15 -0600
  • 16863b8111 Extract common schedule state into Schedule tx_haggis 2023-03-05 12:25:40 -0600
  • 09da40aeb6 Rename FuelSchedule members to match IgnitionSchedule tx_haggis 2023-02-26 18:34:51 -0600
  • a3338c1b47 Cleanup of new code. Align ignition schedules with new fuel schedules Josh Stewart 2024-12-06 12:40:17 +1100
  • d7339d28e3 [OBDII] Fixed lambda and flex precision Vitor Moreno B. Sales 2024-12-04 19:20:47 -0300
  • 2b038bb13a Remove end compare on fuel schedules. Significant RAM improvement Josh Stewart 2024-12-05 07:39:50 +1100
  • 960a5e4e6e Avoid overflow of timer period between the current and next schedules Josh Stewart 2024-12-04 22:31:22 +1100
  • c73317a357 Fix misspelled word on last commit Vitor Moreno B. Sales 2024-12-02 19:18:47 -0300
  • adfc1c5ff9 [STM32] Do protection check on all pins Vitor Moreno B. Sales 2024-12-02 10:17:34 -0300
  • 2fd3640c8a
    Hardened pin reassignment (#1248) Vitor Moreno B. Sales 2024-11-29 00:53:14 -0300
  • a5ed623bef Correctly init reset pin Josh Stewart 2024-11-29 14:48:37 +1100
  • 0ee22b671b Merge branch 'master' into pr/1248 Josh Stewart 2024-11-29 14:37:50 +1100
  • 4ac5b72d9e Adjust init test for reset control output pin Josh Stewart 2024-11-29 14:20:07 +1100
  • d54cec0b8a Fixed possible problems with some outputs Vitor Moreno B. Sales 2024-11-28 19:12:48 -0300
  • 4a27a997b1 Fixed typos on last commit Vitor Moreno B. Sales 2024-11-28 18:56:59 -0300
  • 85994078bd Fixed check for inputs Vitor Moreno B. Sales 2024-11-28 18:52:03 -0300
  • b99ab35f8b Correct Coolant reading over BMW CAN protocol. Fixes #1218 Josh Stewart 2024-11-28 18:09:43 +1100
  • abc688bc5d Change ignSoftLaunchValue to signed. Fixes #1188 Josh Stewart 2024-11-28 17:59:01 +1100
  • 0898043d19 Teensy 4.1 boot speed optimisations Josh Stewart 2024-11-22 11:55:09 +1100
  • 95664baee6 Only perform SD card init if SD logging is enabled Josh Stewart 2024-11-19 12:36:48 +1100
  • a9dcc597c3 Fix faulty logic for VSS hard launch check Josh Stewart 2024-11-15 13:57:16 +1100
  • 127bcc6f0a Micro optimitaion: re-order if statements tx_haggis 2024-11-09 20:51:06 -0600
  • 43fbf6e231 Micro optimization: hoist zero corrections check. tx_haggis 2024-11-09 20:21:08 -0600
  • f8f205f033 Replace applyPulseWidths() with setFuelChannelPulseWidths() and unit test it. This makes the existing test_fuel/test_staging files redundant. tx_haggis 2024-11-09 18:15:47 -0600
  • 1de0bfe7bf Remove pre-calculated staging percentages - no loss in speed! tx_haggis 2024-11-09 10:07:49 -0600
  • 91fe39614a Add fast_div tx_haggis 2024-11-09 10:07:12 -0600
  • 97a0eaabe2 computePulseWidths() - inject all dependencies tx_haggis 2024-11-08 16:12:49 -0600
  • 815020440a Inject all dependencies of applyStagingToPw() tx_haggis 2024-11-08 13:43:31 -0600
  • e8c30ca20e Inject all dependencies of computePrimaryPulseWidth() tx_haggis 2024-11-08 13:36:24 -0600
  • 6323c91ea5 Inject all dependencies of pwApplyNitrous tx_haggis 2024-11-08 13:07:59 -0600
  • 255b109e15 Separate out & unit test calculateOpenTime tx_haggis 2024-11-08 09:14:12 -0600
  • 90f1a26055 computePulseWidths(): inject dependencies tx_haggis 2024-11-07 18:12:53 -0600
  • cb1d85fbbf Inject all dependencies of calculatePWLimit tx_haggis 2024-11-07 10:20:46 -0600
  • dbb073d592 Move revolutionTime into statuses struct tx_haggis 2024-11-07 09:21:15 -0600
  • 2b9d07de5b Calculate required fuel dynamically tx_haggis 2024-11-06 09:51:22 -0600
  • eee5639203 Use faster 32/16 => 16 division tx_haggis 2024-11-05 13:50:16 -0600
  • 2b5bd6bf4a percentageApprox: use a compile time table driven algorithm tx_haggis 2024-11-04 11:43:45 -0600
  • 9be81a6700 Minor loop count optimisation. Josh Stewart 2024-11-07 15:29:05 +1100
  • 4e23e87a34 Correct comment. Fixes #1257 Josh Stewart 2024-11-07 14:18:01 +1100
  • 095c2ff196 Cleanup warnings Josh Stewart 2024-11-07 13:32:12 +1100
  • acefda1209 Merge branch 'master' into iacIATPWM shiznit304 2024-11-06 17:27:14 -0600
  • 44e03dc0f2 iacIATPWM shiznit304 2024-04-07 21:25:22 -0500
  • bbc9c08d96 Unit test calculateRequiredFuel tx_haggis 2024-04-10 23:39:20 -0500
  • 79704b018e pwApplyNitrousStage() now uses Arduino map() function. tx_haggis 2024-03-27 10:31:36 -0500
  • daa4544131 Add PW unit tests tx_haggis 2024-03-27 09:53:28 -0500
  • 7b114796fe MISRA fixes tx_haggis 2024-03-27 08:40:28 -0500
  • 7bc687313f Extract percentApprox from PW calculations, optimize and unit test.. tx_haggis 2024-03-26 22:38:25 -0500
  • 7ef6b09d9a Remove libdivide: optimise powers of 2 only. Slightly faster & saves 3 bytes tx_haggis 2024-03-25 14:35:58 -0500
  • 014ed95554 Doxygen tx_haggis 2023-11-12 17:12:31 -0600
  • 7742c83d09 MISRA fixes tx_haggis 2023-11-09 19:53:52 -0600
  • cf0279a1f2 Encapsulate inj_opentime_uS: Save memory - doesn't need to be global Pulse widths will be zero if not valid: Faster comparisons tx_haggis 2023-05-29 07:32:11 -0500
  • 58d317a7f1 Initialize req_fuel_uS where it's declared I.e. in pw_calcs.cpp tx_haggis 2023-05-29 06:27:22 -0500
  • 5ab28e2466 Encapsulate primary & secondary fuel stages tx_haggis 2023-05-28 22:17:13 -0500
  • 43bc13cf40 Fix compilation issue from last commit Josh Stewart 2024-11-06 14:58:47 +1100
  • fe31596c9e Add rx timeout checks on secondary and legacy serial code. Reduce rx timeout from 700ms to 400ms Josh Stewart 2024-11-06 14:16:41 +1100
  • 8276704494 [WIP] feat: add coolant emulation BaptistePe 2024-11-05 09:15:58 +0100
  • c0fbbf3e92 Move staging PW calc into single PW calculation. This makes it unit testable. tx_haggis 2023-05-28 12:46:41 -0500
  • 6f890c178a Add nitrous inside PW() tx_haggis 2023-02-12 08:16:17 -0600
  • 3613bc36c7 inline getVE1 & getAdvance1 tx_haggis 2023-02-12 08:02:28 -0600
  • 11f1be86f5 Split out PW calcs to separate .H & .CPP tx_haggis 2023-02-12 07:57:26 -0600
  • 24a094d3d4 Optimize computePwLimit() for nSquirts==1 tx_haggis 2023-02-11 17:52:32 -0600
  • 21861a8887 MISRA fixes tx_haggis 2023-02-11 14:29:12 -0600
  • 9798e4fd52 Chain PW intermediate calcs Use size integer types tx_haggis 2023-02-11 13:23:08 -0600
  • a10e3f6713 Optimize PW tx_haggis 2023-02-10 08:06:36 -0600
  • 367c60c00d Use libdivide to calculate pulse width limit tx_haggis 2023-02-08 06:25:14 -0600
  • 4098601fba Refactor: extract computePwLimit() tx_haggis 2023-02-07 23:19:02 -0600
  • a94f2f8953 Added pwApplyNitrous() - step 1 in cleanup. tx_haggis 2023-02-07 23:17:08 -0600
  • 953b766be3 Signatures and tag for 202402.3 release Josh Stewart 2024-10-26 14:42:06 +1100
  • 59d9a744b0 Avoid potential tacho out race condition on teensy and stm32 Josh Stewart 2024-10-25 17:40:17 +1100
  • b3aab7929c Clear serial buffer after 0xF0 character received Josh Stewart 2024-10-25 20:05:23 +1100
  • fcb106f3cc Clear serial buffer after 0xF0 character received Josh Stewart 2024-10-25 20:05:23 +1100
  • cb9baca418 Avoid potential tacho out race condition on teensy and stm32 Josh Stewart 2024-10-25 17:40:17 +1100
  • 3ba67a5e94 Check for DTR change on serial line and ignore Josh Stewart 2024-10-25 12:03:25 +1100
  • ba77e36bd7 Check for DTR change on serial line and ignore Josh Stewart 2024-10-25 12:03:25 +1100
  • 8b97b9802d Increase SD ringbuffer size and add checks for space before writing to ringbuffer Josh Stewart 2024-10-22 14:27:17 +1100
  • 6f512a8a3e Add pin reserved check for external interrupt functions Josh Stewart 2024-10-22 13:57:13 +1100
  • 88e1e951af Add pin reserved check for external interrupt functions Josh Stewart 2024-10-22 13:57:13 +1100
  • bf8e651a89
    Unit test Pull Requests (#1255) tx_haggis 2024-10-18 08:24:38 -0500
  • 406e8806b4
    Fix sequential sync detection - raised in issue 1240 (#1256) mike501 2024-10-18 14:22:24 +0100
  • 40d1c6e153 Run unit tests on PRs using SimAVR. tx_haggis 2024-10-11 16:00:43 -0500