-
Notifications
You must be signed in to change notification settings - Fork 11
Reversible primitives #250
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
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
fc27690
Initial work on io state inspection
MaartenS11 f363b92
Obtain io state through portOutput/InputRegister
MaartenS11 ca93a52
Remove io map from Module struct
MaartenS11 6391e40
Use NUM_DIGITAL_PINS because SOC_GPIO_PIN_COUNT is esp specific
MaartenS11 2173305
Serialize/deserialize pin mode in snapshot data
MaartenS11 3d29223
Use digitalPinToBitMask in an attempt to make the code more microcont…
MaartenS11 410a94e
Port WARDuino to the Zephyr RTOS
MaartenS11 e8e9a03
Try correcting for drift in the servo motor driver
MaartenS11 74a0fa3
Fixed cmake with branch rebase
MaartenS11 7c8532f
Use vfprintf instead of fprintf to handle variadic arguments
MaartenS11 8d79243
Loading snapshots should work again now
MaartenS11 4f55465
Hacky but it's starting to work
MaartenS11 d102350
Somewhat hacky way of extracting the current sensor value
MaartenS11 41ed76e
Put uart heartbeat for sensors in a thread + colour_sensor now return…
MaartenS11 0cd0ee5
Allow controlling multiple motors
MaartenS11 98f5f54
Added anti-stall system to motor driver
MaartenS11 035fcc9
Merge remote-tracking branch 'origin/exp/io-state' into feat/zephyr-p…
MaartenS11 b6e2c68
Make motor driver reversible
MaartenS11 865bc32
Added some things needed to make uart sensor work
MaartenS11 2b420fc
Added invoke_primitive function that makes it easy to call primitives…
MaartenS11 6368bb5
New API for reversible primitives
MaartenS11 315464d
Rename PinState to IOStateElement and clean up debugger ioState inter…
MaartenS11 00cccde
Clang format
MaartenS11 0e29161
Merge remote-tracking branch 'origin/main' into feat/obb-reversible
MaartenS11 01ee63e
Only run the reverse operation for the primitive that was just execut…
MaartenS11 6995bca
Use ms to configure stall timeout for motors
MaartenS11 aedd0a1
Adjust speed faster when stalling
MaartenS11 051e9bf
Don't wait for the full 10ms if we have already detected movement
MaartenS11 8c6fe19
Stripped out open bot brain primitives
MaartenS11 958b399
Clang format
MaartenS11 77aa523
Make chip_digital_write on arduino reversible using the new macros
MaartenS11 1b291f5
Remove io-arduino.cpp and fix usage of PinState
MaartenS11 e22697d
def_prim_serialize should not return anything for chip_digital_write
MaartenS11 f8b01cb
Add extra clause to if so int32_t and int are bot considered I32 in c…
MaartenS11 5b5d298
Add new macros + restore_external_state + get_io_state to ESP-IDF
MaartenS11 0c53588
Install primitive reverse for chip_digital_write
MaartenS11 fa8a558
Just use NUM_PRIMITIVES and set it to 5
MaartenS11 829ae4b
Move last remaining bits of io.h into primitives.h
MaartenS11 9edb6ab
Add reversible primitive code to emulated.cpp
MaartenS11 296fffd
Fixed zephyr build
MaartenS11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.