Changeset 1109:986abbce32ef
- Timestamp:
- 09/23/23 09:03:43 (15 months ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/xplane.py
r1103 r1109 2264 2264 TYPE_FLOAT) 2265 2265 2266 self._flapsControlIndex = len(data) 2267 self._addDatarefWithIndexMember(data, 2268 "sim/custom/controll/flaps_lever", 2269 TYPE_FLOAT) 2270 self._flapsIndex = len(data) 2271 self._addDatarefWithIndexMember(data, 2272 "sim/flightmodel/controls/fla1_def", 2273 (TYPE_FLOAT_ARRAY, 2, 8)) 2274 2266 2275 def getAircraftState(self, aircraft, timestamp, data): 2267 2276 """Get the aircraft state. … … 2274 2283 state.parking = data[self._parkingBrakeIndex]!=0 2275 2284 state.cog = data[self._cgIndex]/100.0 2285 state.flapsSet = data[self._flapsControlIndex] 2286 state.flaps = data[self._flapsIndex][0] 2276 2287 2277 2288 return state
Note:
See TracChangeset
for help on using the changeset viewer.