Commit Graph

2804 Commits

Author SHA1 Message Date
Benjamin Vedder 08c7877013 Added new configuration parameters and extensions 2023-06-21 14:46:11 +02:00
Benjamin Vedder eb8932046c Removed old file 2023-06-21 11:34:12 +02:00
Benjamin Vedder 98000a107d Squashed 'lispBM/lispBM/' changes from b97cecac..5f69e529
5f69e529 cleanup dead code and left over printf after quasiquotation refactoring
80eac1a7 fix bug in quasiquotation expansion
a83fce26 remove duplicated line of code

git-subtree-dir: lispBM/lispBM
git-subtree-split: 5f69e5290b1d423fa35264849434927bce33c4c0
2023-06-21 11:31:35 +02:00
Benjamin Vedder 6ab8a97ee3 Merge commit '98000a107d311fe10406703b6ed31a5e56cb0f8b' 2023-06-21 11:31:35 +02:00
Benjamin Vedder ac7df4a7f6 Removed app_balance in favor of the balance package 2023-06-19 13:58:22 +02:00
Benjamin Vedder 26cea34cf5 Squashed 'lispBM/lispBM/' changes from 48d50c69..b97cecac
b97cecac removing an unused function

git-subtree-dir: lispBM/lispBM
git-subtree-split: b97cecacc1555909d70ad0129ed5499574abb17a
2023-06-18 21:24:45 +02:00
Benjamin Vedder f9f9390d0f Merge commit '26cea34cf5a088c11bf6238f90c8dc374465c1ed' 2023-06-18 21:24:45 +02:00
Benjamin Vedder 4f511b67fa Squashed 'lispBM/lispBM/' changes from 64ec946a..48d50c69
48d50c69 Merge branch 'dev_gc_test'
77de6dbb tweak fundamental
3177a31f  fixes in reader and dynamic read.W
504c0c28 towards always gc debugging

git-subtree-dir: lispBM/lispBM
git-subtree-split: 48d50c695a577783379530c60f8942d76b142314
2023-06-18 14:58:29 +02:00
Benjamin Vedder 5dc0a03c6e Merge commit '4f511b67fa312c365e023b024dbcc968be7c8c88' 2023-06-18 14:58:29 +02:00
Benjamin Vedder 8cc20f5d2b Squashed 'lispBM/lispBM/' changes from 9b0d5f30..64ec946a
64ec946a tweak, potential fix array-to-flash
4c9d2b2e fix in writing array to flash. and revert of map
3f2693d8 experimental change in write array to flash
f341cf37 Fix a bug in MAP

git-subtree-dir: lispBM/lispBM
git-subtree-split: 64ec946ab7196efabd5375a0206e87dc65d1dd40
2023-06-16 20:37:28 +02:00
Benjamin Vedder c0baa0e645 Merge commit '8cc20f5d2b2afa8a868edb29a87ed92d6b6cd5f3' 2023-06-16 20:37:28 +02:00
Benjamin Vedder 3c3cf2fb99 Updated comment 2023-06-16 20:37:18 +02:00
Benjamin Vedder 86ac820c68 Squashed 'lispBM/lispBM/' changes from 02887bfd..9b0d5f30
9b0d5f30 fix bug in lift_array_flash found by Benjamin

git-subtree-dir: lispBM/lispBM
git-subtree-split: 9b0d5f30250b74b7483a0d5e2c6339c6035e08b8
2023-06-13 06:34:35 +02:00
Benjamin Vedder eb111648f9 Merge commit '86ac820c6848e242a9fc5cd0d6e53457f79ff62d' 2023-06-13 06:34:35 +02:00
Benjamin Vedder f6eeba8336 Squashed 'lispBM/lispBM/' changes from 15fd3dea..02887bfd
02887bfd Change implementation of car family in evaluator for immediate termination on error
7517c2e1 bug fix in wait-for and addition of a few tests
275a8e46 removed pointless usage of WITH_GC
143d024c bumped version
a4836c7d closing a number of warnings when building 64bits. some still remain
e61c28e9 closing some warnings on 64bit build - lots to go
68a09916 a small amount of cleaning.
bd91e152 wait-for + trigger mechanism has been added, but is untested
70c82228 adding tests of undefine
003887d8 fix severe bug in undefine
bdc30576 Added two undefine tests
4e694bc8 experimental wake-up lbm task framework, work in progress
38068776 cleaning and refactoring
7e814674 cleaning and consolidating
b05615fa cleaning and consolidation of functionality
2b986f7c small refactor for
ce05734d removed dead code in evaluation of the progn continuation
9eeae272 made global env a static variable in env.c
1eacbf3f refactoring. may save a few cpu cycles in list allocation and GC

