-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconfig.h
More file actions
30 lines (23 loc) · 812 Bytes
/
config.h
File metadata and controls
30 lines (23 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
// packet interval in ms
#define TRANSMIT_INTERVAL 50
#define THROTTLE_PIN 39
#define BRAKE_PIN 36
#define MECHANICAL_BRAKE_PIN 34
#define LED_MOSFET_PIN 32
// the hall sensors have values between 0.8V and 5V resulting in 179-1024 for a 10bit 5V ADC
#define THROTTLE_READ_MIN 225
#define THROTTLE_READ_MAX 800
#define BRAKE_READ_MIN 225
#define BRAKE_READ_MAX 800
// min/max values on the bus
#define THROTTLE_MIN 0x2C
#define THROTTLE_MAX 0xC5
#define BRAKE_MIN 0x2C
#define BRAKE_MAX 0xB5
// mDNS name, the webinterface will be available at http://<name>.local
#define MDNS_DOMAIN_NAME "scooter"
#define NTP_SERVER_1 "de.pool.ntp.org"
#define NTP_SERVER_2 "ptbtime2.ptb.de"
#define NTP_SERVER_3 "ntp.uni-regensburg.de"
#define DEFAULT_UPDATE_URL "https://jakobloew.me/scooter/dashboard.bin"