I'm trying to debug the Atlantis sample for the first time. I've added breakpoints in places I'd expect to be hit, for example on ln195 of Atlantis.cpp which seems to create the Space Shuttle Main Engine - I'd expect it to be hit when I first launch the Atlantis sample:
I'm then running the solution in Visual Studio by clicking the green 'run' arrow, which successfully runs Orbiter. I then run the 'Launch into sunrise' scenario for Atlantis, however none of my breakpoints are hit. I've searched for a main() function across the solution but there isn't one.
I'm trying to make some tweaks to the Atlantis sample, to change how the simulator behaves, and ultimately to tweak the launch autopilot, as I'm using Orbiter to learn some concepts of spacecraft launch stability control.
How do I start debugging? And also if anyone can advise on a starting point for being able to understand how the code works and how I can understand it enough to achieve what I'm trying to do, that would be fantastic. I've been looking for SDK tutorials online but haven't been able to find much.
Code:
// --------------------------------------------------------------
// Initialise the thrusters for the shuttle main engines
// --------------------------------------------------------------
void Atlantis::CreateSSME()
{
// Not connected to a propellant resource - they connect to the ET's tank as long
// as it is attached (checked in clbkPreStep)
th_main[0] = CreateThruster (THRUSTREF_SSME0, THRUSTGIMBAL_LAUNCH, ORBITER_MAIN_THRUST, NULL, ORBITER_MAIN_ISP0, ORBITER_MAIN_ISP1); // breakpoint on this line
I'm then running the solution in Visual Studio by clicking the green 'run' arrow, which successfully runs Orbiter. I then run the 'Launch into sunrise' scenario for Atlantis, however none of my breakpoints are hit. I've searched for a main() function across the solution but there isn't one.
I'm trying to make some tweaks to the Atlantis sample, to change how the simulator behaves, and ultimately to tweak the launch autopilot, as I'm using Orbiter to learn some concepts of spacecraft launch stability control.
How do I start debugging? And also if anyone can advise on a starting point for being able to understand how the code works and how I can understand it enough to achieve what I'm trying to do, that would be fantastic. I've been looking for SDK tutorials online but haven't been able to find much.