Update control library

This commit is contained in:
2026-01-08 21:09:49 -05:00
parent 09b6fc1cda
commit 5e70779a9a
7 changed files with 124 additions and 109 deletions

View File

@@ -7,18 +7,34 @@ using Google.FlatBuffers;
public class ControlLibrary : MonoBehaviour
{
[DllImport("libcontrol")]
[DllImport("libc_control")]
public static extern void init();
[DllImport("libcontrol")]
[DllImport("libc_control")]
public static extern void cleanup();
[DllImport("libcontrol")]
[DllImport("libc_control")]
public static extern int send_angle_control(int module_id, int angle);
[DllImport("libcontrol")]
[DllImport("libc_control")]
private static extern IntPtr get_configuration(out int module_id); // the data this points to will be invalidated when called again
[DllImport("libc_control")]
public static extern bool control_sentry_init(
string dsn,
string environment,
string release
);
[DllImport("libc_control")]
public static extern void control_sentry_set_app_info(
string app_name,
string app_version,
string build_number);
[DllImport("libc_control")]
public static extern void control_sentry_shutdown();
public static Frontend.RobotConfiguration getRobotConfiguration() // this is not thread safe
{

Binary file not shown.

View File

@@ -1,63 +0,0 @@
fileFormatVersion: 2
guid: 2e245339cbf750a4f9521fd4f064e92f
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 1
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude Win: 0
Exclude Win64: 0
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
CPU: x86_64
DefaultValueInitialized: true
OS: Windows
- first:
Standalone: Linux64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: None
- first:
Standalone: Win
second:
enabled: 1
settings:
CPU: x86
- first:
Standalone: Win64
second:
enabled: 1
settings:
CPU: x86_64
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,33 +0,0 @@
fileFormatVersion: 2
guid: 1e106a4fd65ba469d815025f404d1916
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
DefaultValueInitialized: true
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant: