Skip to content

Commit

Permalink
Minor comments and cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Dec 7, 2024
1 parent 0a8676e commit add0035
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,4 @@ upload_speed = 921600
; ${env.build_flags}
; -DESP32C3
;board = lolin_c3_mini
;monitor_filters = colorize, esp32_exception_decoder
2 changes: 1 addition & 1 deletion src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#define BMI160_QMC_REMAP AXIS_REMAP_BUILD(AXIS_REMAP_USE_Y, AXIS_REMAP_USE_XN,
AXIS_REMAP_USE_Z, \ AXIS_REMAP_USE_YN, AXIS_REMAP_USE_X, AXIS_REMAP_USE_Z)
IMU_DESC_ENTRY(IMU_BMP160, PRIMARY_IMU_ADDRESS_ONE, IMU_ROTATION, PIN_IMU_SCL,
SENSOR_DESC_ENTRY(IMU_BMP160, PRIMARY_IMU_ADDRESS_ONE, IMU_ROTATION, PIN_IMU_SCL,
PIN_IMU_SDA, PRIMARY_IMU_OPTIONAL, BMI160_QMC_REMAP) \
*/

Expand Down
5 changes: 4 additions & 1 deletion src/network/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,11 @@ void Connection::sendSensorInfo(Sensor& sensor) {
MUST(sendShort(sensor.getSensorConfigData()));
MUST(sendByte(sensor.getSensorPosition()));
MUST(sendByte(sensor.getDataType()));
// ADD NEW FILEDS ABOVE THIS COMMENT ^^^^^^^^
// WARNING! Only for debug purposes and SHOULD ALWAYS BE LAST IN THE PACKET.
// It WILL BE REMOVED IN THE FUTURE
// ADD NEW FILEDS ABOVE THIS COMMENT ^^^^^^^^
// Send TPS
// TODO : Do we keep it after testing?
MUST(sendFloat(sensor.m_tpsCounter.getAveragedTPS()));
MUST(sendFloat(sensor.m_dataCounter.getAveragedTPS()));

Expand Down

0 comments on commit add0035

Please sign in to comment.