The GroundVehicle Object
|Top Previous Next|
The GroundVehicle object is an object that allows you to access many of the same capabilities available to the Spacecraft object when modeling non-orbital vehicles in FreeFlyer.
Defining the GroundVehicle Object
A GroundVehicle object can be defined by using the GroundVehicle object editor or through FreeFlyer script. The different approaches are covered below.
Using the Object Editor
To define the GroundVehicle object within the object browser, you will use the GroundVehicle object editor. The GroundVehicle object editor contains a full listing of configurable properties as well as pages for configuring the attitude, visuals, propagator settings, and attached Sensor objects.
GroundVehicle Object Editor
Using FreeFlyer Script
The GroundVehicle object can also be created using the FreeForm script editor. To define a GroundVehicle object's initial position in FreeFlyer script, specify its central body, bodydetic latitude, east longitude, and height as in the example below.
The default velocity type for a GroundVehicle is the "Heading-Speed" option. To define a GroundVehicle object's initial motion with the "Heading-Speed" velocity type in FreeFlyer script, specify its heading and speed as in the example below.
The second velocity type available to the GroundVehicle is the "Surface-Velocity" option. To define a GroundVehicle object's initial motion with the "Surface-Velocity" velocity type in FreeFlyer script, specify its heading and speed as in the example below.
A user has the option to include a Terrain object as a reference for defining the GroundVehicle's state using the GroundVehicle.SetReferenceTerrain() method. After using the method, the GroundVehicle will maintain a constant height with respect to the reference terrain and will report an error if you try to move the GroundVehicle outside the terrain. An example of this is provided below.
•GroundVehicle Properties and Methods