Arc Gauge
Lab 9: Real Arc Gauge (Roll Angle)
Part 2 - Sensor Visualization
1. โครงสร้างภาพรวมของ Lab
Why? - ทำไมต้องเรียนรู้เรื่องนี้
What? - จะได้เรียนรู้อะไร
How? - จะทำอย่างไร

2. หลักการทำงานและ Flowchart
2.1 Why Complementary Filter?
2.2 Complementary Filter Formula
2.3 Roll Angle Measurement
3. ฟังก์ชันสำคัญ
3.1 Tilt API Functions
Function
Return
Description
3.2 Tilt Init API Signature
3.3 Tilt Update API Signature
3.4 Key Differences: Lab 2 (Sim) vs Lab 9 (HW)
รายการ
Lab 2 (Simulator)
Lab 9 (Hardware)
3.5 Include Files
4. โค้ดตัวอย่าง
4.1 Global Variables
4.2 Timer Callback - Tilt Analysis (Complementary Filter)
4.3 Main Function
5. องค์ความรู้และเทคนิค
5.1 Complementary Filter - ทำไมต้องใช้?
5.2 Tilt API Usage Pattern
5.3 Alpha Parameter - ผลกระทบต่อการตอบสนอง
5.4 Complementary Filter - สูตรคำนวณภายใน (tilt.c)
5.5 Calibration Tips - เมื่อค่าไม่ตรง
5.6 Comparison: Tilt API vs Manual Calculation
6. แบบฝึกหัด
Exercise 1: Dual Arc Gauge (Roll + Pitch)
Exercise 2: Tilt Alarm with History Chart
7. References
Last updated
Was this helpful?