浏览代码

More comments formatting

tags/v1.4.2^2
Bertrand Lemasle 6 年前
父节点
当前提交
b888fff3e6
共有 5 个文件被更改,包括 8 次插入8 次删除
  1. +1
    -1
      src/config/Alerts.h
  2. +2
    -2
      src/config/BackupNetwork.h
  3. +1
    -1
      src/config/Gps.h
  4. +1
    -1
      src/config/Hardware.h
  5. +3
    -3
      src/config/Sleeps.h

+ 1
- 1
src/config/Alerts.h 查看文件

@@ -11,7 +11,7 @@
* clearing the levels and retriggering them the next time.
*/
#define ALERTS_ON_SERIAL _DEBUG ///< Display alerts on serial when connected rather than sending an SMS.
#define ALERTS_ON_SERIAL _DEBUG ///< Display alerts on serial when connected rather than sending an SMS.
#define CONFIG_BATTERY_ALERT_LEVEL1 45 ///< Battery percentage at which to trigger the first low battery alert.
#define CONFIG_BATTERY_ALERT_LEVEL2 38 ///< Battery percentage at which to trigger the final low battery alert.
#define CONFIG_BATTERY_ALERT_CLEAR 60 ///< Battery percentage at which to clear all battery alerts.


+ 2
- 2
src/config/BackupNetwork.h 查看文件

@@ -9,8 +9,8 @@
#define POSITIONS_CONFIG_NET_URL "http://yourserver.com/endpoint" ///< URL to which positions data will be send through an HTTP POST request
#define POSITIONS_CONFIG_NET_EXPECTED_RESPONSE 201 ///< Expected response code from the server that indicates that the positions has been successfully backuped.
#define POSITIONS_CONFIG_NET_UNAVAILABLE_NETWORK_POSTPONE_THRESHOLD 5 ///< Determines how many times to deal with an unreliable network before postponing the backup.
///< In an area where cell reception isn't good, this avoid to try to backup the positions
///< every single time, which would rapidly consumes all the battery.
///< In an area where cell reception isn't good, this avoid to try to backup the positions
///< every single time, which would rapidly consumes all the battery.
struct networkConfig_t {
uint8_t saveThreshold; //sizeof = 1


+ 1
- 1
src/config/Gps.h 查看文件

@@ -6,7 +6,7 @@
#define GPS_INTERMEDIATE_TIMEOUT_MS 10000L ///< Time to sleeps between each GPS signal assessment.
#define GPS_TOTAL_TIMEOUT_MS 80000L ///< Timeout after which to stop trying to get a GPS signal.
#define GPS_MISSED_POSITION_GAP_KM 2 ///< Gap between the current and previous position above which to consider
#define GPS_MISSED_POSITION_GAP_KM 2 ///< Gap between the current and previous position above which to consider
///< that the tracker has moved. Even if stopped, this will trigger a whole
///< new "cycle" of positions acquisition, and will avoid missing positions
///< because while moving, the tracker woke up while stopped at a light traffic for instance.

+ 1
- 1
src/config/Hardware.h 查看文件

@@ -5,7 +5,7 @@
#include <E24.h>
#include <SoftwareSerial.h>
#define E24_ADDRESS E24_ADDR ///< I2C address of the 24xxx chip
#define E24_ADDRESS E24_ADDR ///< I2C address of the 24xxx chip
#define E24_SIZE E24Size_t::E24_512K ///< 24xxx chip size
#define SIM808_BAUDRATE 4800 ///< Control the baudrate use to communicate with the SIM808 module


+ 3
- 3
src/config/Sleeps.h 查看文件

@@ -7,7 +7,7 @@
#define SLEEP_TIMING_TIME(hours, minutes) hours * 60 + minutes
#define SLEEP_TIME_SECONDS 1800 ///< Default sleep time
#define SLEEP_TIMING_MIN_MOVING_VELOCITY 5 ///< Speed under which to consider the tracker as not moving
#define SLEEP_TIMING_MIN_MOVING_VELOCITY 5 ///< Speed under which to consider the tracker as not moving
#define SLEEP_PAUSING_TIME_SECONDS 270 ///< Sleep time to use when not moving
#define SLEEP_STOPPED_THRESHOLD 5 ///< Number of successive positions acquired as not moving before considering the tracker as stopped
@@ -35,10 +35,10 @@ namespace config {
*/
static const sleepTimings_t defaultSleepTimings[] PROGMEM = {
// Sleep timings when not moving
{ 0, SLEEP_TIMING_TIME(16, 00), SLEEP_TIMING_TIME(19, 59), 3600 }, ///< 1 hour between 16:00 and 20:00 UTC (04:00 to 08:00 UTC+12)
{ 0, SLEEP_TIMING_TIME(16, 00), SLEEP_TIMING_TIME(19, 59), 3600 }, ///< 1 hour between 16:00 and 20:00 UTC (04:00 to 08:00 UTC+12)
{ 0, SLEEP_TIMING_TIME(20, 00), SLEEP_TIMING_MAX, SLEEP_TIME_SECONDS }, ///< default (30 minutes) between 20:00 and 00:00 UTC (08:00 to 12:00 UTC+12)
{ 0, SLEEP_TIMING_MIN, SLEEP_TIMING_TIME(8, 29), SLEEP_TIME_SECONDS }, ///< default (30 minutes) between 00:00 and 8:30 UTC (12:00 to 20:30 UTC+12)
{ 0, SLEEP_TIMING_TIME(8, 30), SLEEP_TIMING_TIME(15, 59), 10800 }, ///< 3 hours between 20:30 and 16:00 UTC (20:30 to 04:00 UTC+12)
{ 0, SLEEP_TIMING_TIME(8, 30), SLEEP_TIMING_TIME(15, 59), 10800 }, ///< 3 hours between 20:30 and 16:00 UTC (20:30 to 04:00 UTC+12)
// Sleep timings while moving
{ SLEEP_TIMING_MIN_MOVING_VELOCITY, SLEEP_TIMING_MIN, SLEEP_TIMING_MAX, 540 }, ///< 540 seconds when speed > SLEEP_TIMING_MIN_MOVING_VELOCITY (5km/h)


||||||
x
 
000:0
正在加载...
取消
保存