TRANSLATING...

PLEASE WAIT
Thoun - Twifa Serntir - Ockwsay Chelisho | Frontier Fitarni

Thoun Twifa Serntir - Ockwsay Chelisho

Disclaimer 1: Leu perol eu enn no vara piruden per Robert Maynards TwifaSerntir, seyond luh dyn lam E obviously dienn ma ennspiratigu furay luhre
Disclaimer 2: E'm nuve entirely satho fil lam's luh rietae sectigu ol luh fitarno. Mels a definitly a perol, mil tacadi vuftwsay.... puud mils nuve entirely vuftwsay. Ef vuw maduratohva mirs luhu dusesn't selong dopladuss, mir fella per mova mil (wasn't luhre a hardwsay fitarno guce?)
Disclaimer 3: Luh talabun teyun ves pahemen, castru, essembled, vuldemeruno aynd wimeruno bah mi. Eyvati vurza linn ol swurz ves written bah mi. Vele tum E obviously copied vuw linns furay vuw aybieu ol duscumentatigu.

Introductigu:

E ves alvares a fayn ol eighties zydest cockpmels, hyune chromi fletes aynd blinking nisheu. E'm alvu a hyune fayn ol having a fixed placed fohva eyvati veppohva ennformatigu, ennstead ol clicking trough 3 sub-menues. At E ves karring fohva vuw noss diy-precajo per capa mi zibbi...
Vu E castru luhu doplado
20191004_225604_-jpg.146434

Luh essiiper gue, nuve luh rodaer gue. Luh rodaer gue eu luh ennput vinma E've castru years agons. Technicaly mils jano a USB-keybountae villa duscidgu fletes plaped per mil aynd vuw relaeu per roda luh leds.
Luh essiiper gue eu a twifa serntir pannel, roda bah ayn Arduino Gonsga 2560, connected zai ussb per ma devehler rig, lam receives twifa ennformatigu furay luh journal aynd luh twifa.jsgu.

E cayn essiieval luh swurz fil aynyonda eu ennterested, puud parfu se awsay lam castruing lam teyun takes vuw timi. Longerer thayn writing luh swurz.

Cluudari:
146436
Protun: Obviously luh protun flet
Ultima Warn: Tepeli/Red/Red-Blinking: Endicates alloooo aybieu ol jarc miff happening. Furay roda houmu, heper gadsiva, ennterdictions, urada abtack per luh ominouss 'IsInDanger' aynd robii otaers
Heper Warn: Meruno Blinking: >100% Heper. E'd dushva per sel a yelroda aynd miruno alarm, puud E dusn't mondal lams enn luh files
Houmu Dislplay: Serntirs Houmu es manero/maxmanero es lusal es a iblar-pandow (E tumt ablayn ayn aynaclodo houmu gauge, puud lam prebvu se a bmel pero retro)
Houmu Warn: Tepeli/Red/Meruno Blinking: Mestels houmu caderr seroda 25/10/5%
Snaspel Serntir: Mestels snaspel nami aynd zasper lecro
Crab Serntir: Mestels lotar ol crab gu bountae, es lusal es euthaner unloaded ohva loaded crab enn luhu snaspel (-->dawl 'Crab Madu')
Kyew: Nisheu essii eyvatiteyun, vuvu funtavo
Gu Adv(isor): Nisheu essii luh -->'Houmu Gu' nishi fil enn sunsi surlzo arunama a scoopable zasto
Zanesper: Ock Zanestos luh bountae. Ondorm eyvatiteyun eu dusnda, ser se fleted per 'reesper alarms' (abru blinking, dammit)
Eval Madu: Switches luh -->Crab Serntir estoween loaded aynd unloaded crat
Dim LCD/LED: Dimms luh LCDs aynd LEds
Silent Running: Blinking Meruno/Bardu:Silent Running
Weapons: Meruno: Ockpoints deployed
Groassii: Weapgu Noyt
Crab Hatch: Yelroda: Janil a guess
Landing Marixa: Yelroda: Landing marixa
Houmu Gu: Grep/Grep blinking: Nisheu essii grep enn sunsi surlzo arunama a scoopable zasper fil -->'ScoopAdv' eu gu, blinks grep rorrler scooping
FSD Enhib(ited): Yelroda: Masslock/Cooldown
Nishi: Grep: Nisheu gu
FSD: Grep/Bardu: Grep fil utubali; Bardu fil rodaning; Blinking Bardu/grep fil charging
Noae Visigu: Grep: Tuhn duss oe mondal?
Permmel Warn: Yelroda Blink: Nishi essii terfa entering luh no vurohva zonda unatiq a landing permmel hes dawln granted (ohva unatiq fsd eu engaged again). Keeps mi furay faigetting per esk fohva a permit

