Commit Graph

337 Commits (7547db7fb0cace1233dc7ff1725b4b45395c871f)

Author SHA1 Message Date
alanbjohnston 6a51214407
50ms delay
7 years ago
alanbjohnston 200b33ed85
tried 2'c complement manual
7 years ago
alanbjohnston c2c56d3944
cleanup after paste and replacing current code too
7 years ago
alanbjohnston 4bcd29327e
typo
7 years ago
alanbjohnston 647a746081
removing wireRead by including code
7 years ago
alanbjohnston f7cf243f36
reverted to previously working with wireRead
7 years ago
alanbjohnston 0f9e1e0835
typo
7 years ago
alanbjohnston af3c96f3c3
fixed typo
7 years ago
alanbjohnston 751da0655e
separate value1 and value2 byte reads
7 years ago
alanbjohnston 7d79af0af9
copied code from wireRead but with int16_t
7 years ago
alanbjohnston c7c6300429
wireReadRegister for current change
7 years ago
alanbjohnston 16478e9d0b
reverted removal of wireReadRegister
7 years ago
alanbjohnston 9420a0b4d7
fixing voltage read problem
7 years ago
alanbjohnston 38110e17c7
replaced last wireReadRegister with wiringPiI2CReadReg16
7 years ago
alanbjohnston 02ea0b9fca
cleanup
7 years ago
alanbjohnston 55c17eb66d
cleanup
7 years ago
alanbjohnston 4f278865a3
back to 16, fixed current shunt calc
7 years ago
alanbjohnston b3160db85c
Tried 12 bits
7 years ago
alanbjohnston 83522ab8f1
fixed shunt calc
7 years ago
alanbjohnston 2719d43034
Update main.c
7 years ago
alanbjohnston e0f01d9b8e
reading shunt voltage and manually calculating current
7 years ago
alanbjohnston 757321b085
removed extra printfs
7 years ago
alanbjohnston c2d331fbd8
fix current calc
7 years ago
alanbjohnston 8399d4ebfb
use twos
7 years ago
alanbjohnston dcbaf2ea98
Update main.c
7 years ago
alanbjohnston b6f6fb8092
Update main.c
7 years ago
alanbjohnston 9164aed395
Update main.c
7 years ago
alanbjohnston ef1961a4ff
Update main.c
7 years ago
alanbjohnston 3674229ade
twosToInt
7 years ago
alanbjohnston 5a83e38f64
Update main.c
7 years ago
alanbjohnston 64cff2c6c5
Update main.c
7 years ago
alanbjohnston be25eb5d88
two's c
7 years ago
alanbjohnston 854d1ca980
Update main.c
7 years ago
alanbjohnston 8a3ad9a14f
Update main.c
7 years ago
alanbjohnston aefe4c9469
3 step
7 years ago
alanbjohnston f233dfb837
Update main.c
7 years ago
alanbjohnston 51868dc739
Update main.c
7 years ago
alanbjohnston 29cd1da1c7
3 steps
7 years ago
alanbjohnston cbfa6829c4
printf in 3 values
7 years ago
alanbjohnston d40e214b39
revert
7 years ago
alanbjohnston 55d68e0b10
uint8_t
7 years ago
alanbjohnston ffcaff8c2d
another change
7 years ago
alanbjohnston 1ac88664e0
changing ints
7 years ago
alanbjohnston d8a28a9179
fixed fd in write
7 years ago
alanbjohnston 053a867ebd
added register write
7 years ago
alanbjohnston 221df1fe09
typo
7 years ago
alanbjohnston b3be894747
added printf to see values
7 years ago
alanbjohnston faa41d1c35
defined value and value2
7 years ago
alanbjohnston a5dcb9b2cb
fixed int16_t for current calc
7 years ago
alanbjohnston 7d06c94372
switched to two wiringPiI2CRead 8 bit reads instead of 16 bit read
7 years ago
alanbjohnston c23c37ac21
type in unit16_t
7 years ago
alanbjohnston d3a321fda1
added int16_t to current I2CRead
7 years ago
alanbjohnston 7d963a0c0c
added (float) to current divider and power multiplier
7 years ago
alanbjohnston 05dde0a0ef
added #ifdef SATNOGS to curl uploading code and cleanup
7 years ago
alanbjohnston b41e2b78f9
Merge branch 'ina-struct-satnogs' into satnogs-upload
7 years ago
alanbjohnston 0da6174626
formatting cleanup
7 years ago
alanbjohnston b6b7cc235c
print formatting
7 years ago
alanbjohnston ed5d4844e5
fixed printf formatting
7 years ago
alanbjohnston 001eb01124
typo fix
7 years ago
alanbjohnston eb884ce0e6
cleanup of commented out code
7 years ago
alanbjohnston cb9d4609da
always get voltage and power, cleanup
7 years ago
alanbjohnston fa4850f555
added 2x multiply to fix current values
7 years ago
alanbjohnston 6816d503b5
changed data.config from Adafruit Lib
7 years ago
alanbjohnston a84d5297ee
typos
7 years ago
alanbjohnston 69d4f1a6a7
fixed typos in config function
7 years ago
alanbjohnston 589a817982
added 400mA and 2A configurations
7 years ago
alanbjohnston 86687fea6e
fixed compiler warnings
7 years ago
alanbjohnston 47e2d82e04
fixed x_fd in function call
7 years ago
alanbjohnston 8c591373ca
added sensor reading to the read_sensor_data function
7 years ago
alanbjohnston 278f79d7c8
fixed typos
7 years ago
alanbjohnston 8ea8eaffb5
fixed references to data struct
7 years ago
alanbjohnston 87332dc6a2
fixed initialization of struct
7 years ago
alanbjohnston 025e6effb7
created config structure
7 years ago
alanbjohnston 5fef435df2
Merge branch 'ina-struct' into refactor-i2c-reading-code
7 years ago
alanbjohnston 61240b40ec
changed to all sensor[] tlm
7 years ago
alanbjohnston 8db31fc5c3
commented out readcurrenty.py call
7 years ago
alanbjohnston e6fd3b3dca
changed order of current and bus reading to match old code
7 years ago
alanbjohnston f2260ebc63
commented out last of x_fd, y_fd, and z_fd
7 years ago
alanbjohnston 1171effa92
disable old code to test new code
7 years ago
Alan Johnston 3998bc3165 -X, -Y, and -Z voltage working!
7 years ago
alanbjohnston b10a98064a
fixed value type
7 years ago
alanbjohnston 6d2b7ae798
reverted bus switch, testing new busVolts calculation
7 years ago
alanbjohnston de2c89411d
turning off master code i2c-1 read as a test
7 years ago
alanbjohnston ee45b62175
switched master code from 1 to 0 to test
7 years ago
alanbjohnston 29522b3220
changed to %+4.2f for sign alignment
7 years ago
alanbjohnston 57112c38b1
Changed -1 to OFF
7 years ago
alanbjohnston eb6cff57d8
fixed x_voltage, x_power definitions
7 years ago
alanbjohnston 0427a73b1e
commented out unneeded #defines
7 years ago
alanbjohnston accfbe7747
fixed #DEBUG LOGGING of x_fd, y_fd, and z_fd
7 years ago
alanbjohnston 52a9087bf0
reconfigures power and voltage to eliminate no debug compiler warnings
7 years ago
alanbjohnston 03261b9cfe
added missing #ifdef DEBUG_LOGGING around printfs
7 years ago
alanbjohnston 09bc98a60a
got rid of "sensnsor"
7 years ago
alanbjohnston eddd071771
changed temp printf
7 years ago
alanbjohnston b9b8d7e826
fixed V printf
7 years ago
alanbjohnston e46e82f18a
cleanup of V, mA, and mW printfs
7 years ago
alanbjohnston 17d99e839b
added x_voltage, y_voltage, and z_voltage readings
7 years ago
alanbjohnston 1addf19abc
changed to all I2C telemetry
7 years ago
alanbjohnston 235fd7d6dd
removed debug ina219[] printf
7 years ago
alanbjohnston 4babd58712
fixed printf
7 years ago
alanbjohnston e87ea997f0
fixed config and x_power from master
7 years ago

Powered by TurnKey Linux.