Commit Graph

3081 Commits

Author SHA1 Message Date
jernej.fajdiga@gmail.com 0b10780323 Add JetFleetF6 2024-07-03 21:41:41 +02:00
Mitch Lustig 37fa0a6f03 Remove current filter from lfoc v4 2024-07-02 09:37:49 -07:00
Mitch Lustig 2f1178ad60 Add lfoc v4 2024-07-02 09:37:22 -07:00
Mitch Lustig ea12dbe6db Revert "Add little focer v4"
This reverts commit 286fc3a692.
2024-07-02 00:41:24 -07:00
Mitch Lustig 286fc3a692 Add little focer v4 2024-07-02 00:25:47 -07:00
Lukáš Hrázký b46196e347 Add more IMU config values to package interface 2024-07-02 00:27:29 +02:00
Lukáš Hrázký 04958ed57b Add missing CAN baud rate to config getter on package interface 2024-07-02 00:26:40 +02:00
Dado Mista 0cc13c297c Thor300: use servo buzzer to augment power button feedback
-Minialistic buzzer on servo pin:
-trigger short beep on boot
-short 20ms beep to let you know powerdown time has been reached
-long beep to let you know force-powerdown time has been reached

Signed-off-by: Dado Mista <dadomista@gmail.com>
2024-07-01 07:23:19 -07:00
Benjamin Vedder 7c1885d774 Squashed 'lispBM/lispBM/' changes from b2c9089e..fd0f1fab
fd0f1fab Added a rewind heuristic to lbm_free that moves the allocation offset to the lowest free address reachable from the free point without jumping over allocated blocks.
e220591a update to lbmref
d1b4da3a update to lbmref
69d78238 fix typo refman
d8f3f706 added some more text to the semantics section
a2b6d52d some additions and tweaks to refman
4667a69d a small amount of work on the semantics section in the refman
2883988a update lbmref with sleep
c28ddb1d fix typo ion previous commit
86205e1c refactor for readability
cbe5d384 refactoring for readability

git-subtree-dir: lispBM/lispBM
git-subtree-split: fd0f1fabd387f6a8d78b953815cda2f58c1b1366
2024-06-30 20:34:18 +02:00
Benjamin Vedder 1f026af2c6 Merge commit '7c1885d774b1578710725fa2a9f1f9b9cbb4841b' 2024-06-30 20:34:18 +02:00
Benjamin Vedder f3574c71dc Print memory size in bytes instead of words, also print longest free block 2024-06-30 17:34:40 +02:00
Dado Mista 0fb6ba019d Thor300: optimize default values
Signed-off-by: Dado Mista <dadomista@gmail.com>
2024-06-30 08:26:25 -07:00
Dado Mista 02c5944309 Thor300: robust shutdown implementation, remove AO variant
shutdown can now only be triggered by a long-press
-500ms of button press triggers shutdown provided erpm < 100
-above 100 erpm the button must be held for 3 seconds to force shutdown

Actual shutdown happens on release of the button

Signed-off-by: Dado Mista <dadomista@gmail.com>
2024-06-30 08:26:25 -07:00
Dado Mista 898ec45cfc New Hardware: Floatwheel adv200 and adv500
Build using make adv200/adv500

Signed-off-by: Dado Mista <dadomista@gmail.com>
2024-06-30 08:26:25 -07:00
Benjamin Vedder d17e56926b
Merge pull request #735 from Gabrielerusso/Store_backup_data_fix
store data after shutdown_hold
2024-06-28 11:05:11 +02:00
Gabrielerusso 8d031ab624 store data after shutdown_hold
Store data only after shutdown hold has been disabled, this ensure all data to be stored, otherwise some data could be missed if we hold the shutdown for a long period of time.
2024-06-28 02:21:14 +02:00
Marcos Chaparro de8ec3d480 m600: Improve torque sensor calibration UI
Signed-off-by: Marcos Chaparro <marcos@lunacycle.com>
2024-06-26 13:39:21 -03:00
Benjamin Vedder 7e003f3fc5 Added rtc-data documentation 2024-06-22 19:03:54 +02:00
Benjamin Vedder 97dd96a8ec Added doc for new esp-extensions 2024-06-20 15:58:08 +02:00
Marcos Chaparro ba5ac89f8c m600: Add torque sensor offset correction
The previous strategy of relaxing the torque sensor range has been
suboptimal.
By measuring and storing the TS offset all sensors work seamlessly.

