Code Monkey home page Code Monkey logo

whill-sdk-arduino's People

Contributors

aquahika avatar s-katsu avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

whill-sdk-arduino's Issues

setSpeedProfile関数が使用できない。

https://github.com/WHILL/whill-sdk-arduino/blob/esp32/src/whill_commands.cpp

void WHILL::setSpeedProfile(SpeedProfile* profile, unsigned char speed_mode) {
unsigned char payload[] = {0x04,
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);
}

上記についてですが、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);
}

M5Atomからblink_powerのPowerONができない。

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

なにか思い当たることはありますでしょうか?大変申し訳ございませんが、ご確認いただけないでしょうか?

Unit of accelerometer and gyro is wrong

The values are raw of WHILL packet. Must to implement the calculation to fit the collect unit.

whill->accelerometer.x = (signed short)((packet->payload[1] << 8)+(packet->payload[2]));
whill->accelerometer.y = (signed short)((packet->payload[3] << 8)+(packet->payload[4]));
whill->accelerometer.z = (signed short)((packet->payload[5] << 8)+(packet->payload[6]));
whill->gyro.x = (signed short)((packet->payload[7] << 8)+(packet->payload[8]));
whill->gyro.y = (signed short)((packet->payload[9] << 8)+(packet->payload[10]));
whill->gyro.z = (signed short)((packet->payload[11] << 8)+(packet->payload[12]));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.