Commit graph

12 commits

Author SHA1 Message Date
Alan Weinstock
c82c3e9bf5
Merge branch 'master' into MinorOptimizations 2019-04-22 15:47:20 -07:00
5a6d5ca7db Fixes for oscillating PWM output
- Added hysteresis input for UART/I2C
- Fixed example to show correct command (VADJ vs VADJH)
- added TRG_DUR to the interrupt function
- Migrated math for 8-10bit ADC to a different function
- Organized/added debug serial output
- fixed line begin whitespace
2019-04-22 15:32:26 -07:00
Foodbandlt
0e318eab7c Fixing debug vars in case they ever want to be used again
Integer result needs to be cast to a float to obtain a float result from division.
2019-04-22 03:31:52 -04:00
Foodbandlt
e16c35cd32 Converting to defines and else ifs
Defines save flash and progmem and elseifs increase execution speed on code repeated on every loop.

Side note, something funky happened with the spacing.  Fixed it, but it's slightly different than what it was before.
2019-04-22 03:25:52 -04:00
5ff215c0da migrated floats to #define values
for more efficient compilation, switched float values set in initial config to definitions that are immediately computed into integers, which cut down on flash usage. also removed non-working debug float outputs for VCompRef and vAdjRead as stated in https://github.com/pyr0ball/pyr0piezo/issues/20
2019-04-21 23:44:31 -07:00
95ea64a822 fixed unary operators for adjustment logic
- Switched unary operators to correct syntax (+= vs =+) Should fix oscillation noted in https://github.com/pyr0ball/pyr0piezo/issues/24
- Added software hysteresis to the adjustment function. Referenced in https://github.com/pyr0ball/pyr0piezo/issues/24
- Fixed notes to show the correct gain factors
2019-04-21 23:02:16 -07:00
bd64d8f707 fixed syntax preventing compilation 2019-03-15 22:17:51 -07:00
55c6f867c2 Added rudimentary i2c listener, fixed loop
Rearranged a couple of functions from the serial input function to be
back in the loop where they belong. Added a rudimentary i2c listener
that should allow for parameter updates, but will only reply with "OK"
for now

Progress on:
 - https://github.com/pyr0ball/pyr0piezo/issues/2
 - https://github.com/pyr0ball/pyr0piezo/issues/22
2019-03-15 19:30:05 -07:00
1a06027bc1 Replaced serial parser, verified parameters update
Progress on https://github.com/pyr0ball/pyr0piezo/issues/2

See notes on wiki for serial input format
2019-03-13 23:01:43 -07:00
8084e65eeb Updated library and components 2019-03-09 00:17:59 -08:00
2297f15207 Fixed PWM output syntax
Fixes issue https://github.com/pyr0ball/pyr0piezo/issues/19
2019-03-08 13:08:04 -08:00
200702d12d removed unused firmware, renamed existing to follow nomenclature 2019-02-25 14:02:36 -08:00