Skip to content

Commit d00f70e

Browse files
committed
Changes due to removing pydantic
1 parent 5f63797 commit d00f70e

File tree

11 files changed

+40
-40
lines changed

11 files changed

+40
-40
lines changed

subprojects/robotpy-hal/gen/CAN.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ strip_prefixes:
66
functions:
77
HAL_CAN_SendMessage:
88
buffers:
9-
- { type: in, src: data, len: dataSize }
9+
- { type: IN, src: data, len: dataSize }
1010
HAL_CAN_ReceiveMessage:
1111
buffers:
12-
- { type: out, src: data, len: dataSize, minsz: 8 }
12+
- { type: OUT, src: data, len: dataSize, minsz: 8 }
1313
HAL_CAN_OpenStreamSession:
1414
HAL_CAN_CloseStreamSession:
1515
HAL_CAN_ReadStreamSession:

subprojects/robotpy-hal/gen/CANAPI.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ functions:
99
HAL_CleanCAN:
1010
HAL_WriteCANPacket:
1111
buffers:
12-
- { type: in, src: data, len: length }
12+
- { type: IN, src: data, len: length }
1313
HAL_WriteCANPacketRepeating:
1414
buffers:
15-
- { type: in, src: data, len: length }
15+
- { type: IN, src: data, len: length }
1616
HAL_WriteCANRTRFrame:
1717
HAL_StopCANPacketRepeating:
1818
HAL_ReadCANPacketNew:
1919
buffers:
20-
- { type: out, src: data, len: length, minsz: 8 }
20+
- { type: OUT, src: data, len: length, minsz: 8 }
2121
HAL_ReadCANPacketLatest:
2222
buffers:
23-
- { type: out, src: data, len: length, minsz: 8 }
23+
- { type: OUT, src: data, len: length, minsz: 8 }
2424
HAL_ReadCANPacketTimeout:
2525
buffers:
26-
- { type: out, src: data, len: length, minsz: 8 }
26+
- { type: OUT, src: data, len: length, minsz: 8 }

subprojects/robotpy-hal/gen/I2C.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ functions:
77
HAL_InitializeI2C:
88
HAL_TransactionI2C:
99
buffers:
10-
- { type: in, src: dataToSend, len: sendSize }
11-
- { type: out, src: dataReceived, len: receiveSize }
10+
- { type: IN, src: dataToSend, len: sendSize }
11+
- { type: OUT, src: dataReceived, len: receiveSize }
1212
HAL_WriteI2C:
1313
buffers:
14-
- { type: in, src: dataToSend, len: sendSize }
14+
- { type: IN, src: dataToSend, len: sendSize }
1515
HAL_ReadI2C:
1616
buffers:
17-
- { type: out, src: buffer, len: count }
17+
- { type: OUT, src: buffer, len: count }
1818
HAL_CloseI2C:

subprojects/robotpy-hal/gen/SPI.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ functions:
77
HAL_InitializeSPI:
88
HAL_TransactionSPI:
99
buffers:
10-
- { type: in, src: dataToSend, len: size }
11-
- { type: out, src: dataReceived, len: size }
10+
- { type: IN, src: dataToSend, len: size }
11+
- { type: OUT, src: dataReceived, len: size }
1212
# TODO: dataToSend buffer must be at least as long as dataReceived buffer
1313
HAL_WriteSPI:
1414
buffers:
15-
- { type: in, src: dataToSend, len: sendSize }
15+
- { type: IN, src: dataToSend, len: sendSize }
1616
HAL_ReadSPI:
1717
buffers:
18-
- { type: out, src: buffer, len: count }
18+
- { type: OUT, src: buffer, len: count }
1919
HAL_CloseSPI:
2020
HAL_SetSPISpeed:
2121
HAL_SetSPIMode:
@@ -31,10 +31,10 @@ functions:
3131
HAL_StopSPIAuto:
3232
HAL_SetSPIAutoTransmitData:
3333
buffers:
34-
- { type: in, src: dataToSend, len: dataSize }
34+
- { type: IN, src: dataToSend, len: dataSize }
3535
HAL_ForceSPIAutoRead:
3636
HAL_ReadSPIAutoReceivedData:
3737
buffers:
38-
- { type: out, src: buffer, len: numToRead }
38+
- { type: OUT, src: buffer, len: numToRead }
3939
HAL_GetSPIAutoDroppedCount:
4040
HAL_ConfigureSPIAutoStall:

subprojects/robotpy-hal/gen/SerialPort.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ functions:
2323
HAL_GetSerialBytesReceived:
2424
HAL_ReadSerial:
2525
buffers:
26-
- { type: out, src: buffer, len: count }
26+
- { type: OUT, src: buffer, len: count }
2727
HAL_WriteSerial:
2828
buffers:
29-
- { type: in, src: buffer, len: count }
29+
- { type: IN, src: buffer, len: count }
3030
HAL_FlushSerial:
3131
HAL_ClearSerial:
3232
HAL_CloseSerial:

