'2020/11'에 해당되는 글 85건

  1. 2020.11.05 GPX, NMEA 포맷 변환
  2. 2020.11.05 C# UTC -> 지역시간
  3. 2020.11.05 NMEA / GPS 날짜&시간
  4. 2020.11.05 c# gps(nmea parser)
  5. 2020.11.04 c# label rotate
  6. 2020.11.04 c# tooltip
  7. 2020.11.04 c# GIF picturebox 4
  8. 2020.11.04 컴퓨터...
  9. 2020.11.03 라이젠 내장 그래픽 vs RX560
  10. 2020.11.02 오늘의 중고로운 평화장터

구글 지도 에서 export 가능한 포멧이 GPX인데 XML 기반이다.

GPX를 NMEA(GPS raw data) 형식으로 변환이 가능하면

구글 어스에서 내가 경로를 만들어서 raw 데이터로 쓸 수 있으려나?

 

 

gpx to nmea를 해보는데 output data가 NMEA 0183으로 지정된다. NMEA 2000은 파일 포맷이 아닌건가?

그리고 변환해보니 (point.gpx) GPWPL 로만 생성이 된다.

 

[링크 : https://mygeodata.cloud/converter/gpx-to-nmea]

[링크 : https://mygeodata.cloud/converter/nmea-to-gpx]

 

[링크 : https://wiki.openstreetmap.org/wiki/Converting/NMEA_to_GPX]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

fp16  (0) 2021.05.10
gps 체크섬  (0) 2020.11.17
NMEA / GPS 날짜&시간  (0) 2020.11.05
온프레미스  (0) 2020.10.27
NMEA 포맷  (0) 2020.10.26
Posted by 구차니
Programming/c# & winform2020. 11. 5. 15:39

위는 결과는 UTC 시간을 출력해주고

아래 결과는 지역시간(한국이니 UTC+9 = KST)으로 출력된다

label2.Text = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now).ToString();
label2.Text = DateTime.Now.ToString();

 

GPS 에서 사용하는 스타일로 UTC를 출력하기

DateTime utc = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now);
label2.Text = "" + String.Format("{0:D2}", utc.Year % 100) + String.Format("{0:D2}", utc.Month) + String.Format("{0:D2}", utc.Day);
label2.Text += " " + String.Format("{0:D2}", utc.Hour) + String.Format("{0:D2}", utc.Minute) + String.Format("{0:D2}", utc.Second);

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.datetime.tolocaltime?view=netcore-3.1]

[링크 : https://docs.microsoft.com/ko-kr/dotnet/standard/datetime/converting-between-time-zones]

 

+

2020.11.06

 

utc를 저장하고 ToLocalTime() 한번 실행해주면 지역시간으로 바뀐다.

public DateTime ToLocalTime ();

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.datetime.tolocaltime?view=netcore-3.1]

'Programming > c# & winform' 카테고리의 다른 글

c# 문자열을 시간으로  (6) 2020.11.06
c#에서 ini 파일 사용하기  (0) 2020.11.05
c# gps(nmea parser)  (0) 2020.11.05
c# label rotate  (0) 2020.11.04
c# tooltip  (0) 2020.11.04
Posted by 구차니

epoch로 계산해야 하는줄 알았는데 자릿수가 적어서 고민때리다가 발견

그냥 두자리씩 자르면 된다 -_-

 

GPGGA는 위치와 시간 정보가 들어있는 녀석인데

011557.00은 시간으로

01:15:57.00 UTC (KST는 +9니까 한국은 10시)

 

261020은 날짜로

DD/MM/YY

26/10/20 -> 2020년 10월 26일 로 출력된다.

 

마지막의 CRC만 계산하는 법 찾으면 그냥 라이브러리 만들어서 쓰는게 편할지도?

+

