Skip to content

Instantly share code, notes, and snippets.

View Wazzaps's full-sized avatar

David Shlemayev Wazzaps

View GitHub Profile
@Wazzaps
Wazzaps / ab : src : main.rs
Created March 13, 2020 15:08
ab wants to call ba::hello(). ab should be the one dynamically loaded here, but it shouldn't matter I think.
mod ba {
#[link(name="ba")]
extern "Rust" {
#[link_name = "_ZN2ba5hello17hb8c57573de8c5a19E"]
pub fn hello();
}
}
fn main() {
unsafe { ba::hello() }
@Wazzaps
Wazzaps / example_plugin : src : lib.rs
Last active March 13, 2020 14:51
Rust plugins request
use main_app::my_mod::my_callable;
pub extern fn plugin_main() {
my_callable();
}
@Wazzaps
Wazzaps / AutonomousProcedure.java
Last active February 25, 2023 15:16
GRIP vision
package org.usfirst.frc.team1573.robot;
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class AutonomousProcedure {
// Autonomous variables
private DoubleSolenoid grip;
@Wazzaps
Wazzaps / MultiCameraServer.java
Last active March 6, 2016 01:56
Class to create a togglable camera server - team 1573
package org.usfirst.frc.team1573.robot;
import com.ni.vision.NIVision;
import com.ni.vision.NIVision.Image;
import edu.wpi.first.wpilibj.CameraServer;
/**
* Combines multiple cameras into a single server/stream
* @author David Sh. from 1573
*
*/