26 Mayıs 2021 Çarşamba

Electro-optical Systems - Elektro optik Sistemler

Giriş
Açıklaması şöyle
Electro-optical, or EO, systems are systems that utilise a combination of electronics and optics to generate, detect, and/or measure radiation in the optical spectrum. 
Kameralar
EO sistemlerde farklı tiplerde kameralar bulunur. Örneğin Day TV, Thermal, Night Vision kameralar gibi.

Kameraların focus vs. gibi özellikleri ayarlanabilir.

Electro-optical Targeting Systems
EO sistemdeki lazer işaretleyici ile bir hedefin işaretlenmesidir.

ASELSAN Denizgözü, Kuzgun, Kırlangıç gibi ürünler denizde kullanılan EO sistemler

25 Mayıs 2021 Salı

Audio Kavramları

Audio Format
Açıklaması şöyle
An audio format is basically defined by three different things: sample rate, bit depth and compression type. The compression type can be either lossless (WAV, PCM, FLAC, ALAC) or "lossy" (AAC, MP3, OGG, MQA, etc). Lossy compression works by shaping the quantization noise so it's masked by the remaining content and inaudible. Lossy formats are characterized by their bit-rate: the higher the bit-rate, the less quantization is done.
AAC Format
Açıklaması şöyle
aac files are just a "raw" audio stream, they do not support MP3-style tag embedding because AAC is meant to be used with a separate "wrapper" container format to carry those tags instead. Typically MP4 container files (.mp4 or .m4a) are used for AAC audio.
Örnek
m4a olarak yeniden paketlemek için şöyle yaparız
ffmpeg -i Foo.aac -c:a copy Foo.m4a

24 Mayıs 2021 Pazartesi

Apache Airflow - Workflow Engine

Giriş
Açıklaması şöyle
Apache Airflow is an open-source workflow engine created by Airbnb. It allows users to create their workflow definitions using Python code. The workflow can be executed based on a specified time interval (Cron based) or by an external (or manual) trigger (via the cli or web UI for example). Airflow also provides a UI in which you can monitor the progress of an execution
Açıklaması şöyle
Apache Airflow is an orchestration tool that helps you to programmatically create and handle task execution into a single workflow. It then handles monitoring its progress and takes care of scheduling future workflows depending on the schedule defined.

Workflows are created using Python scripts, which define how your tasks are executed. They are usually defined as Directed Acyclic Graphs (DAG).

The workflow execution is based on the schedule you provide, which is as per Unix cron schedule format. Once you create Python scripts and place them in the dags folder of Airflow, Airflow will automatically create the workflow for you.
YAML
Normalde Apache Airflow için Python kodu yazmak gerekir ama daha karmaşık şeyler için şablon YAML dosyalarını okuyan Python kodları kullanılıyor. Açıklaması şöyle. Hatta Kestra bu işi daha kolay hale getiriyor
Engineers who treat Apache Airflow deployments seriously often build a config system on top of it, e.g., in the form of templated YAML files. This way, the end users don’t need to write a boilerplate configuration in Python DAGs
Örnek
Burada ki örnekte Apache Airflow, Airbyte sunucusundan veriyi okuyup, Apache Spark'a gönderiyor

10 Mayıs 2021 Pazartesi

National Maritime Electronics Association - NMEA ECDIS Mesajları

Giriş
Electronic Chart Display Information System (ECDIS) haritaları gösterir. Açıklaması şöyle
ECDIS is a development in the navigational chart system used in naval vessels and ships. With the use of the electronic navigation equipment, it has become easier for a ship’s navigating crew to pinpoint locations, and attaining directions are easier than before.
Electronic Navigational Charts
ECDIS cihazında Electronic Navigational Charts yani ENC gösterilir. Harita olarak S-57 veya S-100 haritalar kullanılır

ECDIS Cihazı
Bu cihazın NMEA çıktısı yoktur ancak bazı mesajlarla beslemek gerekir. Bunlar şöyle
Echo Sounder'dan
DBT - Depth below transducer
DPT - Depth of Water

GPS'ten
DTM - Datum Reference
GGA - Global Positioning System Fix Data - Konum
GLL - Geographic Position – Latitude/Longitude
VTG -  Vector track an Speed over the Ground - Hız
ZDA - Time & Date - UTC, day, month, year and local time zone - Saat ve Takvim

Meteorolojik Alıcından
MWM - Wind Speed And Angle - Geminin Kendisine Göre, Bağıl (Relative) Rüzgar Bilgisi

GyroCompass'tan
HDT - Heading True
ROT - Rate Of Truen

SpeedLog Alıcısından
VBW - Dual Ground/Water Speed - Ground ve Suya Göre Hız
VHW - Water speed and heading - Suya Göre Bağıl Hız

AIS Alıcısından
VDM - Received Data From Other Vessels
VDO - Wwn Vessel's Information

National Maritime Electronics Association - NMEA Echo Sounder (İskandil) Mesajları

