Simulador d'aviació flightgear
Contingut
Introducció
A part del 'flightgear, els simuladors d'aviació principals són X-Plane i MFS (Microsoft Flight Simulator). X-Plane també funciona sobre Linux, i les comparacions diuen clarament que és un simulador més realista que flightsimulator. Tanmateix, provarem flighsimulator, que és un projecte bo, open source, en creixement continu, i ben documentat. Més endavant, es podria fer una instal.lació de X-Plane.
Referències
Instal.lació flightgear
Característiques ordinador
(TBD)
Targeta de video
(TBD)
Cockpit DIY. Projectes d'altres
Construcció cockpit
La idea és construir un cockpit amb fusta i electrònica. La manera com el flightgear exposa la informació a l'Arduino, o al revés, com el flightgear pot llegir informació dels sensors, està àmpliament documentada.
Elements del cockpit (a implementar en un Cessna 172)
- Yoke system (www.saitek.com). S'ha de comprar. Quines funcions té, a part de control d'elevador i alerons? (TBD). La idea és que hi ha botons i switches que són programables.
- Throttle Quadrant. Puc intentar fer-lo abans de comprar-lo, no sé si amb rotary encoders o amb potenciòmetres. Les funcionsalitats del throttle quadrant són:
- open/close throttle (el gas)
- rpm high/low (propeller, hèlix)
- mixture rich/poor
Per llegir una discussió entre la funció del gas (throttle) i de la hèlix (propeller), i com treballen conjuntament:
En definitiva, té a veure amb l'empenta (thrust) que aconseguim amb l'avió. Que l'hèlix es mogui ràpid, no vol dir que tingui molta empenta. Això tindrà a veure també amb l'angle d'atac de l'hèlix, que és el que aconseguim amb el propeller pitch.
En comptes de quadrants de 90º, també podrien ser push/pull levels, com es veu a http://www.saitek.com/uk/prod/tpm.html. De fet, aquesta configuració es podria aconseguir fàcilment amb potenciòmetres lliscants (slider potentiometers)(compte! han de ser lineals, no logarítmics).(es poden aconseguir a eBay, però no són especialment baratos).
A més a més, té com a mínim dos switches: gear i flaps (On a C172, the flaps move backwards and downwards, so they are fowler flaps).
- Gear (canvi de marxes?) (switch) (?)
- Flap (switch)
- Start Engine (switch de palanca). (pàg 51 de getstart.pdf)
- Release parking breaks (switch de palanca). (pàg 51 de getstart.pdf)
- Piston aircraft (rotary encoder o potenciòmetre) (pàg 51 de getstart.pdf) He d'engegar les magnetos. He de veure com es fa amb el Cessna 172
Explicació:
Can someone please explain to me how the ignition system works in a Cessna 172. I understand that there are two magnetos. Each controlling a set of sparkplugs (each piston has two spark plugs). The battery is just used to start the engine or something. If someone could please explain in detail I would greatly appreciate it! You've got it correct so far! The battery just starts the engine as well as supplying an electrical field for the alternator. The engine can continue to run on the magneto's regardless of battery or alternator failure. The engine switch just "grounds" out the P-lead from the magneto, to "kill" the engine, basically the same as a lawnmower. An engine that uses an electric ignition system, will usually have one magneto replaced with the ignition system. This provides a better spark, but still has the other magneto for backup, since the ignition system is dependent on the battery/alternator.
Gauges (rellotges)
- Fuel
- Airspeed indicator (ASI). KIAS (velocitat relativa de l'aire, knots indicated air speed). nautical miles per hour (knots). A knot is 1.85325 kilometer/hour. The airspeed indicator displays the speed of the aircraft compared to the surrounding air, not the speed compared to the ground like a car speedometer does.
- Speed (knots)
- Altímetre. Jo no puc fer un altímetre de dues agulles. Però sí que puc fer una pantalla LCD amb una de les dues lectures.
- Turn coordinator o turn indicator: indicates your angle of bank by showing a depiction of your aircraft from behind. NOTA: Whatever speed the airplane is flying, if you bank at 20◦ you always need 60 seconds to make a 180◦ turn in the Cessna 172P.. *Artificial horizon (attitude indicator) displaying pitch and bank of your plane
- Inclinometer (pàg 109). It indicates whether the rudder and ailerons are co-ordinated. During turns, you always have to operate aileron and rudder in such a way that the ball in the tube remains centered;otherwise the plane is skidding. A simple rule says: Step on the ball i.e. step onto the left rudder pedal when the ball is on the left-hand side. If you don’t have pedals or lack the experience to handle the proper ratio between aileron/rudder automatically, you can start FlightGear with the option --enable-auto-coordination.
- RPM (Propellor tachometer): It displays how fast the engine is turning in hundreds of revolutions per minute (RPM). Propellor tachometer, or RPM (rotations per minute) indicator, which displays the rotations per minute in hundreds. The green arc marks the optimum region for cruise flight.
- Brúixola (gyro compass and magnetic compass)
- vertical speed indicator indicating the rate of climbing or sinking of your plane in hundreds of feet per minute
holy six or the six-pack (pàg 109): artificial horizon (attitude indi-cator); airspeed indicator; turn indicator; inclinometer; altimeter; vertical speed indicator; propellor tachometer, or RPM; gyro compass i magnetic compass.
Four of these gauges being arranged in the from of a T are of special importance: The air speed indicator, the artificial horizon, the altimeter, and the compass should be scanned regularly during flight.
Aircraft controls (Cessna 172P)
Primary aircraft surfaces:
- http://wiki.flightgear.org/Cessna_172P
- Throttle -> Throttle Quadrant (tecles 9/3)
- Aileron -> yoke (tecles 4/6)
- Elevator -> yoke (tecles 8/2)
- Rudder -> pedals (tecles 0/Enter)
- Center aileron/elevator/rudder -> ? (tecla 5)
- Elevator trim -> ? (tecles 7/1)
Engine controls:
- Select all engines -> serà un switch de palanca (tecla ~) (és el que s'anomena el Master switch)
- decrease /increase magneto on selected engine -> rotary encoder o potenciòmetre (tecles {,}). (Press } three times)
- Fire starter on selected engine(s) -> Throttle Quadrant, deu ser un switch de palanca (tecla s). És el Ignition Start
- Lean/Enrich selected engine mixture -> Throttle Quadrant (tecles M / m)
- Decrease/Increase selected propeller RPM -> Throttle Quadrant (tecles N/n)
Secondary aircraft controls:
- Apply all brakes -> pedals (tecla b)
Apply left/right brake -> pedals (tecles ,/.)
- Toggle parking brake -> switch de palanca (tecla B)
- Push To Talk (PTT) -> cal en el Cessna? (tecla Space)
- Retract/extend flaps -> switch de palanca (tecla /)
- Toggle speed brakes -> ? (tecla Ctrl-B)
NOTA: el Cessna 172P no té landing gear retràctil. No té spoilers
Display options (n'he eliminat bastantes):
- Cycle view modes forth and back -> 2 botos si no és cíclic. Si fos cíclic seria un botó(tecles v/V)
- Increase/Decrease visibility (fog) -> botó (tecles z/Z)
- Toggle menu on/off -> no cal (tecla F10)
- Toggle fullscreen mode on/off -> no cal (tecla Shift-F10)
NOTA: la idea és poder utilitzar el Cessna 172P sense teclat i ratolí, i en mode fullscreen, doncs he de tenir un cockpit amb instruments físics que em permetin fer tota la navegació. Això no vol dir que no pugui tenir un teclat i un ratolí de suport.
General simulator controls:
- Pause simulator -> botó (tecla P)
- Clock speed up/slow down -> 2 botons (tecla t/T)
- Instant replay -> botó (tecla Ctrl-R)
- Exit program -> botó (tecla ESC)
Discussió número de pins
En funció dels sensors i gauges que tingui necessitaré més o menys pins. En tindré prou amb un Arduino Mega? Per tant, el número de pins tindrà a veure amb tots les funcionalitats que vulgui implementar, ja siguin paràmetres d'entrada o de sortida.
Trim.
creat per Joan Quintana Compte, setembre 2017