しばらく更新していない間に、OnStepXのバージョンがかなり上がりました。
Config.hのバージョンも上がり(本当に長い間ブログ放置してました)、ちょっと設定の仕方も変わっているので、その3を書くことにしました。以前書いたものはこちらです。
OnstepXの最新ヴァージョンをダウンロードします。今回は10.25.r6で説明します。ヴァージョンは、OnStepX.inoの43行目に書いてあります。ダウンロードしたファイルを解凍します。解凍されたフォルダ名をOnStepXとします(※inoファイル名とそれを含むフォルダ名は同一にする必要)。ヴァージョンごとに管理したい場合は、ヴァージョン名のフォルダを作り、その中に先ほどのOnStepXフォルダを入れます。
Config.hファイルを設定します。
以下、Config.hの序盤部分です。
/* ---------------------------------------------------------------------------------------------------------------------------------
* Configuration for OnStepX
*
* For more information on setting OnStep up see http://www.stellarjourney.com/index.php?r=site/equipment_onstep
* and join the OnStep Groups.io at https://groups.io/g/onstep
*
* *** Read the compiler warnings and errors, they are there to help guard against invalid configurations ***
*
* ---------------------------------------------------------------------------------------------------------------------------------
* ADJUST THE FOLLOWING TO CONFIGURE YOUR CONTROLLER FEATURES ----------------------------------------------------------------------
* <-Req'd = always must set, <-Often = usually must set, Option = optional, Adjust = adjust as req'd, Infreq = infrequently changed
*/
// Parameter Name KeenOne-LV8729-9289-JP Default Notes Hint
// =================================================================================================================================
// CONTROLLER ======================================================================================================================
#define HOST_NAME "KEENONE_HD001" // "OnStep", Hostname for this device up to 16 chars. Adjust
#define DRIVER_TMC_STEPPER
// PINMAP ------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#PINMAP
#define PINMAP MaxESP4 // OFF, Choose from: MiniPCB, MiniPCB2, MaxPCB4, MaxESP4, MaxSTM3, FYSETC_E4, <-Req'd
// BTT_SKR_PRO, etc. Other boards and more info. in ~/src/Constants.h
// SERIAL PORT COMMAND CHANNELS --------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#SERIAL_PORTS
#define SERIAL_A_BAUD_DEFAULT 9600 // 9600, n. Where n=9600,19200,57600,115200,230400,460800 (common baud rates.) Infreq
#define SERIAL_B_BAUD_DEFAULT 9600 // 9600, n. Baud rate as above. See (src/pinmaps/) for Serial port assignments. Infreq
#define SERIAL_B_ESP_FLASHING OFF // OFF, ON Upload ESP8266 WiFi firmware through SERIAL_B with :ESPFLASH# cmd. Option
#define SERIAL_C_BAUD_DEFAULT OFF // OFF, n. Baud rate as above. See (src/pinmaps/) for Serial port assignments. Infreq
#define SERIAL_D_BAUD_DEFAULT OFF // OFF, n. Baud rate as above. See (src/pinmaps/) for Serial port assignments. Infreq
#define SERIAL_E_BAUD_DEFAULT OFF // OFF, n. Baud rate as above. See (src/pinmaps/) for Serial port assignments. Infreq
#define SERIAL_RADIO WIFI_ACCESS_POINT // OFF, Use BLUETOOTH or WIFI_ACCESS_POINT or WIFI_STATION (ESP32 only.) Option
- 13行目【任意】value を、後でConfig.hファイルを識別するために、固有の名前を付けておきます。後々ファイルが増えていくとどれがどれだか分からなくなる時があります。名前をつけておくと便利です。今回はKeenOne-LV8729-9289-JP(機材名-ドライバ名-減速比-WEBサーバの言語)としました。
- 17行目 最近変わった部分だと思うのですが、HOST_NAME(ホスト名)を16文字以内で設定します。ここで設定したホスト名は、アクセスポイントモードでSSIDになったり、Bleutoothの接続先になります。今回は”OnStepX”を”KEENONE_HD001“に変更しました。
- 22行目 公開されている(利用する)基板(MiniPCB, MiniPCB2, MaxPCB2, MaxESP3, CNC3, STM32Blue, MaxSTM3, FYSETC_S6_2など)を選択します。自分は、MaxESP4のPinmapと同じ基板を自作していますので、MaxESP4としています。
- 32行目 お自身の接続環境に合わせて変更します。WIFI_ACCESS_POINTを利用する場合、WIFI_ACCESS_POINT、はBluetoothを利用する場合はBLUETOOTH、家のWIFI等に接続する場合は、WIFI_STATIONに変更します。ここでWIFI_ACCESS_POINTまたはWIFI_STATIONを設定すると、自動でWEB_SERVERがONになるようになりました。BLUETOOTHを設定すると、自動でBT_MODEがSLAVEに設定されます。初期のパスキー(4桁)は空白です。
// STATUS --------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#STATUS_LED
#define STATUS_LED OFF // OFF, Steady illumination if no error, blinks w/error code otherwise. Option
// RETICLE CONTROL ------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#RETICLE_CONTROL
#define RETICLE_LED_DEFAULT OFF // OFF, n. Where n=0..255 (0..100%) activates feature sets default brightness. Option
#define RETICLE_LED_MEMORY OFF // OFF, ON Remember reticle brightness across power cycles. Option
#define RETICLE_LED_INVERT OFF // OFF, ON Inverts control for cases where 0V is max brightness. Option
// WEATHER SENSOR --------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#WEATHER_SENSOR
#define WEATHER OFF // OFF, BME280 (I2C 0x77,) BME280_0x76, BME280_SPI (see pinmap for CS.) Option
// BMP280 (I2C 0x77,) BMP280_0x76, BMP280_SPI (see pinmap for CS.)
// BME280 or BMP280 for temperature, pressure. BME280 for humidity also.
// SIGNALING ------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#SIGNALING
#define STEP_WAVE_FORM SQUARE // SQUARE, PULSE Step signal wave form faster rates. SQUARE best signal integrity. Adjust
// Applies to all axes.
// NON-VOLATILE MEMORY ---------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Controller#NV
#define NV_DRIVER NV_DEFAULT // NV_DEF, Use platforms default non-volatile device to remember runtime settings. Option
// =================================================================================================================================
ここは変更無しで問題ありません。ステータスLEDなどを設定する場合は変更してください。
// MOUNT ===========================================================================================================================
// Driver models (Step/Dir and Servo) many have specific requirements so be sure to follow the link below to help learn about these.
// Typically: A4988, DRV8825, LV8729, S109, TMC2130, TMC5160, TMC2209, etc.
// AXIS1 RA/AZM -------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Axes
#define AXIS1_DRIVER_MODEL TMC2209 // OFF, Enter motor driver model (above) in both axes to activate the mount. <-Often
// If runtime axis settings are enabled changes in the section below will be ignored (disable in SWS or by wiping NV/EEPROM):
// \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
#define AXIS1_STEPS_PER_DEGREE 6984.9 // 12800, n. Number of steps per degree: <-Req'd
// n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0
#define AXIS1_REVERSE OFF // OFF, ON Reverses movement direction, or reverse wiring instead to correct. <-Often
#define AXIS1_LIMIT_MIN -180 // -180, n. Where n= -90..-360 (degrees.) Minimum "Hour Angle" or Azimuth. Adjust
#define AXIS1_LIMIT_MAX 180 // 180, n. Where n= 90.. 360 (degrees.) Maximum "Hour Angle" or Azimuth. Adjust
#define AXIS1_DRIVER_MICROSTEPS 16 // OFF, n. Microstep mode when tracking. <-Req'd
#define AXIS1_DRIVER_MICROSTEPS_GOTO OFF // OFF, n. Microstep mode used during slews. OFF uses _DRIVER_MICROSTEPS. Option
// for TMC2130, TMC5160, TMC2209, TMC2226 STEP/DIR driver models:
#define AXIS1_DRIVER_IHOLD 300 // OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0 Option
#define AXIS1_DRIVER_IRUN 500 // OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc. Option
#define AXIS1_DRIVER_IGOTO 800 // OFF, n, (mA.) Current during slews. OFF uses IRUN. Option
// /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /
#define AXIS1_DRIVER_STATUS OFF // OFF, ON, HIGH, or LOW. For driver status info/fault detection. Option
#define AXIS1_DRIVER_DECAY STEALTHCHOP // OFF, Tracking decay mode default override. TMC default is STEALTHCHOP. Infreq
#define AXIS1_DRIVER_DECAY_GOTO SPREADCYCLE // OFF, Decay mode goto default override. TMC default is SPREADCYCLE. Infreq
#define AXIS1_POWER_DOWN OFF // OFF, ON Powers off 30sec after movement stops or 10min after last<=1x guide. Infreq
#define AXIS1_SENSE_HOME OFF // OFF, HIGH or LOW enables & state clockwise home position, as seen from front. Option
#define AXIS1_SENSE_LIMIT_MIN LIMIT_SENSE // ...NSE, HIGH or LOW state on limit sense switch stops movement. Option
#define AXIS1_SENSE_LIMIT_MAX LIMIT_SENSE // ...NSE, HIGH or LOW state on limit sense switch stops movement. Option
// Digital, optionally add: |HYST(n) Where n=0..1023 stability time in ms.
// Analog capable sense inputs also allow adding:
// |THLD(n) Where n=1..1023 (ADU) for Analog threshold.
// |HYST(n) Where n=0..1023 (ADU) for +/- Hystersis range.
アクシス1 RA/AZMを設定していきます。
- 60行目 利用するモータードライバを設定します。今回はTMC2209とします。選択肢はここにあります。また今回は通常の使い方(Legacy Type)ではなく、Uart Typeで利用します。Uartが使えるのは専用の基板(MaxESP4)とTMC2209とTMC2226の組み合わせのみになります。CNC3などはLegacy Typeです。(※Legacy Typeは、ドライバのM1-M2-M3ピンを使ってマイクロステップを設定するタイプです。Uart Typeは、RXピン一本でドライバの全ての機能を設定可能で、ドライバの状態のフィードバックも可能です。
- 64行目 AXIS1_STEPS_PER_DEGREEを減速比等から計算します。こちらのページで計算して設定してください。
- 66行目 モーターの回転方向を設定します。分からない場合は後でWEBサーバーで変更可能です。
- 70行目 トラッキング(追尾)時にマイクロステップを使う場合は、マイクロステップ数を設定します。CNC3で追加で配線していない場合は、ジャンパーでここで設定した数字と同じになるように設定します。
- 74〜76行目 通常(Legacy Type)では設定不要。Uartの場合、状況に応じてソフト的に電流を自動調整する設定です。静止している時の電流を300mA(vref=0.42V)、トラッキング(追尾)している時の電流を500mA(vref=0.70V)、スルー(移動)時の電流を800mA(vref=1.13V)としました。(※研究中)
- 81〜82行目 通常(Legacy Type)では設定不要。Uart Typeでは、STEALTHCHOPとSPREADCYCLEを設定します。
// AXIS2 DEC/ALT ------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Axes
#define AXIS2_DRIVER_MODEL TMC2209 // OFF, Enter motor driver model (above) in both axes to activate the mount. <-Often
// If runtime axis settings are enabled changes in the section below will be ignored (disable in SWS or by wiping NV/EEPROM):
// \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
#define AXIS2_STEPS_PER_DEGREE 6984.9 // 12800, n. Number of steps per degree: <-Req'd
// n = (stepper_steps * micro_steps * overall_gear_reduction)/360.0
#define AXIS2_REVERSE OFF // OFF, ON Reverses movement direction, or reverse wiring instead to correct. <-Often
#define AXIS2_LIMIT_MIN -90 // -90, n. Where n=-90..0 (degrees.) Minimum allowed Declination or Altitude. Infreq
#define AXIS2_LIMIT_MAX 90 // 90, n. Where n=0..90 (degrees.) Maximum allowed Declination or Altitude. Infreq
#define AXIS2_DRIVER_MICROSTEPS 16 // OFF, n. Microstep mode when tracking. <-Req'd
#define AXIS2_DRIVER_MICROSTEPS_GOTO OFF // OFF, n. Microstep mode used during slews. OFF uses _DRIVER_MICROSTEPS. Option
// for TMC2130, TMC5160, TMC2209, TMC2226 STEP/DIR driver models:
#define AXIS1_DRIVER_IHOLD 300 // OFF, n, (mA.) Current during standstill. OFF uses IRUN/2.0 Option
#define AXIS1_DRIVER_IRUN 500 // OFF, n, (mA.) Current during tracking, appropriate for stepper/driver/etc. Option
#define AXIS1_DRIVER_IGOTO 800 // OFF, n, (mA.) Current during slews. OFF uses IRUN. Option
// /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /
#define AXIS2_DRIVER_STATUS OFF // OFF, ON, HIGH, or LOW. Polling for driver status info/fault detection. Option
#define AXIS1_DRIVER_DECAY STEALTHCHOP // OFF, Tracking decay mode default override. TMC default is STEALTHCHOP. Infreq
#define AXIS1_DRIVER_DECAY_GOTO SPREADCYCLE // OFF, Decay mode goto default override. TMC default is SPREADCYCLE. Infreq
#define AXIS2_POWER_DOWN OFF // OFF, ON Powers off 30sec after movement stops or 10min after last<=1x guide. Option
#define AXIS2_SENSE_HOME OFF // OFF, HIGH or LOW enables & state clockwise home position, as seen from above. Option
#define AXIS2_SENSE_LIMIT_MIN LIMIT_SENSE // ...NSE, HIGH or LOW state on limit sense switch stops movement. Option
#define AXIS2_SENSE_LIMIT_MAX LIMIT_SENSE // ...NSE, HIGH or LOW state on limit sense switch stops movement. Option
アクシス2 DEC/ALT側もアクシス1同様設定します。
// MOUNT -------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#MOUNT
#define MOUNT_TYPE GEM // GEM, GEM German Equatorial Mount, etc. that need meridian flips. <-Req'd
// GEM_TA GEM w/tangent arm Declination
// GEM_TAC GEM w/tangent arm Declination and geometry correction
// FORK Fork Mount
// FORK_TA FORK w/tangent arm Declination
// FORK_TAC FORK w/tangent arm Declination and geometry correction
// ALTAZM Altitude/Azimuth Mount, Dobsonians, etc.
// ALTAZM_UNL ALTAZM w/unlimited Azimuth motion
#define MOUNT_COORDS TOPOCENTRIC // ...RIC, Applies refraction to coordinates to/from OnStep, except exactly Infreq
// at the poles. Use TOPO_STRICT to apply refraction even in that case.
// Use OBSERVED_PLACE for no refraction.
#define MOUNT_COORDS_MEMORY OFF // OFF, ON Remembers approximate mount coordinates across power cycles. Option
// Requires FRAM NV memory and the mount must not move while powered down.
#define MOUNT_ENABLE_IN_STANDBY OFF // OFF, ON Enables mount motor drivers while in standby. Infreq
126行目 架台のタイプを設定します。一般的なドイツ式の赤道儀はGEM、経緯台はALTAZM(方位に制限がない、同じ方向に回転し続けても問題ない)場合はALTAZM_UNLを設定します。
// TIME AND LOCATION ---------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#TLS
#define TIME_LOCATION_SOURCE OFF // OFF, DS3231 (I2C,) SD3031 (I2C,) TEENSY (T3.2 etc,) GPS, or NTP source. Option
// Provides Date/Time, and if available, PPS & Lat/Long also.
#define TIME_LOCATION_PPS_SENSE OFF // OFF, HIGH senses PPS (pulse per second,) signal rising edge, or use LOW for Option
// falling edge, or use BOTH for rising and falling edges.
// STATUS ------------------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration_Mount#STATUS
#define STATUS_MOUNT_LED OFF // OFF, ON Flashes proportional to rate of movement or solid on for slews. Option
#define STATUS_BUZZER OFF // OFF, ON, n. Where n=100..6000 (Hz freq.) for speaker. ON for piezo buzzer. Option
#define STATUS_BUZZER_DEFAULT OFF // OFF, ON starts w/buzzer sound enabled. Option
#define STATUS_BUZZER_MEMORY OFF // OFF, ON to remember buzzer sound setting across power cycles. Option
// ST4 INTERFACE -------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#ST4
// *** It is up to you to verify the interface meets the electrical specifications of any connected device, use at your own risk ***
#define ST4_INTERFACE ON // OFF, ON enables interface. <= 1X guides unless hand control mode. Option
// During goto btn press: aborts slew or continue meridian flip pause home
#define ST4_HAND_CONTROL ON // ON, ON for hand controller special features and SHC support. Option
// Hold [E]+[W] btns >2s: Guide rate [E]- [W]+ [N] trk on/off [S] sync
// Hold [N]+[S] btns >2s: Usr cat item [E]- [W]+ [N] goto [S] snd on/off
#define ST4_HAND_CONTROL_FOCUSER OFF // ON, ON alternate to above: Focuser move [E]f1 [W]f2 [N]- [S]+ Option
// GUIDING BEHAVIOUR ------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration_Mount#GUIDING
#define GUIDE_TIME_LIMIT 10 // 10, n. Time limit n=0..120 seconds. Use 0 to disable. Adjust
#define GUIDE_DISABLE_BACKLASH OFF // OFF, Disable backlash takeup during guiding at <= 1X. Option
// LIMITS ------------------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration_Mount#LIMITS
#define LIMIT_SENSE OFF // OFF, HIGH or LOW state on limit sense switch stops movement. Option
#define LIMIT_STRICT OFF // OFF, disables limits until unpark goto or sync. ON enables limits at startup. Option
// note that ON also disables all motion until date/time are set.
// PARKING ---------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#PARKING
#define PARK_SENSE OFF // OFF, HIGH or LOW state indicates mount is in the park orientation. Option
#define PARK_SIGNAL OFF // OFF, HIGH or LOW state park input signal triggers parking. Option
#define PARK_STATUS OFF // OFF, signals with a HIGH or LOW state when successfully parked. Option
#define PARK_STRICT OFF // OFF, ON Un-parking is only allowed if successfully parked. Option
- 145行目 RTC(リアルタイムクロック)やGPSモジュールから日時や現在地のデータを取得する場合ONにします。
- 160行目 ST4を有効にする場合は、
ST4_INTERFACE
をONにします。 - 161行目 ST4のハンドルコントローラを有効にする場合は、
をONにします。ST4_HAND_CONTROL
// PEC ------------------------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration_Mount#PEC
#define PEC_STEPS_PER_WORM_ROTATION 0 // 0, n. Steps per worm rotation (0 disables else 720 sec buffer allocated.) <-Req'd
// n = (AXIS1_STEPS_PER_DEGREE*360)/reduction_final_stage
#define PEC_SENSE OFF // OFF, HIGH. Senses the PEC signal rising edge or use LOW for falling edge. Option
// Ignored in ALTAZM mode.
#define PEC_BUFFER_SIZE_LIMIT 720 // 720, Seconds of PEC buffer allowed. Infreq
// TRACKING BEHAVIOUR ---------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#TRACKING
#define TRACK_BACKLASH_RATE 20 // 20, n. Where n=2..50 (x sidereal rate) during backlash takeup. Option
// Too fast motors stall/gears slam or too slow and sluggish in backlash.
#define TRACK_AUTOSTART ON // OFF, ON Start with tracking enabled. Option
#define TRACK_COMPENSATION_DEFAULT OFF // OFF, No compensation or REFRACTION, REFRACTION_DUAL, MODEL, MODEL_DUAL. Option
#define TRACK_COMPENSATION_MEMORY OFF // OFF, ON Remembers refraction/pointing model compensated tracking settings. Option
// SLEWING BEHAVIOUR ------------------------------------------ see https://onstep.groups.io/g/main/wiki/Configuration_Mount#SLEWING
#define SLEW_RATE_BASE_DESIRED 2.0 // 1.0, n. Desired slew rate in deg/sec. Adjustable at run-time from <-Req'd
// 1/2 to 2x this rate, and as performace considerations require.
#define SLEW_RATE_MEMORY OFF // OFF, ON Remembers rates set across power cycles. Option
#define SLEW_ACCELERATION_DIST 5.0 // 5.0, n, (degrees.) Approx. distance for acceleration (and deceleration.) Adjust
#define SLEW_RAPID_STOP_DIST 2.0 // 2.0, n, (degrees.) Approx. distance required to stop when a slew Adjust
// is aborted or a limit is exceeded.
#define GOTO_FEATURE ON // ON, Use OFF to disable mount Goto features. Infreq
#define GOTO_OFFSET 0.25 // 0.25, Offset in deg's for goto target unidirectional approach, 0.0 disables Adjust
#define GOTO_OFFSET_ALIGN OFF // OFF, ON skips final phase of goto for align stars so user tends to approach Option
// from the correct direction when centering.
// PIER SIDE BEHAVIOUR --------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#PIERSIDE
#define MFLIP_SKIP_HOME OFF // OFF, ON Goto directly to the destination without visiting home position. Option
#define MFLIP_AUTOMATIC_DEFAULT OFF // OFF, ON Start with automatic meridian flips enabled. Option
#define MFLIP_AUTOMATIC_MEMORY OFF // OFF, ON Remember automatic meridian flip setting across power cycles. Option
#define MFLIP_PAUSE_HOME_DEFAULT OFF // OFF, ON Start with meridian flip pause at home enabed. Infreq
#define MFLIP_PAUSE_HOME_MEMORY OFF // OFF, ON Remember meridian flip pause at home setting across power cycles. Infreq
#define PIER_SIDE_SYNC_CHANGE_SIDES OFF // OFF, ON Allows sync to change pier side, for GEM mounts. Option
#define PIER_SIDE_PREFERRED_DEFAULT BEST // BEST, BEST Stays on current side if possible. EAST or WEST switch if possible. Option
#define PIER_SIDE_PREFERRED_MEMORY OFF // OFF, ON Remember preferred pier side setting across power cycles. Option
// ALIGN -------------------------------------------------------- see https://onstep.groups.io/g/main/wiki/Configuration_Mount#ALIGN
#define ALIGN_AUTO_HOME OFF // OFF, ON uses home switches to find home first when starting an align. Option
#define ALIGN_MODEL_MEMORY OFF // OFF, ON Restores any pointing model saved in NV at startup. Option
#define ALIGN_MAX_STARS AUTO // AUTO, Uses HAL specified default (either 6 or 9 stars.) Infreq
// Or use n. Where n=1 (for Sync only) or 3 to 9 (for Goto Assist.)
- 180〜186行目 PECを利用する場合設定。使ったことがないので割愛します。
- 191行目 電源投入時にトラッキング(追尾)を開始する場合は
TRACK_AUTOSTART
をON。 - 196行目
SLEW_RATE_BASE_DESIRED
は、スルー(移動)スピードです。CPUの性能、モーターの限界回転スピード、鏡筒の重量などを考慮して設定します。こちらのページで計算して適切な数値を設定してください。 - 198行目 ここはスルースピードの設定を保存する設定ですが、うまく反映しないです。
- 199行目
SLEW_ACCELERATION_DIST
は、ここで設定した角度内で徐々にスピードを加速する設定です。重量級の鏡筒などを扱う場合は、脱調や慣性で架台に負担がかかるときは調整が必要です。 - 200行目
SLEW_RAPID_STOP_DIST
は、停止信号を受けてから何度で停止するかの設定です。これも重量級の鏡筒を扱う場合調整が必要だと思います。 - 207行目
PIER SIDE BEHAVIOUR
は、メリディアンフリップ(子午線反転)の設定です。研究中です。
以降フォーカーサー、ローテーター、AUXについての設定なので割愛します。
次にExtended.config.hを設定します。
/* ---------------------------------------------------------------------------------------------------------------------------------
* Extended configuration for OnStepX INFREQUENTLY USED options
*
* For more information on setting OnStep up see http://www.stellarjourney.com/index.php?r=site/equipment_onstep
* and join the OnStep Groups.io at https://groups.io/g/onstep
*
* *** Read the compiler warnings and errors, they are there to help guard against invalid configurations ***
*
* ---------------------------------------------------------------------------------------------------------------------------------
* ADJUST THE FOLLOWING TO CONFIGURE YOUR CONTROLLER FEATURES ----------------------------------------------------------------------
* <-Req'd = always must set, <-Often = usually must set, Option = optional, Adjust = adjust as req'd, Infreq = infrequently changed
*/
// Parameter Name 192,168,30,256(Change IP Address) Default Notes Hint
// =================================================================================================================================
// CONTROLLER ======================================================================================================================
// DEBUG ---------------------------------------------------------------------------------------------------------------------------
// Enables additional debugging and/or status messages on the specified SERIAL_DEBUG port (be sure to disable when done!)
// Note: The SERIAL_DEBUG port is often (almost always) attached to the same SERIAL_A port so it cannot be used for normal
// LX200 protocol communications. If this is the case set both to the same (faster) baud rate specified below.
#define DEBUG OFF // OFF, Use ON for background error messages only, use VERBOSE for all Infreq
// error and status messages, use CONSOLE for VT100 debug console,
// or use PROFILER for VT100 task profiler.
#define DEBUG_SERVO OFF // OFF, n. Where n=1 to 9 as the designated axis for logging servo activity. Option
#define DEBUG_ECHO_COMMANDS OFF // OFF, Use ON or ERRORS_ONLY to log commands to the debug serial port. Option
#define SERIAL_DEBUG Serial // Serial, Use any available h/w serial port. Serial1 or Serial2, etc. Option
#define SERIAL_DEBUG_BAUD 230400 // 230400, n. Where n=9600,19200,57600,115200,230400,460800 (common baud rates.) Option
// NON-VOLATILE STORAGE ------------------------------------------------------------------------------------------------------------
#define NV_WIPE OFF // OFF, Causes the defaults to be written back into NV (FLASH,EEPROM,etc.) Infreq
// *** IMPORTANT: ENABLE THIS OPTION THEN UPLOAD, WAIT A MINUTE ***
// Warning ---> // *** OR TWO THEN SET THIS OPTION TO OFF AND UPLOAD AGAIN. ***
// *** LEAVING THIS OPTION ENABLED CAN CAUSE EXCESSIVE NV ***
// *** WEAR AND DAMAGE THE MICROCONTROLLER NV SUBSYSTEM !!! ***
// Additional settings ------------------------------------------------------------------------------------------------------------
#define AP_PASSWORD "12345678" // Wifi Access Point password
#define AP_IP_ADDR {192,168,30,256} // Wifi Access Point IP Address
#define AP_GW_ADDR {192,168,30,256} // Wifi Access Point GATEWAY Address
Extended.config.hファイルは、ちょっと前に比べるとシンプルになりました。基本変更する部分はなく、必要なものを追記していきます。何も追記しなくても問題なく動作します。
- 38行目 最初から特定のパスワードを設定したい場合追記します。WEBサーバに接続してブラウザでも変更可能です。
- 39-40行目 初期設定のアクセスポイントのIPアドレスは、192.168.0.1になりますが、違うIPを設定したければ追記します。今回は適当にIPアドレスを192.168.30.256にしました。
#define SERIAL_BT_PASSKEY "1234" // Bluetooth four digit passkey
Bluetoothを利用する場合で4桁のパスキーを設定する場合は、追記します。
今回はこの辺で。次回は、WEBSERVERの日本語化について書こうと思います。
コメント