• ตอบกระทู้
  • ตั้งกระทู้ใหม่
QUOTE 

'ADXL345' does not name a type; did you mean 'ADCL3'?

Fels
Arduino: 1.8.19 (Mac OS X), Board: "Arduino Uno"











balancing_robot:13:1: error: 'ADXL345' does not name a type; did you mean 'ADCL3'?
ADXL345 adxl;
^~~~~~~
ADCL3
balancing_robot:17:1: error: 'unit8_t' does not name a type; did you mean 'uint8_t'?
unit8_t adxlIntStatus; // holds actual interrupt status byte from ADXL
^~~~~~~
uint8_t
balancing_robot:18:1: error: 'unit8_t' does not name a type; did you mean 'uint8_t'?
unit8_t devStatus; // return after each device operation (0 = success, !0 - error)
^~~~~~~
uint8_t
balancing_robot:19:1: error: 'unit16_t' does not name a type; did you mean 'uint16_t'?
unit16_t packetSize; // expected ADXL packet size
^~~~~~~~
uint16_t
balancing_robot:20:1: error: 'unit16_t' does not name a type; did you mean 'uint16_t'?
unit16_t fifoCount; // count of all bytes currentlyin FIFO
^~~~~~~~
uint16_t
balancing_robot:21:1: error: 'unit8_t' does not name a type; did you mean 'uint8_t'?
unit8_t fifoBuffer[64]; // FIFO storage buffer
^~~~~~~
uint8_t
balancing_robot:24:1: error: 'Quaternion' does not name a type; did you mean 'union'?
Quaternion q; // [w, x, y, z] quaternion container
^~~~~~~~~~
union
balancing_robot:25:1: error: 'VectorFloat' does not name a type
VectorFloat gravity; // [x, y, z] gravity vector
^~~~~~~~~~~
balancing_robot:52:31: error: 'fales' was not declared in this scope
volatile bool adxlInterrupt = fales; //indicates wheter ADXL interrupt pin has gone high
^~~~~
/Users/nantiwatsensai/Documents/Arduino/balancing_robot/balancing_robot.ino:52:31: note: suggested alternative: 'fabs'
volatile bool adxlInterrupt = fales; //indicates wheter ADXL interrupt pin has gone high
^~~~~
fabs
balancing_robot:58:1: error: 'viod' does not name a type; did you mean 'pid'?
viod setup()
^~~~
pid
balancing_robot:58:1: error: 'viod' does not name a type; did you mean 'pid'?
viod setup()
^~~~
pid
/Users/nantiwatsensai/Documents/Arduino/balancing_robot/balancing_robot.ino: In function 'void loop()':
balancing_robot:111:28: error: 'fifoCount' was not declared in this scope
while (!adxlInterrupt && fifoCount < packetSize)
^~~~~~~~~
balancing_robot:111:40: error: 'packetSize' was not declared in this scope
while (!adxlInterrupt && fifoCount < packetSize)
^~~~~~~~~~
balancing_robot:121:3: error: 'adxlStatus' was not declared in this scope
adxlStatus = adxl.getIntStatus();
^~~~~~~~~~
balancing_robot:121:16: error: 'adxl' was not declared in this scope
adxlStatus = adxl.getIntStatus();
^~~~
/Users/nantiwatsensai/Documents/Arduino/balancing_robot/balancing_robot.ino:121:16: note: suggested alternative: 'atol'
adxlStatus = adxl.getIntStatus();
^~~~
atol
balancing_robot:124:3: error: 'fifoCount' was not declared in this scope
fifoCount = adxl.getFIFOCount();
^~~~~~~~~
balancing_robot:127:8: error: 'adxlIntStatus' was not declared in this scope
if ((adxlIntStatus & 0x10) || fifoCount == 1024)
^~~~~~~~~~~~~
/Users/nantiwatsensai/Documents/Arduino/balancing_robot/balancing_robot.ino:127:8: note: suggested alternative: 'adxlInterrupt'
if ((adxlIntStatus & 0x10) || fifoCount == 1024)
^~~~~~~~~~~~~
adxlInterrupt
balancing_robot:138:24: error: 'packetSize' was not declared in this scope
while (fifoCount < packetSize) fifoCount = adxl.getFIFOCount();
^~~~~~~~~~
balancing_robot:141:23: error: 'fifoBuffer' was not declared in this scope
adxl.getFIFOBytes(fifoBuffer, packetSize);
^~~~~~~~~~
balancing_robot:141:35: error: 'packetSize' was not declared in this scope
adxl.getFIFOBytes(fifoBuffer, packetSize);
^~~~~~~~~~
balancing_robot:147:28: error: 'q' was not declared in this scope
adxl.dmpGetQuaternion(&q, fifoBuffer);
^
/Users/nantiwatsensai/Documents/Arduino/balancing_robot/balancing_robot.ino:147:28: note: suggested alternative: 'sq'
adxl.dmpGetQuaternion(&q, fifoBuffer);
^
sq
balancing_robot:148:25: error: 'gravity' was not declared in this scope
adxl.dmpGetGravity(&gravity, &q);
^~~~~~~
Multiple libraries were found for "PID_v1.h"
Used: /Users/nantiwatsensai/Documents/Arduino/libraries/Arduino-PID-Library-master
Not used: /Users/nantiwatsensai/Documents/Arduino/libraries/arduino-self-balancing-robot-master
exit status 1
'ADXL345' does not name a type; did you mean 'ADCL3'?


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
QUOTE 
ความคิดเห็นที่ #1
เจ้าของร้าน

