Skip to content

Commit

Permalink
Update: !
Browse files Browse the repository at this point in the history
  • Loading branch information
love1angel committed Nov 26, 2024
1 parent ba67eff commit a9a35aa
Show file tree
Hide file tree
Showing 11 changed files with 100 additions and 38 deletions.
28 changes: 17 additions & 11 deletions org-roam/20241009152415-abbreviation.org
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
21 changes: 5 additions & 16 deletions org-roam/20241021141129-misc.org
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,15 @@ git push --set-upstream origin ft_panda/enable_v2x
diff -Naur APATH BPATH


滴答定时器中断频率 = 时间片
中断是一瞬间的事情,中断服务程序不能做过多的事情,特别是延时,通常是设置标志位

有优先级,可抢断

ucos 调用系统延迟函数,挂起,低优先级任务可以执行
ps -A | grep

中断嵌套,高优先级可以打断低优先级中断
strace -c -p <pid>

中断可以打断任意任务
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
19 changes: 8 additions & 11 deletions org-roam/20241108104935-nix.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <commit hash>
$ darwin-rebuild switch --rollback


Expand All @@ -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
36 changes: 36 additions & 0 deletions org-roam/20241113165318-ucos3.org
Original file line number Diff line number Diff line change
@@ -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]
6 changes: 6 additions & 0 deletions org-roam/algorithm/sort/20241126154919-sort.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:PROPERTIES:
:ID: 0465412E-68B1-42E9-9886-9D843AE4FCB2
:END:
#+title: sort

1. [[id:6E287A86-F44B-4234-8F25-5BA46A008263][heap sort]]
16 changes: 16 additions & 0 deletions org-roam/algorithm/sort/heapsort/20241126154928-heap_sort.org
Original file line number Diff line number Diff line change
@@ -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 位置

堆排序就是不停构造堆,并且交换
12 changes: 12 additions & 0 deletions org-roam/csdiy/20241012221708-zju_93001.org
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,26 @@
3. 解决问题的效率,和算法的巧妙程度有关

* CH1

逻辑结构:线性结构,树结构,图结构

物理结构:数组,链表

抽象数据类型:abstract data type

矩阵:二维数组,十字链表

#+begin_src c
// calc duration
#include <time.h>
#include <stdio.h>

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;
}
Expand Down
Binary file added org-roam/img/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified org-roam/img/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed org-roam/img/Screenshot 2024-11-05 at 14.24.36.png
Binary file not shown.
Binary file modified org-roam/org-roam.db
Binary file not shown.

0 comments on commit a9a35aa

Please sign in to comment.