git-subtree-dir: lispBM/lispBM
git-subtree-split: 02887bfd12a8d98f2e6f73b3dbd38b9ec222358a
2023-06-12 11:49:07 +02:00
Benjamin Vedder 572d750547 Merge commit 'f6eeba83367f9f44ed6f88a7b5e3ee90d51c40e0' 2023-06-12 11:49:07 +02:00
Benjamin Vedder 1a7ca91c23 Limit BMS SOC and temperatude individually 2023-06-08 05:23:40 +02:00
Benjamin Vedder f674aaaa2b
Merge pull request #631 from NewHavenRobotics/e7/strong-typed-id
Strongly-Typed COMM and CAN IDs
2023-06-08 04:40:21 +02:00
Benjamin Vedder 4043e49fd8
Merge pull request #637 from TechAUmNu/A50S-Hardware-Updates
A50S Hardware updates
2023-06-08 04:36:33 +02:00
Benjamin Vedder 00bd29b523 Added 100_250_mkiii 2023-06-08 04:34:29 +02:00
Benjamin Vedder 7487e5fd44 Added setting to limit input current with field weakening, added timeout to lbm app adc detach 2023-06-08 04:31:36 +02:00
Euan dc1ff28251 Add A50S V23 8S to package 2023-05-31 21:51:59 +01:00
Euan b52e32b3cf Add 8S A50S, fix BLDC/DC on v2.3 and improve default settings 2023-05-31 21:51:59 +01:00
Euan 06d834d020 correct comment 2023-05-31 21:11:45 +01:00
Euan a4278d388d Perform full offset calibration when running FOC detection
Undriven offsets are not measured on startup as the motor might be spinning (reboot from crash, etc) So the only time undriven was measured was manually in VESC Tool.
This runs the full offset calibration before detecting the motor to improve detection and make sure the undriven offsets are measured.
2023-05-31 21:09:45 +01:00
Benjamin Vedder 1647009a23
Merge pull request #619 from luna-cycle/luna_ui_updates
Luna UI updates
2023-05-24 13:27:59 +02:00
Electro707 ef1998a039
Change COMM and CAN command IDs to strongly typed 2023-05-23 15:10:19 +01:00
Benjamin Vedder 2e82399a2f Squashed 'lispBM/lispBM/' changes from c097f5c6..15fd3dea
15fd3dea change order of arguments in take and drop
14d19c68 added tests of spawn
476845e4 fix bug in spawn argument handling

git-subtree-dir: lispBM/lispBM
git-subtree-split: 15fd3dea56f361967ba69e69a8e37026f33dcd0b
2023-05-22 09:21:20 +02:00
Benjamin Vedder bad4fb8652 Merge commit '2e82399a2f3c808a145c7fccb67242556cac1dca' 2023-05-22 09:21:20 +02:00
Benjamin Vedder d664184ef8 Squashed 'lispBM/lispBM/' changes from 6a448aa3..c097f5c6
c097f5c6 cleaning pass and refactoring
5384d522 refactoring application experiment
087ede4e refactor: readability, clearity and in some places - to a small degree - correctness
89575d8b small change to one event test
ba6e7fa7 logged change
16ac6bd1 logged change
089468b3 removing make-env. in-env in the interest of keeping core language small
f18015f7 Merge branch 'master' of github.com:svenssonjoel/lispbm
5b19dfda simplification and readability refactoring.
8c492889 Update gotchas.md
754221b9 Update gotchas.md
a0931bac bump version
e49071dc Changed behavior closure application to zero args. Application of a continuation (call-cc) with 0 args still uses the old approach where 0 args is equivalent to application to nil
35f495f3 mini tweak readme
fdd01ff1 update README
b21a3fa7 Update gotchas.md
92d9f561 update gotchas
0d708de7 bugfix in incremental reader and addition of a gotchas.md file for edge-case behaviors
d9a38456 updated lbmref with take and drop
86b1cc1b take, drop, change to make-env returned result
ea29f5ec added take and drop as built-in primitives and change to result env for make-env
55a5b1f5 added some tests and  a small amount of doc
e2d2f745 tweaks
bccdee1f make-env and in-env
3a03232a added make-env and in-env for library-encapsulation
e5b5ba66 mini tweak
dce87812 removed extra ;
190b4d9e mini tweak
6864fa32 fix repl after removal of reading_done callback
ea3aba39 removed reading_done_callback and made the nonsense default variants for all remaining callback
427cb37c bugfix read-program, tightening up,  cleaning
119d9fd3 refactoring and tightening up
10573404 cleaning and readability
63b750b5 small tweaks
d44c8bdc bug fix related to row numbers in error messages while doing incremental read. Now more precise.
d0125bd1 refactoring for readability. setjmp/longjmp for escape from deeply nested errors.

