Peter Johnson
c76e60324b
Add Java support for raw values.
...
Either ByteBuffer or byte[] can be used for putRaw().
getRaw() returns byte[].
2015-11-20 01:22:26 -08:00
Peter Johnson
d98ceb60c3
Merge pull request #36 from ThadHouse/master
...
Makes SetTeam use Mdns
2015-11-19 23:15:06 -08:00
Thad House
2e050b0540
Makes SetTeam use Mdns
2015-11-19 23:02:39 -08:00
Peter Johnson
c20d34c2b6
Rename Gyro to AnalogGyro and make Gyro an interface.
...
Refactor common implementation parts of AnalogGyro into GyroBase.
This will make it possible to add digital gyros in a similar way to how
digital accelerometers were added.
Change-Id: I437ef259e9ecb81f18a91a95c5a58b6607db5e15
2015-11-18 21:25:30 -08:00
Peter Johnson
e2a4556669
Add ByteBuffer interfaces to I2C and SPI.
...
Use these interfaces in ADXL345_I2C and ADXL345_SPI.
Change-Id: I62d37e80eb71cec9019dd095f3721e0e5d60bf3f
2015-11-18 21:23:02 -08:00
Peter Johnson
44ba8823d7
Merge pull request #34 from JLLeitschuh/feat/functionalTableListener
...
Makes ITableListener a lambda function
2015-11-17 22:44:20 -08:00
Jonathan Leitschuh
4c42712b24
Makes ITableListener a lambda function
2015-11-18 01:39:53 -05:00
Fredric Silberberg
6a0485a72c
Fixed mac lib path
...
Change-Id: Ib6f38b7f42df9c9908c7e60eca12dd48c9c4114a
2015-11-17 18:51:16 -05:00
Dustin Spicuzza
af3facd1c2
Merge "Notify the Driver Station that code is ready after robotInit is called"
2015-11-15 21:08:35 -08:00
Colby Skeggs
d690974ad0
Improved error handling in HAL Digital and Solenoid systems.
...
Change-Id: Iafd68c5bd143e9ee87ecf714bccb2c77e599b649
2015-11-15 20:59:35 -08:00
Tyler Veness
76756048c4
Notify the Driver Station that code is ready after robotInit is called
...
Change-Id: Id833a2a945c14bcbb4761d4fe463c6c9f7c4430c
2015-11-15 20:36:47 -08:00
Dustin Spicuzza
91891081b9
Merge "Update docs to reflect that PDP can now be at any address."
2015-11-15 20:20:12 -08:00
Dustin Spicuzza
ff4abd63f1
Merge "JNI: Don't call HALInitialize() within an assert()."
2015-11-15 20:15:22 -08:00
Joe Ross
511c4a4d3b
Update docs to reflect that PDP can now be at any address.
...
Change-Id: Ia6bba4c72588e261ec313fbc7bd62b83a61fb00b
2015-11-14 09:27:24 -08:00
Peter Johnson
967400f181
Merge pull request #32 from ThadHouse/master
...
Adds StopNotifier and StopRpcServer functions
2015-11-11 20:57:55 -08:00
Thad House
a142cc48d3
Adds StopNotifier and StopRpcServer functions
...
Workaround for #30 . Allows libraries to shut down the secondary
threads.
2015-11-11 20:50:30 -08:00
Peter Johnson
3469f6733c
GetRpcResult: Check m_terminating after wait() returns.
2015-11-10 23:21:50 -08:00
Peter Johnson
2b6c6f280c
Merge pull request #31 from ThadHouse/master
...
Fixes SetEntryRaw to actually set raw.
2015-11-10 23:09:05 -08:00
Thad House
aefeee39aa
Fixes SetEntryRaw to actually set raw.
2015-11-10 23:03:00 -08:00
Peter Johnson
27101979fa
Add extern "C" to ntcore_c implementation.
...
This will catch any future parameter type mismatches to the header file.
2015-11-10 00:39:46 -08:00
Peter Johnson
033520d426
Merge pull request #29 from ThadHouse/master
...
Fixes parameter type differences for c interface.
2015-11-10 00:38:31 -08:00
Thad House
16e68c3480
Fixes parameter type differences for c interface.
2015-11-10 00:25:37 -08:00
Peter Johnson
94b6073f34
Merge pull request #28 from ThadHouse/master
...
Makes Value::MakeStringArray properly set size
2015-11-09 22:08:27 -08:00
Thad House
8fc2eee2b4
Makes Value::MakeStringArray properly set size
...
The Value::MakeStringArray methods were not setting the size of the
arr_string. This was causing the NT_Value struct called from the C
entry listener callback to not have the array size, which would then
cause the GetValueStringArray method to fail the malloc.
2015-11-09 22:05:38 -08:00
Brad Miller
28f55802b5
Reverted RobotBase debugging changes from Peter.
...
Change-Id: I336b63bae0f751fe846a13d702e01c80e53831cf
2015-11-07 12:01:44 -05:00
Peter Johnson
06372cb143
JNI: Don't call HALInitialize() within an assert().
...
If built without asserts enabled (e.g. -DNDEBUG), HALInitialize won't get
called. Instead call outside the assert and then do the assert.
Change-Id: I51546b9f9fc9a74f8a3a732c4b754257d9697e46
2015-11-06 20:46:29 -08:00
Peter Johnson
7023013c4b
Simplify JNI interfaces.
...
These changes both simplify the Java code and improve performance across the
JNI boundary.
This also fixes the AnalogCrossConnectTest by adding delays to
setInterruptHigh() and setInterruptLow() to ensure the change in voltage has
time to propagate and extends the timeouts in AbstractInterruptTest.
Detailed changes:
Hoisted status checks to C. This avoids the need to create direct byte
buffers (expensive) and significantly simplifies the Java code. The C code
now directly generates the exception or reports the error to the DS.
The JVM pointer is now a global across the JNI, initialized by the OnLoad
function, avoiding the need for some of the class-specific initializers to
get this pointer for callbacks.
Opaque pointers (such as ports) are now passed as long values rather than
with a ByteBuffer wrapper.
Added extern "C" to source files. This allows earlier detection of JNI
definition mismatches to the Java source headers.
Changed JNI signatures to more closely match HAL signatures (in particular,
boolean is now universally used instead of byte for HAL bool, which cleans
up mapping back and forth to 1/0 from true/false).
Change-Id: I4ea0032cabb0871cd74106a3a70d947258c29d2d
2015-11-06 09:04:22 -08:00
Fredric Silberberg
927400a43c
Added classifiers for networktables to to the pom
...
Change-Id: I9bfef83aba55b62268d08e39f07b3e4bd7c09bdc
2015-11-04 19:20:43 -05:00
Brad Miller
2f228380f4
Updated the ntcore reference and updated the build.gradle file to build with the most recent ntcore commit.
...
Change-Id: Icc7f795efdd97169ce9f837ad22b3de57d5d2d05
2015-11-04 17:45:06 -05:00
Brad Miller
44bd52c44d
Update the image version to 15
...
Change-Id: I82c81dff64d933a1a7a5e0a1c12256833fc2a387
2015-11-04 14:41:10 -08:00
Brad Miller (WPI)
21124e0174
Merge "Revert "Added work around for the missing path on the frc_console_tee command in frcRunRobot""
2015-11-04 14:40:52 -08:00
Brad Miller (WPI)
09962a7c87
Revert "Added work around for the missing path on the frc_console_tee command in frcRunRobot"
...
This reverts commit 97a7716a23 .
Change-Id: I7d9e40acc192ad33d24bc32ea9fb9499f8609983
2015-11-04 14:26:05 -08:00
Fredric Silberberg
969af7b610
Added publishing of an ntcore sources zip
...
Change-Id: Ibcdbff6b165f7b35ac6163e39c61f315db15f323
2015-11-03 21:12:23 -08:00
Fredric Silberberg
da66118331
Add JNI headers to the exported headers when compiled with JNI
...
Change-Id: I3b2dcad2f15445a9aea27ab0905d397d1cf9f9b5
2015-11-03 21:10:44 -08:00
Tyler Veness
beeefa2356
kFramework_Simple was renamed to match the corresponding robot framework's name
...
Change-Id: I0123e71e0bb56526fe187cd17cb71a8278739cd5
2015-11-03 10:38:19 -08:00
Brad Miller (WPI)
26f1bd6a1c
Merge "Fixed documentation generation for .inc files"
2015-11-03 08:29:33 -08:00
Brad Miller (WPI)
a34f3f238b
Merge "HALUsageReporting::kFramework_Simple was renamed to match the corresponding robot framework's name"
2015-11-03 08:10:14 -08:00
Tyler Veness
231178c26a
HALUsageReporting::kFramework_Simple was renamed to match the corresponding robot framework's name
...
Change-Id: I2ad0f8d48cabe5f6c1adf622cf5377eb5be362f7
2015-11-02 23:23:57 -08:00
Peter Johnson
424efca1bf
NetworkConnection: bump debug levels a bit.
...
DEBUG4 is getting pretty verbose.
2015-11-02 22:12:20 -08:00
Peter Johnson
4d7ea37d56
Fix update message type data.
...
The type was being read and written as the raw enum value rather than as
the actual type definition.
2015-11-02 22:08:35 -08:00
Peter Johnson
32a1beb772
WireDecoder: Add commented-out read stream dumping.
2015-11-02 22:06:55 -08:00
Peter Johnson
d850b2fd76
Gradle build: rebuild on changes to header files in src.
2015-11-02 22:04:23 -08:00
Brad Miller (WPI)
bb52c2441e
Merge "Update the library version string for the driver station (artf4708)"
2015-11-02 12:20:06 -08:00
Peter Johnson
9f5fe63aaa
Reuse dead connection slots.
...
This fixes a memory leak on multiple disconnect/reconnect of the same client.
2015-11-01 22:48:11 -08:00
Peter Johnson
03ee425e5f
Add additional debug messages.
2015-11-01 22:48:11 -08:00
Brad Miller
042e3a3237
Update the library version string for the driver station (artf4708)
2015-11-01 15:08:55 -05:00
Peter Johnson
9200b7c78c
Add extern "C" to JNI definitions to catch mismatches.
2015-11-01 07:44:43 -08:00
Tyler Veness
520d946f63
Fixed documentation generation for .inc files
...
Change-Id: I2ba5cb335b2e29968069bd362793532de607679c
2015-11-01 01:17:26 -07:00
Fredric Silberberg
b793810e4a
Fixes for mac builds
...
Change-Id: I66dafd5e6d5ff10e7fb98cf718bb6f9343d03184
2015-10-31 18:49:11 -04:00
Fredric Silberberg
9df5f5e27a
When running on jenkins, the base name of produced archives becomes the project name. This fixes that to be the correct name.
...
Change-Id: Ie5a25bf9eabdb8fb1a1ee14d56e2e7badc634afc
2015-10-31 14:28:54 -04:00