Update main.c start after sequence > 10

fc-jy-img
Alan Johnston 11 months ago committed by GitHub
parent 75515ce24b
commit 0e3e5a50e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2321,10 +2321,12 @@ void get_tlm_fc() { // FunCube Mode telemetry generation
source_bytes[1] = 0x10 ; // extended JY-1 - works, no documentation source_bytes[1] = 0x10 ; // extended JY-1 - works, no documentation
int extended = 1; int extended = 1;
if (image_file == NULL) { if (sequence > 10) {
image_file = fopen("/home/pi/CubeSatSim/image_file.bin", "r"); if (image_file == NULL) {
image_id++; image_file = fopen("/home/pi/CubeSatSim/image_file.bin", "r");
printf("Opening file image_file.bin for image_id: %d\n", image_id); image_id++;
printf("Opening file image_file.bin for image_id: %d\n", image_id);
}
} }
int pos = 56; // 56 int pos = 56; // 56
source_bytes[pos++] = 0x55; source_bytes[pos++] = 0x55;

Loading…
Cancel
Save

Powered by TurnKey Linux.