Commit Graph

1590 Commits

Author SHA1 Message Date
Benjamin Vedder 7c82096df1 Fixed heap usage calculation 2022-03-25 17:21:54 +01:00
Benjamin Vedder d9f3b85171 Updated names for new version of lispbm 2022-03-25 17:11:43 +01:00
Benjamin Vedder 80d6068d8f Merge commit '9a624330155a43f2a980fd22dae6de911840e34e' 2022-03-25 15:47:05 +01:00
Benjamin Vedder 9a62433015 Squashed 'lispBM/lispBM/' changes from 6199703d..43ebce71
43ebce71 Fix formatting int print.c and constants that default to float/double
fa220f0b update gc statistics collection a small bit
25b20686 fix get_heap_state
783d774e Arrays of 64bit values passes the associated tests. More tests are needed though
ff40d02f working on 64bit arrays. more testing needed
204bea39 CMP as a macro instead of 8 different functions
44bb152d added a set of math extensions grabbed from  Benjamin's bldc repo
9c34b4cd added string extensions from benjamins bldc repo
b4370155 merge in changes on master into dev64bit
c129344b fixed masking bug in fundamentals
ed3ab5be closed down ome warnings when building 64bit
d46564c9 expanded functionality of type-of to cover 64bit types and preparations for arrays of 64bit values
f7cb5538 added more 64bit functionality to fundamentals and a tiny amount of tests
4dafbe6c added decoders for 64bit values
63026a8a added 64bit value literals
8c1f0f0f made GC aware of lbm_memory allocated values
17148ada 64 bit values allocated on lbm_memory on 32 bit version
4445e5a8 sketch of encoders for 64 bit values
f636e64d suffix for the lisp size of int and uint are now i and u instead of i28 and u28
840723ca preparations and planning for 64bit types in both 32 and 64 bit versions.
13675dda 64bit up and running. but there are many TODOs
033bfd9a small fixes following bug hunt
f5c984de fix bug in representation of important masks and constants
d40b2437 Merge branch 'master' into dev64bit
06f9603f Merge branch 'master' into dev64bit
69950ba1 32 bit tests are ok
46b6fa28 Merge branch 'master' into dev64bit
b9e2c993 work in progress
8dff9b4d work in progress
a241aded work in progress
4738e0da update year in lbm_types
ca469923 made it possible to run the same tests as on the 32 bit version on the 64 bit code
85acec30 small tweaks tp create_ctx, use correct type
bf0286a7 Merge branch 'master' into dev64bit
824e1634 Merge branch 'master' into dev64bit
04a97f17 lots of testing needed
ea862cce a bunch of changes in preparation for 64bit compatibility.