Giriş
Açıklaması şöyle
There are many modern ship navigation tools present on ship and echo sounder is one of the instruments which has been in the play from almost 100 years now. It is used to measure the depth of the water below the ship’s bottom using sound waves which work on the principle of transmission of sound waves and an audio pulse which will bounce off a reflecting layer, returning as an echo to the source.
Bu cihazın panelinde göstermek için şu mesajlar kullanılabilir.
GGA - Global Positioning System Fix Data, yani konum
VTG - Track made good and Ground speed, yani hız
ZDA - Time & Date - UTC, day, month, year and local time zone, yani takvim ve saat

Bu mesajları anlamak için aşağıdaki şekle bakmak lazım

1. DBS - Depth Below Surface - Kullanmayın
Bu mesajın yeni tasarımlarda kullanılmaması öneriliyor. DTP kullanılmalı.

Su derinliği. Şekilde 1 numara. feet, meters, Fathoms cinsinden belirtilir

2. DBT - Depth below transducer
Transducer''ın altındaki suyun derinliği. Şekilde 2 numara. Açıklaması şöyle
In real-world sensors, sometimes not all three conversions are reported. So you might see something like $SDDBT,,f,22.5,M,,F*cs

3. DBK - Depth Below Keel - Kullanmayın
Bu mesajın yeni tasarımlarda kullanılmaması öneriliyor. DTP kullanılmalı.

Keel yani omurganın altındaki su derinliği. Şekilde 3 numara. feet, meters, Fathoms cinsinden belirtilir

4. DPT - Depth of Water
Transducer 'a göre suyun derinliği. 
- Offset alanı artı bir değerse, su yüzeyinden transducer 'a kadar olan mesafeyi verir. Artı değer eklenirse, gerçek su derinliği bulunur.
- Eksi bir  değerse transducer ve keel arasındaki mesafedir.  Eksi değer eklenirse aslında keel 'ın altındaki su derinliği bulunur. Açıklaması şöyle
Offset from transducer, meters positive means distance from transducer to water line negative means distance from transducer to keel

National Maritime Electronics Association - NMEA Magnetic Compass Mesajları

Giriş
Bu cihaz tek başına çalıştığı için başka bir cihazla beslemek gerekmez. Açıklaması şöyle
The magnetic compass work in conjunction with the magnetic field of the earth and is the essential means of the direction indicating device. It is used to get a planned course for the voyage. This ship navigation equipment is usually fitted at the centre line of the ship on the monkey island.  A transmitting magnetic type compass is fitted so that the output can be displayed in the bridge panel.
1. HDG - Heading, Deviation & Variation
Eğer elimizde Gyro varsa, bu cihaz daha hassas olduğu için Gyro'dan gelen HDT mesajı tercih edilebilir

Cihazın okuduğu değer "Magnetic sensor heading, degrees" alanında gelir. 
- Deviation alanı kullanılarak Magnetic Heading bulunur
- Variation alanı kullanılarak True Heading bulunur. Varition genelde [0-45] derece arasında bir değerdir.

National Maritime Electronics Association - NMEA GyroCompass Mesajları

Giriş
GyroCompass hem pusula hem de gyro bileşenlerinden oluşur.

1. Gyro Olarak

- Yaw, Pitch, Roll  değerlerini verir. Bu değerler genellikle radyan cinsindendir.

- YawRate, PitchRate, RollRate  değerlerini verir. Bu değerler genellikle radyan/second cinsindendir.

- Bazı gyro cihazları Heave yani Y ekseninde batıp çıkmayı da ölçebilir. Heave eğer hava aracı terminolojisinde düşünüyorsak, biraz Altitude kavramına benzer.

2.  Compass Olarak
Yani Gerçek Kuzey'i (True North) gösterir. Açıklaması şöyle
It is used for finding the right direction. Unlike magnetic compass, gyro compass is not hampered by an external magnetic field.  It is used to find the correct North Position, which is also the earth’s rotational axis to provide a stable directional source. Its repeater system must be present in the steering platform for emergency steering.
3 tane bileşenden oluşur. Açıklaması şöyle
Master Compass: Discovers and maintains the true north reading with the help of gyroscope.
Repeater Compasses: Receive and indicate the true direction transmitted electrically from the Master Compass.
Course Recorder: Makes a continuous record of the maneuvering on a moving strip of paper.
GyroCompass sistemlerini GPS gibi diğer sistemlerle destekleyerek hatalı ölçüm azaltılabilir. Açıklaması şöyle
Modern ships use a GPS system or other navigational aids feed data to the Gyrocompass for correcting the error.
HDT - Heading True
Gerçek kuzeyi bildirmek için kullanılır. Gerçek kuzeye göre açıyı verir

3. Diğer
ROT - Rate of Turn
Açıklaması şöyle
This navigational tool indicates how fast the ship is turning at a steady rate (useful during pilotage and manoeuvring), normally shown as a number of degrees turned. The rate a ship is turning is measured in degrees per minute. This essential tool assists a coxswain in steering a course safely.
Açıklaması şöyle. Burada TalkerId olarak GP yani GPS gösteriliyor.
An example of the ROT string is:

$GPROT,35.6,A*4E

ROT message fields
Field Meaning
0 Message ID $GPROT
1 Rate of turn, degrees/minutes, “–” indicates bow turns to port
2 A: Valid data
                V: Invalid data

3 The checksum data, always begins with *