Comments (6)
upd: What does messages 0x43 (0143) and 0x44 (0144) mean? Thanks
from drive-sdk.
same for 0x41
received unknown response, type 41 full 0e4100004842000020c16400e80384
received unknown response, type 41 full 0e41989939c1989939c10000e80384
received unknown response, type 41 full 0e41894186c2894186c20000e80381
from drive-sdk.
Hi @ValleZ,
Some of these responses are related to position, and the vehicle currently doesn't have all of the data it needs to these to make any sense. Here are the ones in that list that might be useful:
Speed Update
This one is mostly irrelevant, since right now the cars are probably not going to change speed without being commanded to do so.
ANKI_VEHICLE_MSG_V2C_SPEED_UPDATE = 0x36;
typedef struct anki_vehicle_msg_speed_update {
uint8_t size;
uint8_t msg_id;
uint16_t speed_mm_per_sec;
} ATTRIBUTE_PACKED anki_vehicle_msg_speed_update_t;
Status Update
This message conveys some basic info about the vehicle, similar to what is in the advertisement packet, but this is sent once you are connected to a vehicle.
ANKI_VEHICLE_MSG_V2C_STATUS_UPDATE = 0x3f;
typedef struct anki_vehicle_msg_status_update {
uint8_t size;
uint8_t msg_id;
uint8_t reserved0;
uint8_t on_charger;
uint8_t battery_low;
uint8_t battery_full;
} ATTRIBUTE_PACKED anki_vehicle_msg_status_update_t;
You should ignore 0x86, 0x43 and 0x44. The are only relevant for the Anki Drive app right now.
0x41 is related to lane changes, but I need to see if the data coming back will make any sense without the vehicle having info about the track.
In the meantime, if you want to add support for the other two, that would awesome!
from drive-sdk.
Thanks for responces! I'm trying to control cars using android phone and this is very helpful. I'll check it out today. What is the best place to post questions? I managed to make cars moving but right now I'm trying to change car h positions (changing lane) and it doesn't work well...
https://github.com/ValleZ/AnkiDriveAndroid
from drive-sdk.
Opening issues for stuff like this is fine. For more general questions, you might be better off posting in our google group, there there are more people monitoring that.
https://groups.google.com/a/anki.com/forum/#!forum/anki-dev
from drive-sdk.
Also, to change lane/horizontal positions, you should look at the vehicle-tool example code. Right now, you need to set the offset_from_road_center to 0 (msg id is ANKI_VEHICLE_MSG_C2V_SET_OFFSET_FROM_ROAD_CENTER
), before sending the lane change command in order for the vehicle to interpret the horizontal distance as a relative change
from drive-sdk.
Related Issues (20)
- test_suite.c lacks copyright/licensing info
- test_vehicle_advertisement.c lacks copyright/licensing info
- Remove un-needed examples/vehicle-scan/Makefile
- Remove un-needed examples/vehicle-tool/Makefile
- What's SDK mode? HOT 2
- Please tag 0.1 version
- README claims Mac compatibility but examples do not compile HOT 3
- Anki-dev group closed? HOT 2
- Programming Guide link broken
- library method anki_vehicle_msg_turn_180() does nothing HOT 2
- Can't read any data from vehicles
- anki_vehicle_light_config limits cycles_per_minute to 11
- Car Goes Crazy HOT 3
- Error: Discover primary services by UUID failed: Internal application error: I/O HOT 2
- road_piece_idx always returns 0 & it's not documented
- Turning command LEFT and RIGHT don't do anything HOT 1
- test_ble.cpp lacks copyright/licensing information
- test_ble_advertisement.c lacks copyright/licensing info
- test_protocol.c lacks copyright/licensing info
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drive-sdk.