188.1.275
by Selene Scriven
added support for Fireflies ROT66 G2 and PL47 G2 |
1 |
// Fireflies PL47 G2 config options for Anduril
|
2 |
#include "hwdef-FF_PL47.h" |
|
3 |
||
4 |
// the button lights up
|
|
5 |
#define USE_INDICATOR_LED
|
|
6 |
// the aux LEDs are in the same place as the main LEDs
|
|
7 |
#ifdef USE_INDICATOR_LED_WHILE_RAMPING
|
|
8 |
#undef USE_INDICATOR_LED_WHILE_RAMPING
|
|
9 |
#endif
|
|
10 |
// enable blinking indicator LED while off?
|
|
11 |
#define TICK_DURING_STANDBY
|
|
12 |
#define STANDBY_TICK_SPEED 3 // every 0.128 s |
|
13 |
#define USE_FANCIER_BLINKING_INDICATOR
|
|
14 |
||
15 |
// If TICK_DURING_STANDBY is enabled...
|
|
16 |
// off mode: low (1)
|
|
17 |
// lockout: blinking (3)
|
|
18 |
#define INDICATOR_LED_DEFAULT_MODE ((3<<2) + 1)
|
|
19 |
||
20 |
||
21 |
#define RAMP_LENGTH 150
|
|
22 |
||
23 |
// driver is a FET + 3x7135, ~400 lm at highest regulated level
|
|
24 |
// ramp copied from Emisar D4S ramp
|
|
25 |
#define PWM1_LEVELS 1,1,2,2,3,3,4,4,5,5,6,6,7,8,8,9,10,10,11,12,13,14,15,16,17,18,19,21,22,23,25,26,27,29,31,32,34,36,38,40,42,44,46,49,51,54,56,59,62,65,68,71,74,78,81,85,89,93,97,101,106,110,115,120,125,130,136,141,147,153,160,166,173,180,187,195,202,210,219,227,236,245,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0
|
|
26 |
#define PWM2_LEVELS 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,3,4,5,7,8,10,11,13,14,16,18,19,21,23,25,27,29,31,34,36,38,41,43,46,48,51,54,57,60,63,66,69,72,76,79,83,87,91,95,99,103,107,112,116,121,126,131,136,141,146,152,158,163,169,175,182,188,195,202,209,216,223,231,239,247,255
|
|
27 |
#define MAX_1x7135 83
|
|
28 |
#define HALFSPEED_LEVEL 13
|
|
29 |
#define QUARTERSPEED_LEVEL 6
|
|
30 |
||
31 |
// thermal regulation parameters
|
|
32 |
#ifdef MIN_THERM_STEPDOWN
|
|
33 |
#undef MIN_THERM_STEPDOWN // this should be lower, because 3x7135 instead of 1x7135 |
|
34 |
#endif
|
|
35 |
#define MIN_THERM_STEPDOWN 60 // lowest value it'll step down to |
|
36 |
||
37 |
// ceiling is level 120/150
|
|
38 |
#define RAMP_SMOOTH_CEIL 120
|
|
39 |
||
40 |
// 10, 28, 46, 65, [83], 101, 120
|
|
41 |
#define RAMP_DISCRETE_FLOOR 10
|
|
42 |
#define RAMP_DISCRETE_CEIL 120
|
|
43 |
#define RAMP_DISCRETE_STEPS 7
|
|
44 |
||
45 |
// ~25 lm to ~300 lm
|
|
46 |
#define MUGGLE_FLOOR 30
|
|
47 |
#define MUGGLE_CEILING MAX_1x7135
|
|
48 |
||
49 |
// regulate down faster when the FET is active, slower otherwise
|
|
50 |
#define THERM_FASTER_LEVEL 135 // throttle back faster when high |
|
51 |
||
52 |
// don't do this
|
|
53 |
#undef BLINK_AT_RAMP_MIDDLE
|
|
54 |
#undef BLINK_AT_RAMP_CEILING
|
|
55 |