Commit Graph

2046 Commits

Author SHA1 Message Date
Euan Mutch 7bf78592f7 Correct spaces to tabs, remove fault checks from low level funcs. 2022-11-08 10:46:35 +00:00
Euan Mutch f77409c57b correct description of conf_general_detect_apply_all_foc
Fault code is returned as -100 + fault, to allow backwards compatibility. VESC Tool decodes the code and displays the text description during detection.

The terminal also does the same when manually running the command.
2022-09-27 22:12:05 +01:00
Euan Mutch f7a2e4c621 Fault handling, Terminal improvements and better flux linkage.
Add fault handling to all functions that touch the motor.
Improve terminal usability by echoing commands and giving feedback on faults and missing / invalid arguments.  Improve flux linkage measurement by increasing switching frequency and using the measured resistance and inductance to set the kp & ki.
2022-09-27 21:54:50 +01:00
Benjamin Vedder 35d2dfcff2 App adc button bitfield and cc disable support 2022-09-27 22:33:40 +02:00
Benjamin Vedder 73194ea4d2 Merge commit '55ff24d348bba2c2c6ad4fd6fa65c6c885b4d8c8' 2022-09-27 12:12:54 +02:00
Benjamin Vedder 55ff24d348 Squashed 'lispBM/lispBM/' changes from aa297a80..8293dc85
8293dc85 making infer static analysis 100% happy
dc577f26 added undefine
1ee941fb upped version and added recent changes
b0eb427a removed namespaces from the refman
62f65367 added 2 mail tests

git-subtree-dir: lispBM/lispBM
git-subtree-split: 8293dc85deb67a62fa337f2f53b0f5586fce3521
2022-09-27 12:12:54 +02:00
Benjamin Vedder 1e718839b4 Use pre-encoded symbols, added error messages 2022-09-27 12:06:19 +02:00
Benjamin Vedder 68e83394e3 Added plot commands 2022-09-26 13:32:41 +02:00
Benjamin Vedder 0a2b6d9baf Squashed 'lispBM/lispBM/' changes from ee23f4ab..aa297a80
aa297a80 fix bug in eval_receive

git-subtree-dir: lispBM/lispBM
git-subtree-split: aa297a806a52451dc493618155f89dec3c51c793
2022-09-25 12:05:18 +02:00
Benjamin Vedder f707fa1c44 Merge commit '0a2b6d9baf47f4320af28f84bc647506548f9487' 2022-09-25 12:05:18 +02:00
Benjamin Vedder 39a306bed0 Squashed 'lispBM/lispBM/' changes from efc1dbb7..ee23f4ab
ee23f4ab mailboxes are now arrays and of a finite size

git-subtree-dir: lispBM/lispBM
git-subtree-split: ee23f4abaf11468d0714e9ff69f881255575a711
2022-09-25 11:32:52 +02:00
Benjamin Vedder a18ef001b4 Merge commit '39a306bed0ed83267086c2ce8ede5e05c05e6cc8' 2022-09-25 11:32:52 +02:00
Benjamin Vedder 04f6b67217 Squashed 'lispBM/lispBM/' changes from 2d48bed5..efc1dbb7
efc1dbb7 remove bufget-i24
28b30eed update to tokpar. Hopefully doesnt break things, all tests ok

git-subtree-dir: lispBM/lispBM
git-subtree-split: efc1dbb7a6f597ba519ae670d84e5dc0d0c462cd
2022-09-24 23:25:37 +02:00
Benjamin Vedder 04fe3769d5 Merge commit '04f6b672174b371b4763e4f25d9093593a5d512d' 2022-09-24 23:25:37 +02:00
Benjamin Vedder 21c333f9a9 Added 24-bit buffer doc 2022-09-24 19:25:10 +02:00
Benjamin Vedder 6a2f1a7875 Squashed 'lispBM/lispBM/' changes from 0801bea4..2d48bed5
2d48bed5 found bug related to malformed tokens, should be better now but maybe not perfect
fafa3cd0 added 24bit variants of array extensions