Signed-off-by: Marcos Chaparro <marcos@lunacycle.com>
2024-06-18 13:22:24 -03:00
Benjamin Vedder 5dde8f3dfe
Merge pull request #734 from TechAUmNu/fix_double_pulse
Free mcconf after double pulse test
2024-06-18 14:09:56 +02:00
Euan Mutch 1d80914a5c
Free mcconf after double pulse test 2024-06-18 11:06:56 +01:00
Benjamin Vedder b7d9a72878 Added hw_basic 2024-06-12 23:18:46 +02:00
Benjamin Vedder f897123401 Bug fix in BMS cell and temp number check 2024-06-11 15:32:15 +02:00
Benjamin Vedder 06433e5d3c Squashed 'lispBM/lispBM/' changes from a0f97629..b2c9089e
b2c9089e added two more tests related to progn var
72977a90 added comment
90516324 small refactorings in eval_cps
dd12f7a3 shortcut saving one roundtrip in call-cc

git-subtree-dir: lispBM/lispBM
git-subtree-split: b2c9089e81ae2f7ed25a10362d33e5dbb70309f9
2024-06-11 14:19:02 +02:00
Benjamin Vedder 1375a75c44 Merge commit '06433e5d3cbe775591273816e3a16932cabf8fe9' 2024-06-11 14:19:02 +02:00
Benjamin Vedder 18c3f78961 Added more configuration parameters to LBM 2024-06-05 17:47:35 +02:00
Benjamin Vedder c9ef4717b4 Squashed 'lispBM/lispBM/' changes from 3b309a7a..a0f97629
a0f97629 remote leftover debugcode
1b6446d8 added documentation for the trap error handling special form
09a5dbf7 a first attempt at a trap that does not require spawning a thread.
5fdaef42 added 2 tests related to the setassoc bugfix!
a430d3d2 bugfix related to setassoc
e35992d5 some experimentation
601d51c4 towards byte-code compilation
54249110 minitweak
bed397b4 If a value is returned after the call to lbm_block_ctx_from_extension, this value is protected against GC until after the context is unblocked
5855144f a way to protect data from GC while in a blocked extension added.

git-subtree-dir: lispBM/lispBM
git-subtree-split: a0f976296e4e88f24e12ca0a2b7f5d45b8aec216
2024-06-05 09:26:14 +02:00
Benjamin Vedder 2b777c9d31 Merge commit 'c9ef4717b49f8e37cbd0e28fdb049f3f2767d826' 2024-06-05 09:26:14 +02:00
Benjamin Vedder 20d311e189
Merge pull request #726 from luna-cycle/pas_torque_sensor_safety_improvement
Pas torque sensor safety improvement
2024-05-20 20:13:36 +02:00
Marcos Chaparro acf14b4978 m600: tune torque sensor parameters
Signed-off-by: Marcos Chaparro <marcos@lunacycle.com>
2024-05-20 12:27:30 -03:00
Marcos Chaparro 70a7e57f5a pas: improve torque sensor safety with cadence input check
Implement cadence input check to ensure the output is forced to zero
when the cranks are not spinning.

This addresses a specific failure mode where a torque sensor could
incorrectly produce a non-zero output even when the rider is not pedaling.

Signed-off-by: Marcos Chaparro <marcos@lunacycle.com>
2024-05-20 12:26:13 -03:00
Benjamin Vedder be0fef9a9e Restored most of the 6.02 hall sensor interpolation, the sensorless blend is still there 2024-05-16 15:45:56 +02:00
Benjamin Vedder c98b322cae Merge commit 'e115d3f0e74e31c46f5ad2c321c1197bb257547d' 2024-05-16 14:33:08 +02:00
Benjamin Vedder e115d3f0e7 Squashed 'lispBM/lispBM/' changes from fe287450..3b309a7a
3b309a7a lift_array had a similar problem to flatten
82416070 fix crash related flat values
657fc80e refactor flatten so that one jumpbuf can be removed - More refactoring to do here
a9b92906 removed whitespace before comment in one place
dd3a2111 Fixing the 64bit GC issue in a slightly different way and adding notes to how it works. Also added a note about a potential optimization in the GC
2d214410 64 bit lbm is happy again
2061925e something is wrong with 64bit LBM
0e0430f0 refactoring to be able to remove seldomly used function get_caar

git-subtree-dir: lispBM/lispBM
git-subtree-split: 3b309a7a8137b04b1e9a6705a1ab7474864f7d66
2024-05-16 14:33:07 +02:00
Benjamin Vedder 084f148621
Merge pull request #723 from Lauszus/fix/python_quite
Make the command for getting the Python version quite
2024-05-15 16:06:12 +02:00
Benjamin Vedder 3ce9ac32a6
Merge pull request #722 from Lauszus/fix/lispbm_optional
Make it possible to disable LispBM by setting "USE_LISPBM=0"
2024-05-15 16:02:41 +02:00
Kristian Sloth Lauszus 06f21e5d7a Make the command for getting the Python version quite
"python" is not available on my system only "python3",
so this will cause output stderr even though the Makefile
later checks if "python3" exist
2024-05-15 15:46:38 +02:00
Kristian Sloth Lauszus 9e0b2433aa Make it possible to disable LispBM by setting "USE_LISPBM=0"
I have a custom application that is too large to large if LispBM is included
2024-05-15 15:34:59 +02:00
Benjamin Vedder 4499982f99 Added hall sensor rate limiter again, now based on the hall toggle rate as in 6.02 2024-05-15 13:24:04 +02:00
Benjamin Vedder 3bd1c660a3 Cleanup 2024-05-15 12:03:52 +02:00
Benjamin Vedder 2490f78230 Added BMS cell voltage limits 2024-05-15 11:09:36 +02:00
Benjamin Vedder b63ff81fc5 Updated documentation 2024-05-10 20:59:12 +02:00
Benjamin Vedder e2eaf24ab4 Squashed 'lispBM/lispBM/' changes from 85675e29..fe287450
fe287450 Fix bug in GC related to callcc using the lisp-array as its storage. Also renaming for compatibility with old C code that interfaces with LBM

