Modify

Opened 12 years ago

Closed 12 years ago

#109 closed enhancement (implemented)

Decouple the fuel tank representation

Reported by: István Váradi Owned by: István Váradi
Priority: minor Milestone: Read-write operation
Component: aircraft/dc3 Keywords:
Cc:

Description

There are the interfaces where the fuel data appears:

  • On the state interface, when reading the fuel from the simulator
  • On the getFuel() function of the simulator which is used to read the fuel data.
  • On the setFuelLevel() function.

The last two interfaces use the fuel tank constants to identify the tanks. However, the tanks in the simulator may be different from what is the real situation in the aircraft. So we have two choices:

  • Either the interfaces provide a picture where the tanks are as in the real life, and thus convert between that and the data in the simulator. In this case the last two interfaces should be specific to the aircraft model used. This is probably the easier approach
  • Or the interface provides the same fuel tanks as in the simulator . This makes the life of the user more difficult and a function should be provided which returns the actual fuel tanks. Perhaps getFuel() could be that. We could also query the capacities of the tanks to determine which ones are present. But it may not be a safe way...

So, determine what to do.

Attachments (0)

Change History (2)

comment:1 by István Váradi, 12 years ago

Status: newaccepted

comment:2 by István Váradi, 12 years ago

Resolution: implemented
Status: acceptedclosed

Modify Ticket

Action
as closed The owner will remain István Váradi.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.