Hi RM,
Here is the hal_classes for thermometer and barometer.
Now I hope every thing is ok .
I'm waiting for your feedback to start the driver side.
Thanks
Theo.
Digital pressure sensor Driver
- tfAteba
- Posts: 547
- Joined: Fri Oct 16, 2015 11:03 pm
- Location: Strasbourg, France
- Has thanked: 91 times
- Been thanked: 48 times
Re: Digital pressure sensor Driver
- Attachments
-
- hal_barometer&thermometer.rar
- (3.24 KiB) Downloaded 220 times
- RoccoMarco
- Posts: 655
- Joined: Wed Apr 24, 2013 4:11 pm
- Location: Munich (Germany)
- Has thanked: 83 times
- Been thanked: 67 times
- Contact:
Re: Digital pressure sensor Driver
Hi Theo,
I will take a look soon. I will commit some changes to baseSensor first changing axes in channels.
Ciao,
RM
I will take a look soon. I will commit some changes to baseSensor first changing axes in channels.
Ciao,
RM
- tfAteba
- Posts: 547
- Joined: Fri Oct 16, 2015 11:03 pm
- Location: Strasbourg, France
- Has thanked: 91 times
- Been thanked: 48 times
Re: Digital pressure sensor Driver
Hi RM,
No problem, I'm going to start to focus on the driver for my sensor while waiting your feedback and your change on the baseSensor.
Did you test you lsm303dlhc driver with a device ? I'm going to look on it to make mine
regards,
Theo.
No problem, I'm going to start to focus on the driver for my sensor while waiting your feedback and your change on the baseSensor.
Did you test you lsm303dlhc driver with a device ? I'm going to look on it to make mine
regards,
Theo.
- RoccoMarco
- Posts: 655
- Joined: Wed Apr 24, 2013 4:11 pm
- Location: Munich (Germany)
- Has thanked: 83 times
- Been thanked: 67 times
- Contact:
Re: Digital pressure sensor Driver
All commited driver are tested and hopefully free from bugs. Demos are under testhal.
Ciao,
RM
Ciao,
RM
- tfAteba
- Posts: 547
- Joined: Fri Oct 16, 2015 11:03 pm
- Location: Strasbourg, France
- Has thanked: 91 times
- Been thanked: 48 times
Re: Digital pressure sensor Driver
Yes I saw the demo, they are very clear, but the driver is a bit difficult to understand in some point. I will ask questions later if need.
Theo.
Theo.
- RoccoMarco
- Posts: 655
- Joined: Wed Apr 24, 2013 4:11 pm
- Location: Munich (Germany)
- Has thanked: 83 times
- Been thanked: 67 times
- Contact:
- tfAteba
- Posts: 547
- Joined: Fri Oct 16, 2015 11:03 pm
- Location: Strasbourg, France
- Has thanked: 91 times
- Been thanked: 48 times
Re: Digital pressure sensor Driver
Hi RM,
While reading your Driver and your demo program for the lsm303dlhc I found 2 confusing things for the moment:
1. in the I2C-LSM303DLHC demo, from the readme file on the line 2, I think it should be
instead of
2. In the lsm303dlhc.h file in line 101, when checking for configuration, you wrote:
maybe it should be:
regards,
Theo.
While reading your Driver and your demo program for the lsm303dlhc I found 2 confusing things for the moment:
1. in the I2C-LSM303DLHC demo, from the readme file on the line 2, I think it should be
** ChibiOS/HAL + ChibiOS/EX - I2C + LSM303DLHC demo for STM32F4xx. **
instead of
** ChibiOS/HAL + ChibiOS/EX - SPI + LSM303DLHC demo for STM32F4xx. **
2. In the lsm303dlhc.h file in line 101, when checking for configuration, you wrote:
#error "LSM303DLHC_SHARED_SPI requires I2C_USE_MUTUAL_EXCLUSION"
maybe it should be:
#error "LSM303DLHC_SHARED_I2C requires I2C_USE_MUTUAL_EXCLUSION"
regards,
Theo.
- RoccoMarco
- Posts: 655
- Joined: Wed Apr 24, 2013 4:11 pm
- Location: Munich (Germany)
- Has thanked: 83 times
- Been thanked: 67 times
- Contact:
Re: Digital pressure sensor Driver
Good catches. I will fix them and read all my code again. I have edited them more than once.
Ciao,
RM
Ciao,
RM
- tfAteba
- Posts: 547
- Joined: Fri Oct 16, 2015 11:03 pm
- Location: Strasbourg, France
- Has thanked: 91 times
- Been thanked: 48 times
Re: Digital pressure sensor Driver
Hi RM,
Another remark for your readme file in the I2C-LSM303DLHC demo:
The comment tell that the on board LED is blinking by using a thread. But in your demo, there is no thread, your LED is toggle in the main loop .
About the BMP085 driver and the demo, I just finished a beta version and I can read temperature and pressure from the sensor but I still need to clean the code a bit before to share. I hope I will have time before next week to do that.
regards,
Theo.
Another remark for your readme file in the I2C-LSM303DLHC demo:
The comment tell that the on board LED is blinking by using a thread. But in your demo, there is no thread, your LED is toggle in the main loop .
About the BMP085 driver and the demo, I just finished a beta version and I can read temperature and pressure from the sensor but I still need to clean the code a bit before to share. I hope I will have time before next week to do that.
regards,
Theo.
- RoccoMarco
- Posts: 655
- Joined: Wed Apr 24, 2013 4:11 pm
- Location: Munich (Germany)
- Has thanked: 83 times
- Been thanked: 67 times
- Contact:
Re: Digital pressure sensor Driver
Thanks I'll check this too. I have been busy with other things.
Ciao
RM
Ciao
RM
Who is online
Users browsing this forum: No registered users and 31 guests