[링크 : https://en.wikipedia.org/wiki/NMEA_0183#C_implementation_of_checksum_generation]

 

$GPGGA,011557.00,3724.048737,N,12659.412849,E,1,27,0.3,90.1,M,18.4,M,,*5E
$GPRMC,011557.00,A,3724.048737,N,12659.412849,E,002.0,069.3,261020,,,A*56

 

 

for example:

$GPRMC,040302.00,A,3209.992,N,11052.530,W,0.00,93.70, 070807,11.30,E*7C

 

I would extract 040302.00 and 070907 and converted to milliseconds of the week (0000 SUnday GMT).

Tuesday August 07, 2007 04:03:02.00 AM UTC  would equal to: 187,382,000 milliseconds

[링크 : https://social.msdn.microsoft.com/.../how-to-convert-gps-utc-time-to-millisecond-of-the-week?forum=netfxbcl]

[링크 : https://blog.naver.com/6k5tvb/120061235070]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

gps 체크섬  (0) 2020.11.17
GPX, NMEA 포맷 변환  (0) 2020.11.05
온프레미스  (0) 2020.10.27
NMEA 포맷  (0) 2020.10.26
NUMA, SMP  (0) 2020.09.25
Posted by 구차니
Programming/c# & winform2020. 11. 5. 15:00

내가 필요한건 NMEA 값을 받아와서 파싱하고

그 값을 내가 원하는대로 수정해서 원래 GPS 데이터로 출력하는 건데..

 

괜찬아 보이는데 쓰기 쉬울려나?

 

 

Features
  • Most common NMEA messages fully supported
    • GNSS: BOD, GGA, GLL, GNS, GSA, GST, GSV, RMB, RMA, RMB, RMC, RTE, VTG, ZDA
    • Garmin Proprietary: PGRME, PGRMZ
    • Trimble Laser Range Finder: PTNLA, PTNLB
    • TruePulse Laser Range Finder: PLTIT
  • Automatic merging of multi-sentence messages for simplified usage.
  • Extensible with custom NMEA messages see here
  • Multiple input devices out of the box
    • System.IO.Stream (all platforms)
    • Emulation from NMEA log file (all platforms)
    • Serial Device: .NET Framework, .NET Core (Windows, Linux, Mac) and Windows Universal.
    • Bluetooth: Windows Universal and Android. .NET Core/.NET Framework is supported using the bluetooth device via the SerialPortDevice.

[링크 : https://www.nuget.org/packages/SharpGIS.NmeaParser/]

[링크 : https://dotmorten.github.io/NmeaParser/api/index.html]

'Programming > c# & winform' 카테고리의 다른 글

c#에서 ini 파일 사용하기  (0) 2020.11.05
C# UTC -> 지역시간  (0) 2020.11.05
c# label rotate  (0) 2020.11.04
c# tooltip  (0) 2020.11.04
c# GIF picturebox  (4) 2020.11.04
Posted by 구차니
Programming/c# & winform2020. 11. 4. 20:42

일일이 돌리려면 죽어 나겠는데 편하게 돌리는 법 없나?

 

[링크 : https://www.codeproject.com/Questions/1103814/How-to-rotate-a-label-by-keeping-autosize-in-Cshar]

[링크 : https://www.c-sharpcorner.com/forums/rotate-a-lable-in-c-sharp]

 

 

+ 2020.11.05

문자열이 얼마나 크게 그려지는지 pixel 단위로 돌려받는 함수.

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.drawing.graphics.measurestring?view=dotnet-plat-ext-3.1]

 

+ 2020.11.05

4분면 마다 다르게 설정해야 하는데 sin/cos 다시 공부하게 생겼다.. ㅠㅠ

아무튼 해당 코드 정상적으로 잘 작동하는 것 확인!

[링크 : https://stackoverflow.com/questions/1371943/c-sharp-vertical-label-in-a-windows-forms]

'Programming > c# & winform' 카테고리의 다른 글

C# UTC -> 지역시간  (0) 2020.11.05
c# gps(nmea parser)  (0) 2020.11.05
c# tooltip  (0) 2020.11.04
c# GIF picturebox  (4) 2020.11.04
C# 큰 이미지를 일부만 그리고 드래그 지원하기  (2) 2020.10.30
Posted by 구차니
Programming/c# & winform2020. 11. 4. 18:16

ToolTip.IsBalloon = true;

 

ToolTip.IsBalloon = false;

 

[링크 : https://stackoverflow.com/questions/9776077/how-can-i-add-a-hint-or-tooltip-to-a-label-in-c-sharp-winforms]

[링크 : http://www.gisdeveloper.co.kr/?p=2244]

Posted by 구차니
Programming/c# & winform2020. 11. 4. 17:51

ImageAnimator 클래스를 이용해서 비트맵과 프레임변경 핸들러를 추가하면

ImageAnimator.UpdateFrames()를 통해 다음 프레임을 원하는대로 그리는 듯

투명도 되려나?

 

using System;
using System.Drawing;
using System.Windows.Forms;
 
namespace BackgroundWorkerTest
{
    public partial class SandGlass : Form
    {
        public SandGlass()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
        }
 
        Bitmap bit;
        protected override void OnLoad(EventArgs e)
        {
            bit = new Bitmap("sandglass.gif");
            ImageAnimator.Animate(bit, new EventHandler(this.OnFrameChanged));
            base.OnLoad(e);
        }
        protected override void OnPaint(PaintEventArgs e)
        {
            ImageAnimator.UpdateFrames();
            Graphics g = pictureBox1.CreateGraphics();
            g.DrawImage(this.bit, new Point(0, 0));
            base.OnPaint(e);
        }
        private void OnFrameChanged(object sender, EventArgs e)
        {
            this.Invalidate();
        }
    }
}

[링크 : https://blog.naver.com/goldrushing/130184365511]

[링크 : https://docs.microsoft.com/en-us/dotnet/api/system.drawing.imageanimator.animate?view=dotnet-plat-ext-3.1]

Posted by 구차니
개소리 왈왈/컴퓨터2020. 11. 4. 10:42

ryzen 2200g 으로 가는걸로 결정

i5-2500/HD7850에서 플루이드 돌리면 100W 먹고

모니터 20W 정도씩 먹었다고 적어놨는데 (그걸 두개는 켜놧었으니..)

 

2200g 로 4k 동영상 봐도 풀로드 걸어도 100W 미만으로 먹으니 전기측면에서는 괜찮을 듯

게다가 50W급 UHD 모니터만 사면 전기적으로도 dog 이득

 

어느정도 윤곽은 잡혀가는데

돈이 없네? ㅠㅠ

 

 

[링크 : http://www.ppomppu.co.kr/zboard/view.php?id=nas&no=31440&ismobile]

[링크 : https://www.clien.net/service/board/park/11772787]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

zotac GT1030 2GB  (0) 2020.11.12
G4560  (0) 2020.11.11
라이젠 내장 그래픽 vs RX560  (0) 2020.11.03
오늘의 중고로운 평화장터  (0) 2020.11.02
모니터 고민중..  (0) 2020.11.02
Posted by 구차니
개소리 왈왈/컴퓨터2020. 11. 3. 22:14

중고로 가격 보다가 고민중

RX560 + i5-2500으로 버티냐

라이젠 2200g 로 전기세도 아끼냐 고민

 

일단 성능은 3배 정도 차이나네..

 

[링크 : https://gpu.userbenchmark.com/Compare/AMD-RX-Vega-8-Ryzen-iGPU-vs-AMD-RX-560/m441833vs3926]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

G4560  (0) 2020.11.11
컴퓨터...  (0) 2020.11.04
오늘의 중고로운 평화장터  (0) 2020.11.02
모니터 고민중..  (0) 2020.11.02
이것저것 처분중  (2) 2020.11.01
Posted by 구차니
개소리 왈왈/컴퓨터2020. 11. 2. 23:41

VGA to HDMI 와 HDMI 케이블을 5천원에 업어옴

티비가 문제인지 저 컨버터가 문제인지 모르겠지만

1280x800 이런걸로 설정하니 안나오고

녹색이 형광색이 되는 느낌? ㅠㅠ

 

아무튼 오디오까지 잘 전송되서 대만족

express card to usb 3.0 + hdmi usb3.0 두개보다 매우싸게 해결되서 또 대만족 ㅋ

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

컴퓨터...  (0) 2020.11.04
라이젠 내장 그래픽 vs RX560  (0) 2020.11.03
모니터 고민중..  (0) 2020.11.02
이것저것 처분중  (2) 2020.11.01
갤럭시 북 12용 펜  (0) 2020.10.30
Posted by 구차니