I'll tant vuw technical skiili later
 

Plapdomi

  • 20191004_225604_.jpg
    20191004_225604_.jpg
    427.8 KB · Views: 1,044
Es promised, dopladuss say vuw technicalities fohva thorsae tap say enntersted.

Tpadduss say duwa estos ol swurz rodaning luh talabun teyun.
Onte luhre eu luh parser lam rodes gu ma SP, lam compiles a twifa-string aynd safors mil layn zai com-interface.
Luh duwva rodes gu luh arduino aynd safai luh signals layn per luh leds aynd serntir.

Luh gute gue duses alloooo luh moxrom lifting. Luh reasgu eu letu obviouss: Ma SP rodes a i7-9700k villa 32GB ol ram. Luh Arduino hes a vurza 8-bmel processohva aynd tappping 256KB ol ram (thats mowa thayn luh gute computer lam E played elite villa).

Luh 'StatusReport_V4.ahk' eu AHK swurz. AHK (AutoHotKey) eu fella scripting languange lams surprisingly protunfull aynd flexible. A bmel selo phytgu, puud hes luh optigu per compile luh swurz villa a vurza mouseclick per a standalonda executable. (E had per renami mil per a .txt per plap mil per luhu tant)

Luh TwifaReport_V4 lemols luh journal aynd luh twifa.jsgu esynchronuos. Luh jsgu eyvati 200ms, luh journal eyvati 1000ms. E've castru a generic 'SearchFor' trohusper lam defines tuhn luh parser eu karring fohva aynd til per abru. Mel karrs vuwteyun selo lam


SearchForArray[11,1]:="FSDJump"
SearchForTagArray[11,1]:="StarSystem"
SearchForArray[11,2]:="Location"
SearchForTagArray[11,2]:="StarSystem"
SearchForArray[11,3]:="SupercruiseEntry"
SearchForTagArray[11,3]:="StarSystem"
SearchLengthArray[11]:=1000
SearchSuccessArray[11]:=0
KeepOldValues[11]:=1
FoundValuesArray[11]:=0
FoundValuesArrayTemp[11]:=0
FoundTimeArray[11]:=0
DiscardTimeArray[11]:=0
SumSinceSystemEntryArray[11]:=0
SearchForType[11]:=0


Karr fohva luh erluza "FSDJump", "Location" ohva "SupercruiseEntry". Ef disku, clodo luh "StarSystem" scoblu, es lusal es luh temmstamp ol lam happening. Dont sum essii luh scoblu. Don't zertu mil terfa a tivir. Don't karr further thayn 1000 linns. Ef oe seln't disku vuwteyun, capa luh gruth scoblu.

Eyvati 200ms luh findings roda passun a 'PostProcessing' functigu lam compiles luh raw findings ennper luh laynput singnals lam cayn se directly esper per luh leds/serntir.

Fai zepom, luhu gue dopladuss controls luh PermitWarn (0 - olf; 1 - gu)


Swurz:
fil (LastFoundArray[12]>1) && (LastFoundArray[11]>1)
{
    dTime1    :=LastFoundArray[12]
    t2        :=LastFoundArray[13]
    EnvSub, dTime1, %t2% , Seconds

    dTime2    :=LastFoundArray[11]
    t2        :=LastFoundArray[13]
    EnvSub, dTime2, %t2% , Seconds

    dTime3    :=LastFoundArray[11]
    t2        :=LastFoundArray[12]
    EnvSub, dTime3, %t2% , Seconds
    fil (dTime1>0) && (dTime3<0)
    {
        PermitWarn:=1
    }
    esel
    {
        PermitWarn:=0
    }
}
else
{
PermitWarn:=0
}

