Commit Graph

1332 Commits

Author SHA1 Message Date
Benjamin Vedder 67df37c9c0
Merge pull request #405 from Jaycobe96/master
Encoder split
2022-02-19 15:21:36 +01:00
Benjamin Vedder 468c4f6353
Merge branch 'encoder_split' into master 2022-02-19 15:21:13 +01:00
Benjamin Vedder a8dc041480
Merge pull request #417 from Sonnbc/patch-1
Fix blackmagic.mk line termination
2022-02-19 15:05:51 +01:00
Son Nguyen bf7bed0b6f
Fix blackmagic.mk line termination
It currently fails to build on Mac M1 due to lines not terminating correctly.
2022-02-19 11:55:11 +07:00
Benjamin Vedder 93e6a6aeb9 Lisp 2022-02-17 00:49:11 +01:00
Jakub Tomczak a5dcae5d10 solved warning 2022-02-16 15:23:46 +01:00
Benjamin Vedder 3bdf0e92aa Merge commit '1f0c09151c8ae7bc5c0f7d7adcc5fb5483ff14a9' 2022-02-16 13:14:47 +01:00
Benjamin Vedder 1f0c09151c Squashed 'lispBM/lispBM/' changes from 83d186cc..6a219e20
6a219e20 listing of variables is possible

git-subtree-dir: lispBM/lispBM
git-subtree-split: 6a219e20ecc20615d9aada81379c8e20682394a7
2022-02-16 13:14:47 +01:00
Benjamin Vedder a0a22f5a5e Merge commit '25010609df2fa4a85af7554785eb0d365847b452' 2022-02-16 12:24:45 +01:00
Benjamin Vedder 25010609df Squashed 'lispBM/lispBM/' changes from 0a69a489..83d186cc
83d186cc define can now be used to bind #var variables
3012709f Spawn takes an optional first argument that specifies stack size

git-subtree-dir: lispBM/lispBM
git-subtree-split: 83d186cc62a82fc333a15677a876a7a5cd7e8253
2022-02-16 12:24:45 +01:00
Benjamin Vedder 6361362c70 Merge commit '98d71b26fa0926b5493e27ae36ab75444a197ba4' 2022-02-15 21:01:47 +01:00
Benjamin Vedder 98d71b26fa Squashed 'lispBM/lispBM/' changes from da9fb6cd..0a69a489
0a69a489 small rephrasing of a conditional in eval_define
4a0d6b9f redefining any non-RUNTIME_SYMBOL is now an error.
dbc4bb71 removed left over printf

git-subtree-dir: lispBM/lispBM
git-subtree-split: 0a69a4896c83c1dc0ef4577cf54d42b5614de5b9
2022-02-15 21:01:47 +01:00
Benjamin Vedder 4b2ce2b8cd Merge commit '501c7546060d2b08ce03f091d726a94b59f802dc' 2022-02-15 19:31:41 +01:00
Benjamin Vedder 501c754606 Squashed 'lispBM/lispBM/' changes from c6d5de99..da9fb6cd
da9fb6cd added missing files

git-subtree-dir: lispBM/lispBM
git-subtree-split: da9fb6cd2dd6f98ddbac52e359d2b036efdb3206
2022-02-15 19:31:41 +01:00
Benjamin Vedder 6297f29083 Merge commit '7c57a0111f642c6acf2485612ede603718ef08f2' 2022-02-15 19:09:11 +01:00
Benjamin Vedder 7c57a0111f Squashed 'lispBM/lispBM/' changes from 1c2be895..c6d5de99
c6d5de99 GC is variable aware, pretty untested but does not break existing tests
1a872278 variables that GC is NOT aware of
b4a83ec4 fix tests and symrepr_init
6b5bee7d clear out extension table upon init

git-subtree-dir: lispBM/lispBM
git-subtree-split: c6d5de99af47caabc6ecd3fcbb49bd5584c08a1f
2022-02-15 19:09:10 +01:00
Benjamin Vedder 91ec0e0a5f Merge commit 'cb919480b6f13a5aeb1beb479303a127b2da7890' 2022-02-15 09:29:40 +01:00
Benjamin Vedder cb919480b6 Squashed 'lispBM/lispBM/' changes from 0c09634e..1c2be895
1c2be895 extensions lookup is in an array and extensions occupy a specific range of symbol values

