Skip to content

Commit

Permalink
Update to binary wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Jan 15, 2020
1 parent 9ef1272 commit 232b218
Show file tree
Hide file tree
Showing 23 changed files with 207 additions and 2,876 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
*.egg-info
__pycache__

*.so
*.dylib
*.dll

/navx/include
/navx/rpy-include
/navx/_init_navx.py
/navx/pkgcfg.py
/navx/version.py

/docs/_build
Expand Down
92 changes: 92 additions & 0 deletions gen/AHRS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---

inline_code: |
#include <src/rpy/AHRS.cpp.inl>
classes:
AHRS:
shared_ptr: true
base_qualnames:
SendableBase: frc::SendableBase
ErrorBase: frc::SendableBase
PIDSource: frc::PIDSource
enums:
BoardAxis:
SerialDataType:
methods:
AHRS:
overloads:
SPI::Port:
I2C::Port:
SerialPort::Port:
SPI::Port, uint8_t:
SPI::Port, uint32_t, uint8_t:
I2C::Port, uint8_t:
SerialPort::Port, AHRS::SerialDataType, uint8_t:
GetPitch:
GetRoll:
GetYaw:
GetCompassHeading:
ZeroYaw:
IsCalibrating:
IsConnected:
GetByteCount:
GetUpdateCount:
GetLastSensorTimestamp:
GetWorldLinearAccelX:
GetWorldLinearAccelY:
GetWorldLinearAccelZ:
IsMoving:
IsRotating:
GetBarometricPressure:
GetAltitude:
IsAltitudeValid:
GetFusedHeading:
IsMagneticDisturbance:
IsMagnetometerCalibrated:
GetQuaternionW:
GetQuaternionX:
GetQuaternionY:
GetQuaternionZ:
ResetDisplacement:
UpdateDisplacement:
GetVelocityX:
GetVelocityY:
GetVelocityZ:
GetDisplacementX:
GetDisplacementY:
GetDisplacementZ:
GetAngle:
GetRate:
SetAngleAdjustment:
GetAngleAdjustment:
Reset:
GetRawGyroX:
GetRawGyroY:
GetRawGyroZ:
GetRawAccelX:
GetRawAccelY:
GetRawAccelZ:
GetRawMagX:
GetRawMagY:
GetRawMagZ:
GetPressure:
GetTempC:
GetBoardYawAxis:
GetFirmwareVersion:
RegisterCallback:
ignore: true
DeregisterCallback:
ignore: true
GetActualUpdateRate:
GetRequestedUpdateRate:
EnableLogging:
EnableBoardlevelYawReset:
IsBoardlevelYawResetEnabled:
GetGyroFullScaleRangeDPS:
GetAccelFullScaleRangeG:
AHRS::BoardYawAxis:
shared_ptr: true
attributes:
board_axis:
up:
7 changes: 7 additions & 0 deletions gen/ITimestampedDataSubscriber.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---

classes:
ITimestampedDataSubscriber:
shared_ptr: true
methods:
timestampedDataReceived:
12 changes: 6 additions & 6 deletions navx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try:
from .version import __version__
except ImportError:
__version__ == "master"

from .ahrs import AHRS
from .pins import *
from . import _init_navx

# autogenerated by 'robotpy-build create-imports navx navx._navx'
from ._navx import AHRS

__all__ = ["AHRS"]
3 changes: 0 additions & 3 deletions navx/_impl/__init__.py

This file was deleted.

0 comments on commit 232b218

Please sign in to comment.