Clean up defines

This commit is contained in:
Eiren Rain
2021-09-14 12:24:29 +03:00
parent c53457b405
commit f85f15fd61
2 changed files with 46 additions and 24 deletions

45
src/debug.h Normal file
View File

@@ -0,0 +1,45 @@
/*
SlimeVR Code is placed under the MIT license
Copyright (c) 2021 Eiren Rain
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#define IMU_MPU6050_RUNTIME_CALIBRATION // Comment to revert to startup/traditional-calibration
//Debug information
//#define FULL_DEBUG
#define serialDebug false // Set to true to get Serial output for debugging
#define serialBaudRate 115200
#define UPDATE_IMU_UNCONNECTED 1
#define SEND_UPDATES_UNCONNECTED 1
#define LED_INTERVAL_STANDBUY 10000
#define STATUS_PRINT_INTERVAL 15000
// Determines how often we sample and send data
#define samplingRateInMillis 10
#define batterySampleRate 10000
// Setup for the Magnetometer
#define useFullCalibrationMatrix true
#define sensorIdTime 1000
#define sensorIdInterval 100
#define FIRMWARE_BUILD_NUMBER 6
#define FIRMWARE_VERSION "0.1.0"

View File

@@ -21,6 +21,7 @@
THE SOFTWARE.
*/
#include "consts.h"
#include "debug.h"
// Set parameters of IMU and board used
#define IMU IMU_BNO085
@@ -61,8 +62,6 @@
#define IMU_HAS_GYRO true
#define IMU_HAS_MAG false
#define I2C_SPEED 100000
// User-Configurable
#define IMU_MPU6050_RUNTIME_CALIBRATION // Comment to revert to startup/traditional-calibration
#elif IMU == IMU_MPU6500
#define IMU_NAME "MPU6500"
@@ -110,26 +109,4 @@
#define CALIBRATING_LED LED_BUILTIN
#define STATUS_LED LED_BUILTIN
//Debug information
//#define FULL_DEBUG
#define serialDebug false // Set to true to get Serial output for debugging
#define serialBaudRate 115200
#define UPDATE_IMU_UNCONNECTED 1
#define SEND_UPDATES_UNCONNECTED 1
#define LED_INTERVAL_STANDBUY 10000
#define STATUS_PRINT_INTERVAL 15000
// Determines how often we sample and send data
#define samplingRateInMillis 10
#define batterySampleRate 10000
// Setup for the Magnetometer
#define useFullCalibrationMatrix true
#define sensorIdTime 1000
#define sensorIdInterval 100
#define batteryADCMultiplier 1.0 / 1024.0 * 5.0
#define FIRMWARE_BUILD_NUMBER 5
#define FIRMWARE_VERSION "0.0.5"