git-subtree-dir: lispBM/lispBM
git-subtree-split: 2d48bed5b6a1bfa31427406cffaa6b7cca2b558b
2022-09-24 19:18:54 +02:00
Benjamin Vedder 21f65edc00 Merge commit '6a2f1a7875622601987f6eba70ff23b3183b663a' 2022-09-24 19:18:54 +02:00
Benjamin Vedder bccce5a782 Fixed mistake in documentation 2022-09-24 15:57:07 +02:00
Benjamin Vedder e0960f7e96 Fixed mistake in documentation 2022-09-24 15:30:23 +02:00
Benjamin Vedder d67d786e56 lispBM/README.md 2022-09-24 15:29:31 +02:00
Benjamin Vedder 3b381b9c7d Squashed 'lispBM/lispBM/' changes from d23c7fe2..0801bea4
0801bea4 tests of read function on string and array syntax and bug fix in tokpar related to strings
2a4757f6 Read errors report line and column again
ded9c7c7 added some float tests

git-subtree-dir: lispBM/lispBM
git-subtree-split: 0801bea42b72f1a881abc3a9bfd6cc53f68a05bb
2022-09-24 09:08:36 +02:00
Benjamin Vedder 035c223793 Merge commit '3b381b9c7d7c4d32b9ae8e83c549c9c821bf70cb' 2022-09-24 09:08:36 +02:00
Benjamin Vedder 4dba8ce812 Incremented version number 2022-09-23 14:06:26 +02:00
Benjamin Vedder fb303346de Squashed 'lispBM/lispBM/' changes from 445930ec..d23c7fe2
d23c7fe2 hex values interpreted as i-type by default
1f1d8108 tokpar detect negative float correctly
945bed71 Hex literals default to u32 type but allow for type modifying post-fix declarations
b45734a3 change to find_receiver_and_send that does not dequeue-enqueue tasks already to scheduled to run and thus moving them to the end of the queue
1c2fd35d a cleaning and streamlining pass over parts of the code
aa327e42 updated the example evaluator
b21cd0b7 zephyr example repl compiles
00268635 update readme

git-subtree-dir: lispBM/lispBM
git-subtree-split: d23c7fe2cc5feeb80f183a20dd7d69677b7d6f6a
2022-09-23 14:04:35 +02:00
Benjamin Vedder babb352df2 Merge commit 'fb303346de910fa234a478addc4d705ac4b18112' 2022-09-23 14:04:35 +02:00
Benjamin Vedder ed60bf7306 Fixed some threading-related issues 2022-09-23 13:51:21 +02:00
Benjamin Vedder 114fc7aa53 Added PT1000 temperature sensor support 2022-09-23 11:26:31 +02:00
Benjamin Vedder e9123e197b Squashed 'lispBM/lispBM/' changes from aba5cf5a..445930ec
445930ec lbm_wait_ctx waits for sleeepin contexts
70291809 Contexts that are sleeping considered as message passing receivers
b99dd1df allowing 1.0e-2
d23fb19f removed unused data in eval_cps
96c45d4e added support for 1.0e3 notation

git-subtree-dir: lispBM/lispBM
git-subtree-split: 445930ec9307ad7d2863913145efd60f97a0315d
2022-09-21 14:46:29 +02:00
Benjamin Vedder 22a3111d18 Merge commit 'e9123e197b9df8aba663e08ac0454419668e2634' 2022-09-21 14:46:29 +02:00
Benjamin Vedder 62d56d28ea Added link to concurrency chapter 2022-09-20 12:13:50 +02:00
Benjamin Vedder b563f18e1c Updated changelog and version number 2022-09-20 11:37:34 +02:00
Benjamin Vedder 08c0898a0e Squashed 'lispBM/lispBM/' changes from c2e0433a..aba5cf5a
aba5cf5a added a sleeping contexts iterator
5955c062 update doc readme
bb095b49 update doc readme
54e0af08 tweak documentation readme2
ecefdcec update readme slightly
a3a97657 small tweak chapter 3
c6383fc4 update concurrency in lbmref
630f1586 removed misleading comment from test_read_2.lisp
db30bd55 added self function and another concurrency test
3f6298b0 added a self function that returns the ID of the the thread that calls it and a concurrency test
95aa4b41 added comment and did whitespace pass over tokpar.c
8822052e a tiny bit more cleanup of tokpar.c
ff7e80c5 some cleaning up in tokpar.c
6bc47c40 ESP32 example now compiles again.
eb9b7e82 update sdl example repl to work with new channels
bccbad5f added documentation to lbm_channel

