Hi, I am working on creating my won custom firmware and driver (for arduino and ascom driver) for a school project and just for fun. The driver is mostly written and connects to the arduino with the firmware I have installed. I can move the focuser in NINA and checking the logs it work properly and the IsMoving property is updating correctly. However, I have noticed that when I am using your driver and software and set a target position the driver also updates the position of the focuser while it is moving. But with my driver (which I have also implemented the Position property) and arduino software, it does not behave this way, only updating the position after the move is complete. Looking at the ascom debug logs, NINA never calls the Position property, which is why the position is not updating. Any help or guidance to help me solve my problem would be very appreciated. Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the ascom driver + INDI for this project have a built in code that supports this.
BUT
I use NINA and can see the focuser position change during a move, so I would assume it may be some setting somewhere. I am fairly certain that MOST focusers support this also, I dont recall any that do not,
I would have to think that there may be something you have missed or coded into the chip firmware. Its possible the "move" you implemented in firmware can prevent the updates, if you look at the myfp2 code its based on the serial code which sets a flag to indicate if the serial port has received data, and then the main() can check the flag and service the data. Its possible that your firmware when it receives the serial data for a "move" then your firmware gets locked into just doing the move and then remains in the move and doesnt go back till the move has ended. Just a guess. If you coded the firmware to use accelstepper then you can get this issue depending on how it is coded.
Regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am working on creating my won custom firmware and driver (for arduino and ascom driver) for a school project and just for fun. The driver is mostly written and connects to the arduino with the firmware I have installed. I can move the focuser in NINA and checking the logs it work properly and the IsMoving property is updating correctly. However, I have noticed that when I am using your driver and software and set a target position the driver also updates the position of the focuser while it is moving. But with my driver (which I have also implemented the Position property) and arduino software, it does not behave this way, only updating the position after the move is complete. Looking at the ascom debug logs, NINA never calls the Position property, which is why the position is not updating. Any help or guidance to help me solve my problem would be very appreciated. Thank you.
Sorry I dont know.
the ascom driver + INDI for this project have a built in code that supports this.
BUT
I use NINA and can see the focuser position change during a move, so I would assume it may be some setting somewhere. I am fairly certain that MOST focusers support this also, I dont recall any that do not,
I would have to think that there may be something you have missed or coded into the chip firmware. Its possible the "move" you implemented in firmware can prevent the updates, if you look at the myfp2 code its based on the serial code which sets a flag to indicate if the serial port has received data, and then the main() can check the flag and service the data. Its possible that your firmware when it receives the serial data for a "move" then your firmware gets locked into just doing the move and then remains in the move and doesnt go back till the move has ended. Just a guess. If you coded the firmware to use accelstepper then you can get this issue depending on how it is coded.
Regards
Robert