Pi-lomar updates #47
Replies: 2 comments
-
2024-01-Issues branch now merged. The latest round of updates is now merged into the main branch. OBJECTIVEUse feedback from people who have built a pi-lomar to fix some bugs and niggles.
ISSUES ADDRESSED#44 Issues related to CircuitPython 8.x installation on Tiny2040. (enhancement) MICROCONTROLLER SOFTWAREcircuitpython/code.py
RASPBERRY PI SOFTWAREsrc/pilomarimage.py, pilomarlogfile.py, pilomartimer.py, pilomar.py, textcolor.py
RASPBERRY PI SCRIPTSscripts/buildpilomar_bookworm64, scripts/buildpilomar_buster32, scripts/zip-pilomar
DRAFT DOCUMENTATIONdocs/Pilomar Manual 2024-02-26.pdf
|
Beta Was this translation helpful? Give feedback.
-
New release of the package is now merged. Many new features and a few issues fixed. JULY.2024 RELEASE NOTES** VERSIONS IN THIS RELEASE **
** UPGRADE NOTES **Follow the standard upgrade notes on Pi-lomar's GitHub wiki but with the following extra items.
**CHANGE NOTES **circuitpyhon/code.py
data/ngc.json
src/pilomar.py
src/celestrak.py
src/pilomarcamera.py
src/pilomargpio.py
src/pilomarimage.py
src/pilomarlogfile.py
src/textcolor.py
src/pilomarfits.py
docs/Pilomar manual 2024-07-04.pdf
|
Beta Was this translation helpful? Give feedback.
-
A few issues that arose with the initial version have been addressed.
TO UPDATE YOUR COPY --------------------------------------------
You can copy the /src and /circuitpython folders from the Main branch of GitHub and overwrite the older copies on the RPi.
The RPi will be automatically updated as soon as you have copied the /src files across.
The Tiny2040 microcontroller will need the new copy of /circuitpython/code.py copying from the RPi onto the controller via a USB connection (remove the GPIO header connection first for safety!)
Then restart the pilomar.py program.
MICROCONTROLLER CHANGES ------------------------------------
circuitpython/code.py
Now reports the boot_out.txt file back to the RPi at startup to check which flavour and version of python is installed.
Startup LED color changed from PINK to CYAN so it does not look like an error state.
UART error messages standardised.
ADC0 pin can be left unassigned, so it's available for other purposes.
DRV8825 fault signals only reported ONCE to prevent buffer overflow and crash.
steppermotor class gains 'DriverType' attribute in case other drivers are used.
'tune complete' message has timestamp formatted instead of integer value.
Compatible versions check only considers MAJOR and MINOR elements of aa.bb.cc version numbering.
memorymanager class counts how many times the garbage collector has been triggered. Count is periodically reported back to the RPi.
RASPBERRY PI CHANGES -------------------------------------------
src/pilomarcelestrak.py
Now respects projectroot for file handling.
src/pilomarimage.py
New CalculateStarSpread() method to calculate how much of the image contains stars. Supports finetuning of the tracking function.
src/pilomarlogfile.py
New PackageSearchResult() method to extract entries from log files via grep commands and zip the result.
src/textcolor.py
Fixed fault where refresh character '?' did not refresh the menu display.
src/pilomar.py
ProjectRoot is now calculated dynamically from the location of src/pilomar.py. Makes it easier to install in different directory structures.
Fixed bad default values for MinAltitudeAngle, MaxAltitudeAngle. Includes self-correcting any existing bad values.
LocalStarsMagnitude and ConstellationStarsMagnitude parameters added to control the size of the Hipparcos catalog selected for observations.
TargetMinMagnitude parameter defaults to 7.0 which is a better starting point for the 16mm lens builds.
Removed support for the 4 LEDs seen on the development PCB, they are not part of the published project.
Workaround for crash after the initial Hipparcos catalog build. The build closes the user input stream for some reason, so now the program stops cleanly and asks for a restart.
SetMotorAngle() method now shows the current position before asking the user for a new one.
Miscellaneous Tools Menu:
Added "About" function to list the version numbers of various components and packages.
Added "Tracking status" function to list the parameters related to the tracking function, helps to identify which changes to make to improve tracking.
Added "Set local timezone" function to let the user select their local timezone from a list rather than having to research it. LocalTZ parameter is still for reference only at the moment.
Microcontroller Tools Menu:
Added "Zip comms log" function to extract UART communication messages from the log file and zip them. Easier to find/share information when debugging issues.
Added "Monitor comms" function to display in realtime the communication between the microcontroller and the Raspberry Pi over UART. To help with debugging communications.
Beta Was this translation helpful? Give feedback.
All reactions