subprojects/robotpy-wpilib/gen/CAN.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ classes:
1919
int, int, int:
2020
WritePacket:
2121
buffers:
22-
- { type: in, src: data, len: length }
22+
- { type: IN, src: data, len: length }
2323
WritePacketNoError:
2424
buffers:
25-
- { type: in, src: data, len: length }
25+
- { type: IN, src: data, len: length }
2626
WritePacketRepeating:
2727
buffers:
28-
- { type: in, src: data, len: length }
28+
- { type: IN, src: data, len: length }
2929
WritePacketRepeatingNoError:
3030
buffers:
31-
- { type: in, src: data, len: length }
31+
- { type: IN, src: data, len: length }
3232
WriteRTRFrame:
3333
WriteRTRFrameNoError:
3434
StopPacketRepeating:

subprojects/robotpy-wpilib/gen/I2C.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ classes:
1111
GetDeviceAddress:
1212
Transaction:
1313
buffers:
14-
- { type: in, src: dataToSend, len: sendSize }
15-
- { type: out, src: dataReceived, len: receiveSize }
14+
- { type: IN, src: dataToSend, len: sendSize }
15+
- { type: OUT, src: dataReceived, len: receiveSize }
1616
AddressOnly:
1717
Write:
1818
WriteBulk:
1919
buffers:
20-
- { type: in, src: data, len: count }
20+
- { type: IN, src: data, len: count }
2121
Read:
2222
buffers:
23-
- { type: out, src: data, len: count }
23+
- { type: OUT, src: data, len: count }
2424
ReadOnly:
2525
buffers:
26-
- { type: out, src: buffer, len: count }
26+
- { type: OUT, src: buffer, len: count }
2727
VerifySensor:
2828
buffers:
29-
- { type: in, src: expected, len: count }
29+
- { type: IN, src: expected, len: count }

subprojects/robotpy-wpilib/gen/SPI.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ classes:
3535
SetChipSelectActiveLow:
3636
Write:
3737
buffers:
38-
- { type: in, src: data, len: size }
38+
- { type: IN, src: data, len: size }
3939
Read:
4040
buffers:
41-
- { type: out, src: dataReceived, len: size }
41+
- { type: OUT, src: dataReceived, len: size }
4242
Transaction:
4343
buffers:
44-
- { type: in, src: dataToSend, len: size }
45-
- { type: out, src: dataReceived, len: size }
44+
- { type: IN, src: dataToSend, len: size }
45+
- { type: OUT, src: dataReceived, len: size }
4646
# TODO: dataToSend buffer must be at least as long as dataReceived buffer
4747
InitAuto:
4848
FreeAuto:
@@ -59,7 +59,7 @@ classes:
5959
overloads:
6060
uint32_t*, int, units::second_t:
6161
buffers:
62-
- { type: out, src: buffer, len: numToRead }
62+
- { type: OUT, src: buffer, len: numToRead }
6363
uint32_t*, int, double:
6464
ignore: true
6565
GetAutoDroppedCount:

subprojects/robotpy-wpilib/gen/SerialPort.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ classes:
3737
GetBytesReceived:
3838
Read:
3939
buffers:
40-
- { type: out, src: buffer, len: count }
40+
- { type: OUT, src: buffer, len: count }
4141
Write:
4242
overloads:
4343
const char*, int:
4444
buffers:
45-
- { type: in, src: buffer, len: count }
45+
- { type: IN, src: buffer, len: count }
4646
std::string_view:
4747
ignore: true
4848
SetTimeout:

subprojects/robotpy-wpimath/gen/controls/LinearQuadraticRegulator.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ classes:
3838
const StateVector&, const StateVector&:
3939
LatencyCompensate:
4040
template_impls:
41-
- [1]
42-
- [2]
41+
- ["1"]
42+
- ["2"]
4343
template_inline_code: |
4444
cls_LinearQuadraticRegulator
4545
.def(py::init<const frc::LinearSystem<States, Inputs, 1>&, const wpi::array<double, States>&, const wpi::array<double, Inputs>&, units::second_t>())

subprojects/robotpy-wpimath/gen/controls/TrapezoidProfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ classes:
7777
param_override:
7878
maxVelocity_:
7979
name: maxVelocity
80-
default: 0
80+
default: "0"
8181
maxAcceleration_:
8282
name: maxAcceleration
83-
default: 0
83+
default: "0"
8484
template_inline_code: |
8585
{
8686
std::string clsNameCopy = clsName;

0 commit comments

Comments
 (0)