mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 01:41:36 +08:00
Add required rotation option to driver startup command and fix a couple of details in warnings/comments
This commit is contained in:
committed by
Lorenz Meier
parent
b797657694
commit
2dac97fe68
@@ -60,7 +60,7 @@ typedef void (*capture_callback_t)(void *context, uint32_t chan_index,
|
|||||||
hrt_abstime edge_time, uint32_t edge_state, uint32_t overflow);
|
hrt_abstime edge_time, uint32_t edge_state, uint32_t overflow);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maximum number of PWM output channels supported by the device.
|
* Maximum number of PWM input channels supported by the device.
|
||||||
*/
|
*/
|
||||||
#ifndef INPUT_CAPTURE_MAX_CHANNELS
|
#ifndef INPUT_CAPTURE_MAX_CHANNELS
|
||||||
#define INPUT_CAPTURE_MAX_CHANNELS 6
|
#define INPUT_CAPTURE_MAX_CHANNELS 6
|
||||||
|
|||||||
@@ -1102,7 +1102,7 @@ int HMC5883::calibrate(struct file *filp, unsigned enable)
|
|||||||
|
|
||||||
/* start the sensor polling at 50 Hz */
|
/* start the sensor polling at 50 Hz */
|
||||||
if (OK != ioctl(filp, SENSORIOCSPOLLRATE, 50)) {
|
if (OK != ioctl(filp, SENSORIOCSPOLLRATE, 50)) {
|
||||||
warn("FAILED: SENSORIOCSPOLLRATE 2Hz");
|
warn("FAILED: SENSORIOCSPOLLRATE 50Hz");
|
||||||
ret = 1;
|
ret = 1;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,8 @@
|
|||||||
* @file lis3mdl.cpp
|
* @file lis3mdl.cpp
|
||||||
*
|
*
|
||||||
* Driver for the LIS3MDL magnetometer connected via I2C or SPI.
|
* Driver for the LIS3MDL magnetometer connected via I2C or SPI.
|
||||||
|
*
|
||||||
|
* Based on the hmc5883 driver.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <px4_config.h>
|
#include <px4_config.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user