git-subtree-dir: lispBM/lispBM
git-subtree-split: 1c2be8958f937edf8a5fed394f88f55ca9eab382
2022-02-15 09:29:40 +01:00
Benjamin Vedder c6dedf173b Added more math functions 2022-02-14 19:19:48 +01:00
Benjamin Vedder 4a8e60e198 Squashed 'lispBM/lispBM/' changes from 7ed6fa3f..0c09634e
0c09634e added LEQ and GEQ comparisons
01fd1ec4 update change log

git-subtree-dir: lispBM/lispBM
git-subtree-split: 0c09634ea2ed217ecea0682feb314e0e45db1b64
2022-02-14 19:07:01 +01:00
Benjamin Vedder 2113339cfa Merge commit '4a8e60e19808066825cbac766e80ff6daeae6f8c' 2022-02-14 19:07:01 +01:00
Benjamin Vedder 9e83580a82 Fixed can extensions 2022-02-13 21:49:26 +01:00
Benjamin Vedder 629bd3702c Squashed 'lispBM/lispBM/' changes from 0535cf11..7ed6fa3f
7ed6fa3f bugfix  related to environment handling and progn

git-subtree-dir: lispBM/lispBM
git-subtree-split: 7ed6fa3f0ae89d11273abfb93e6a962ddf561d94
2022-02-13 21:11:18 +01:00
Benjamin Vedder 705b28cd13 Merge commit '629bd3702c2d3bb1e8cac96a439c75a7d086d7dc' 2022-02-13 21:11:18 +01:00
Benjamin Vedder 758cf6dfd9 Added note about status messages 2022-02-13 19:27:52 +01:00
Benjamin Vedder 50ff637db6 Added more lisp CAN extensions 2022-02-13 19:20:54 +01:00
Benjamin Vedder cf2ecde5ae Updated register_event_handler for new lispbm 2022-02-13 17:53:45 +01:00
Benjamin Vedder 8cccadae6a Updated lispbm, fixed dual motor flash motor stop 2022-02-13 15:18:22 +01:00
Benjamin Vedder 84a79f8109 Squashed 'lispBM/lispBM/' changes from 1108de58..0535cf11
0535cf11 version 0.1.0
f7c1b0d1 fix bug in last commit and remove dead code
305d3dce change behaviour of spawn to take a closure + arguments. No multi-spawn in one call anymore
93697f7a cleaning and restructuring in the evaluator
1e0d70f8 tuning evaluation of functions some
419e34fd small tweaks doxy
84bec750 Removed the nil-entry from the environment. It should make no difference
09868fea update doxy
f02a9087 fixes to doxy
d2087165 more doxy and fix fundamental array operation
488a4c35 update doxy
799328fc update language ref man
050c34b9 more doxy work and some small tweaks to reader when it comes to quotes
3948e566 added bitwise operations
e777189b zephyr example compiles, testing needed
426b71e4 doxy planning
8264fd37 shift left and right
5a61bf41 tweak readme
c82f587e accepting that eval-program is a very predatory operation
728b6511 doc tweaks
41aedc57 update to doxy
7a53228e added function for sharing of arrays from C to lbm. little bit of doc.  TODO: test arrays
c4931b4a small update to doc
3e7f31fb small additions to doc
8325bf09 user now has to provide a recursion stack fro the print_value function
f1fdd5f7 The GC recursion stack has to be provided by the user now

git-subtree-dir: lispBM/lispBM
git-subtree-split: 0535cf11214a6ba8c81f86929deaad34c30b3790
2022-02-13 14:25:39 +01:00
Benjamin Vedder 2156e67b8e Synced datatypes with the BMS firmware 2022-02-11 09:12:11 +01:00
Benjamin Vedder e416444156
Merge pull request #412 from RadinnAB/radinn_pr
Radinn pr
2022-02-11 08:25:47 +01:00
dnordahl83 c83120f8fc gdb: Added command to dump entire stm32 flash to bin file. 2022-02-10 14:38:32 +01:00
dnordahl83 3d86e973a1 gdb: Added .gdbinit file.
Added gdbinit file for gdb-scripts (openocd). The script makes sure
to defined the "connect" rule that connects to a target once gdb is
started and a openocd server is running.
2022-02-10 14:38:32 +01:00
dnordahl83 7fc94b8375 hw_resc: Added resc hw support. 2022-02-10 14:38:32 +01:00
rodale75 599595089d hw_rd2: Defined CAN controller ID.
This to make sure to have a deterministic & same
CAN controller id for all Radinn VESC:s.
2022-02-10 14:38:32 +01:00
rodale75 1ecc5b9457 hw_rd2: Macro adjustments and cleanup.
* Removed commented-out code.
* Removed legacy HW75_300_VEDDER_FIRST_PCB switches/sections.
* Removed un-needed undef.
* Removed un-needed #ifndef switch-checks. In the current vesc config setup,
  conf_general.h overrides all the underlying default configurations (strict
  include-order).
