Commit Graph

588 Commits

Author SHA1 Message Date
Matthew Kennedy 498824eff4 tabs 2024-03-12 15:28:52 -07:00
Matthew Kennedy 17c6a46e84 optimize for hot thread stacks and data in CCM 2024-01-06 19:37:35 -08:00
Matthew Kennedy 0a1f367839 comment didn't get moved for some previous refactor 2023-11-15 16:32:21 -08:00
Matthew Kennedy 9dc183a173
we use small time units here in the future (#287) 2023-11-01 22:31:27 -07:00
Matthew Kennedy 2ee997d2c1 PID shadowing 2023-11-01 17:01:52 -07:00
Matthew Kennedy 71dc7b715e avoid more shadowing 2023-11-01 15:52:30 -07:00
Matthew Kennedy 5b6407f85c don't shadow ch 2023-11-01 15:38:58 -07:00
Matthew Kennedy 44bd9af964 misc anti shadow 2023-11-01 14:59:36 -07:00
Matthew Kennedy ce2198270e avoid some misc shadowing 2023-11-01 13:58:39 -07:00
Matthew Kennedy c48f9acd90 __cplusplus 2023-10-06 14:54:34 -07:00
Matthew Kennedy f21eee0cca bench test delay parameter is not useful 2023-08-03 17:34:55 -07:00
Matthew Kennedy e0c3921983 we play a little fast and loose with Timer, ensure it gets no vtable 2023-07-25 23:32:49 -07:00
mi-hol 0975c783bd
fix apparent CopyPaste error assigning OBD fault (#194) 2023-07-17 02:35:35 -07:00
Matthew Kennedy cef8b61c7c sprinkle in some constexpr 2023-07-01 20:41:44 -07:00
Matthew Kennedy d5f9479f28
ObdCode is enum class (#77)
* change ObdCode to enum class builds firmware

* test builds

* don't need this line at all

* can we go down to uint16_t?
2023-04-12 23:44:33 -07:00
Matthew Kennedy fa41247fde ancient history dead histogram 2023-04-11 17:02:56 -07:00
Matthew Kennedy 2769d3a30a more slots 2023-03-31 23:11:52 -07:00
Matthew Kennedy b9d065ae4e more dead stuff 2023-03-31 23:11:01 -07:00
Matthew Kennedy 461e448162 fewer console cmd slots 2023-03-31 23:05:17 -07:00
Matthew Kennedy 718ad4a391 extract expected.h 2023-03-07 00:33:31 -08:00
Matthew Kennedy 5fae1b4f55 various crust 2023-03-03 02:20:51 -08:00
Matthew Kennedy 83dc73f0d4 extra define 2023-03-03 01:44:48 -08:00
Matthew Kennedy eac3582e05 get rid of more floats 2023-02-23 11:59:48 -08:00
Matthew Kennedy 00f3067185 idle pid cic 2023-02-20 23:01:59 -08:00
Matthew Kennedy 03daac572e more flexible GPPWM (#5032)
* gppwm improvements!

* test

* ui

* autoscale
2023-02-06 08:53:31 -04:00
rusefillc 0a4e9c3049 smarter template 2022-12-13 16:47:35 -05:00
Matthew Kennedy c617b00180 Use a shared buffer for "high memory" operations (#4878)
* big buffer

* mostly hooked up big buffer

* bad merge

* s

* sneak preview of trigger scope

* s

* constness

* channel limits

* s

* unnecessary

* efilib

* TcpServerSandbox

* includes fix

* binary format
2022-12-10 07:35:39 -05:00
Matthew Kennedy a1f69c853c Strictly validate stack use in hardware CI (#4880)
* firmware error in case of low stack only on HW CI

* send date

* I don't java good

* I still don't java good

* send the right command

* I guess we can check it on every single test?

* javaaaaaa

* atoi breaks on later non-digit

* avoid sscanf use (for atoi)

to avoid bloating the stack

* less churn

* less churn

Co-authored-by: Nathan Schulte <nmschulte@desmas.net>
2022-12-08 13:20:55 -05:00
rusefillc 8362592ef8 error=parentheses 2022-12-03 01:12:31 -05:00
rusefillc c0daffda1d reduce flash footprint by smarter code generation #4163 2022-12-03 00:51:41 -05:00
Andrey 8a3727de3e ETB duty cycle jitter #4833 2022-11-29 14:59:08 -05:00
Andrey a14fb947c2 exp average is pretty cool 2022-11-28 19:22:45 -05:00
rusefillc 8cf9490921 ETB duty cycle jitter #4833 2022-11-27 18:13:10 -05:00
Matthew Kennedy 9e60b52ed4 fix warnings (#4840)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-11-27 10:11:14 -05:00
rusefillc 8375e9e159 docs 2022-11-27 00:08:34 -05:00
rusefillc 9e341e99a6 reducing confusion 2022-11-25 18:59:43 -05:00
Nathan Schulte d4cc3caeab code style, GPS fixes (test, firmware) (#4822)
* tidy NMEA

* const in nmea

* correct gps test output

* fix GPS UART print statements

* cleanup feature toggles in settings

* fix comment typos, misc whitespace
2022-11-23 07:01:34 -04:00
Andrey 9a340da994 A gem of dead code 2022-11-05 21:57:26 -04:00
Andrey b0acc6d141 A gem of dead code 2022-11-05 21:53:38 -04:00
rusefillc 92bed0c699 less horrible constant name 2022-10-27 22:17:50 -04:00
rusefillc 8af5ae0152 random progress 2022-10-27 21:32:23 -04:00
rusefillc 107562a569 GM SENT ETB bench test in NJ #4688 2022-10-26 10:37:35 -04:00
Andrey G 6628fd952a loggingcentral: hotfix (#4654) 2022-10-10 19:12:04 -04:00
Andrey G ef634c6d53 Logging asserts (#4652)
* logingcentral: check final string for prohibited chars

Invalid char can come from arguments, not only format string so
scan final buffer.

* logingcentral: comment say '\r' is also not allowed

* logingcentral: just replace all non-printable chars with space

Do not assert

* loging: remove strlen()
2022-10-10 17:14:44 -04:00
Matthew Kennedy 36d9eb4164 plumbing for 4513 (#4599)
* plumbing for 4513

* not static
2022-09-20 06:19:51 -04:00
rusefillc cf53f8b65c tear down Engine god object #4511 2022-09-15 22:12:49 -04:00
rusefillc 03d176ca61 tear down Engine god object #4511 2022-09-15 21:55:15 -04:00
rusefillc e582a83ecb tear down Engine god object #4511 2022-09-15 21:28:27 -04:00
Andrey G 68ee1c6a1f Os util update (#4574)
* chVTSetAny: "this could be simplified"

* os_utils: use Chibi's CriticalSectionLocker
2022-09-13 17:57:13 -04:00
Andrey G 2b4012b279 dead code, reduce typedefs (#4566)
* Do lightweight checks first

* Dead getTimeIgnitionSeconds()

Dead since 5274cffff3

* Get rid of efitime_t.

Purpose are not clear. Use efitick_t where ticks are used,
use efitimeus_t for uS, use efitimems_t or efitimems64_t for mS.

* Fix unit tests

* Fix misc: stm32f1_test_project
2022-09-11 16:08:11 -04:00