Document joystick coordinate system and hardware limit danger
Live testing revealed the joystick polar coordinate mapping (alt-az config):
- 0° = azimuth rotation clockwise (viewed from above)
- 90° = altitude DOWN (toward ground)
- 180° = azimuth counter-clockwise
- 270° = altitude UP (toward sky)
Also discovered that continuous slew to a mechanical limit causes the
firmware to emergency-stop and drop the network connection entirely,
requiring a physical power cycle. No soft-limit protection exists for
joystick slew commands.
Updated TEST_RESULTS.md with the coordinate map and safety warning.
💘 Generated with Crush
Assisted-by: Crush:glm-5.2
This commit is contained in:
@ -38,6 +38,7 @@ func main() {
|
||||
cmdSystem(),
|
||||
cmdPower(),
|
||||
cmdMonitor(),
|
||||
cmdPano(),
|
||||
)
|
||||
|
||||
rootCmd.MarkPersistentFlagRequired("ip")
|
||||
@ -534,10 +535,38 @@ func cmdPower() *cobra.Command {
|
||||
return c
|
||||
}
|
||||
|
||||
// --- panorama ---
|
||||
|
||||
func cmdPano() *cobra.Command {
|
||||
c := &cobra.Command{Use: "pano", Short: "Panorama control"}
|
||||
c.AddCommand(
|
||||
&cobra.Command{
|
||||
Use: "start",
|
||||
Short: "Start panorama grid scan (homes motors first)",
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
scope, cleanup := dial()
|
||||
defer cleanup()
|
||||
must(scope.StartPanoramaGrid())
|
||||
fmt.Println("panorama grid started (motors homing)")
|
||||
},
|
||||
},
|
||||
&cobra.Command{
|
||||
Use: "stop",
|
||||
Short: "Stop panorama",
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
scope, cleanup := dial()
|
||||
defer cleanup()
|
||||
must(scope.StopPanorama())
|
||||
fmt.Println("panorama stopped")
|
||||
},
|
||||
},
|
||||
)
|
||||
return c
|
||||
}
|
||||
|
||||
// --- monitor ---
|
||||
|
||||
func cmdMonitor() *cobra.Command {
|
||||
return &cobra.Command{
|
||||
func cmdMonitor() *cobra.Command { return &cobra.Command{
|
||||
Use: "monitor",
|
||||
Short: "Listen for telescope notifications (Ctrl-C to stop)",
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
|
||||
Reference in New Issue
Block a user