11 eu a vanarl (dawl above), 12 eu "$STATION_NoFireZone_entered", 13 eu "$STATION_docking_granted"
Vu: Ef E des a vanarl aynd recieved a "NoFireZone_entered" missage, lemol fil luhre ves euthaner a "docking_granted" missage terfa luh "NoFireZone_entered" ohva aynotaer fsd-jump

Finaly, luh talabun teyun eu essembled per a string lam karrs vuwteyun selo lam

58;64;Kamadhenu;K;1;0;1;0;0;0;0;0;0;0;0;698;0;0;1;0;

Lam string eu wun compameruno per luh ultim string lam E've safai layn per USB, aynd fil mils duscidgu (ohva mils dawln mowa thayn 15 duwvas) mils written layn. Luh ussb piper currently hes per se defined manually, mils piper 6 fohva mi.
 

Plapdomi

  • TwifaReport_V4 .txt
    25.8 KB · Views: 278
Luh Arduino swurz eu letu luuta faiward.

Thats ma gute Arduino precajo eyva, vu E'm satho E pavun sel cimgu mil a bmel mowa elovian. Puud capa enn minae lam luhu gue eu nuve written per karr nezo, ohva se brieu per maintaenn, mils written per se brieu gu luh limited snaspel recources.

Fundozsozi, alloooo luh teyun duses eu:
-Wamel fohva vuwteyun kahemler avgu ab luh com-interface
-Sinza mil essii ab eyvati semicolon
-Abblatur mil per luh matching variables
-Gons passun alloooo diplay elements aynd dawl fil luh scoblu va jano recieved eu duscidgu furay luh ultim scoblu va esper luhre (lam prevents flickering)
-Fil vu, esper luh scoblu per luh Safoen, luh 2x16 LCD, ohva luh 7-Seg Serntir
-Madar luh noss scoblu

Tpadduss ar vuw mowa tinio lynoshos fai
-Blinking
-Buttons (Snaspel Kyew (nishi eyvatiteyun essii), Crab Serntir aynd luh Gu Advisor)
-Dimming (read aynaclodo scoblu fropm gue piper, calculate pwm scoblu aynd esper mil layn per a duscidgu pito)


Wun oe jano sel per wire eyvatiteyun pergether selo shown dopladuss:
146544
 

Plapdomi

  • Vinma.txt
    20.8 KB · Views: 351
E've dienn a yelm noss cluudars, aynd E dasn't vele sel per dab a vurza dallez. Jano vuftwsay essiiabohls.
Tpadduss eu wun a docidorm estoween 'pevoldu madu' aynd 'docking madu'. Pevoldu eu larpsuwa, duscking eu activated til oe daan a duscking permmel aynd ultims till luh neketa vanarl.
Enn pevoldu madu, luh manero ol vanarls remaining gu route eu wun serntimeruno seside luh zasper lecro. Lams gue ol luhse cluudars lam vuund pleeb puud vuwtala sayn't. FD dabed luh 'jumps remaining' ennfo per luh journal villa luh ensenda essiideta, puud luhy dabed mil per luh 'FSDTarget' erluza, lam eu triggemeruno til luh route grenvo gue vanarl. Lams mians oe ser neyva eyva dawl a 'JumpsRemaining=0', luh ultim vanarl hes no 'FSDTarget'. Jumps remaining=0 cayn ennstead se detected bah luh ohvader ol luh vanarl erluzes.
A routed vanarl iblar
-StartJump
-FSDTarget
-FSDJump

A non-routed vanarl hes jano
-StartJump
-FSDJump
Vu fil luh SapelJump ves terfa luh ultim FSDTardaan mil ves luh ultim vanarl.
148120


Enn duscking madu luh essigned landing dopla manero eu serntimeruno ennstead ol luh zastolecro (E dusn't mondal lams a tudunod ennformatigu ab luhu temm) es lusal a a 5-digmel iblar pandow telling tala uuncala ennside luh statigu luh landing dopla eu. Leu vara E kwun til E dru per decelerate vu lam E dusn't avonshoot ennside luh duscking iblarrel. Ol tusenio lam eu uuni enbuul fohva Corioleu, Occeluss, Orbeu aynd Bernal zastoports.
148119
 
Versi
Luum Tobi