Git Product home page Git Product logo

lander's Introduction

lander

Cambridge mars lander 2020-2021

Guide to starting this application from Cambridge:

Getting Started in Microsoft Windows

To work on the Mars Lander exercise, you need to install a C++ compiler on your PC.

First, install Microsoft's Visual Studio Community 2019 from here. The installer will ask you precisely what it is you wish to install. In the Workloads tab, select Desktop development with C++, add the most recent version of the optional Windows 10 SDK in the Installation details pane on the right (this may be ticked to install by default), then confirm that the NuGet package manager is selected from the Individual components tab. Press Install. Installing Visual Studio after signing in to your Microsoft account should result in a permanently licensed installation on your PC. You can check this by launching Visual Studio, clicking on the Help menu, then About Microsoft Visual Studio, then License Status. If the license is for a 30 day trial period only, sign in to your Microsoft account using the link on the License Status page: this should automatically upgrade your license. Here is a quick guide to getting started with the Mars Lander exercise:

Unzip the supplied Python and C++ source code into your Documents folder. This puts the source files in a new folder called lander. Start Visual Studio. The first time you do this, you may be offered the opportunity to Start with a familiar environment by choosing between various Development Settings: select the default General option. From the Get started dialog, select Create a new project (alternatively, and when running Visual Studio not for the first time, from the File menu select New and then Project). A pop-up dialog will appear. Select Empty Project (C++), type lander into the Project name box and press Create. From the Project menu, select Add Existing Item, navigate to the lander folder under Documents, select the three C++ source files lander.cpp, lander.h and lander_graphics.cpp (but not spring.cpp), and press Add. From the Project menu, select Manage NuGet Packages. In the Browse tab search for nupengl, select the nupengl.core package and press Install. Click OK when the Preview Changes dialog pops up. This downloads and installs the various OpenGL graphics libraries required by the Mars Lander source code. You can now edit the source code by double clicking on lander.cpp under Source Files in the Solution Explorer tab (if you cannot see this tab, you can enable it under the View menu). Unlike Python, all C++ programs must first be compiled (i.e. translated into machine code) before they can be run. The Build menu contains options for compiling the program, while the Debug menu is for running and debugging. Spend some time reading the Help pages for more information. To compile and run the spring.cpp program for Assignment 3, repeat these instructions except: choose some other name for the project (not lander); add the spring.cpp source code file instead of the three lander source files; and skip the NuGet step for adding the OpenGL libraries. If you experience any issues when trying to run your code (e.g. only the console pops up, but not the graphics window), try disabling your antivirus software or add a suitable exception to your antivirus settings.

lander's People

Contributors

sinenomine2001 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.