diff --git a/org-roam/20241009152415-abbreviation.org b/org-roam/20241009152415-abbreviation.org index d5f163e..a2f0fe9 100644 --- a/org-roam/20241009152415-abbreviation.org +++ b/org-roam/20241009152415-abbreviation.org @@ -16,17 +16,20 @@ * AD (Autonomous Driving) - | SLAM | Simultaneous Localization and Mapping | | - | | | | - | TOR | Take OveR | | - | ADAS | Autonomous Driving Assistance System | | - | | | | - | SWA | Side Warning Assist | 变道辅助,在变道时检测车辆侧面或后面的盲区 | - | LCA | Lane Change Assist | 类似 SWA | - | | | | - | USS | Ultrasonic Sensor System | 超声波雷达 | - | | | | - | scooter | | 踏板摩托车 | + | SLAM | Simultaneous Localization and Mapping | | + | | | | + | TOR | Take OveR | | + | ADAS | Autonomous Driving Assistance System | | + | | | | + | SWA | Side Warning Assist | 变道辅助,在变道时检测车辆侧面或后面的盲区 | + | LCA | Lane Change Assist | 类似 SWA | + | | | | + | USS | Ultrasonic Sensor System | 超声波雷达 | + | | | | + | scooter | | 踏板摩托车 | + | | | | + | Cartesian | | adj. 笛卡尔坐标系 | + | | | | * Maths @@ -56,6 +59,9 @@ | AKA | Also Known As | | TBH | To Be Honest | | WIP | Work In Progress | + | | | + | i.e. | that is | + | e.x. | for example | * life diff --git a/org-roam/20241021141129-misc.org b/org-roam/20241021141129-misc.org index 9b38d1c..f47276e 100644 --- a/org-roam/20241021141129-misc.org +++ b/org-roam/20241021141129-misc.org @@ -13,26 +13,15 @@ git push --set-upstream origin ft_panda/enable_v2x diff -Naur APATH BPATH -滴答定时器中断频率 = 时间片 -中断是一瞬间的事情,中断服务程序不能做过多的事情,特别是延时,通常是设置标志位 -有优先级,可抢断 -ucos 调用系统延迟函数,挂起,低优先级任务可以执行 +ps -A | grep -中断嵌套,高优先级可以打断低优先级中断 +strace -c -p -中断可以打断任意任务 +taskset -c 7 perf stat ./play -高优先级一直执行,低优先级执行不会执行 +perf report -[file:img/1.png] -《Cortex M3 权威指南(中文)》 -《Cortex M3 与 M4 权威指南》 - -1. 任务调度器 -2. 任务启动流程,中断管理,任务切换 -3. 队列,信号量,内存管理 - -[file:img/3.png] +Intensity/Reflectivity lidar diff --git a/org-roam/20241108104935-nix.org b/org-roam/20241108104935-nix.org index c630bbc..6ada678 100644 --- a/org-roam/20241108104935-nix.org +++ b/org-roam/20241108104935-nix.org @@ -8,13 +8,14 @@ 不在系统区域可见 nix-shell -p neofetch --run neofetch +https://github.com/LnL7/nix-darwin mkdir -p ~/.config/nix/nix-darwin cd ~/.config/nix/nix-darwin nix flake init -t nix-darwin --extra-experimental-features "nix-command flakes" -改完配置 +改完配置,不是 #mac 就是默认用户名 nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/.config/nix/nix-darwin#mac which darwin-rebuild @@ -24,18 +25,9 @@ darwin-rebuild switch --flake ~/.config/nix/nix-darwin#mac nix search nixpkgs tmux - -** test - -$ nix-shell -p git --run 'git clone xxx.git ~/.dotfiles' -$ nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/.dotfiles/nix/darwin# - -$ nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/.config/nix-darwin#heli - - ** under -$ git revert +$ git revert $ darwin-rebuild switch --rollback @@ -53,3 +45,8 @@ darwin-rebuild } mynixos.com + +** build + +$ nix-shell -p git --run 'git clone xxx.git ~/.dotfiles' +$ nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/.config/nix/nix-darwin#mac diff --git a/org-roam/20241113165318-ucos3.org b/org-roam/20241113165318-ucos3.org new file mode 100644 index 0000000..7201731 --- /dev/null +++ b/org-roam/20241113165318-ucos3.org @@ -0,0 +1,36 @@ +:PROPERTIES: +:ID: 580F87C8-EE19-4D9C-BF07-239125D14348 +:END: +#+title: ucos3 + +ucos3 micro C O S three + +滴答定时器中断频率 = 时间片 +中断是一瞬间的事情,中断服务程序不能做过多的事情,特别是延时,通常是设置标志位 + +有优先级,可抢断 + +ucos 调用系统延迟函数,挂起,低优先级任务可以执行 + +裸机又称为前后台系统,前台系统指的是中断服务函数,后台指的大循环 + + +中断可以嵌套,高优先级可以打断低优先级中断 + +中断可以打断任意任务,是内核层的,软件优先级是软件层面的 + +高优先级一直执行,除非进入挂起态,否则低优先级执行不会执行 + +* 2 + +[file:img/1.png] + +《Cortex M3 权威指南(中文)》 +《Cortex M3 与 M4 权威指南》 + +1. 任务调度器 +2. 任务启动流程,中断管理,任务切换 +3. 队列,信号量,内存管理 + +[file:img/2.png] +[file:img/3.png] diff --git a/org-roam/algorithm/sort/20241126154919-sort.org b/org-roam/algorithm/sort/20241126154919-sort.org new file mode 100644 index 0000000..fed5b56 --- /dev/null +++ b/org-roam/algorithm/sort/20241126154919-sort.org @@ -0,0 +1,6 @@ +:PROPERTIES: +:ID: 0465412E-68B1-42E9-9886-9D843AE4FCB2 +:END: +#+title: sort + +1. [[id:6E287A86-F44B-4234-8F25-5BA46A008263][heap sort]] diff --git a/org-roam/algorithm/sort/heapsort/20241126154928-heap_sort.org b/org-roam/algorithm/sort/heapsort/20241126154928-heap_sort.org new file mode 100644 index 0000000..d6b1b00 --- /dev/null +++ b/org-roam/algorithm/sort/heapsort/20241126154928-heap_sort.org @@ -0,0 +1,16 @@ +:PROPERTIES: +:ID: 6E287A86-F44B-4234-8F25-5BA46A008263 +:END: +#+title: heap sort + +* heap sort + +| | | | +|--------------+-----------------+----------| +| std::greater | descending sort | min heap | +| std::less | ascending sort | max heap | + + +make_heap() 默认是构造最大堆,在 pop_heap() 后,将最大的移到了 back 位置 + +堆排序就是不停构造堆,并且交换 diff --git a/org-roam/csdiy/20241012221708-zju_93001.org b/org-roam/csdiy/20241012221708-zju_93001.org index 0a6b284..64d7008 100644 --- a/org-roam/csdiy/20241012221708-zju_93001.org +++ b/org-roam/csdiy/20241012221708-zju_93001.org @@ -12,7 +12,17 @@ 3. 解决问题的效率,和算法的巧妙程度有关 * CH1 + +逻辑结构:线性结构,树结构,图结构 + +物理结构:数组,链表 + +抽象数据类型:abstract data type + +矩阵:二维数组,十字链表 + #+begin_src c +// calc duration #include #include @@ -20,6 +30,8 @@ int main() { clock_t i1 = clock(); clock_t i2 = clock(); + + // printf("%lf\n", (double)(i2 - i1) / CLK_TCK); printf("%lf\n", (double)(i2 - i1) / CLOCKS_PER_SEC); return 0; } diff --git a/org-roam/img/2.png b/org-roam/img/2.png new file mode 100644 index 0000000..0624641 Binary files /dev/null and b/org-roam/img/2.png differ diff --git a/org-roam/img/3.png b/org-roam/img/3.png index 0624641..03591ef 100644 Binary files a/org-roam/img/3.png and b/org-roam/img/3.png differ diff --git a/org-roam/img/Screenshot 2024-11-05 at 14.24.36.png b/org-roam/img/Screenshot 2024-11-05 at 14.24.36.png deleted file mode 100644 index 03591ef..0000000 Binary files a/org-roam/img/Screenshot 2024-11-05 at 14.24.36.png and /dev/null differ diff --git a/org-roam/org-roam.db b/org-roam/org-roam.db index 7ad845f..0d51e34 100644 Binary files a/org-roam/org-roam.db and b/org-roam/org-roam.db differ