38 Commits

Author SHA1 Message Date
6fcdb26621 Lower UBAT LED threshold to 11V 2022-03-31 19:23:32 +02:00
c6793a2129 Disable alarms for 60s after clearing 2022-03-31 19:21:08 +02:00
661e1a2274 Add brake balance display 2022-03-24 17:48:03 +01:00
58b0b72c6d Disable P_OIL alarm 2022-03-23 15:09:40 +01:00
b5ece154c5 Lower tire temp green threshold 2022-03-21 17:19:38 +01:00
8a05663fbc Fix CAN filter bitmask 2022-03-18 17:21:25 +01:00
28b4e15ed2 added DRS control 2022-03-17 00:51:16 +01:00
1a72d6aa0f Attempt to resurrect the display after disconnect 2022-03-17 00:11:01 +01:00
1fdadd8b85 Reduce flicker 2022-03-17 00:10:41 +01:00
130a0dde2f Lower UBAT LED threshold 2022-03-17 00:09:54 +01:00
6609947618 Fix RPM CAN bytes 2022-03-17 00:09:36 +01:00
c8e94175d1 Read tire temps from CAN 2022-03-17 00:09:13 +01:00
197b805f35 Display fuel pressure 2022-03-16 16:13:50 +01:00
c5df4d7b79 Use one fewer CAN mailbox 2022-03-14 16:28:12 +01:00
37123a43e8 Alternate color of testing view rows 2022-03-14 14:30:33 +01:00
fc65d22450 Rename driver/testing pages to views 2022-03-14 14:06:52 +01:00
4de2baa867 Don't clear display periodically 2022-03-13 21:07:44 +01:00
c6c0fa987e Update CAN
There are only 7 RX mailboxes available, so one of the filters won't
work.
2022-03-13 21:06:05 +01:00
d0afcb6da4 Add .git-blame-ignore-revs
You can use this file to ignore this commit when running git blame.
Simply run

    git blame --ignore-revs-file .git-blame-ignore-revs [...]

Or configure git to persistently ignore the commit:

    git config blame.ignoreRevsFile .git-blame-ignore-revs
2022-03-13 20:33:59 +01:00
41d3bd907e Format everything
The next commit will add this to a `.git-blame-ignore-revs` file which
you can use to ignore this commit when running git blame. Simply run

    git blame --ignore-revs-file .git-blame-ignore-revs [...]

Or configure git to persistently ignore the commit:

    git config blame.ignoreRevsFile .git-blame-ignore-revs
2022-03-13 20:30:14 +01:00
14b5f6988d Use both buttons to toggle driver & testing view 2022-03-13 20:01:46 +01:00
3cf68cd3cb Add more values 2022-03-13 19:57:34 +01:00
894ced16ef Redraw screen after alarms/changing encoders 2022-03-13 19:54:54 +01:00
5eecc507a0 Use debouncer for button states 2022-03-13 19:52:11 +01:00
373266f6be [WIP] Major rewrite of display code
Currently, the displayed values are hardcoded
2022-03-13 18:18:11 +01:00
f62f264b29 Implement some EDIPTFT commands 2022-03-13 18:17:41 +01:00
0eeafa9393 Debounce the rest of the buttons 2022-03-13 18:15:41 +01:00
jazzpi
7c2e245796 Add C/C++ Tools to recommended extensions 2022-03-11 16:30:01 +01:00
jvblanck
8f5dd839d6 don't print CAN 77A 2021-10-26 11:19:29 +02:00
jvblanck
24315d6c84 Debounce (some) buttons 2021-07-18 22:32:33 +02:00
jvblanck
e3f20ebe57 Don't draw text at the left edge
Part of the display of one of the steering wheels is blocked by a cable
tie.
2021-07-18 19:24:41 +02:00
jvblanck
895280cb5a Don't send data if display is disconnected
Otherwise, we're waiting 1s on pretty much any call to the display. If
the display gets disconnected at the start of the `update_display()`
function, that can mean quite the delay.

It's possible that this delay triggers a watchdog timer that blinks the
LEDs, but there doesn't appear to be any watchdog timer configured.
2021-07-18 18:27:47 +02:00
jvblanck
fb68e8c4d6 Bugfixes for fault handlers 2021-07-18 17:14:03 +02:00
jazzpi
2ca1ec4b8f Add fault handlers for debugging
The fault handlers blink different LEDs depending on the kind of fault:

HardFault  -> All
MemManage  -> Left of display
BusFault   -> Right of display
UsageFault -> Left and right of display

Additionally, they dump information about the fault to the flash and
Serial (if connected). The information dumped to the flash can later be
retrieved via Serial by sending a 'd'.
2021-07-17 20:15:55 +02:00
jazzpi
7815f03c84 Add .clang-format 2021-07-17 20:09:02 +02:00
jvblanck
beff90a10a Updated CAN interface 2021-06-30 21:36:51 +02:00
jvblanck
4d62419d72 e-wagen: Use updated LEDs & kill display 2021-06-18 15:52:50 +02:00
jvblanck
4faddf9248 Initial commit
This is just the 2018 code configured for PlatformIO
2021-06-15 19:42:00 +02:00