git-subtree-dir: lispBM/lispBM
git-subtree-split: aba5cf5ae0579c38c44b556db125bb7343d32732
2022-09-20 11:32:37 +02:00
Benjamin Vedder f73ac52961 Merge commit '08c0898a0edbbdd42ab7402eb8d15189aa6f93af' 2022-09-20 11:32:37 +02:00
Benjamin Vedder a19cd842e5 Removed old ubox_single from package script 2022-09-20 00:10:05 +02:00
Benjamin Vedder 92855bf2c4 Fixed forgotten send_buffer_global 2022-09-20 00:01:54 +02:00
Benjamin Vedder 765ed4d3d4 Added BMS limit mode 2022-09-19 23:47:20 +02:00
Benjamin Vedder a5ba6b79f1 Added app data handler to c-if and check function pointer 2022-09-19 23:17:04 +02:00
Benjamin Vedder 3199dd2605 Added ts_to_age and get_cfg_float to c lib 2022-09-19 11:50:26 +02:00
Benjamin Vedder 856184d822 Added send_app_data to c interface 2022-09-19 08:32:48 +02:00
Benjamin Vedder e9386cb339
Merge pull request #526 from Mitchlol/balance_iterm_limit
Balance App: Add I-Term Limiter, Remove D-Term Biquad Filters
2022-09-18 22:57:15 +02:00
Benjamin Vedder 937c6fe947 Added native lispbm config example 2022-09-18 22:48:22 +02:00
Benjamin Vedder ff9679d336 Lisp code streaming, more native functions and checks, custom config support, moved global send buffer to mempools 2022-09-18 22:47:50 +02:00
Benjamin Vedder ad4ee40868 Squashed 'lispBM/lispBM/' changes from 58e0abe5..c2e0433a
c2e0433a update
d19c1e63 some cleaning of tokpar and addition of 4 comment-tests

git-subtree-dir: lispBM/lispBM
git-subtree-split: c2e0433a936cab7ac4e67ead55948e9a1ae003bc
2022-09-18 10:09:06 +02:00
Benjamin Vedder fd37ec9e3a Merge commit 'ad4ee408683bdbb6f1746e0551dc5793c353f919' 2022-09-18 10:09:06 +02:00
Benjamin Vedder 1ee344e925 Squashed 'lispBM/lispBM/' changes from b2d5a55f..58e0abe5
58e0abe5 reduced the number of calls to strlen in the string_reader.

git-subtree-dir: lispBM/lispBM
git-subtree-split: 58e0abe5a1067d9e51403c23381407996d5c1d82
2022-09-18 07:58:57 +02:00
Benjamin Vedder b92698ba07 Merge commit '1ee344e92532b87cdc19f210005b7e4736e244e1' 2022-09-18 07:58:57 +02:00
Benjamin Vedder 33ee2f9bd4 Squashed 'lispBM/lispBM/' changes from a0708145..b2d5a55f
b2d5a55f added comments-test
2765eff3 tweak
d801f8ed added text using array of hex values

git-subtree-dir: lispBM/lispBM
git-subtree-split: b2d5a55f9f2fe250e9ca47958d4ac09f702dc931
2022-09-16 21:25:21 +02:00
Benjamin Vedder d342412d71 Merge commit '33ee2f9bd4e4dcade5ba4d72ec484dcae8d7bcaf' 2022-09-16 21:25:21 +02:00
Benjamin Vedder 9c1f9440d4 Squashed 'lispBM/lispBM/' changes from 4cc6358a..a0708145
a0708145 found problem with the number 120 in certain situations, fixed
61d1ab94 closing shadow warnings

git-subtree-dir: lispBM/lispBM
git-subtree-split: a070814599187a11b0492b7d865cf3b60ae014c2
2022-09-16 13:40:37 +02:00
Benjamin Vedder 2f6caa8646 Merge commit '9c1f9440d483390f48826b7afdc4eb889ac556d5' 2022-09-16 13:40:37 +02:00