Skip to content

Instantly share code, notes, and snippets.

View vbenso's full-sized avatar

Victor Benso vbenso

View GitHub Profile
@vbenso
vbenso / read-me.txt
Created June 25, 2023 17:34
Instructions for @cederom
Hi cederom,
I've finished the implementation of the RMT driver (at least for writing to an output pin).
Something went wrong on my rebase of the nuttX repo, and I'm going to be traveling next week.
So until I fix this issue with the pull request, you can have access to the driver in the
following branch: https://github.com/vbenso/incubator-nuttx-rmt/tree/for-cederom
I'll include the app that is used to drive the leds as well.
In my board, I'm using GPIO 4 as output pin (#define RMT_OUTPUT_PIN 4) you can change this
@vbenso
vbenso / GpsUtils.cs
Created October 16, 2020 18:51 — forked from govert/GpsUtils.cs
Convert WGS-84 geodetic locations (GPS readings) to Cartesian coordinates in a local tangent plane (Geodetic to ECEF to ENU)
using System;
using System.Diagnostics;
using static System.Math;
// Some helpers for converting GPS readings from the WGS84 geodetic system to a local North-East-Up cartesian axis.
// The implementation here is according to the paper:
// "Conversion of Geodetic coordinates to the Local Tangent Plane" Version 2.01.
// "The basic reference for this paper is J.Farrell & M.Barth 'The Global Positioning System & Inertial Navigation'"
// Also helpful is Wikipedia: http://en.wikipedia.org/wiki/Geodetic_datum
@vbenso
vbenso / dmesg_after_hitting_connect.txt
Created October 1, 2020 15:36
debug info for 2357:012d
[ 2110.704557] RTW: cfg80211_rtw_set_power_mgmt(wlxd03745a02d97) enabled:0, timeout:-1
[ 2110.726367] RTW: cfg80211_rtw_scan(wlxd03745a02d97)
[ 2110.726373] RTW: rtw_cfg80211_set_probe_req_wpsp2pie(wlxd03745a02d97) listen channel - country:XX, class:81, ch:11
[ 2110.726377] RTW: _rtw_pwr_wakeup call ips_leave....
[ 2110.726378] RTW: ==>ips_leave cnts:6
[ 2110.726379] RTW: ===> rtw_ips_pwr_up..............
[ 2110.726386] RTW: ===> ips_netdrv_open.........
[ 2110.726388] RTW: rtl8822b_hal_init fw source from array
[ 2110.726392] RTW: [HALMAC][TRACE]pre_init_system_cfg_8822b ===>
[ 2110.773644] RTW: [HALMAC][TRACE]set_hw_value_88xx ===>
This file has been truncated, but you can view the full file.
08-19 12:04:57.073 5493-5780/com.precisagro.agcampofree V/Sync: PullerInternal{unknown, pull, 5cc63}: changeTrackerReceivedChange() incrementing changesCount by 1
08-19 12:04:57.073 5493-5780/com.precisagro.agcampofree V/Sync: PullerInternal{unknown, pull, 5cc63}: Incrementing changesCount count from 153 by adding 1 -> 154
08-19 12:04:57.073 5493-5780/com.precisagro.agcampofree V/Sync: PullerInternal{unknown, pull, 5cc63}: addToInbox() called, rev: {5b72f5891a0ecc324db98fa116a4c6de461006e1 #1-cec03415cfe086482eeeada941b390f1 @0}. Thread: Thread[ChangeTracker-http://10.1.1.4:4984/test,5,main]
08-19 12:04:57.073 5493-5780/com.precisagro.agcampofree V/CBLite: setPaused: false
08-19 12:04:57.073 5493-5780/com.precisagro.agcampofree D/ChangeTracker: ChangeTracker{http://10.1.1.4:4984/test, OneShot, @4218cff0}: /changeTrackerReceivedChange: {seq=14717, id=5b72f5891a0ecc324db98fa116a4c6de461006e1, changes=[{rev=6-43c8f555368a6f99e8df8df73111dedf}, {rev=1-cec03415cfe086482eeeada941b390f1}]}
08-19 12:04:57.083 5493-5
@vbenso
vbenso / gist:34cc2881cbf7b464b49f45f4bdd2085c
Created August 19, 2016 15:07
Error updating view index on background thread
This file has been truncated, but you can view the full file.
08-19 12:04:57.073 5493-5780/com.precisagro.agcampofree V/Sync: PullerInternal{unknown, pull, 5cc63}: changeTrackerReceivedChange() incrementing changesCount by 1
08-19 12:04:57.073 5493-5780/com.precisagro.agcampofree V/Sync: PullerInternal{unknown, pull, 5cc63}: Incrementing changesCount count from 153 by adding 1 -> 154
08-19 12:04:57.073 5493-5780/com.precisagro.agcampofree V/Sync: PullerInternal{unknown, pull, 5cc63}: addToInbox() called, rev: {5b72f5891a0ecc324db98fa116a4c6de461006e1 #1-cec03415cfe086482eeeada941b390f1 @0}. Thread: Thread[ChangeTracker-http://10.1.1.4:4984/test,5,main]
08-19 12:04:57.073 5493-5780/com.precisagro.agcampofree V/CBLite: setPaused: false
08-19 12:04:57.073 5493-5780/com.precisagro.agcampofree D/ChangeTracker: ChangeTracker{http://10.1.1.4:4984/test, OneShot, @4218cff0}: /changeTrackerReceivedChange: {seq=14717, id=5b72f5891a0ecc324db98fa116a4c6de461006e1, changes=[{rev=6-43c8f555368a6f99e8df8df73111dedf}, {rev=1-cec03415cfe086482eeeada941b390f1}]}
08-19 12:04:57.083 5493-5
@vbenso
vbenso / decrementing_changes
Last active August 3, 2016 21:50
A log showing some weird increments during pull replication on version 1.3.0-45. Shows also the state of the replicator bouncing between RUNNING and IDLE (SG log included as comments)
objects (current inbox size = 28)
08-03 17:44:45.303 20816-23557 V/Batcher: com.couchbase.lite.support.Batcher@42b46b70: scheduleWithDelay 250 ms, ignored
08-03 17:44:45.303 20816-23557 V/RemoteRequest: com.couchbase.lite.replicator.RemoteBulkDownloaderRequest[/test/_bulk_get]: Finished document
08-03 17:44:45.303 20816-23557 V/RemoteRequest: com.couchbase.lite.replicator.RemoteBulkDownloaderRequest[/test/_bulk_get]: Starting new document; headers ={X-Doc-Id=0d429755f354fdc7107ca2fa039a4ffff76768fb, Content-Type=multipart/related; boundary="269b0dd014b1d21fe79e563664fcc9dad7d95bdb874800a10c8023f26cd6", X-Rev-Id=1-95e92479597156edb1c5ea540ff5c135}
08-03 17:44:45.473 20816-23467 I/cbforest: DB 0x5e365980: added 33373362386563366437386239383531343034306533323965393662323263356138333637383761 --> 000003b2ffff8a1110f4b895db689926319d659892819d7745007b227261775f6661726d5f636f64223a223736485630303051222c227261775f6669656c645f636f64223a22373648563030334c222c226368616e6e656c73223a5b223234372e3737302e3133302d3439225d2