git-subtree-dir: lispBM/lispBM
git-subtree-split: 43ebce71a281f4a158b8d2dec3fc537c26766ec3
2022-03-25 15:47:05 +01:00
Benjamin Vedder 7d2b5a2e84 Git? 2022-03-25 15:47:01 +01:00
Benjamin Vedder 379031f1fc
Merge pull request #458 from kubark42/unit_test_doubles
Unit test doubles
2022-03-25 14:19:53 +01:00
Kenn Sebesta 484215c2e6 [Unit tests][Utils_math] Use `EXPECT_FLOAT_EQ` instead of `EXPECT_NEAR`
EXPECT_FLOAT_EQ verifies that the two float values val1 and val2 are
approximately equal, to within 4 ULPs from each other. (Where ULP means
Unit in the Last Place.)
2022-03-25 09:06:55 -04:00
Kenn Sebesta a85f1252f5 [Unit test] Adjust values in and out of range
The contract is `-pi <= angle < pi`
2022-03-25 09:04:18 -04:00
Kenn Sebesta 52c15f3988 [Unit test] Add warning for promotion to double
This mirrors the real compiler settings.
2022-03-25 09:04:18 -04:00
Kenn Sebesta c32f70758c [Unit tests][Utils] Improve comments and test cases 2022-03-25 08:39:53 -04:00
Benjamin Vedder ff108e8bce
Merge pull request #457 from kubark42/fix_utils_unit_tests
Update utils unit tests
2022-03-25 13:37:56 +01:00
Kenn Sebesta 754a8460e2 [Unit tests][Utils_math] Fix test ranges
Now that the `utils_norm_angle_rad()` range was fixed, change the unit test
to reflect the correct [-pi,pi) range.
2022-03-25 08:20:52 -04:00
Kenn Sebesta caed3de872 [Unit tests][Utils_math] Fix file paths
The unit test location is `utils_math.c/.h` not `math_utils.c/.h`.
2022-03-25 08:19:29 -04:00
Kenn Sebesta af2b278a8b [Unit tests][Utils_math] Fix location
The unit test location is `utils_math` not `math_utils`.
2022-03-25 08:17:57 -04:00
Benjamin Vedder 5ba7da404d Minor cleanup 2022-03-25 11:33:31 +01:00
Benjamin Vedder b608a7ab1d
Merge pull request #450 from kubark42/split_utils
Split `utils.c/.h` into `math_utils.c/.h` and `sys_utils.c/.h`
2022-03-25 11:20:39 +01:00
Benjamin Vedder bcf256ddc5 Added get-adc-decoded and throttle-curve lisp functions 2022-03-24 22:21:28 +01:00
Kenn Sebesta 3d966c1e4f [Utils][Unit test] Point the unit test toward the new math_utils.c/.h 2022-03-23 20:25:37 -04:00
Kenn Sebesta a4f4f7a6f3 [Sys utils] Remove unit test cruft
This #define became unnecessary once this function was split from the
math functions
2022-03-23 20:25:37 -04:00
Kenn Sebesta cf6f32332d [Utils] Update the header includes 2022-03-23 20:25:37 -04:00
Kenn Sebesta d5cf6f4ca8 [Utils] Update Makefile 2022-03-23 18:46:31 -04:00
Kenn Sebesta 5ccde377f3 [Utils] split into math and system utilities 2022-03-23 18:46:31 -04:00
Benjamin Vedder e06da66343 Updated beta number 2022-03-23 22:56:23 +01:00
Benjamin Vedder 58b5c85a69 Changed ADC sampling order on some phase shunt hardwares 2022-03-23 22:53:30 +01:00
Benjamin Vedder d8e8be51de Fixed silent hfi current offset, added high performance hfi mode, changed vesc6 current sampling, only use HT interrupt if the currents are first in the ADC vector 2022-03-23 22:26:05 +01:00
Benjamin Vedder 65ddcb83ff
Merge pull request #456 from kubark42/fix_missing_arm_compiler_version
[Make][Tools] Reliably get the compiler version
2022-03-23 17:56:33 +01:00
Kenn Sebesta a36e439158 [Make][Tools] Reliably get the compiler version
If the user didn't have ARM SDK in the ./tools path, then previously they
would not get the compiler version string.
2022-03-23 12:52:48 -04:00
Benjamin Vedder c348120325 High-performance and silent HFI 2022-03-23 15:04:30 +01:00
Benjamin Vedder 98579ad5e9
Merge pull request #453 from kubark42/use_proper_powershell_script_block_formatting
[Make] use proper powershell script block formatting.
2022-03-21 13:55:06 +01:00
Kenn Sebesta 802b88ae37 [Make] use proper powershell script block formatting.
- See `powershell -help` "-command" section.
- C.f. https://github.com/PowerShell/PowerShell/issues/10842
2022-03-21 08:12:57 -04:00
Benjamin Vedder 9a36f60694
Merge pull request #448 from kubark42/clang_single_precision
[Unit test] Use compiler-specific double-->single flags
2022-03-21 10:21:16 +01:00
Benjamin Vedder 91eedcd21f
Merge pull request #446 from kubark42/windows_unit_testing
Windows unit testing
2022-03-21 10:20:43 +01:00
Benjamin Vedder bdbc962a97
Merge pull request #454 from kubark42/chibios_windows_build
[Make][Windows] Force the use of `cmd` shell for ChibiOS rules.mk
2022-03-21 10:20:14 +01:00
Benjamin Vedder f51223f7ee
Merge pull request #452 from kubark42/make_clean_dep
[Make] add `.dep` to `_clean` make targets
2022-03-21 10:19:30 +01:00
Kenn Sebesta 8b86437df5 [Make][Windows] Force the use of `cmd` shell for ChibiOS rules.mk
This guarantees that it won't matter if Git for Windows's sh.exe is on the
path and aliases `make`'s sh.exe.
2022-03-20 20:56:03 -04:00
Kenn Sebesta c0460e4d58 [Make] add `.dep` to `_clean` make targets
This directory is created by ChibiOS.
2022-03-18 08:24:41 -04:00
Kenn Sebesta faa2cecd8a [gtest][Windows] Resolve unit testing runtime issues
It had previously worked only on bash shells.
2022-03-16 10:41:09 -04:00
Kenn Sebesta 26605687fa [gtest] Fix Windows installation
It had previously worked only on bash shells.
2022-03-16 10:41:01 -04:00
Benjamin Vedder 7834668fcd
Merge pull request #449 from kubark42/fix_utils_norm_angle_rad
[Utils] Fix minor `utils_norm_angle()` discrepancy
2022-03-15 16:32:31 +01:00
Kenn Sebesta ed8be70643 [Utils] Fix utils_norm_angle
The API contract stipulates -pi <= angle < pi, but the code delivered
-pi <= angle <= pi
2022-03-14 14:19:37 -04:00
Kenn Sebesta ecf2c9a5b0 [Unit test] Use compiler-specific double-->single flags
Not all compilers support `-fsingle-precision-constant`
2022-03-14 13:15:55 -04:00
Benjamin Vedder 693665a704
Merge pull request #445 from kubark42/readme_powershell_requirement
[Readme][Windows] Remove powershell requirement
2022-03-14 12:39:31 +01:00
Kenn Sebesta 9c15fc3d8c [Readme][Windows] Fix typo 2022-03-14 07:34:03 -04:00
Kenn Sebesta 1b4f7d0c13 [Readme][Windows] Remove powershell requirement
Windows Powershell is installed by default.
2022-03-14 07:32:54 -04:00
Benjamin Vedder ef5421d65a Lisp GPIO-support 2022-03-13 22:53:25 +01:00
Benjamin Vedder 6ace516b3f Added CAN status message 6 with ADC and PPM values 2022-03-13 20:56:26 +01:00
Benjamin Vedder e02ca4fda5 Added lisp eeprom functions 2022-03-13 19:14:33 +01:00
Benjamin Vedder 0113b348c3 Faster motor enable after flash operations 2022-03-13 17:49:41 +01:00
Benjamin Vedder 1d8ce02bc2
Merge pull request #442 from kubark42/windows_powershell_fixes
Windows powershell fixes
2022-03-13 17:22:42 +01:00
Benjamin Vedder 870bfa3f20 Fixed multi-core build of single firmware on linux 2022-03-13 17:21:07 +01:00