Releases: usfsoar/SOAR_Simulacra
NSL 24-25 Dgital Twin V3
Download Simulation Here
Extra Files
c++ header for Arduino
c++ implementation for Arduino
Arduino Example
remember to add the respective config files to be able to use the digital twin conditionally
NSL25_Digital Twin V2.3 (Airbrakes and Payload Work)
Digital Twin Capable of supporting both Payload Simulation and Airbrakes Simulation.
For ESP32 make sure to check out the .ino and .cpp files below that contain the Digital Twin library and examples of how to use it and integrate it with your final code without any issues.
For the Raspberry Pi Make sure to check out the example_main.py and make sure to download and import in your code the digital_twin.py and config.py files below
NSL25_DigitalTwinV2.1
Airbrakes now work
NSL 24-25 Dgital Twin V1.2
Executable Version of the Digital Twin to test Microcontroller code. Currently only implements payload functionality. Based on the NSL 24-25 payload.
includes noise and outliers for IMU
Instructions
- Unzip the zip file on a Windows computer
- Run the
SOAR_Simulacra.exe - If there are any errors is probably some issue with handling .dll files
Request Codes and Responses
Sensor Data Requests (0x03)
| Request Code | Purpose | Response Code | Response Data Format |
|---|---|---|---|
| 0x03 0x01 | Altitude | 0x03 | [float] altitude (4 bytes) |
| 0x03 0x02 | Temperature | 0x03 | [float] temperature (4 bytes) |
| 0x03 0x03 | Pressure | 0x03 | [float] pressure (4 bytes) |
IMU Data Requests (0x04)
| Request Code | Purpose | Response Code | Response Data Format |
|---|---|---|---|
| 0x04 0x01 | Total Acceleration (ACC) | 0x04 | [float] x, [float] y, [float] z (12 bytes) |
| 0x04 0x02 | Linear Acceleration (ACL) | 0x04 | [float] x, [float] y, [float] z (12 bytes) |
| 0x04 0x03 | Gravity Vector (GRV) | 0x04 | [float] x, [float] y, [float] z (12 bytes) |
Servo Commands (0x05)
| Request Code | Purpose | Response Code | Response Data Format |
|---|---|---|---|
| 0x05 0x01 | Set Servo Position | 0x05 | [int] servo number (4 bytes), [int] angle (4 bytes) |
Debug/Error Handling
- Any unrecognized request codes are pushed to
debugQueueand logged.
NSL 24-25 Dgital Twin V1.1
IGNORE RELEASE
NSL 24-25 Dgital Twin V1
IGNORE THIS RELEASE
NSL25_Digital Twin V2.4
Download Simulation Here
Extra Files
c++ header for Arduino
c++ implementation for Arduino
Arduino Example
python library for Airbrakes here
remember to add the respective config files to be able to use the digital twin conditionally
NSL 24-25 Dgital Twin V2.2
Pls work 🥺
Download
NSL25_DigitalTwinV2.0
Airbrakes Work Now 🎸
Pending to make the flight itself more acurrate to reflect the correct altitude and velocity values post-burnout so will be updated soon