Sample 1 - Kernels

Sample 1 scales planetary meshes to scale, among other things

Sample 1 scales planetary meshes to scale, among other things

This sample covers MaxQ initialization and loading SPICE kernel data.

Q: What exactly is a SPICE kernel?
A: SPICE kernels contain data about position, orientation, or physical characteristics of Planets, Spacecraft, Asteroids, and more. This is how MaxQ (through SPICE) “knows” where any given object is at a given time.

The flexibility of Kernel files allows users to load whatever data sets are needed. Creating new data files is an easy process. It’s easy enough to create whole new planets, satellites, solar systems as-needed.

Covered:

  • Demonstrate how to initialize the SPICE module
  • Demonstrate how to load one kernel data file
  • Demonstrate how to enumerate all kernel files in a project directory
  • Demonstrate how to load all kernel files in a given directory
  • Demonstrate fetching gravitational (mass) constants from the loaded kernels
  • Demonstrate fetching planetary radii constants from the loaded kernels
  • Demonstrate using SPICE bodvrd RADII data to set mesh dimensions
A portion of Sample 01 implemented in Blueprint form

A portion of Sample 01 implemented in Blueprint form

Equivalent portion of Sample 01 implemented in C++

Equivalent portion of Sample 01 implemented in C++

Still Didn’t Find Your Answer?

We’d love to hear from you, whether you’re looking for an answer
or just had a really good day and want to tell someone about it.

Reach Out