mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
I also updated the C++ and Java code some. For C++, this meant making it compile and adding in the framework for the closed-loop control of the motor. For Java, I updated the JNI bindings with SWIG and created an GetTemperature accessor function to demonstrate how to use the accessors because swig does funny stuff with pass-by-reference functions. Change-Id: If51bf61d0a9bc65a8d497f8d91a5be8d6ff4fdcc
12 lines
229 B
OpenEdge ABL
12 lines
229 B
OpenEdge ABL
%module CanTalon
|
|
%{
|
|
#include "ctre/CanTalonSRX.h"
|
|
%}
|
|
|
|
%include "cpointer.i"
|
|
%pointer_functions(double, doublep);
|
|
%pointer_functions(int, intp);
|
|
%pointer_functions(float, floatp);
|
|
%include "CtreCanNode.h"
|
|
%include "CanTalonSRX.h"
|