wpiutil.wpistruct Package

This package contains the WPILib Struct serialization functions, and a mechanism to implement your own custom structs using Python (see wpiutil.wpistruct.make_wpistruct()).

wpiutil.wpistruct functions

StructDescriptor(typeString, schema, size, ...)

To define a type in python that can use the wpilib serialization, the type must have an attribute WPIStruct that contains this class (but C++ classes do not have this).

double([x])

int16

int32

int64

int8

uint16

uint32

uint64

uint8