git-subtree-dir: lispBM/lispBM
git-subtree-split: fe287450786605c3118397d25a7246e0c35eeedf
2024-05-10 10:53:33 +02:00
Benjamin Vedder 2daceff057 Merge commit 'e2eaf24ab4c9d321930d840d31252555e774664f' 2024-05-10 10:53:33 +02:00
Benjamin Vedder e2737ae21b Doc tweak 2024-05-09 22:35:55 +02:00
Benjamin Vedder cd6aa2ba6a Fixed typo 2024-05-09 22:31:55 +02:00
Benjamin Vedder 439369964e Added documentation for new functions 2024-05-09 22:13:51 +02:00
Benjamin Vedder 905c4f3044 Squashed 'lispBM/lispBM/' changes from f18a5c10..85675e29
85675e29 refactor of COND to be able to remove the single-use cddr function.
9d0bb92c added a reminder note in heap.c
e0f7403a small refactor in env and addition of high-level array eq comparison
463e9c32 Change to how reader flags are saved and restored.
8271b1ed fix bug: some constant values were not flattenable.
7bf86cf9 small refactor and added caching of clean-cl-env symbol in case of CLEAN_UP_CLOSURES.
ea3ec7da Marking an array is now an O(N) operation with an additional storage of one 32bit value per array.
872355a4 added a self-reminder in heap.c about how to make array marking linear in size of array.
a0c7afb9 be more explicit in what the INCREMENTA_READ context flag is set to upon launching a read
d71c218a added an example of how to implement map over an array
449075bb added note about garbage collection of arrays (so that I remember)
89bff1c9 updated array mark algorithm and added a note about why it is a bit of a tricky problem to mark arrays
fa1e1e41 adding a note about why GC for high-level arrays is a bit of a tricky problem
384c45d0 array-to-list and list-to-array, length now also returns the size of an array
1f226ec7 fixing two issues in print indicated by sa
9abbeddc clean up in print.c
059295c8 high level arrays can now be stored in flash.
32d162b4 high level arrays can be flattened and unflattened
2f96314c experimental high-level arrays
835e1f22 internal renaming of ARRAY to BYTEARRAY has begun
9e733c42 more cases where symbol decoding has been removed
d23995cf removing a number of encodes/decodes of symbols
c6171530 Version 0.24.0
0d4fb1d0 added some info about index into rest-args
9fb71256 made a few cases of floating point literals in lbmref more readable
9bd5e055 fix typo
0961f4bc update lbmref with more text about rest-args
24959852 a start of a flat-value specification in the lbmref.md
37c9fe3a updated 64 bit tests to follow same approach as run_tests.sh and run_tests_gc.sh. Also added 64bit tests to the release script
0d323069 sdlrepl has been absorbed into the standard repl and can be made by 'make sdl'
37f28977 closing some warnings when doing 64bit build. Some things should be specified better.. such as  allowed range of array sizes
376f10f8 small tweak, cleaning
05326ef2 removed old notes
a89aa19b remove old scripts related to building of previously removed examples
238d4752 removing a bunch of old examples that I will not have the endurance to keep updating
fb741051 examples have been moved into repl.
6d52ae40 tweak typo
c63863a8 rename to md
ad7dacee update README
ef0a75d9 update Makefile for change in directory hierarchy
012a82ea cleaning and updating examples in repl directory
35074ebc improved rendering of examples containing float literals
d558c580 started a section about functional and imperative in lbmref
a3c7fda1 update lbmref with latest arithmetic performance
5eb0f0d5 added new charts to show arithmetic performance. TODO update lbmref to display correct info
4d784e27 fix bug introduced into 64bit version by recent changes

git-subtree-dir: lispBM/lispBM
git-subtree-split: 85675e29a299664697476a5b8d64bd50b450f575
2024-05-09 21:26:09 +02:00
Benjamin Vedder 5156f0b5db Merge commit '905c4f3044341044662c8174f1050f71dbbf0bff' 2024-05-09 21:26:09 +02:00