Skip to content

[hot fix]: added thread stack size for issues on mblock callbacks #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion arduino_alvik/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__author__ = "Lucio Rossi <[email protected]>, Giovanni Bruno <[email protected]>"
__license__ = "MPL 2.0"
__version__ = "1.1.3"
__version__ = "1.1.4"
__maintainer__ = "Lucio Rossi <[email protected]>, Giovanni Bruno <[email protected]>"
__required_firmware_version__ = "1.1.1"

Expand Down
3 changes: 2 additions & 1 deletion arduino_alvik/arduino_alvik.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def __new__(cls):
cls._instance = super(ArduinoAlvik, cls).__new__(cls)
return cls._instance

def __init__(self):
def __init__(self, stack_size = THREAD_STACK_SIZE):
_thread.stack_size(stack_size)
self.i2c = _ArduinoAlvikI2C(A4, A5)
self._packeter = ucPack(200)
self.left_wheel = _ArduinoAlvikWheel(self._packeter, ord('L'), alvik=self)
Expand Down
3 changes: 3 additions & 0 deletions arduino_alvik/robot_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@

# Robot params
ROBOT_MAX_DEG_S = 6*(2*MOTOR_MAX_RPM*WHEEL_DIAMETER_MM)/WHEEL_TRACK_MM

# Thread stack size
THREAD_STACK_SIZE = 8*1024
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
["github:arduino/ucPack-mpy", "0.1.7"],
["github:arduino/arduino-runtime-mpy", "0.4.0"]
],
"version": "1.1.3"
"version": "1.1.4"
}