whill / whill-sdk-arduino Goto Github PK
View Code? Open in Web Editor NEWArduino library for Model CR series
Home Page: https://whill.inc/jp/model-cr2
License: MIT License
Arduino library for Model CR series
Home Page: https://whill.inc/jp/model-cr2
License: MIT License
https://github.com/WHILL/whill-sdk-arduino/blob/esp32/src/whill_commands.cpp
whill-sdk-arduino/src/whill_commands.cpp
Lines 76 to 90 in b1001c8
上記についてですが、speed_modeが抜けています。
下記であれば動作しました。
void WHILL::setSpeedProfile(SpeedProfile* profile, unsigned char speed_mode) {
unsigned char payload[] = {0x04,
speed_mode, //add
profile->forward_spped,
profile->forward_acceleration,
profile->forward_deceleration,
profile->reverse_speed,
profile->reverse_acceleration,
profile->reverse_deceleration,
profile->turn_speed,
profile->turn_acceleration,
profile->turn_deceleration};
Packet packet(payload, sizeof(payload));
packet.build();
transferPacket(&packet);
}
https://github.com/WHILL/whill-sdk-arduino/tree/esp32/examples/blink_power
上記を参考にさせていだたき、M5Atomから操作を行っています。
サンプルの中で、
callback
shake
は動作しています。
しかし、blink_powerの
whill.setPower(true); 部分が動作しません。
※whill.setPower(false);の部分は動作します。
サンプル以外でも下記サイトを参考にして実装しましたが、
whill.setPower(true);部分は動作しませんでした。
https://qiita.com/KatsuShun89/items/69222ce96ff3debcba11
なにか思い当たることはありますでしょうか?大変申し訳ございませんが、ご確認いただけないでしょうか?
The values are raw of WHILL packet. Must to implement the calculation to fit the collect unit.
whill-sdk-arduino/src/PacketParser.cpp
Lines 41 to 47 in db3daf7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.