/DUBwise/trunk/misc/mkm2array/Hexa.mkm |
---|
0,0 → 1,55 |
[Info] |
Name=Hexa |
Version=1 |
[Gas] |
Motor1=64 |
Motor2=64 |
Motor3=64 |
Motor4=64 |
Motor5=64 |
Motor6=64 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Nick] |
Motor1=64 |
Motor2=64 |
Motor3=-64 |
Motor4=-64 |
Motor5=-64 |
Motor6=64 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Roll] |
Motor1=0 |
Motor2=-64 |
Motor3=-64 |
Motor4=0 |
Motor5=64 |
Motor6=64 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Yaw] |
Motor1=64 |
Motor2=-64 |
Motor3=64 |
Motor4=-64 |
Motor5=64 |
Motor6=-64 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
/DUBwise/trunk/misc/mkm2array/Hexa2.mkm |
---|
0,0 → 1,55 |
[Info] |
Name=Hexa2 |
Version=1 |
[Gas] |
Motor1=64 |
Motor2=64 |
Motor3=64 |
Motor4=64 |
Motor5=64 |
Motor6=64 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Nick] |
Motor1=64 |
Motor2=64 |
Motor3=-64 |
Motor4=-64 |
Motor5=-64 |
Motor6=64 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Roll] |
Motor1=0 |
Motor2=-64 |
Motor3=-64 |
Motor4=0 |
Motor5=64 |
Motor6=64 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Yaw] |
Motor1=64 |
Motor2=-64 |
Motor3=64 |
Motor4=-64 |
Motor5=64 |
Motor6=-64 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
/DUBwise/trunk/misc/mkm2array/Octo-U.mkm |
---|
0,0 → 1,55 |
[Info] |
Name=Octo-U |
Version=1 |
[Gas] |
Motor1=64 |
Motor2=64 |
Motor3=64 |
Motor4=64 |
Motor5=64 |
Motor6=64 |
Motor7=64 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Nick] |
Motor1=64 |
Motor2=64 |
Motor3=0 |
Motor4=-64 |
Motor5=-64 |
Motor6=-64 |
Motor7=0 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Roll] |
Motor1=0 |
Motor2=-64 |
Motor3=-64 |
Motor4=-64 |
Motor5=0 |
Motor6=64 |
Motor7=64 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Yaw] |
Motor1=64 |
Motor2=-64 |
Motor3=64 |
Motor4=-64 |
Motor5=64 |
Motor6=-64 |
Motor7=64 |
Motor8=-64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
/DUBwise/trunk/misc/mkm2array/Octo.mkm |
---|
0,0 → 1,55 |
[Info] |
Name=Octo |
Version=1 |
[Gas] |
Motor1=64 |
Motor2=64 |
Motor3=64 |
Motor4=64 |
Motor5=64 |
Motor6=64 |
Motor7=64 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Nick] |
Motor1=64 |
Motor2=64 |
Motor3=64 |
Motor4=-64 |
Motor5=-64 |
Motor6=-64 |
Motor7=-64 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Roll] |
Motor1=64 |
Motor2=-64 |
Motor3=-64 |
Motor4=-64 |
Motor5=-64 |
Motor6=64 |
Motor7=64 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Yaw] |
Motor1=64 |
Motor2=-64 |
Motor3=64 |
Motor4=-64 |
Motor5=64 |
Motor6=-64 |
Motor7=64 |
Motor8=-64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
/DUBwise/trunk/misc/mkm2array/Octo2.mkm |
---|
0,0 → 1,56 |
[Info] |
Name=Octo2 |
MotorCount=12 |
Version=1 |
[Gas] |
Motor1=64 |
Motor2=64 |
Motor3=64 |
Motor4=64 |
Motor5=64 |
Motor6=64 |
Motor7=64 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Nick] |
Motor1=64 |
Motor2=64 |
Motor3=0 |
Motor4=-64 |
Motor5=-64 |
Motor6=-64 |
Motor7=0 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Roll] |
Motor1=0 |
Motor2=-64 |
Motor3=-64 |
Motor4=-64 |
Motor5=0 |
Motor6=64 |
Motor7=64 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Yaw] |
Motor1=64 |
Motor2=-64 |
Motor3=64 |
Motor4=-64 |
Motor5=64 |
Motor6=-64 |
Motor7=64 |
Motor8=-64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
/DUBwise/trunk/misc/mkm2array/Octo3.mkm |
---|
0,0 → 1,55 |
[Info] |
Name=Octo3 |
Version=1 |
[Gas] |
Motor1=64 |
Motor2=64 |
Motor3=64 |
Motor4=64 |
Motor5=64 |
Motor6=64 |
Motor7=64 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Nick] |
Motor1=64 |
Motor2=64 |
Motor3=0 |
Motor4=0 |
Motor5=-64 |
Motor6=-64 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Roll] |
Motor1=0 |
Motor2=0 |
Motor3=-64 |
Motor4=-64 |
Motor5=0 |
Motor6=0 |
Motor7=64 |
Motor8=64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Yaw] |
Motor1=64 |
Motor2=-64 |
Motor3=64 |
Motor4=-64 |
Motor5=64 |
Motor6=-64 |
Motor7=64 |
Motor8=-64 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
/DUBwise/trunk/misc/mkm2array/Quadro-X.mkm |
---|
0,0 → 1,55 |
[Info] |
Name=Quadro-X |
Version=1 |
[Gas] |
Motor1=64 |
Motor2=64 |
Motor3=64 |
Motor4=64 |
Motor5=0 |
Motor6=0 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Nick] |
Motor1=64 |
Motor2=-64 |
Motor3=64 |
Motor4=-64 |
Motor5=0 |
Motor6=0 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Roll] |
Motor1=64 |
Motor2=-64 |
Motor3=-64 |
Motor4=64 |
Motor5=0 |
Motor6=0 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Yaw] |
Motor1=64 |
Motor2=64 |
Motor3=-64 |
Motor4=-64 |
Motor5=0 |
Motor6=0 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
/DUBwise/trunk/misc/mkm2array/Quadro.mkm |
---|
0,0 → 1,56 |
[Info] |
Name=Quadro |
MotorCount=12 |
Version=1 |
[Gas] |
Motor1=64 |
Motor2=64 |
Motor3=64 |
Motor4=64 |
Motor5=0 |
Motor6=0 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Nick] |
Motor1=64 |
Motor2=-64 |
Motor3=0 |
Motor4=0 |
Motor5=0 |
Motor6=0 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Roll] |
Motor1=0 |
Motor2=0 |
Motor3=-64 |
Motor4=64 |
Motor5=0 |
Motor6=0 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
[Yaw] |
Motor1=64 |
Motor2=64 |
Motor3=-64 |
Motor4=-64 |
Motor5=0 |
Motor6=0 |
Motor7=0 |
Motor8=0 |
Motor9=0 |
Motor10=0 |
Motor11=0 |
Motor12=0 |
/DUBwise/trunk/misc/mkm2array/mkm2array.rb |
---|
0,0 → 1,26 |
#!/usr/bin/ruby |
require 'inifile' |
mkms={} |
Dir["*.mkm"].each { |file| |
ini=IniFile.new(file) |
res="" |
(1..12).each { |engine_id| |
res+=ini["Gas"]["Motor"+engine_id.to_s].to_s+"," |
res+=ini["Nick"]["Motor"+engine_id.to_s].to_s+"," |
res+=ini["Roll"]["Motor"+engine_id.to_s].to_s+"," |
res+=ini["Yaw"]["Motor"+engine_id.to_s].to_s |
res+="," if engine_id!=12 |
} |
mkms[file.gsub(".mkm","")]=res |
} |
puts "String[] names={\"" + mkms.keys.sort.join("\",\"") + "\"};" |
puts "int[][] arrays={{" + mkms.keys.map{ |e| mkms[e] }.join("},{") + "}};" |
/DUBwise/trunk/misc/pc-komp-ref/header_files/75.h |
---|
0,0 → 1,80 |
struct mk_param_struct |
{ |
unsigned char Kanalbelegung[8]; // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3 |
unsigned char GlobalConfig; // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv |
unsigned char Hoehe_MinGas; // Wert : 0-100 |
unsigned char Luftdruck_D; // Wert : 0-250 |
unsigned char MaxHoehe; // Wert : 0-32 |
unsigned char Hoehe_P; // Wert : 0-32 |
unsigned char Hoehe_Verstaerkung; // Wert : 0-50 |
unsigned char Hoehe_ACC_Wirkung; // Wert : 0-250 |
unsigned char Stick_P; // Wert : 1-6 |
unsigned char Stick_D; // Wert : 0-64 |
unsigned char Gier_P; // Wert : 1-20 |
unsigned char Gas_Min; // Wert : 0-32 |
unsigned char Gas_Max; // Wert : 33-250 |
unsigned char GyroAccFaktor; // Wert : 1-64 |
unsigned char KompassWirkung; // Wert : 0-32 |
unsigned char Gyro_P; // Wert : 10-250 |
unsigned char Gyro_I; // Wert : 0-250 |
unsigned char Gyro_D; // Wert : 0-250 |
unsigned char UnterspannungsWarnung; // Wert : 0-250 |
unsigned char NotGas; // Wert : 0-250 //Gaswert bei Empängsverlust |
unsigned char NotGasZeit; // Wert : 0-250 // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen |
unsigned char UfoAusrichtung; // X oder + Formation |
unsigned char I_Faktor; // Wert : 0-250 |
unsigned char UserParam1; // Wert : 0-250 |
unsigned char UserParam2; // Wert : 0-250 |
unsigned char UserParam3; // Wert : 0-250 |
unsigned char UserParam4; // Wert : 0-250 |
unsigned char ServoNickControl; // Wert : 0-250 // Stellung des Servos |
unsigned char ServoNickComp; // Wert : 0-250 // Einfluss Gyro/Servo |
unsigned char ServoNickMin; // Wert : 0-250 // Anschlag |
unsigned char ServoNickMax; // Wert : 0-250 // Anschlag |
unsigned char ServoNickRefresh; // |
unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
unsigned char LoopHysterese; // Wert: 0-250 Hysterese für Stickausschlag |
unsigned char AchsKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung) |
unsigned char AchsKopplung2; // Wert: 0-250 Faktor, mit dem Nick und Roll verkoppelt werden |
unsigned char CouplingYawCorrection; // Wert: 0-250 Faktor, mit dem Nick und Roll verkoppelt werden |
unsigned char WinkelUmschlagNick; // Wert: 0-250 180°-Punkt |
unsigned char WinkelUmschlagRoll; // Wert: 0-250 180°-Punkt |
unsigned char GyroAccAbgleich; // 1/k (Koppel_ACC_Wirkung) |
unsigned char Driftkomp; |
unsigned char DynamicStability; |
unsigned char UserParam5; // Wert : 0-250 |
unsigned char UserParam6; // Wert : 0-250 |
unsigned char UserParam7; // Wert : 0-250 |
unsigned char UserParam8; // Wert : 0-250 |
//---Output --------------------------------------------- |
unsigned char J16Bitmask; // for the J16 Output |
unsigned char J16Timing; // for the J16 Output |
unsigned char J17Bitmask; // for the J17 Output |
unsigned char J17Timing; // for the J17 Output |
//---NaviCtrl--------------------------------------------- |
unsigned char NaviGpsModeControl; // Parameters for the Naviboard |
unsigned char NaviGpsGain; |
unsigned char NaviGpsP; |
unsigned char NaviGpsI; |
unsigned char NaviGpsD; |
unsigned char NaviGpsPLimit; |
unsigned char NaviGpsILimit; |
unsigned char NaviGpsDLimit; |
unsigned char NaviGpsACC; |
unsigned char NaviGpsMinSat; |
unsigned char NaviStickThreshold; |
unsigned char NaviWindCorrection; |
unsigned char NaviSpeedCompensation; |
unsigned char NaviOperatingRadius; |
unsigned char NaviAngleLimitation; |
unsigned char NaviPH_LoginTime; |
//---Ext.Ctrl--------------------------------------------- |
unsigned char ExternalControl; // for serial Control |
//------------------------------------------------ |
unsigned char BitConfig; // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
unsigned char ServoNickCompInvert; // Wert : 0-250 0 oder 1 // WICHTIG!!! am Ende lassen |
unsigned char Reserved[4]; |
char Name[12]; |
}; |