wpilibsuite / ni-libraries Goto Github PK
View Code? Open in Web Editor NEWHouses the NI Libraries for WPILib building
Houses the NI Libraries for WPILib building
What's the reason only binary .so file is included and not the whole source?
I'm writing a simple CAN demo without WPILib. The title, I suppose, says it all.
My code:
int32_t createCANId(int deviceID, int deviceType, int manufacturerType, int32_t apiId) { // Shamelessly stolen from WPILib (and fixed to use sensible datatypes)
int32_t createdId = 0;
createdId |= ((int32_t)(deviceType) & 0x1F) << 24;
createdId |= ((int32_t)(manufacturerType) & 0xFF) << 16;
createdId |= (apiId & 0x3FF) << 6;
createdId |= deviceID & 0x3F;
return createdId;
}
void sendMessage(int id){
uint8_t message[8] = {
0, 0, 0, 0, 0, 0, 0, 0
};
int32_t status;
FRC_NetworkCommunication_CANSessionMux_sendMessage(createCANId(id, 0, 0, 0), message, 8, 0, &status);
if (status != 0){
std::cout << "A can frame failed to send: " << (long)status << std::endl;
}
usleep(100000);
}
(Edited, as I'm not capable of disclosing some constant values)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.