Git Product home page Git Product logo

drive-sdk's People

Contributors

chapados avatar fivemicro avatar kloepper avatar niklasfi avatar tpreclik avatar yeckey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drive-sdk's Issues

Car Goes Crazy

Hello!

I am currently working on a self driving car project with the drive-sdk!

Unfortunately, if the car leaves the track at all, it tends to go crazy (it seems to be searching for the track), would it be possible to change this/would could it be possible to get a hint as to where in the code this would be located?

I appreciate the help!

library method anki_vehicle_msg_turn_180() does nothing

Using the library method anki_vehicle_msg_turn_180() does nothing. For testing I have added a command turn:

{ "turn",          cmd_anki_vehicle_turn,  "turn vehicle", "turn the vehicle by 180°"},

and the following method:

static void cmd_anki_vehicle_turn(int argcp, char **argvp) {
        uint8_t* value;
    size_t plen;
        int handle;
        if (conn_state != STATE_CONNECTED) {
                failed("Disconnected\n");
                return;
        }
        handle = vehicle.write_char.value_handle;
        rl_printf("turn 180°\n");
        anki_vehicle_msg_t msg;
        plen = anki_vehicle_msg_turn_180(&msg);
        value = (uint8_t *)&msg;
        gatt_write_char(attrib, handle, value, plen, NULL, NULL);
}

Commands used with vehicle-tool:

connect
sdk-mode 1
set-speed 400
turn

Error: Discover primary services by UUID failed: Internal application error: I/O

Hello,

I try to communicate with anki-cars via bluetooth in raspberry pi 3. I am able to connect the car. But i have no callback when I write conmand.

pi@raspberrypi:~ $ sudo anki/drive-sdk/build/dist/bin/vehicle-scan
LE Scan ...
C4:A8:F8:D1:CA:E4 Drive [v305f] (Unknown 2408)
pi@raspberrypi:~ $ sudo anki/drive-sdk/build/dist/bin/vehicle-tool --device=C48:F8:D1:CA:E4
[C4:A8:F8:D1:CA:E4][LE]> connect
Attempting to connect to C4:A8:F8:D1:CA:E4
Connection successful
Error: Discover primary services by UUID failed: Internal application error: I/O
[C4:A8:F8:D1:CA:E4][LE]> sdk-mode 1
[C4:A8:F8:D1:CA:E4][LE]> ping
[C4:A8:F8:D1:CA:E4][LE]> set-lights-pattern TAIL FLASH 1 6 15

Thanks for any help you can provide!

Sincerely,
Ben

Can't read any data from vehicles

I am able to connect to the vehicles and set the speed, however when I write data to them, they automatically disconnect and I'm not able to read any data

No description for all cars answers

say I receive answers with message types 0x36, 0x3f, 0x86. How to parse those answers?
received unknown response, type 86 full [11, -122, 11, 0, 35, 8, 0, 0, 8, 16, 0, 0]
received unknown response, type 86 full [11, -122, 2, 0, 36, 8, 0, 0, -50, 10, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 3f full [5, 63, 0, 0, 0, 1]
received unknown response, type 3f full [5, 63, 0, 0, 0, 1]
received unknown response, type 86 full [11, -122, 57, 0, 33, 8, 0, 0, 0, 15, 0, 0]
received unknown response, type 86 full [11, -122, 24, 0, 37, 8, 0, 0, 113, 14, 0, 0]
received unknown response, type 36 full [3, 54, 0, 100]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, 39, 16]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 3f full [5, 63, 0, 0, 0, 1]
received unknown response, type 3f full [5, 63, 0, 0, 0, 1]
received unknown response, type 86 full [11, -122, 41, 0, 36, 8, 0, 0, -90, 15, 0, 0]
received unknown response, type 86 full [11, -122, 28, 0, 35, 8, 0, 0, -107, 14, 0, 0]

Turning command LEFT and RIGHT don't do anything

Hi,
First of all awesome SDK 👍 I hope you keep it up despite the "problems" of anki.

I bought an anki road with an intersection and wanted to turn at it (left right).
I used your sdk for it. While everything works just fine and I can even do a uturn, the turn commands LEFT and RIGHT don't do anything (In the examples/vehicle-toos repo).
I tried to set the messages manually by setting the type 1 and 2 respectively, but nothing happened either.
Is there a way to do a turn left or right? Do I somehow need to register the intersections somewhere in the first place?

Steps to reproduce:

  1. build a route with an intersection
  2. connect to the car: ./vehicle-tool --device=
  3. set-speed 500
  4. turn LEFT

Note: Furthermore, I noticed upon writing turn left in lowercase I get a segfault.

Thanks

road_piece_idx always returns 0 & it's not documented

Hi,

during a Localization Transition Update I receive for the road_piece_idx and road_piece_idx_prev always the values 0. I'm not sure what they are for, but I'm searching for a way to uniquely Identify each point on the map.

What's SDK mode?

It sounds like there are different sdk modes but it is not clear where the difference. Say, I connected to car and turn lights, it works. I try to set speed and it doesn't work. Is it because of wrong sdk mode?

anki_vehicle_light_config limits cycles_per_minute to 11

In anki_vehicle_light_config the cycles_per_minute parameter is limited to 11, which seems to be an unreasonably low value. Removing this limit allows e.g. specifying light patterns equivalent to the throbbing blue of connected vehicles.

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.