Hey everyone, this is Mark Wehrmeyer, also handles Spacey McSpaceSpace from Qualls earlier this year. I'm one of the engineers at Cromulence working on the digital twin for this year's finals. And today I'm going to give you a quick walkthrough of what we've put together so far as we approach finals. This is basically the system that we're putting together for teams to be able to compete with later this year. So just a quick overview of the architecture of the different pieces and tools that we brought together in the system. So one of the important things we brought in this year is a spacecraft simulation framework called Bacillus. This is from CU Boulder's APS laboratory, and this allows us to do a lot of manage a lot of the physics simulation. So. Manage the spacecraft orbits. We can put in things like star trackers and create telemetry from those devices, and we can send that telemetry on to flight software. So like we're using NASA's CFS and OpenSat kits to actually process that telemetry and make the spacecraft thinks it's in an actual orbit. So kind of it's broken into two halves. So on the left hand side is more of the infrastructure simulation side. This is more like what the admins want. Would be looking at. So it has the Bacillus piece in there that's handling all the simulation elements. And then that sim data, while part of it's being passed to the spacecraft flight software, also parts of it are being passed to Grafana and CZMJS, where we have some introspection into what the simulation is doing. And then CZMJS allows us to get a 3D visualization, actually see the spacecraft in its orbit over the Earth, see where the attitude is pointing, see if the solar panels are pointed at the sun. Get all that kind of information in a nice 3D visualization. On the right hand side. So we've got our sensor data that's being passed into core flight bus system. So this year we are running this on a RISC-V processor that we're emulating in QMU. And that sensor data. So like our GPS receiver, telemetry, positions, velocities, our star tracker, attitude, quaternions, how much power. Subsystems are consuming, how much power the solar panels are generating and what's stored in the batteries. All that information is passed from Bacillus over to CFS and OpenSat kit and our RISC-V processor. So those pieces that constitutes what we're calling the spacecraft in the game. And then from there, the spacecraft can be commanded and controlled from. So like a ground system sort of software, like a satellite operator would use. This year we've migrated to Ball Aerospace's Cosmos 5. So this allows us to send commands up to that spacecraft so we can point it where we want. We can turn on and off subsystems. We can also view the telemetry coming back down. And so one difference between, so like when we're looking at sim data, we might be able to see all the attitude data and other physics data being generated. But then on the Cosmos side, we would only be able to see telemetry and send up commands. So that's a connection established with the spacecraft. So, or if we turned off, for example, the Star Tracker, we'd no longer be able to see that Star Tracker telemetry in Cosmos, even though it's still being generated and handled over on the Bacillus side. A quick shout out to all the tools that we brought in. So like I said, Bacillus from CU Boulder's AVS laboratory, also CesiumJS, CoreFlight System from NASA, Ball Aerospace's Cosmos, Grafana, Linux on Litex and OpenSat kit. So when I start up the Digital Twin, you're going to see these four screens. So just a quick explanation of what's happening. In the top left is our flight software. So this is where we have RISC-V emulated in QMU. And on top of that, we're running our NASA CoreFlight software apps and OpenSat kit, as well as our custom flight software that we've added in. And then on the right hand side, the Cesium visualization. So this is where we can see where the spacecraft is. And it's orbit. We can actually move this visualization backwards and forwards in time. We can see if we're over ground station. We can see what the spacecraft attitude is if we're pointed at the sun. And the bottom left is the Grafana introspection into the simulation data that's being generated by Bacillus. So we'll be able to see the battery charge levels, what the solar panels are doing, what the devices are doing, how much power they're consuming. We have any tumble rates on the spacecraft. And we can see all of that stuff there. And then in the bottom right is the Cosmos 5. This is sort of the satellite operator view. So this is where we can send up commands like a team would in finals and also view telemetry. So now starting up the demo. So we've got all our four windows here. The first thing I'm going to do is start the flight software. So this is basically. This is starting up core flight system. We've already got the RISC-V processor running. You can see all of the CFS apps starting in that top left window. So basically we've got our spacecraft started up and now we should be able to send commands to it and receive telemetry from it. We've added in a gremlin for demonstration purposes here. That's actually sending all of those actuator commands that you see in the flight software. So this is basically sending a bunch of rogue reaction wheel commands to cause the spacecraft to do a little tumble for us. So over on the cesium visualization, here's our spacecraft. It's doing that commanded tumble. Also, we're over our tribute Vegas ground station for DEFCON. And I'm just kind of showing here. You can just rotate around in the cesium view. You can get a really good idea of what's happening. So for example, it's really hard to understand what you're spending time on. What the spacecraft is doing by just looking at, for example, quaternion values or Cartesian XYZ positions and velocity values. It's kind of hard to make sense of that. So putting it here in the visualization is a really good way to actually understand and sanity check what's happening. So down in the bottom left, we're looking at some of the simulation data that Grafana is graphing for us. So we can see because we have this tumble. We have a slowly declining battery charge rate. And as well, we have this oscillating sort of behavior happening with the charge rate and also on the solar panels themselves. So as the spacecraft is tumbling, sometimes it's the solar panels are pointed at the sun and sometimes they're not. So that's why that's going up and down and why our battery charges are declining. Also, here we have this is a stack up of all of the subsystems and what they're consuming in terms of power. So we've also added another gremlin in here, which is randomly turning on and off different subsystems. To demonstrate on the graph here, you can see that it's kind of shifting what subsystems are consuming power or how much power they're consuming. Moving further down. So here's our this is our actual simulation position and velocity data and our attitude data. So we're tracking angular velocity, what the spacecraft's quaternion is. And up here we can see other things like our three reaction wheels. What speeds are they operating at? So like I said, the gremlin is sending these rogue reaction wheel commands, which is causing the reaction wheel to spin up. And then a couple other sensors here, you can see magnetometers, sun sensors. So moving over to the Cosmos side, we can see that we have a connection. Our Cosmos interface is connected with the spacecraft. We haven't sent or received any commands yet. So the first thing I'm going to do is I'm going to turn on telemetry from the spacecraft. So I'm commanding the spacecraft to start down linking telemetry packets for me to view. Sending that command and we should see it pop up in the top left. So there it says telemetry output has been enabled. So our, our core flight software has recognized that our command is now sending us telemetry. So here we see our received bytes count is increasing. So we're receiving those telemetry packets. And we can look here at a couple of different ones that we're receiving. So we're receiving course on sensor, GPS, IMU packets. We open up the GPS packet. We can see in here that these values are updating as packets are coming in. So we have our CCSDS header to start with. And then lower down we have the actual GPS payload telemetry. So our X, our Cartesian X values and velocity values. Another way to look at the telemetry, we built just a couple basic telemetry viewer screens. So this one shows what devices we're commanding to be on and off. So like I said, the Gremlin that we're running is randomly turning on and off different ones. So like right now, the GPS just turned off. And then you should see that turn back on in a minute. And then you should see that turn back on in a minute. And then something else will turn on. And then on the right, we have the GPS and Star Tracker telemetry. So those packets are actually being downlinked and Cosmos is parsing them. You can see that little gap in GPS telemetry while the GPS receiver was off. And then it turned back on and continued collecting telemetry. And now the Star Tracker just went off. So the Star Tracker telemetry is no longer updating. And then it should turn on back in a second here. There it goes. So now we're receiving those Star Tracker telemetry packets again. So now we're receiving those Star Tracker telemetry packets again. And just monitoring, you know, the Gremlin sending those, the rogue reaction wheel commands. So that's causing those Star Tracker telemetry quaternions to do those variations and rotations. So right now what I'm doing to demonstrate what the flight software is doing, so I'm actually going to kill the core CPU on process. So I've actually stopped the flight software. And now looking back in Cosmos, we can see we're no longer receiving any Star Tracker telemetry. Those graphs have just stopped at their last recorded values. So this would be like a satellite operator when you've gone out of, for example, you've gone out of contact with your spacecraft. You would no longer see these. You would just see whatever the last recorded values are for that telemetry. And further illustrating this, so our received bytes is no longer incrementing. So even though we've turned back on, and turned off the flight software, Basilisk is still simulating the spacecraft. It's still handling all the physics. So our spacecraft is still tumbling. Our orbit is still propagating. We can see that happening in Cesium, and we can see it in the Grafana windows as well. So these Grafana simulation values are still updating and still generating values for us, even though the flight software is not running and we're not collecting telemetry as a spacecraft operator. And then so power consumption, we've turned off the flight software, which also killed our gremlin that was turning on and off random subsystems. So the subsystems are just remaining in their previous state. They're no longer changing, turning on and off. All right. And that's it for the digital twin demo. So yeah, I hope you guys enjoyed this and looking forward to getting teams to have a chance to actually use this in finals later this year. All right. Thanks.