Skip to content

Commit

Permalink
cm8jl65: Refactor driver, employ uniform initialization, format, and …
Browse files Browse the repository at this point in the history
…deprecate ringbuffer and IOCTL. (#11853)

* Move cm8jl65 class member variable initialization from constructor list to declarations.  Format whitespace and move method doxy comments  to declarations.

* Refactor the cm8jl65 driver start() method, and rename info()->status().

* Continued refactoring of the cm8jl65 driver class:
 - Condense all class files into a single *.cpp file and give class scope resolution to previously unscoped methods.
 - Refactor cm8jl65 namespace level driver entry methods to reduce code and improve clarity.
 - Breakout CDev specific initialization LOC into the device_init() method.
 - Move the endian modification inside of the crc16_calc() method.

* Deprecate the hardware ringbuffer, _class_instance, and ioctl() from the cm8jl65 driver.
  • Loading branch information
mcsauder authored and dagar committed Jun 29, 2019
1 parent 4b778fd commit db96b6c
Show file tree
Hide file tree
Showing 4 changed files with 439 additions and 730 deletions.
3 changes: 1 addition & 2 deletions src/drivers/distance_sensor/cm8jl65/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@
px4_add_module(
MODULE drivers__cm8jl65
MAIN cm8jl65
STACK_MAIN 1400
STACK_MAIN 1200
SRCS
cm8jl65.cpp
cm8jl65_parser.cpp
MODULE_CONFIG
module.yaml
)
Loading

0 comments on commit db96b6c

Please sign in to comment.