Rank: 3730 based on 34 downloads (last 30 days) and 1 file submitted
photo

Glen

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Glen
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Oct 2013 Screenshot Raspberry Pi MPU6050-HMC5883L SFunction with I2C Communication using WiringPiI2C 9DOF S-function with MPU6050 and HMC5883L Author: Glen raspberry pi, mpu6050, hmc5883l 34 1
  • 3.0
3.0 | 1 rating
Comments and Ratings by Glen View all
Updated File Comments Rating
30 Sep 2013 Raspberry Pi MPU6050 SFunction with I2C Communication using WiringPiI2C Raspberry Pi SFunction to obtain MPU6050 data using the C-library WiringPiI2C. Author: Joshua Hurst

Great Work Josh!

16 Jun 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Hi,

I have tried a number of different things to try and get the wrapper.cpp file included into the source_files listed in the .mk (make) file, rather than it being skipped. This has included editing the rtwmakecfg and trying to find the toolchain that is used to compile the .mk file. Editing the rtwmakecfg was unsuccessful. I did edit a Linux tool chain located in the "coder" directory. But I don't think it is the one that is used. The toolchain that is listed in the .mk file I cannot find - gmake, LinuxRemoteBuild.

09 Jun 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Hi,

I have been trying again to get the MPU6050/HMC5883L model to build on the RPi. In the make file (.mk) which is included in the (_rtt) folder, when I rename the _wrapper.cpp file it is listed as a "SKIPPED_FILE". When I do not rename the wrapper.c is included in the "SOURCE_FILES". I have tried to get it included by editing the SFB.mat file but still no luck.

03 Jun 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Hi Giampiero,

Many thanks for your reply. I should explain more. I am trying to incorporate the libraries for the MPU6050 and HMC5883L. The code I have previously compiled on the PI. I used the Arduino MPU6050 S-Function Builder Example from Joshua Hurst as a Starting point and replaced the Arduino Libraries with the Libraries I have for the PI - including the I2Cdev. The S-function builds successfully. I then change the _wrapper from .c to .cpp and apply the extern "C" changes. However, when I run on target hardware - using the MATLAB Pi Support Package - it does not include the wrapper .cpp or any .cpp file in the folder (_rtt) it downloads to the PI to compile and run. If I leave the wrapper.c unchanged it does get incorporated into the _rtt folder but then I have unreferenced .cpp files not included.

I can send you my work so far if it helps.

Many thanks for your support.

Best Wishes
Glen

02 Jun 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Hi Giampiero,

I am trying build a model incorporating an S-Function Builder for my RaspPi. Because it includes C++ files I change the wrapper file extension to .cpp and at extern "C" infront of the Outputs and Update wrapper. However, when I run the model a further file is built with the extension _rtt and it does not include my wrapper file and other .cpp files within the file that gets downloaded to the RaspPi, hence I get undefined references.

I have tried a number of things but starting to go around in circles.

Any help would be appreciated.

Best Wishes
Glen

Comments and Ratings on Glen's Files View all
Updated File Comment by Comments Rating
03 Jan 2014 Raspberry Pi MPU6050-HMC5883L SFunction with I2C Communication using WiringPiI2C 9DOF S-function with MPU6050 and HMC5883L Author: Glen Hamza

Hi !

Thank you for sharing :) Is it possible to add the management of the MS5611 ?

bests

02 Oct 2013 Raspberry Pi MPU6050-HMC5883L SFunction with I2C Communication using WiringPiI2C 9DOF S-function with MPU6050 and HMC5883L Author: Glen sakuyaki

Contact us