-
1. Re: About I2C Sensors
Oct 24, 2017 3:14 PM (in response to th_Intel_Community)This message was posted on behalf of Intel CorporationHi TH,
Thank you for creating another thread, I posted a response to your question on another thread but we can continue the support here. The pressure sensor does not respond to I2C inquiries. You can try the following to build a working sample and obtain the pressure returned by the sensor.Build the example code for the pressure sensor on a Linux host computer:
git clone https://github.com/ArduPilot/ardupilot.git
cd ardupilot
./waf configure --board aero
./waf --target examples/BARO_generic
Transfer the compiled sample to the Aero board and run with the following command:./BARO_generic
Let me know if this answers your question.
Regards,
Jesus -
2. Re: About I2C Sensors
th_Intel_Community Oct 25, 2017 12:24 AM (in response to Intel Corporation)Hi Jesus,
I have successfully built the BARO_generic sample and deployed it to the RTF. Thanks very much for the instructions.
I do have some issues now, and the error message is:
Scheduler: failed to set scheduling parameters: operation not permitted.
1) what should i do on the RTF to fix this issue ?? it is related to sched_setscheduler.
Thanks,
TH
-
3. Re: About I2C Sensors
Oct 25, 2017 7:32 AM (in response to th_Intel_Community)This message was posted on behalf of Intel CorporationHi TH,
When is the error message shown? When you run the ./BARO_generic or during another operation?
Regards,
Jesus -
4. Re: About I2C Sensors
th_Intel_Community Oct 25, 2017 11:19 AM (in response to Intel Corporation)Hi Jesus,
The error message showed up when i tried to run the application on the RTF, on the command line. is it the right way to deploy an application on the RTF ?? am i missing anything here ?? what should i do ??
Thanks,
TH -
5. Re: About I2C Sensors
Oct 25, 2017 1:35 PM (in response to th_Intel_Community)This message was posted on behalf of Intel CorporationTH,
Let me re-test the sample code on my Aero RTF drone and get back to you. To be on the same page, are you using the latest software release? If you can please provide me the output of get_aero_version.py.
If you have not updated the software, please follow the instructions on the wiki:
https://github.com/intel-aero/meta-intel-aero/wiki/02-Initial-Setup
Regards,
Jesus -
6. Re: About I2C Sensors
th_Intel_Community Oct 25, 2017 2:10 PM (in response to Intel Corporation)Hi Jesus,
The output the command 'get_aero_version.py' is displayed below:
BIOS_VERSION = Aero-01.00.13
OS_VERSION = Poky Aero (Intel Aero Linux Distro) 1.5.1 (pyro)''
AIRMAP_VERSION = 1.8
FPGA_VERSION = 0xc1
Thanks,
TH
-
7. Re: About I2C Sensors
Oct 26, 2017 4:20 PM (in response to th_Intel_Community)This message was posted on behalf of Intel CorporationHi TH,
Try running the following command then executing the binary again.sysctl -w kernel.sched_rt_runtime_us=-1
./BARO_generic
Regards,
Jesus