Hi mbedders :P
Im programming a quadcopter with the mbed as a cortex, one of the main topics of my project is to read the values of the IMU, getting strings by serial like this:
!!!AN0:-4,AN1:19,AN2:2,AN3:-2,AN4:29,AN5:100,RLL:-0.08,PCH:0.38,YAW:0.04,*
Im not sure, but I think that the way to read the values one by one and get it in individual variables is that:
while (imu->getc() != '!!!');
imu->scanf("!!!AN0:%d,AN1:%d,AN2:%d,AN3:%d,AN4:%d,AN5:%d,RLL:%d,PCH:%d,YAW:%d,***", &an0, &an1, &an2, &an3, &an4, &an5, &rll, &pch, &yaw);
Before try blinded by ignorance to port that to the platform, I think that is a good idea to ask to the community.
Thanks so much by your attention :P
Hi mbedders :P
Im programming a quadcopter with the mbed as a cortex, one of the main topics of my project is to read the values of the IMU, getting strings by serial like this:
!!!AN0:-4,AN1:19,AN2:2,AN3:-2,AN4:29,AN5:100,RLL:-0.08,PCH:0.38,YAW:0.04,*
Im not sure, but I think that the way to read the values one by one and get it in individual variables is that:
Before try blinded by ignorance to port that to the platform, I think that is a good idea to ask to the community.
Thanks so much by your attention :P