git-subtree-dir: lispBM/lispBM
git-subtree-split: c097f5c66bd539442a48d41a66da1c657af502a1
2023-05-22 08:17:23 +02:00
Benjamin Vedder d323442717 Merge commit 'd664184ef8508013821d82fbe97161d0b4004117' 2023-05-22 08:17:23 +02:00
Benjamin Vedder c8012ea2e2 Added standalone mode 2023-05-22 08:17:13 +02:00
Benjamin Vedder 1ffd70e566
Merge pull request #625 from seems-reasonable/fix-can-divide-by-0
Avoid comm_can dividing by 0 from unset appconf
2023-05-15 10:00:19 +02:00
Brian Silverman 98f302e69f Avoid comm_can dividing by 0 from unset appconf
cancom_status_thread divides by conf->send_can_status_rate_hz. If that's
0, this is undefined behavior. It will be 0 until app_set_configuration
is called by main.

I have some custom hardware which ties CAN_RX high and reliably triggers
this bug every time I start up. The same firmware binary usually starts
up on a 75_300_R2, although occasionally it has the same symptom of
resetting so I wonder if it happens sometimes with a real CAN
transceiver too, depending on the exact timing of startup.
2023-05-14 20:28:51 -07:00
Gabriele Russo 8f2644044e Duplicated include; improved shutdown.c; store backup without power switch;
commands.c: delete duplicated "mc_interface.h" include
shutdown.c/shutdown.h/main.c:
- reducing possibility to write backup data frequently, now requires  minimum distance to be traveled before it enables storing, common condition if push to start is enabled with a low shutdown time, say 10s, or in any other condition where user turn on/off ESC a lot of times. Saves chip life at the cost of not having updated data during very short trips.
- Data is stored even when using "always on"
- Introducing possibility to store data without a power-switch by using a combination of trip distance and inactivity timer. It can be deactivated by using "always off" in app setting  Shutdown Mode.
2023-05-03 02:39:57 +02:00
Marcos Chaparro cf4ddcbfc2 luna_bbshd: Unlink the QML tabBar
Signed-off-by: Marcos Chaparro <marcos@lunacycle.com>
2023-04-24 13:25:56 -03:00
Marcos Chaparro 1da0ad1616 luna_m600: Move logging to its own tab, add support tab
The support tab provides an easy way to allow remote access for troubleshooting.

Signed-off-by: Marcos Chaparro <marcos@lunacycle.com>
2023-04-19 11:57:36 -03:00
Benjamin Vedder 26e3a3cec9 Added PAS current scaling config parameter to lbm 2023-04-17 11:21:44 +02:00
Marcos Chaparro afe002dcd5 luna_m600: Unlink the QML tabBar
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2023-04-15 19:07:26 -03:00
Benjamin Vedder ef2205d61d Updated changelog and version number, initialize const heap before loading imports 2023-04-14 22:46:26 +02:00
Benjamin Vedder a39b0a9081 Squashed 'lispBM/lispBM/' changes from 3cc45a57..6a448aa3
6a448aa3 fix bug in the bug fix of read-eval-program

git-subtree-dir: lispBM/lispBM
git-subtree-split: 6a448aa3bf0bbd6b2b11127e983733563e51579d
2023-04-14 18:51:46 +02:00
Benjamin Vedder 4ba6c49d0a Merge commit 'a39b0a90812e7e29041bc577cd94ce695f9c1368' 2023-04-14 18:51:46 +02:00
Benjamin Vedder f84fb8ea28 Squashed 'lispBM/lispBM/' changes from c9034e4a..3cc45a57
3cc45a57 remove left over printf

git-subtree-dir: lispBM/lispBM
git-subtree-split: 3cc45a579eda265e4622e371800ca1c345c73771
2023-04-14 15:33:55 +02:00
Benjamin Vedder aaf016a196 Merge commit 'f84fb8ea28697c1cd9c757e35916f2ece3fb9e45' 2023-04-14 15:33:55 +02:00
Benjamin Vedder 8897516ade Squashed 'lispBM/lispBM/' changes from 95368f36..c9034e4a
c9034e4a fix bug related to incremental read-eval-program
018cc540 added one more const_array sharing test

git-subtree-dir: lispBM/lispBM
git-subtree-split: c9034e4aed0bb437c90c8e8d5dab14e7d6c14ab3
2023-04-14 12:39:14 +02:00
Benjamin Vedder 82f48b56e7 Merge commit '8897516adecce1414aaf25e810294741d55ac266' 2023-04-14 12:39:14 +02:00
Benjamin Vedder cc55eb0dbb Doc update 2023-04-14 09:44:01 +02:00
Benjamin Vedder 523e42b829 Added position extensions 2023-04-14 09:33:22 +02:00
Benjamin Vedder eb0114b4dc Squashed 'lispBM/lispBM/' changes from aa1d5026..95368f36
95368f36 fix bugs in read program

git-subtree-dir: lispBM/lispBM
git-subtree-split: 95368f36e96d4a370ba6b00a01e2924187490823
2023-04-13 20:34:47 +02:00
Benjamin Vedder 9012971120 Merge commit 'eb0114b4dc5834b85bb1b02257d223a352f377c7' 2023-04-13 20:34:47 +02:00