* Indentation adjustments.
2022-02-10 14:38:17 +01:00
rodale75 c6fa4e2d02 hw_rd2: Added APPCONF_CHUK_CTRL_TYPE config. 2022-02-10 14:26:51 +01:00
rodale75 ed88dbe5b0 main: Added CAN boot-frame notification.
The boot CAN frame is dispatched at system boot and contains a
payload that holds the hw-name (ASCII). This to serve as a notifier
for other nodes on the CAN bus.

Change-Id: I2edb3d58bb51003d9160ceb83905cf93b63a9396
Reviewed-on: https://review.gerrithub.io/c/RadinnAB/vedder_vesc_fw/+/530857
Tested-by: Mr. Jenkins <jenkins@radinn.com>
Tested-by: aleksandar rodzevski <aleks@radinn.com>
Reviewed-by: aleksandar rodzevski <aleks@radinn.com>
Reviewed-by: Daniel Nordahl <daniel.nordahl@radinn.com>
2022-02-10 14:23:36 +01:00
rodale75 a30e259549 datatypes: Renamed CAN_PACKET_BMS_BOOT to CAN_PACKET_NOTIFY_BOOT.
This to have a generic approach applicable for all HW.

Change-Id: I030be71ed500ea6042ea17889c7731791bd704cb
Reviewed-on: https://review.gerrithub.io/c/RadinnAB/vedder_vesc_fw/+/532596
Tested-by: Mr. Jenkins <jenkins@radinn.com>
Tested-by: aleksandar rodzevski <aleks@radinn.com>
Reviewed-by: aleksandar rodzevski <aleks@radinn.com>
Reviewed-by: Björn Mellström <bjorn.mellstrom@radinn.com>
Reviewed-by: Daniel Nordahl <daniel.nordahl@radinn.com>
2022-02-10 14:23:36 +01:00
rodale75 e328e34ea0 main: Moved the 500ms init-done delay outside of the BOOT_OK_PIN-switch.
And also, moved the  m_init_done-flag to be set before the delay.
This to make sure that the flag is set prior to the PIN notification.
2022-02-10 14:23:31 +01:00
rodale75 48875f2a78 Makefile: Added newline separations on openocd commands.
This to reduce the line-lengths and also prefixed the openocd
invoking with "@" (suppress the command line in make).
2022-02-10 13:27:20 +01:00
dnordahl83 324d2d4a29 makefile: Added make rule to perform stm32 mass erase.
Also, removed some trailing spaces in makefile.
2022-02-10 13:27:14 +01:00
Benjamin Vedder 75f9451635
Update README.md 2022-02-07 00:43:03 +01:00
Benjamin Vedder b881a08e75 Added raw and imu lisp commands 2022-02-06 23:12:05 +01:00
Benjamin Vedder 144789445f
Updated lisp documentation.
Fixed some of my bad grammar from writing documentation too late in the night.
2022-02-06 10:05:57 +01:00
Benjamin Vedder a0acaff2fb Added atan2 lisp extension 2022-02-06 00:23:23 +01:00
Benjamin Vedder fdb0f50782 Updated lisp documentation 2022-02-06 00:14:16 +01:00
Benjamin Vedder aac4e940fb Added hw75_600 and hw_60_75 2022-02-05 19:00:49 +01:00
Benjamin Vedder c392c2b390 Lisp print fix 2022-02-05 01:45:03 +01:00
Benjamin Vedder 24b076bdc4 Fixed stormcore stack issues 2022-02-05 01:04:56 +01:00