Skip to content
simantic-devPublic
forked from UBC-Rocket/ulysses

About

Open-source flight controller firmware for UBC Rocket's experimental VTOL platform

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Ulysses

Run this firmware with no hardware. Simantic simulates the whole board, peripherals, sensors and buses included. Try it free at simantic.com, or run it locally: curl -fsSL https://simantic.com/install | sh

Firmware for UBC Rocket's experimental VTOL platform.

This fork: sim/ runs both cores of this firmware on a simulated STM32H745 and checks a barometer driver against a scripted peer, no hardware needed.

Demo

Ulysses firmware reading a simulated barometer

The real BMP585 driver (dev/ivan/baro) runs on the CM7 of a simulated STM32H745 and samples a scripted barometer every 20 ms; ./demo prints what the firmware sent on USART3 as hPa and degC. Pressure and temperature are stand-ins: sim/peers/bmp585.py plays a scripted climb to 300 m, hold, and descent (the stimulus, not a flight), and the driver's job is to decode it. The alt column is not printed by the firmware; ./demo computes it from the driver's pressure with the ISA formula.

flowchart LR
  dut["dut<br/>Ulysses-FC (STM32H745, CM7 + CM4)"]
  dut_sdcard(["sdcard<br/>SD.SDCard"])
  dut -- "sdmmc2: blank card, HAL_SD_Init" --- dut_sdcard
  dut_baro(["baro<br/>BMP585 peer (Python, scripted climb/hold/descent)"])
  dut -- "i2c1 0x46: pressure + temperature registers" --- dut_baro
  dut -. "usart3: BARO lines, decoded by ./demo" .-> out["terminal"]
Loading

Run it (needs sim on PATH, curl -fsSL https://simantic.com/install | sh; the firmware images are committed in sim/fw):

./demo     # about 90 s wall for 2.2 virtual s
sim/run.sh # PASS or FAIL checks

About

Open-source flight controller firmware for UBC Rocket's experimental VTOL platform

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages