Commit Graph

1653 Commits (master)

Author SHA1 Message Date
alanbjohnston 0c6083f0d6
more word
5 years ago
alanbjohnston 4fc216bc81
more wod
5 years ago
alanbjohnston 7488627d62
more word
5 years ago
alanbjohnston 4fc4ff76a9
put MAX and MIN back
5 years ago
alanbjohnston 6c37aadf01
added rest of sensors
5 years ago
alanbjohnston c33b24b1ce
switching max and min
5 years ago
alanbjohnston ccc5955c2f
wow test
5 years ago
alanbjohnston 6c3421e573
missing ) typo
5 years ago
alanbjohnston 0813b39364
Update main.c
5 years ago
alanbjohnston c514885dae
fixed current conversions
5 years ago
alanbjohnston dda78ebc6f
missing {
5 years ago
alanbjohnston 50cff5a94e
rest of battery voltages and currents
5 years ago
alanbjohnston c33ee9a02d
fixed payload order
5 years ago
alanbjohnston 1f7e208776
always send MAX Min frame BPSK
5 years ago
alanbjohnston 71b914cdb2
added payload frame checking for MAX Min
5 years ago
alanbjohnston 35c04331de
BPSK only send MAX MIN frames, just +Xv and +Yv so far
5 years ago
alanbjohnston 4654fc583c
turned on max and min frames for a test similar to dev-faster
5 years ago
alanbjohnston b82ce45442
added printf for python results
5 years ago
alanbjohnston fcef731b5e
back to sleep(2.3) for BPSK and FSK
5 years ago
alanbjohnston b40eee5ca8
sleep 1.3 for BPSK
5 years ago
alanbjohnston df7e53c0fa
sleep 4.3 for BPSK
5 years ago
alanbjohnston d836c622a8
Only sleep(2.3) for FSK
5 years ago
alanbjohnston 2cdb41f04f
removed sleep(2.3)
5 years ago
alanbjohnston 421547dd9b
removed double clearing buffer
5 years ago
alanbjohnston 7ef595e4bb
double clearing buffer
5 years ago
alanbjohnston 41fb0eab32
added test for BPSK mode for 2nd socket send
5 years ago
alanbjohnston b38e528681
changed UART to 115200
5 years ago
alanbjohnston b65770fc81
changed a printf to fprintf(stderr
5 years ago
alanbjohnston fdd5fd0fd9
printout PythonConfigStr
5 years ago
alanbjohnston 863dddbbb5
send frame twice over socket
5 years ago
alanbjohnston 0086136b2c
changed humidity to include tenths of a percent
5 years ago
alanbjohnston 4cb9a33fb3
simulated telemetry mode set by i2c bus 3 so automatically set with Lite board
5 years ago
alanbjohnston 0b885c76b1
fixed swap -X and -Y bug
5 years ago
alanbjohnston ea628fedaf
swapped -X and -Y bug
5 years ago
alanbjohnston 5b961be801
sim mode is activated by only i2c bus 1 disabled, allowing raspi-config to enable sim mode
5 years ago
alanbjohnston 278e84fcd9
change sleep(3.3) to 2.3
5 years ago
alanbjohnston d4ac2bb073
typo
5 years ago
alanbjohnston 9c8b60fa5d
fixed APRS mode python read
5 years ago
alanbjohnston 07d6e22f37
more cleanup
5 years ago
alanbjohnston d3ec5b3749
cleanup
5 years ago
alanbjohnston f4155d1f0f
trying to fix max and min
5 years ago
alanbjohnston 52652e5124
formatting
5 years ago
alanbjohnston 1f05cd054f
fix max min
5 years ago
alanbjohnston 8697d11071
investigate Imax and min
5 years ago
alanbjohnston e36e5ff678
Working pretty well, removed duplicate Sample period printf
5 years ago
alanbjohnston b5099b6cc7
turn on payload
5 years ago
alanbjohnston 5b0394d782
Working OK without cpu limit, MAX MIN not correct for FSK
5 years ago
alanbjohnston fd3f41e2ac
turn payload off
5 years ago
alanbjohnston b50723f8cf
removed python test at start
5 years ago
alanbjohnston 2b20f1170e
try turning firstTime on again
5 years ago
alanbjohnston dad7f9d139
Working, turning on payload
5 years ago
alanbjohnston 10de251683
added sleep(0.5) if resending
5 years ago
alanbjohnston d08054b8c3
socket resend not working yet
5 years ago
alanbjohnston 7059775750
added back in socket resend
5 years ago
alanbjohnston ac36259312
sleep(3.3)
5 years ago
alanbjohnston f8cf009a95
changed MAX MIN
5 years ago
alanbjohnston b53d2251c7
sleep(3.8)
5 years ago
alanbjohnston e2d9badab2
typo
5 years ago
alanbjohnston 4f2823b739
merged in sin_map from dev-faster
5 years ago
alanbjohnston 115aaeff58
Update main.c
5 years ago
alanbjohnston 2a81c4d4a5
take python read out
5 years ago
alanbjohnston 2507048f8f
reduce sleep time
5 years ago
alanbjohnston 630c6f2a0f
removed python read
5 years ago
alanbjohnston 18a2c69b2b
sleep(2.8)
5 years ago
alanbjohnston e4e148ca06
took out old file1 code
5 years ago
alanbjohnston bf44272ed2
try new sopen
5 years ago
alanbjohnston c209010fe8
stdout
5 years ago
alanbjohnston ee66bfa171
typo
5 years ago
alanbjohnston 2881b595cf
added stdin
5 years ago
alanbjohnston bad0056b37
testing python read
5 years ago
alanbjohnston f655d2f801
printf python read result
5 years ago
alanbjohnston 5279c8f36f
working with every frame, fixing telem read
5 years ago
alanbjohnston 211da494be
sleep(3.5) now with quicker python sensor reads
5 years ago
alanbjohnston 1733e4cab7
made cmdbuffer and file1 globals, keep open
5 years ago
alanbjohnston 1d2f100c74
changed to popen w
5 years ago
alanbjohnston 36706a6c81
Update main.c
5 years ago
alanbjohnston 036a850aae
Update main.c
5 years ago
alanbjohnston 1f7aa9b402
Update main.c
5 years ago
alanbjohnston 817e20da8a
try in and out
5 years ago
alanbjohnston a6a48b52a6
Update main.c
5 years ago
alanbjohnston 203f9cee90
handled errors
5 years ago
alanbjohnston 4ee4fe7847
Update main.c
5 years ago
alanbjohnston 27399f2022
Update main.c
5 years ago
alanbjohnston b8fe0cef95
Update main.c
5 years ago
alanbjohnston 100aabd8f1
bool to int
5 years ago
alanbjohnston a3e34d9ea5
Try start process
5 years ago
alanbjohnston 444ba6992d
try r+
5 years ago
alanbjohnston 6b67bf70a6
changed popen to rw
5 years ago
alanbjohnston d8cedd9f21
try new python
5 years ago
alanbjohnston 40230331b6
Update main.c
5 years ago
alanbjohnston 6c1b63be40
sleep 1.5 and python telem
5 years ago
alanbjohnston 71234ff24f
back to sleep(2.5)
5 years ago
alanbjohnston 55fbb3c52b
delay(3)
5 years ago
alanbjohnston b89ba8c0ce
Update main.c
5 years ago
alanbjohnston f081a668e0
delay
5 years ago
alanbjohnston 729fe608a0
changed to delay(2.5)
5 years ago
alanbjohnston e1ba966153
No sleep, buffer always full, almost 100% frames
5 years ago
alanbjohnston 739d111da5
removed sleep
5 years ago
alanbjohnston 41fe5ffebb
typo
5 years ago
alanbjohnston 5013b81bc0
reduced to 2.5
5 years ago
alanbjohnston 3ae7a22691
reduce to 3.0
5 years ago
alanbjohnston fffdff6b10
reduced sleep from 3.5 to 3.2 to avoid buffer overflow
5 years ago
alanbjohnston 3d817f4382
Almost every frame decoded, still buffer filling, try turning off first time
5 years ago
alanbjohnston f2e0854b12
all together again one sleep
5 years ago
alanbjohnston bd53121655
more testing
5 years ago
alanbjohnston 8befb7cf14
loop time test
5 years ago
alanbjohnston dfac052acd
Two sleep(2.5)
5 years ago
alanbjohnston 47584fd479
consolidated all into a sleep(4.5)
5 years ago
alanbjohnston 4deeee6e90
changed to sleep(2.5)
5 years ago
alanbjohnston 3cf5703081
added sleep(0.6)
5 years ago
alanbjohnston 75606058f1
added 3x sleep(1)
5 years ago
alanbjohnston 4ec37242cd
no python sensor read
5 years ago
alanbjohnston 162ecb1b33
Update main.c
5 years ago
alanbjohnston 82a96e1c5f
turned off payload
5 years ago
alanbjohnston 67bda7538b
Update main.c
5 years ago
alanbjohnston 1271e7b62c
Update main.c
5 years ago
alanbjohnston 5a8adeea2f
typos
5 years ago
alanbjohnston af945401f7
moved sim_mode code
5 years ago
alanbjohnston 642f625363
removed sensor printf
5 years ago
alanbjohnston 8b28cf1c17
added time printf
5 years ago
alanbjohnston 6da1423650
moved initialization of FSK and BPSK values
5 years ago
alanbjohnston bead52d20a
strstr warning
5 years ago
alanbjohnston 1df9a30367
Update main.c
5 years ago
alanbjohnston e508a3c118
more cleanup
5 years ago
alanbjohnston 0b46263f47
more cleanup
5 years ago
alanbjohnston fb58b87a60
WOD testing, not working yet
5 years ago
alanbjohnston 0276a76c0d
Update main.c
5 years ago
alanbjohnston 7d7823869f
end of WOD field experiments
5 years ago
alanbjohnston 99226a0f81
typo
5 years ago
alanbjohnston d0fe751d10
moving WOD fields
5 years ago
alanbjohnston 031e66ad83
no MAX MIN for BPSK, added WOD field test
5 years ago
alanbjohnston 63e95663a0
even more
5 years ago
alanbjohnston 86a2f70748
more
5 years ago
alanbjohnston 02e259bf11
missing #endif
5 years ago
alanbjohnston 8685cf1c18
more fixing of warnings
5 years ago
alanbjohnston 82431f1460
start of cleanup of compiler warnings
5 years ago
alanbjohnston 6b6fa5aa42
cleanup error from reformatter
5 years ago
alanbjohnston d7c5d11a62
reformatted
5 years ago
alanbjohnston 8ea31a748a
fixed typo - payload is not off in sim_mode
5 years ago
alanbjohnston 92813858d0
typo
5 years ago
alanbjohnston a532f3724f
turned payload OFF if sim mode
5 years ago
alanbjohnston 5a32553298
typo
5 years ago
alanbjohnston 75db343fd2
check for valid values in sensor max and min before writing
5 years ago
alanbjohnston 26f8a15cb3
only update max and min if valid sensor data
5 years ago
alanbjohnston 30c8a0f7ac
moved min max after sim
5 years ago
alanbjohnston 2b0e96c256
added MAX and MIN
5 years ago
alanbjohnston 68eb69776e
fixed RSSI and rearranged payload read order
5 years ago
alanbjohnston 3a6397db66
typo
5 years ago
alanbjohnston 6994a433c1
added MIN frame every 1/4
5 years ago
alanbjohnston 32c8accace
fixed RSSI
5 years ago
alanbjohnston 3afcdb77ba
typo
5 years ago
alanbjohnston 86958b5a28
typos
5 years ago
alanbjohnston b0fcc5ed5d
added other for IHUtemp
5 years ago
alanbjohnston 9867c9cb36
typo
5 years ago
alanbjohnston 7bf38384d4
only process payload string if valid (begins with "OK")
5 years ago
alanbjohnston 92366d9351
testing sensor_min and max
5 years ago
alanbjohnston 6f7bbbc2de
debug sensor_min
5 years ago
alanbjohnston 9e3fbf5894
typo in sensor min and max
5 years ago
alanbjohnston f11811f484
typo
5 years ago
alanbjohnston 8b7b1de256
added HUMI, etc XS1 to 3
5 years ago
alanbjohnston 941d71090c
changed 20 to 14, encoded accel
5 years ago
alanbjohnston b2fe6e2084
added GYRO_X, Y, and Z, ACCEL_X, Y, Z
5 years ago
alanbjohnston b162d1b1a8
typo
5 years ago
alanbjohnston 06c29b1558
added sensor max and min and other max and min
5 years ago
alanbjohnston 421235ef43
typo
5 years ago
alanbjohnston 8b0d8f9fbb
initialized max and min so that first value sets it
5 years ago
alanbjohnston d5e9303b49
typos
5 years ago
alanbjohnston af3d08657c
typo
5 years ago
alanbjohnston db71caa8f7
typos
5 years ago
alanbjohnston 898a01e965
typos
5 years ago
alanbjohnston b5a6338293
added storage of V, I max and min
5 years ago
alanbjohnston 15eb474e07
reset NormalModeFailure when V > 3.5V
5 years ago
alanbjohnston 7e42606d14
changed back to 9600 UART to arduino
5 years ago
alanbjohnston 335b142896
fixed cpuTemp in APRS simulated mode
5 years ago
alanbjohnston 6df61e363f
removed NormalModeFailure from APRS
5 years ago
alanbjohnston 5ac93cfca9
added simulation tlm for APRS
5 years ago
alanbjohnston 40b97545cd
Payload query cleanup
5 years ago
alanbjohnston 2c78a95284
try clearing buffer before reading
5 years ago
alanbjohnston 6971275a02
try retry instead of end at \n
5 years ago
alanbjohnston 79c7811c14
added printf
5 years ago
alanbjohnston 3bf456089c
added test for OK in sensor payload and restart
5 years ago
alanbjohnston 0f848d6d46
Try 19200 UART
5 years ago
alanbjohnston 46c182e4e1
back to 9600 but with Arduino checking for ?
5 years ago
alanbjohnston 985f3aca4d
try 19200 serial to UART
5 years ago
alanbjohnston 29247884a1
Try \n? again
5 years ago
alanbjohnston c4d90f8ba2
Try \n? query
5 years ago
alanbjohnston a39eafbfc2
Accel to floats
5 years ago
alanbjohnston a714ed69cc
typo
5 years ago
alanbjohnston b4087cefe5
sensor3 typo
5 years ago
alanbjohnston 2c4dfd489c
sensor fixup
5 years ago
alanbjohnston b66743491f
fixed encoding of BME280
5 years ago
alanbjohnston 535ffd5576
changed BME280 variables to float
5 years ago
alanbjohnston 8a59a54a5f
corrected token read of sensor data
5 years ago
alanbjohnston 8ffe4ff249
Normal mode failure if battery < 3.5 V
5 years ago
alanbjohnston d79b308c7e
fixed accel telem
5 years ago
alanbjohnston 30f1abd698
fixed BME280temperature
5 years ago
alanbjohnston 248490a82f
moved tx and rx antennas to globals
5 years ago
alanbjohnston 50bd27f92a
typo
5 years ago
alanbjohnston 3a0cc30e07
BME280temperature, spin, and txAntennaDeployed set by variables
5 years ago
alanbjohnston d66e9b51e1
typos
5 years ago
alanbjohnston dccf20dba7
added all BME280 and MPU6050 sensor fields
5 years ago
alanbjohnston 8ca33c8767
Rssi typo
5 years ago
alanbjohnston 92c619ee00
Rssi typo
5 years ago
alanbjohnston cc437da16e
Resets typo
5 years ago
alanbjohnston d172b7d4e1
added Resets and Rssi
5 years ago
alanbjohnston 9c141cc09b
camera status working
5 years ago
alanbjohnston f5aaf74124
Update main.c
5 years ago
alanbjohnston 150ca64110
Update main.c
5 years ago
alanbjohnston 1e8a049954
Update main.c
5 years ago
alanbjohnston f7c380fe62
zeroed all sensors
5 years ago
alanbjohnston c92919f696
camera testing
5 years ago
alanbjohnston 992e0bc6bf
testing PayloadFailure
5 years ago
alanbjohnston ab5484645b
Update main.c
5 years ago
alanbjohnston b85e680873
camera test, added PayloadFailure 1 and 2 status
5 years ago
alanbjohnston 0489f68f20
testing
5 years ago
alanbjohnston 9b23cf1766
Update main.c
5 years ago
alanbjohnston 23bc5d8173
testing
5 years ago
alanbjohnston c5d89e8e39
all 1's in status bits
5 years ago
alanbjohnston 71618fd3f2
Update main.c
5 years ago
alanbjohnston e774df3e72
testing camera status
5 years ago
alanbjohnston 57e229a80b
reversed conditional
5 years ago
alanbjohnston 87c501483c
added camera conditional
5 years ago
alanbjohnston 3e16f41339
typo
5 years ago
alanbjohnston 1d53b14af0
typo
5 years ago
alanbjohnston e22eeb5d28
try strstr
5 years ago
alanbjohnston d6608a7147
typo
5 years ago
alanbjohnston 1ba3318886
fixed conditional
5 years ago
alanbjohnston ae5641aa42
cleanup of camera test
5 years ago
alanbjohnston 9e896213d1
changed && to &
5 years ago
alanbjohnston ed4afd95bc
try strchr
5 years ago
alanbjohnston 28c241c9b4
added string compare
5 years ago
alanbjohnston e454eacc8e
typo
5 years ago
alanbjohnston 835162f1b1
typo
5 years ago
alanbjohnston 81000bdc9c
typo
5 years ago
alanbjohnston f9e8aaf3ea
testing
5 years ago
alanbjohnston 7fe9ea0b53
right location in string
5 years ago
alanbjohnston 38791d07d9
typo
5 years ago
alanbjohnston c59311b5f4
typo
5 years ago
alanbjohnston f934cdd10e
camera conditional
5 years ago
alanbjohnston e1c22a1a48
added camera test
5 years ago
alanbjohnston 138c41f590
added camera to telem
5 years ago
alanbjohnston 9afe0f8057
changed i2c bus on to off, testing
5 years ago
alanbjohnston 00d74b8e43
added i2c bus status in telemetry
5 years ago
alanbjohnston 5d1c7f6644
removed printfs
5 years ago
alanbjohnston cc2a1fbfe2
added i2c bus status debug printf
5 years ago
alanbjohnston a82fd8f5be
added sim_mode variable, set when i2c bus 1 and 3 are off
5 years ago
alanbjohnston 5e3612e569
changed range to 150 to 300 mA
5 years ago
alanbjohnston b2c78e14e8
increased current to 220 to 300 mA
5 years ago
alanbjohnston 7c18d2017c
added average amps with +/- 25 for each panel
5 years ago
alanbjohnston 8611f11846
increased lower limit for bus voltage
5 years ago
alanbjohnston 1383cd69ee
used batt in charging calc
5 years ago
alanbjohnston 19aa4f4d7b
debugging charging
5 years ago
alanbjohnston cd3a72f206
fixing battery current
5 years ago
alanbjohnston 0e4385c073
Removed .95 in charging current
5 years ago
alanbjohnston 8e03232946
increase battery discharge
5 years ago
alanbjohnston 9803b26f93
increased battery initial voltage limit from 3.5 to 3.9
5 years ago
alanbjohnston bca12b971d
reduced battery discharge rate by 2
5 years ago
alanbjohnston bf2120736b
added fabs for charging
5 years ago
alanbjohnston 87710596b3
Update main.c
5 years ago
alanbjohnston 46e001acc4
Update main.c
5 years ago
alanbjohnston b9b6af7db0
added limits of 3 to 4.5V for batt
5 years ago
alanbjohnston f122c5b8ec
scaled up battery current
5 years ago
alanbjohnston b5042f0106
put randomness back in currents
5 years ago
alanbjohnston cfd56bb49c
Update main.c
5 years ago
alanbjohnston 20f8ad4ab6
fixed eclipse_time
5 years ago
alanbjohnston ef3122248c
Update main.c
5 years ago
alanbjohnston 86bfbd01a4
time() typo
5 years ago
alanbjohnston bcb87788dc
types
5 years ago
alanbjohnston c7fecd956c
typo in time
5 years ago
alanbjohnston 0190540dc6
fixed eclipse timing and charging simplified
5 years ago
alanbjohnston 5f5743e087
added back in random temp reading
5 years ago
alanbjohnston f44281ede9
Update main.c
5 years ago
alanbjohnston e36f92b1d6
tempS change
5 years ago
alanbjohnston f0dcad278a
debug temp
5 years ago
alanbjohnston 690deef164
fixed IHUcpuTemp
5 years ago
alanbjohnston 2f966de3f8
removed changes to atan, set 0 to 0.001 on axis
5 years ago
alanbjohnston 956df272c6
changed atan to avoid divide by 0
5 years ago
alanbjohnston acd2bcb199
trying atan changes
5 years ago
alanbjohnston 0ce342a5b1
fixed atan divide by 0 Nan error
5 years ago
alanbjohnston cbad3c1357
changed /100 to /10 for temp
5 years ago
alanbjohnston aa1e6c96c5
Update main.c
5 years ago
alanbjohnston a1e8c54313
trying to find charging current variation
5 years ago
alanbjohnston fbd4e6ce55
removed i^2, reduced temp swing,
5 years ago
alanbjohnston 2c1ca3a52f
fixed temp
5 years ago
alanbjohnston f49c47a963
made temp change more rapidly
5 years ago
alanbjohnston 28d2b86386
moved battery voltage setting so simulated value won't be used for threshold
5 years ago
alanbjohnston be535b308a
increased charging and discharging rate again
5 years ago
alanbjohnston 04b87e81a7
axis back to +/- reduced current, increased solar current
5 years ago
alanbjohnston 08dd6be76a
reduced batt discharge rate by 10
5 years ago
alanbjohnston b438e5a752
simulated batt doen't trigger shutdown
5 years ago
alanbjohnston 1e3ed1055a
batt current typo
5 years ago
alanbjohnston 29f112cc77
added PSU and batt and temp simulations, changed eclipse to 1/4 at initialization
5 years ago
alanbjohnston 6820736eb9
fixed array dimension
5 years ago
alanbjohnston 8e32b65fe9
Update main.c
5 years ago
alanbjohnston d6e4ee82b8
added fabs to sin^2
5 years ago
alanbjohnston fab4b53b9c
tried sin^2 for i
5 years ago
alanbjohnston 6f4bbd11d7
investigate Z currents and add 2x for voltage
5 years ago
alanbjohnston 667432edcc
fixed Zv
5 years ago
alanbjohnston 35f0822dda
fixed neg v bug
5 years ago
alanbjohnston 02b379e53a
find out why -Xv goes to 40
5 years ago

Powered by TurnKey Linux.