Skip to content
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/dist

rpy-include
py.typed
py.typed
.venv/
3 changes: 2 additions & 1 deletion subprojects/robotpy-cscore/gen/cscore_cv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ classes:
auto result = self.GrabFrameNoTimeout(image);
return std::make_tuple(result, image);
}

LastFrameTime:
LastFrameTimeSource:
20 changes: 20 additions & 0 deletions subprojects/robotpy-wpiutil/gen/RawFrame.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---

enums:
WPI_PixelFormat:
ignore: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guessing not worth exposing this enum to Python, since there's an equivalent C++ enum in cscore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I read it yes, the cscore side enum is what the rest of cscore uses in its public api, not the RawFrame version.

WPI_TimestampSource:
value_prefix: WPI_TIMESRC
rename: TimestampSource

# We only care about the enum exposed above. We can safely ignore everything else
functions:
WPI_AllocateRawFrameData:
ignore: true
WPI_FreeRawFrameData:
ignore: true
WPI_SetRawFrameData:
ignore: true
classes:
RawFrame:
ignore: true
1 change: 1 addition & 0 deletions subprojects/robotpy-wpiutil/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ DataLogBackgroundWriter = "wpi/DataLogBackgroundWriter.h"
DataLogWriter = "wpi/DataLogWriter.h"
StackTrace = "wpi/StackTrace.h"
Synchronization = "wpi/Synchronization.h"
RawFrame = "wpi/RawFrame.h"

# wpi/sendable
Sendable = "wpi/sendable/Sendable.h"
Expand Down
Loading