Acceleration Magnitude
Lab 2: คำนวณ Acceleration Magnitude
วัตถุประสงค์
จะได้เรียนรู้อะไร
2.1 Concept: Vector Magnitude
โหลด Project Code จาก AIC Github Repo เพื่อเปิดบน VSCode IDE
2.2 เปิดโปรเจกต์ aic-psoc-edge-epc2-imu-magnitude-master
เพิ่ม Include
Important Macros and Variables
สร้างฟังก์ชัน Raw accelerometer Conversion ชื่อ lsb_to_mp2()
lsb_to_mp2()สร้างฟังก์ชัน Magnitude Calcuation ชื่อ calculate_magnitude()
calculate_magnitude()2.3 เขียน Main Task Loop
Create Sensor Hub DAQ Task Function
2.4 Build และ Flash
2.5 Output ที่คาดหวัง
Physical Meaning
สถานะ
Magnitude
ความหมาย
Flowchart

✍️ Exercise
Last updated
Was this helpful?