Vu ce matin sur le bon coin:
http://www.leboncoin.fr/informatique/81 ... tm?ca=20_s
/*
Download ArdSimUSB Library on the site.
by Vlad Sychev 2015
http://arduino.svglobe.com
*/
#include <ArdSimUSB.h>
#include <Servo.h>
#define BOARD_TYPE UNO, 1
#define Gear1 5, 1
#define Gear2 6, 2
#define Gear3 7, 3
#define GearTransit 8, 4
//---------------------
void setup() {
ArdSimStart;
}
//--------------------------
void loop() {
ArdSimScan;
LEDout(Gear1);
LEDout(Gear2);
LEDout(Gear3);
LEDout(GearTransit);
}
//Librairies
#include <ArdSimUSB.h>
#include <Servo.h>
//Type de carte
#define BOARD_TYPE UNO, 1
//LEDS
#define Master_Caution 2, 8 //Nécessaire pour déclarer les pins des Leds et leur numéro de " Dataref "
#define Generator_Off 3, 10
#define Low_Fuel 4, 3
#define Pitot_Heat 5, 4
#define Autopilot 6, 5
#define Master_Warning 7, 9
#define Engine_Fire 8, 7
#define Low_Batt 9, 2
#define Fuel_Pump 10, 6
#define Park_Brakes 11, 1
void setup() {
ArdSimStart; //Pour initialiser ARDSIM
}
void loop() {
ArdSimScan; //Nécessaire au fonctionnement de la liason Arduino-Plugin-Xplane
LEDout( Master_Caution ); // C'est l'instruction qui permet au plugin "d'allumer" les Leds quand il faut !
LEDout( Generator_Off );
LEDout( Low_Fuel );
LEDout( Pitot_Heat );
LEDout( Autopilot );
LEDout( Master_Warning );
LEDout( Engine_Fire );
LEDout( Low_Batt );
LEDout( Fuel_Pump );
LEDout( Park_Brakes );
}
/*
.cfg config :
1 1 sim/cockpit2/controls/parking_brake_ratio
2 0 sim/cockpit2/annunciators/low_voltage
3 0 sim/cockpit2/annunciators/fuel_quantity
4 0 sim/cockpit2/annunciators/pitot_heat
5 0 sim/cockpit2/autopilot/autopilot_on
6 0 sim/operation/failures/rel_fuepmp0
7 0 sim/cockpit2/annunciators/engine_fires 1
8 0 sim/cockpit2/annunciators/master_caution
9 0 sim/cockpit2/annunciators/master_warning
10 0 sim/cockpit2/annunciators/generator_off
A nommé "out_1.cfg" et a mettre dans le dossier du plugin Ardsim.
*/
nonolight a écrit:Il y a un fuselage de DR400 à vendre pour en faire un Simu :
http://www.rsafrance.com/PA/index.php?p=detail&id=13987
A+
Nono
cgoa-benoit a écrit:Yes....super on pourra faire une patrouille de simulation DR 400 !
Retourner vers Aviation générale
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 3 invités