คำถามคืออะไรครับ  ต้องการอะไรจากทางร้าน ครับ 

แสดงความคิดเห็นที่ 1-1 จากทั้งหมด 1 ความคิดเห็น
WEBBOARD-LOGIN-BEFORE-TOPIC-REPLY

Join เป็นสมาชิกร้านค้า

ร้านAB-Maker บทความ Arduino จำหน่าย Sensor Module Shield ราคาถูก AB.in.th
ร้านAB-Maker บทความ Arduino จำหน่าย Sensor Module Shield ราคาถูก AB.in.th
/www.ab.in.th/
Join เป็นสมาชิกร้าน
529
สมัครสมาชิกร้านนี้ เพื่อรับสิทธิพิเศษ

ติดต่อร้าน AB-Maker

075-808-080
064-208-3926

ติดต่อเวลา 10.00-17.00 น. 
จันทร์ ถึงวัน ศุกร์ 

Fanpage AB-Maker Arduino Line @AB-Maker Arduino

QR Coard Line

  • ค้นหา
*ใส่ เบอร์มือถือ หรือ email ที่ใช้ในการสั่งซื้อ

หน้าที่เข้าชม4,510,768 ครั้ง
ผู้ชมทั้งหมด2,466,540 ครั้ง
ร้านค้าอัพเดท6 ก.ย. 2568
รายการสั่งซื้อของฉัน
เข้าสู่ระบบด้วย
เข้าสู่ระบบ
สมัครสมาชิก

ยังไม่มีบัญชีเทพ สร้างบัญชีใหม่ ไม่มีค่าใช้จ่าย
สมัครสมาชิก (ฟรี)
รายการสั่งซื้อของฉัน
ข้อมูลร้านค้านี้
ร้านAB-Maker บทความ Arduino จำหน่าย Sensor Module Shield ราคาถูก AB.in.th
AB-Maker บทความ Arduino จำหน่าย Sensor Module Shield ราคาถูก AB.in.th
Arduino นครศรีธรรมราช หาดใหญ่ สงขลา ยะลา จำหน่าย Arduino อุปกรณ์อิเล็กทรอนิกส์ ไมโครคอนโทรลเลอร์ Uno R3 Nodemcu Esp8266 Esp32 Sensor Module ราคาถูกสุดๆ Support เร็วดูแลลูกค้าอย่างดี
เบอร์โทร : 075808080
อีเมล : [email protected]
ส่งข้อความติดต่อร้าน
เกี่ยวกับร้านค้านี้
สินค้าที่ดูล่าสุด
ดูสินค้าทั้งหมดในร้าน
สินค้าที่ดูล่าสุด
บันทึกเป็นร้านโปรด
Join เป็นสมาชิกร้าน
แชร์หน้านี้
แชร์หน้านี้

TOP เลื่อนขึ้นบนสุด
พูดคุย-สอบถาม