Guðni Már Gilbert
79b0d0bec0
tests: load_filament: idler homing is not invalidated
...
The idler is only put on hold, and resumed after a user event is seen.
We must ensure the idler is engaged before feeding to FINDA.
2024-12-27 18:09:26 +00:00
Guðni Már Gilbert
aa20e01ef2
Improve accuracy in axisUnitToTruncatedUnit
...
When converting 800mm/s2, it would be truncated to 795mm/s2 for the pulley. This is due to cutting out significant decimal digits.
Instead let's multiply in floating point, this needs quite a bit of resources. So to optimise against this, multiply with the recoprical. Then the cost is not more than 20 bytes.
Testing:
M707 A0x0e; Read Pulley Acceleration (default at boot up is 800mm/s2)
M708 A0x0e X790 ; Set Pulley Acceleration to 790mm/s2
M707 A0x0e; Read Pulley Acceleration (should be 790mm/s2)
The results before this commit:
M707 A0x0e -> returns 805
M708 A0x0e X790 ; Set Pulley Acceleration to 790mm/s2
M707 A0x0e; returns 795
After this commit:
M707 A0x0e -> returns 799
M708 A0x0e X790 ; Set Pulley Acceleration to 790mm/s2
M707 A0x0e; returns 789
NOTE:
axisUnitToTruncatedUnit is used in Idler homing, selector homing, and pulley positioning. I am not sure yet how this improvement will affect those areas.
2024-12-25 14:54:13 +00:00
Guðni Már Gilbert
f61450debb
registers: fix unit of acceleration values
...
When reading or setting the value, the driver is expecting steps_t which is a axis scaled value.
This increases the memory footprint quite a bit. But now if you set 800mm/s2, you should get a similar value back.
Flash: +132 bytes
SRAM: 0 bytes
2024-12-25 14:28:12 +00:00
gudnimg
75a5ba3600
registers: support writing axis acceleration value
...
The read operation now returns the actual used value instead of the maximum allowed acceleration value.
Change in memory:
Flash: + 78 bytes
SRAM: 0 bytes
2024-12-24 13:46:39 +00:00
Guðni Már Gilbert
4ab07d627a
optimisation: compare uint16_t against uint16_t
...
AxisDistance returns uint16_t type and is currently compared with long double axis length. The axis lengths fit easily into uint16_t:
selectorLimits.lenght = 75
idlerLimits.lenght = 225
Change in memory:
Flash: -122 bytes
SRAM: 0 bytes
2024-12-24 13:44:55 +00:00
Guðni Már Gilbert
0a205e41ff
optimisation: set enum types explictly to uint8_t
...
This commit produces the same savings as the compiler options -fshort-enums. Except by setting the types manually we save also 2 bytes of SRAM.
By default, the enum type is 2 bytes, with we can explictly set it to one byte when applicable to reduce code size.
Almost all the savings from from 'enum Mode' in leds.h.
Change in memory:
Flash: -116 bytes
SRAM: -2 bytes
2024-12-24 13:39:41 +00:00
3d-gussner
3c8663d900
Merge pull request #324 from gudnimg/upgrade-ninja-mmu
...
Upgrade ninja from 1.10.2 to 1.12.1
2024-12-24 06:31:48 +01:00
gudnimg
195aad9cf0
tests: fix -Wparentheses in Github CI
...
warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses]
2024-12-24 00:14:59 +00:00
Guðni Már Gilbert
e7abc6a7d8
Upgrade ninja from 1.10.2 to 1.12.1
...
The update brings better support for Windows :)
Changelogs:
* https://github.com/ninja-build/ninja/releases/tag/v1.12.1
* https://github.com/ninja-build/ninja/releases/tag/v1.12.0
* https://github.com/ninja-build/ninja/releases/tag/v1.11.1
* https://github.com/ninja-build/ninja/releases/tag/v1.11.0
2024-12-23 19:17:33 +01:00
Guðni Már Gilbert
32d5f3b4be
bootstrap: fix DeprecationWarning
...
DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
See:
https://docs.python.org/3.12/library/tarfile.html#tarfile-extraction-filter
2024-12-23 19:17:33 +01:00
gudnimg
ca1d09ad15
CI: fix an issue with write permissions
...
Also split the tests into a separate workflow file
Note that the changes won't take effect until this is merged
into main branch.
2024-12-23 17:41:49 +00:00
3d-gussner
89d3c6fc47
Change to newer upload-articatct verion v4
2024-12-23 12:15:23 +01:00
D.R.racer
75570a82ff
Bump version to 3.0.3
2024-03-29 09:00:55 +01:00
Alex Voinea
3cd341f95f
Update comment to reflect changes
2024-03-15 14:09:55 +01:00
Alex Voinea
5d0f772270
Move the version information after the ISR vectors
2024-03-15 14:09:55 +01:00
Alex Voinea
3ee1e22e9a
Make the size of the code properly include the version information
2024-03-15 14:09:55 +01:00
Alex Voinea
ef23490a49
Add version information at the end of flash
2024-03-15 14:09:55 +01:00
3d-gussner
08171415ca
Merge pull request #321 from vintagepc/main
...
Autorelease workflow... take 3
2024-03-15 07:52:43 +01:00
VintagePC
5ed48aee0b
... apparently I'm blind?
2024-03-14 17:39:42 -04:00
3d-gussner
00fd54f7a4
Merge pull request #320 from prusa3d/vintagepc/fix-workflow-bug
...
Update build.yml
2024-03-13 14:08:48 +01:00
3d-gussner
e14175d9cd
Merge pull request #318 from 3d-gussner/MMU__Stale_action_V9
...
Update stale action to v9 as Node.js 16 are deprecated.
2024-03-13 14:03:14 +01:00
vintagepc
2933737b3b
Update build.yml
...
Fix workflow trigger issue
2024-03-11 08:33:02 -04:00
3d-gussner
878c763878
Merge pull request #317 from prusa3d/vintagepc/autopublish-releases
...
Add automatic release publishing to GitHub Actions
2024-03-08 14:11:45 +01:00
3d-gussner
6ca0d650da
Update add-pr-comment to version v2.8.2
2024-03-08 13:13:22 +01:00
3d-gussner
df97d70d8e
Update stale action to v9 as Node.js 16 are deprecated.
2024-03-08 13:04:17 +01:00
VintagePC
8b04f7f9c7
no-op to test whitelist of action
2024-03-04 18:38:17 -05:00
VintagePC
3a28bfe887
Add automatic release publishing to GitHub Actions
2024-03-01 19:01:54 -05:00
3d-gussner
1c0c732291
Merge pull request #316 from gudnimg/update-github-actions
...
CI: Call `sudo apt-get update` and update `cache`, `checkout` actions
2024-02-24 16:45:48 +01:00
Guðni Már Gilbert
cc5c425538
CI: update cache and checkout to v4
...
This syncs the github actions for the MMU project with
the MK3 project
2024-02-24 15:40:46 +00:00
Guðni Már Gilbert
67e3a3c06c
CI: Add sudo apt-get update
...
See: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/customizing-github-hosted-runners#installing-software-on-ubuntu-runners
> Note: Always run sudo apt-get update before installing a package. In case the apt index is stale, this command fetches and re-indexes any available packages, which helps prevent package installation failures.
2024-02-24 15:38:34 +00:00
Daniel Čejchan
d510e1e482
Add RawProgressCode & ProgressCode::_cnt
2024-01-03 14:25:29 +01:00
D.R.racer
58577b832d
Bump version to 3.0.2
2023-11-03 14:19:27 +01:00
D.R.racer
19a0cd3ebb
Add cutLength register (0x23)
2023-11-03 14:19:27 +01:00
3d-gussner
ce0df08b89
Merge pull request #307 from 3d-gussner/MMU_new_filenames
...
BFW-3317: New filenames for hex files
2023-10-04 10:02:41 +02:00
3d-gussner
d68ccd6552
New naming for builds
2023-10-03 08:54:32 +02:00
3d-gussner
f019de539b
Merge pull request #306 from 3d-gussner/MMU_fix_cmake_zip
...
Fix cmake
2023-10-03 08:52:17 +02:00
3d-gussner
4845d0b335
Merge pull request #310 from 3d-gussner/Main_PR-SIZE
...
Update PR size to show
2023-10-03 08:51:57 +02:00
3d-gussner
6b96f983c0
Merge pull request #311 from prusa3d/vintagepc/fix-output-path
...
Update CMakeLists.txt
2023-10-03 08:51:37 +02:00
vintagepc
8d6e4d1be5
Update CMakeLists.txt
...
Fix output path of Summary.txt
2023-10-02 16:45:05 -04:00
3d-gussner
a5ca4612d2
Update pr-size to show more information
2023-10-02 20:32:10 +02:00
3d-gussner
fb65f4e563
Update ProjectVersion.cmake
2023-09-22 14:19:00 +02:00
3d-gussner
09bacabb05
Fix cmake
...
When downloaded as zip the build failed before.
2023-09-18 14:51:05 +02:00
3d-gussner
a7286de016
Merge pull request #304 from prusa3d/vintagepc/build-with-actions
...
Add Actions firmware build
2023-09-18 14:47:51 +02:00
vintagepc
b0eac8f523
Refine triggers
2023-09-18 07:45:11 -04:00
vintagepc
dda3899156
Adjust CTest timeout
2023-09-18 07:29:40 -04:00
gudnimg
03b0d6f776
eject filament: remove two unused constants
...
No change in memory
2023-09-18 07:34:46 +02:00
Guðni Már Gilbert
18a040c278
cut filament: remove two unused constants
2023-09-18 07:34:46 +02:00
VintagePC
8073ce66fb
Post comment anyway
2023-09-17 19:45:24 -04:00
VintagePC
515b93e9e7
Patch gcovr script - take 3
2023-09-17 19:39:03 -04:00
VintagePC
c60d562c8c
Patch gcovr script - take 2
2023-09-17 19:05:34 -04:00